|
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.smlif.internal.common.SMLCommonUtil
public class SMLCommonUtil
Provides common utility methods that used by multiple classes under different packages.
| Constructor Summary | |
|---|---|
SMLCommonUtil()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Node |
createElement(org.w3c.dom.Node parentNode,
java.lang.String uri,
java.lang.String localName)
|
static org.w3c.dom.Node |
createFormattedElement(org.w3c.dom.Node parentNode,
java.lang.String uri,
java.lang.String localName,
boolean append)
|
static org.w3c.dom.Node |
nestedNodeRetrieval(org.w3c.dom.Node node,
java.lang.String[][] nodeNames)
Equivalent to nestedNodeRetrieval (node, nodeNames, false, true) |
static org.w3c.dom.Node |
nestedNodeRetrieval(org.w3c.dom.Node node,
java.lang.String[][] nodeNames,
boolean create,
boolean append)
Retrieve the nested node as specified by nodeNames (starting from 'node'). |
static java.lang.String[] |
retrieveAliases(java.util.Map userDefinedAliases,
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument document)
Retrieves and returns the aliases associated with document |
static org.w3c.dom.Node |
retrieveChildNode(org.w3c.dom.Node parent,
java.lang.String uri,
java.lang.String localName)
Retrive the child node of 'parent' with the uri and localName passed in |
static java.lang.String |
retrieveTextNode(org.w3c.dom.Node node)
Retrieve the text child node of the argument node passed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMLCommonUtil()
| Method Detail |
|---|
public static org.w3c.dom.Node retrieveChildNode(org.w3c.dom.Node parent,
java.lang.String uri,
java.lang.String localName)
parent - The parent nodeuri - The URIlocalName - The local name of the element
public static java.lang.String retrieveTextNode(org.w3c.dom.Node node)
node - The node
public static org.w3c.dom.Node nestedNodeRetrieval(org.w3c.dom.Node node,
java.lang.String[][] nodeNames)
public static org.w3c.dom.Node nestedNodeRetrieval(org.w3c.dom.Node node,
java.lang.String[][] nodeNames,
boolean create,
boolean append)
The node 'c' can be retrieved using
nestedNodeRetrieval(node, new String[][] {new String[]{b's URI, "b"}, new String[]{c's URI, "c"}});
where node corresponds to a's node.
node - The starting nodenodeNames - The node namescreate - Creates the node if none is found
public static org.w3c.dom.Node createElement(org.w3c.dom.Node parentNode,
java.lang.String uri,
java.lang.String localName)
public static org.w3c.dom.Node createFormattedElement(org.w3c.dom.Node parentNode,
java.lang.String uri,
java.lang.String localName,
boolean append)
public static java.lang.String[] retrieveAliases(java.util.Map userDefinedAliases,
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument document)
userDefinedAliases - The user defined aliasesdocument - The document
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||