org.modeldriven.fuml.xmi.stream
Class StreamContext
java.lang.Object
org.modeldriven.fuml.xmi.stream.StreamContext
public class StreamContext
- extends java.lang.Object
Encapsulates context information for the current XMI stream, including
namespaces and other resources. Namespaces are loaded from the (XML) root
element based on a configurable set of supported namespaces for various
domains. If no namespace is found within the supported namespaces for a
particular domain, an error is thrown.
- Author:
- Scott Cinnamond
|
Constructor Summary |
StreamContext(javax.xml.stream.events.XMLEvent root)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamContext
public StreamContext(javax.xml.stream.events.XMLEvent root)
getXmiNamespace
public javax.xml.stream.events.Namespace getXmiNamespace()
getUmlNamespace
public javax.xml.stream.events.Namespace getUmlNamespace()
getDefaultNamespace
public javax.xml.stream.events.Namespace getDefaultNamespace()
getEcoreNamespace
public javax.xml.stream.events.Namespace getEcoreNamespace()
getMagicdrawNamespace
public javax.xml.stream.events.Namespace getMagicdrawNamespace()
getNamespaceByLocalName
public javax.xml.stream.events.Namespace getNamespaceByLocalName(java.lang.String localName)
getNamespaceByURI
public javax.xml.stream.events.Namespace getNamespaceByURI(java.lang.String uri)
getNamespaces
public javax.xml.stream.events.Namespace[] getNamespaces()
Copyright © 2015. All Rights Reserved.