Commit 9bdc64eb authored by Dominique Marcadet's avatar Dominique Marcadet

add setFilename for use by ServiceDataAttribute

parent 5ba183c9
Pipeline #7739 passed with stages
in 29 seconds
......@@ -106,5 +106,6 @@ public interface NsdObject extends EObject {
/*
* @generated NOT
*/
void setFilename( String filename );
String getFilename();
} // NsdObject
......@@ -281,9 +281,18 @@ public abstract class NsdObjectImpl extends MinimalEObjectImpl.Container impleme
return null;
}
private String filename;
public void setFilename( String filename ) {
this.filename = filename;
}
public String getFilename() {
Resource r = eResource();
return ( r == null ) ? "" : r.getURI().lastSegment();
if( filename == null ) {
Resource r = eResource();
filename = ( r == null ) ? "" : r.getURI().lastSegment();
}
return filename;
}
} //NsdObjectImpl
......@@ -1872,6 +1872,9 @@ public class ServiceDataAttributeImpl extends DocumentedClassImpl implements Ser
dataAttribute.setTypeKind( getTypeKind() );
dataAttribute.setFc( getFc() );
dataAttribute.setName( getName() );
dataAttribute.setLineNumber( getLineNumber() );
dataAttribute.setFilename( getFilename() );
return dataAttribute;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment