|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NamespaceMap
The NamespaceMap
object is used store the namespaces
for an element. Each namespace added to this map can be added
with a prefix. A prefix is added only if the associated reference
has not been added to a parent element. If a parent element has
the associated reference, then the parents prefix is the one that
will be returned when requested from this map.
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String reference)
This acquires the prefix for the specified namespace reference. |
java.lang.String |
getPrefix()
This is the prefix that is associated with the source element. |
java.util.Iterator<java.lang.String> |
iterator()
This returns an iterator for the namespace of all the nodes in this NamespaceMap . |
java.lang.String |
put(java.lang.String reference)
This is used to add the namespace reference to the namespace map. |
java.lang.String |
put(java.lang.String reference,
java.lang.String prefix)
This is used to add the namespace reference to the namespace map. |
java.lang.String |
remove(java.lang.String reference)
This is used to remove the prefix that is matched to the given reference. |
Method Detail |
---|
java.lang.String getPrefix()
java.lang.String get(java.lang.String reference)
reference
- the reference to find a matching prefix for
java.lang.String remove(java.lang.String reference)
reference
- this is the reference that is to be removed
java.util.Iterator<java.lang.String> iterator()
NamespaceMap
. This allows the namespaces
to be iterated within a for each loop in order to extract the
prefix values associated with the map.
iterator
in interface java.lang.Iterable<java.lang.String>
java.lang.String put(java.lang.String reference)
reference
- this is the reference to be added
java.lang.String put(java.lang.String reference, java.lang.String prefix)
reference
- this is the reference to be addedprefix
- this is the prefix to be added to the reference
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |