org.eclipse.emf.importer.rose.parser
Class RoseNode
java.lang.Object
org.eclipse.emf.importer.rose.parser.RoseNode
- public class RoseNode
- extends Object
Is used to build a tree for Rose file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRING
public static final int STRING
- See Also:
- Constant Field Values
STRING_SEQ
public static final int STRING_SEQ
- See Also:
- Constant Field Values
OBJECT
public static final int OBJECT
- See Also:
- Constant Field Values
LIST
public static final int LIST
- See Also:
- Constant Field Values
VALUE
public static final int VALUE
- See Also:
- Constant Field Values
key
protected String key
value
protected String value
parent
protected RoseNode parent
nodes
protected List nodes
type
protected int type
id
protected String id
commit
protected boolean commit
node
protected Object node
FEATURE_VALUE_PATTERN
protected static final Pattern FEATURE_VALUE_PATTERN
CONTENT_VALUE_PATTERN
protected static final Pattern CONTENT_VALUE_PATTERN
VISIBILITY_UNSPECIFIED
public static final int VISIBILITY_UNSPECIFIED
- See Also:
- Constant Field Values
VISIBILITY_NONE
public static final int VISIBILITY_NONE
- See Also:
- Constant Field Values
VISIBILITY_READ_ONLY
public static final int VISIBILITY_READ_ONLY
- See Also:
- Constant Field Values
VISIBILITY_READ_WRITE
public static final int VISIBILITY_READ_WRITE
- See Also:
- Constant Field Values
VISIBILITY_READ_ONLY_UNSETTABLE
public static final int VISIBILITY_READ_ONLY_UNSETTABLE
- See Also:
- Constant Field Values
VISIBILITY_READ_WRITE_UNSETTABLE
public static final int VISIBILITY_READ_WRITE_UNSETTABLE
- See Also:
- Constant Field Values
VISIBILITY_VALUE_PATTERN
protected static final Pattern VISIBILITY_VALUE_PATTERN
RoseNode
public RoseNode(String key,
String value,
int type)
setParent
public void setParent(RoseNode parent)
getParent
public RoseNode getParent()
getRoot
public RoseNode getRoot()
getKey
public String getKey()
getValue
public String getValue()
getAllValues
public String getAllValues()
getAllValues
public String getAllValues(boolean preserveSpace)
getFilteredValues
public String getFilteredValues(String filter)
setValue
public void setValue(String value)
getCommit
public boolean getCommit()
setCommit
public void setCommit(boolean b)
getId
public String getId()
getAtId
public String getAtId()
setId
public void setId(String id)
getRoseNodeType
public int getRoseNodeType()
getNodes
public List getNodes()
addNode
public void addNode(RoseNode n)
deleteNode
public void deleteNode(RoseNode n)
findNodeWithKey
public RoseNode findNodeWithKey(String key)
findNodeWithValue
public RoseNode findNodeWithValue(String value)
findNodeWithWord
public RoseNode findNodeWithWord(String w)
getRoseId
public String getRoseId()
getRoseRefId
public String getRoseRefId()
getRoseSupplier
public String getRoseSupplier()
setNode
public void setNode(Object node)
getNode
public Object getNode()
getType
public String getType()
getStereotype
public String getStereotype()
isDerived
public boolean isDerived()
isAbstract
public boolean isAbstract()
isNavigable
public boolean isNavigable()
isAggregate
public boolean isAggregate()
getContainment
public String getContainment()
getConstraints
public String getConstraints()
getResult
public String getResult()
getExceptions
public String getExceptions()
getSemantics
public String getSemantics()
getInitV
public String getInitV()
getDocumentation
public String getDocumentation()
isLoaded
public boolean isLoaded()
getAttributeValue
protected String getAttributeValue(String key)
getUML2MOFCorbaType
public String getUML2MOFCorbaType()
isTransient
public boolean isTransient()
isVolatile
public boolean isVolatile()
isChangeable
public boolean isChangeable()
isResolveProxies
public boolean isResolveProxies()
isUnsettable
public boolean isUnsettable()
isID
public boolean isID()
isUnique
public boolean isUnique()
getBasePackage
public String getBasePackage()
getPrefix
public String getPrefix()
getPackageName
public String getPackageName()
getClassifierName
public String getClassifierName()
getEcoreConstraints
public String getEcoreConstraints()
getReferenceName
public String getReferenceName()
getAttributeName
public String getAttributeName()
getOperationName
public String getOperationName()
getNsPrefix
public String getNsPrefix()
getNsURI
public String getNsURI()
getXMLName
public String getXMLName()
getXMLNamespace
public String getXMLNamespace()
getXMLFeatureKind
public int getXMLFeatureKind()
getXMLContentKind
public int getXMLContentKind()
getVisibility
public int getVisibility()
getAnnotation
public String getAnnotation()
getAttributeValue
protected String getAttributeValue(String tool,
String name)
- This provides backwards compatibility for the renaming of "eCore" to
"Ecore".
basicGetAttributeValue
protected String basicGetAttributeValue(String tool,
String name)
getRoleMultiplicity
public String getRoleMultiplicity()
dequote
protected static String dequote(String s)