org.eclipse.emf.importer.rose.parser
Class RoseNode

java.lang.Object
  extended byorg.eclipse.emf.importer.rose.parser.RoseNode

public class RoseNode
extends Object

Is used to build a tree for Rose file.


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

Field Detail

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
Constructor Detail

RoseNode

public RoseNode(String key,
                String value,
                int type)
Method Detail

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)

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.