org.millscript.millscript.render
Class PrefixToNamespaceMap

java.lang.Object
  extended by org.millscript.commons.util.map.AbstractIMap<K,V>
      extended by org.millscript.commons.util.map.AbstractUMap<K,V>
          extended by org.millscript.commons.util.map.AbstractEMap<K,V>
              extended by org.millscript.commons.util.map.EArrayMap<java.lang.String,java.lang.String>
                  extended by org.millscript.millscript.render.PrefixToNamespaceMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.millscript.commons.alert.AlertDecorator, org.millscript.commons.util.EMap<java.lang.String,java.lang.String>, org.millscript.commons.util.IMap<java.lang.String,java.lang.String>, org.millscript.commons.util.UMap<java.lang.String,java.lang.String>

public class PrefixToNamespaceMap
extends org.millscript.commons.util.map.EArrayMap<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 Class Summary
 
Nested classes/interfaces inherited from class org.millscript.commons.util.map.EArrayMap
org.millscript.commons.util.map.EArrayMap.ArrayMapMapIterator<K,V>
 
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)
          Constructs a new namespace to prefix map with the specified parent mapping and the given key-value pair array of mappings.
 
Method Summary
 
Methods inherited from class org.millscript.commons.util.map.EArrayMap
clone, contains, containsKey, containsValue, get, insert, insertAll, iterator, remove, removeAll, removeKey, removeValue, sharedKeyList, sharedMapletList, sharedValueList, size, update
 
Methods inherited from class org.millscript.commons.util.map.AbstractEMap
insert, remove, removeAll
 
Methods inherited from class org.millscript.commons.util.map.AbstractUMap
update, updateAll
 
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
 
Methods inherited from interface org.millscript.commons.util.UMap
update, updateAll
 
Methods inherited from interface org.millscript.commons.util.IMap
contains, containsAll, equals, getDefault, hashCode, isEmtpy, keyList, mapletList, setDefault, valueList
 

Constructor Detail

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)
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 keys
store - the array of key-value pairs for this mapping


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.