|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.cosmos.rm.repository.internal.resource.SMLDocumentFragment
org.eclipse.cosmos.rm.repository.internal.application.impl.AbstractSMLFragment
org.eclipse.cosmos.rm.repository.internal.application.impl.SMLResourceProperty
public class SMLResourceProperty
An implementation of a resource property. A property is usually strongly-typed
and the client is expected to be aware of how to interpret a property belonging
to a facet. #load(Node) should be used to instantiate an instance of this class.
| Method Summary | |
|---|---|
protected org.w3c.dom.Node |
getRootNode()
Returns the node that will be used as the context. |
boolean |
isReference()
Indicates whether this item is a reference or not |
static ISMLResourceProperty |
load(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository,
org.w3c.dom.Node root)
Instantiate an instance of this class based on the DOM node passed in. |
ISMLResourceProperty |
resolveReference()
If this object happens to represent a reference to a property (i.e. isReference() returns true), then this method will have it resolved to the actual property. |
java.lang.String[] |
retrieveAttributes()
Retrieves and returns the attributes of this property |
ISMLResourceProperty[] |
retrieveChildren()
Retrieves the children of this property if it has any An empty array is returned if this property does not have any children. |
java.lang.String |
retrievePropertyName()
Returns the property name of this object |
java.lang.String |
retrieveValue(java.lang.String attribute)
Retrieves the value of the attribute with the name that is passed in. |
| Methods inherited from class org.eclipse.cosmos.rm.repository.internal.application.impl.AbstractSMLFragment |
|---|
retrieveDescription, retrieveDisplayName, retrieveName |
| Methods inherited from class org.eclipse.cosmos.rm.repository.internal.resource.SMLDocumentFragment |
|---|
getNodeList, getParentDocument, setNodeList, setParentDocument |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocumentFragment |
|---|
getNodeList, getParentDocument |
| Methods inherited from interface org.eclipse.cosmos.rm.repository.internal.application.ISMLResourceBase |
|---|
retrieveDescription, retrieveDisplayName, retrieveName |
| Method Detail |
|---|
public static ISMLResourceProperty load(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository,
org.w3c.dom.Node root)
node - The property node
public ISMLResourceProperty resolveReference()
ISMLResourceProperty
resolveReference in interface ISMLResourcePropertyISMLResourceProperty.resolveReference()public boolean isReference()
ISMLResourceBase
isReference in interface ISMLResourceBaseISMLResourceBase.isReference()protected org.w3c.dom.Node getRootNode()
AbstractSMLFragment
getRootNode in class AbstractSMLFragmentAbstractSMLFragment.getRootNode()public java.lang.String[] retrieveAttributes()
ISMLResourceProperty
retrieveAttributes in interface ISMLResourcePropertyISMLResourceProperty.retrieveAttributes()public ISMLResourceProperty[] retrieveChildren()
ISMLResourceProperty
retrieveChildren in interface ISMLResourcePropertyISMLResourceProperty.retrieveChildren()public java.lang.String retrievePropertyName()
ISMLResourceProperty
retrievePropertyName in interface ISMLResourcePropertyISMLResourceProperty.retrievePropertyName()public java.lang.String retrieveValue(java.lang.String attribute)
ISMLResourceProperty
retrieveValue in interface ISMLResourcePropertyattribute - The attribute name
ISMLResourceProperty.retrieveValue(java.lang.String)
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||