org.millscript.commons.xml.tokenizer
Class PrefixToNamespaceMap
java.lang.Object
org.millscript.commons.util.map.AbstractIMap<K,V>
org.millscript.commons.util.map.IArrayMap<java.lang.String,java.lang.String>
org.millscript.commons.xml.tokenizer.PrefixToNamespaceMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, org.millscript.commons.alert.AlertDecorator, org.millscript.commons.util.IMap<java.lang.String,java.lang.String>
public class PrefixToNamespaceMap
- extends org.millscript.commons.util.map.IArrayMap<java.lang.String,java.lang.String>
This interface represents the namespaces that are currently in scope, it is
a mapping from a prefix to it's IRI for the current scope.
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class org.millscript.commons.util.map.IArrayMap |
org.millscript.commons.util.map.IArrayMap.ArrayMapMapIterator<K,V>, org.millscript.commons.util.map.IArrayMap.ImmutableSharedMapletList<K,V>, org.millscript.commons.util.map.IArrayMap.ImmutableXList<V>, org.millscript.commons.util.map.IArrayMap.SharedMapletListMapIterator<K,V> |
|
Field Summary |
static org.millscript.commons.util.IMapDefault<java.lang.String,java.lang.String> |
NAMESPACE_MAP_DEFAULT
|
|
Constructor Summary |
PrefixToNamespaceMap()
Constructs a new namespace to prefix map with the initial
xml and xmlns prefixes declared. |
PrefixToNamespaceMap(org.millscript.commons.util.IMap<java.lang.String,java.lang.String> parent,
java.lang.String[] store)
Constructs a new namespace to prefix map with the specified parent
mapping and the given key-value pair array of mappings. |
| Methods inherited from class org.millscript.commons.util.map.IArrayMap |
clone, contains, containsKey, containsValue, get, iterator, sharedKeyList, sharedMapletList, sharedValueList, size |
| Methods inherited from class org.millscript.commons.util.map.AbstractIMap |
contains, containsAll, decorate, equals, getDefault, hashCode, isEmtpy, keyList, mapletList, setDefault, toString, valueList |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
NAMESPACE_MAP_DEFAULT
public static final org.millscript.commons.util.IMapDefault<java.lang.String,java.lang.String> NAMESPACE_MAP_DEFAULT
PrefixToNamespaceMap
public PrefixToNamespaceMap()
- Constructs a new namespace to prefix map with the initial
xml and xmlns prefixes declared.
PrefixToNamespaceMap
public PrefixToNamespaceMap(org.millscript.commons.util.IMap<java.lang.String,java.lang.String> parent,
java.lang.String[] store)
- Constructs a new namespace to prefix map with the specified parent
mapping and the given key-value pair array of mappings. If a given
prefix is not found in the given array, a lookup will be performed on
the parent map.
- Parameters:
parent - the map in which to lookup missing keysstore - the array of key-value pairs for this mapping
Copyright © 2005-2007 Open World Ltd. All Rights Reserved.