org.jbind.xml.base
Interface IPrefixMappings

All Known Implementing Classes:
PrefixMappings

public interface IPrefixMappings

Manages prefix to namespace mappings. Prefix mappings are specified in instance documents using "xmlns" attributes.


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 aNamespace)
          Starts a prefix mapping.
 

Method Detail

startPrefixMapping

public void startPrefixMapping(java.lang.String aPrefix,
                               java.lang.String aNamespace)
Starts a prefix mapping. Any previous mapping with the same prefix is overloaded.

Parameters:
aPrefix - (required).
aNamespace - (required).

endPrefixMapping

public void endPrefixMapping(java.lang.String aPrefix)
Ends a prefix mapping. Any previous mapping with the same prefix is restored.

Parameters:
aPrefix - (required).

getCurrentMapping

public java.util.Map getCurrentMapping()
Gets the current mapping. The current mapping is not influenced by any further changes to the prefix mappings.

Returns:
(required). Maps prefixes to namespaces.