COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.validation.internal.artifacts
Class DocumentNode

java.lang.Object
  extended by org.eclipse.cosmos.rm.validation.internal.artifacts.DocumentNode

public class DocumentNode
extends java.lang.Object

A document node is used to represent an SML-IF document


Constructor Summary
DocumentNode()
           
 
Method Summary
 void addAlias(java.lang.String alias)
          Add an alias for this document node.
 void addEdge(ElementEdge edge)
          Adds an element edge to this document
 java.lang.String[] getAliases()
          Returns the aliases of this document
 ElementEdge[] getEdges(java.lang.String uri, java.lang.String localName)
          Return the edges for the reference type passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentNode

public DocumentNode()
Method Detail

getAliases

public java.lang.String[] getAliases()
Returns the aliases of this document

Returns:
The aliases of this document node

addAlias

public void addAlias(java.lang.String alias)
Add an alias for this document node. An alias is used to reference a document.

Parameters:
alias - The alias to be added

addEdge

public void addEdge(ElementEdge edge)
Adds an element edge to this document

Parameters:
edge - The element edge

getEdges

public ElementEdge[] getEdges(java.lang.String uri,
                              java.lang.String localName)
Return the edges for the reference type passed in. A valid inheritence tree must be registered with the data builder for the edges derived from referenceType to be returned.

Parameters:
uri - The namespace of the type
localName - The local name of the type
Returns:
The edges corresponding to the reference type passed in

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification