org.modeldriven.fuml.xmi.stream
Class StreamContext

java.lang.Object
  extended by org.modeldriven.fuml.xmi.stream.StreamContext

public class StreamContext
extends 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(XMLEvent root)
           
 
Method Summary
 Namespace getDefaultNamespace()
           
 Namespace getEcoreNamespace()
           
 Namespace getMagicdrawNamespace()
           
 Namespace getNamespaceByLocalName(String localName)
           
 Namespace getNamespaceByURI(String uri)
           
 Namespace[] getNamespaces()
           
 Namespace getUmlNamespace()
           
 Namespace getXmiNamespace()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamContext

public StreamContext(XMLEvent root)
Method Detail

getXmiNamespace

public Namespace getXmiNamespace()

getUmlNamespace

public Namespace getUmlNamespace()

getDefaultNamespace

public Namespace getDefaultNamespace()

getEcoreNamespace

public Namespace getEcoreNamespace()

getMagicdrawNamespace

public Namespace getMagicdrawNamespace()

getNamespaceByLocalName

public Namespace getNamespaceByLocalName(String localName)

getNamespaceByURI

public Namespace getNamespaceByURI(String uri)

getNamespaces

public Namespace[] getNamespaces()


Copyright © 2012. All Rights Reserved.