org.eclipse.emf.ecore.xmi.impl
Class XMLHelperImpl.NamespaceSupport
java.lang.Object
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.NamespaceSupport
- Enclosing class:
- XMLHelperImpl
protected static class XMLHelperImpl.NamespaceSupport
- extends java.lang.Object
A helper to encode namespace prefix mappings.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespace
protected java.lang.String[] namespace
namespaceSize
protected int namespaceSize
context
protected int[] context
currentContext
protected int currentContext
prefixes
protected java.lang.String[] prefixes
XMLHelperImpl.NamespaceSupport
protected XMLHelperImpl.NamespaceSupport()
pushContext
public void pushContext()
popContext
public void popContext()
popContext
public void popContext(java.util.Map<java.lang.String,EFactory> prefixesToFactories)
declarePrefix
public boolean declarePrefix(java.lang.String prefix,
java.lang.String uri)
- Parameters:
prefix
- prefix to declareuri
- uri that maps to the prefix
- Returns:
- true if the prefix existed in the current context and
its uri has been remapped; false if prefix does not exist in the
current context
getURI
public java.lang.String getURI(java.lang.String prefix)
getPrefix
public java.lang.String getPrefix(java.lang.String uri)
getDeclaredPrefixCount
public int getDeclaredPrefixCount()
getDeclaredPrefixAt
public java.lang.String getDeclaredPrefixAt(int index)