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 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 String[] namespace
namespaceSize
protected int namespaceSize
context
protected int[] context
currentContext
protected int currentContext
prefixes
protected String[] prefixes
XMLHelperImpl.NamespaceSupport
protected XMLHelperImpl.NamespaceSupport()
pushContext
public void pushContext()
popContext
public void popContext()
popContext
public void popContext(Map prefixesToFactories)
declarePrefix
public boolean declarePrefix(String prefix,
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 String getURI(String prefix)
getPrefix
public String getPrefix(String uri)
getDeclaredPrefixCount
public int getDeclaredPrefixCount()
getDeclaredPrefixAt
public String getDeclaredPrefixAt(int index)