org.jbind.xml.base
Class PrefixMappings

java.lang.Object
  extended byorg.jbind.xml.base.PrefixMappings
All Implemented Interfaces:
IPrefixMappings

public class PrefixMappings
extends java.lang.Object
implements IPrefixMappings


Constructor Summary
PrefixMappings()
           
 
Method Summary
 void endPrefixMapping(java.lang.String aPrefix)
          Ends a prefix mapping.
 java.util.Map getCurrentMapping()
          Gets the current mapping.
 void startPrefixMapping(java.lang.String aPrefix, java.lang.String anUri)
          Starts a prefix mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixMappings

public PrefixMappings()
Method Detail

getCurrentMapping

public java.util.Map getCurrentMapping()
Description copied from interface: IPrefixMappings
Gets the current mapping. The current mapping is not influenced by any further changes to the prefix mappings.

Specified by:
getCurrentMapping in interface IPrefixMappings
Returns:
(required). Maps prefixes to namespaces.

startPrefixMapping

public void startPrefixMapping(java.lang.String aPrefix,
                               java.lang.String anUri)
Description copied from interface: IPrefixMappings
Starts a prefix mapping. Any previous mapping with the same prefix is overloaded.

Specified by:
startPrefixMapping in interface IPrefixMappings
Parameters:
aPrefix - (required).
anUri - (required).

endPrefixMapping

public void endPrefixMapping(java.lang.String aPrefix)
Description copied from interface: IPrefixMappings
Ends a prefix mapping. Any previous mapping with the same prefix is restored.

Specified by:
endPrefixMapping in interface IPrefixMappings
Parameters:
aPrefix - (required).