|
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.validation.internal.artifacts.ElementTypeMap
public class ElementTypeMap
This structure is used to find the mapping between an element and its associated type.
| Constructor Summary | |
|---|---|
ElementTypeMap()
Constructor |
|
| Method Summary | |
|---|---|
void |
addElementDeclaration(ElementNode elementNode)
Adds an element declaration |
void |
addElementDeclaration(java.lang.String uri,
java.lang.String name,
java.lang.String type)
Adds an element declaration |
java.lang.String |
getType(ElementNode elementNode)
Retrieves and returns the type of the element passed in |
java.lang.String |
getType(java.lang.String uri,
java.lang.String name)
Retrieves and returns the type of an element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementTypeMap()
| Method Detail |
|---|
public void addElementDeclaration(java.lang.String uri,
java.lang.String name,
java.lang.String type)
uri - The associated URI of the elementname - The name of the elementtype - The type of the elementpublic void addElementDeclaration(ElementNode elementNode)
elementNode - The element node, which is expected to have a valid name, type
and an URI indicating its namespacepublic java.lang.String getType(ElementNode elementNode)
elementNode - The element node
public java.lang.String getType(java.lang.String uri,
java.lang.String name)
uri - The uri of the elementname - The name of the element
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||