Package com.adaptris.util.text.xml
Class SimpleNamespaceContext
- java.lang.Object
-
- com.adaptris.util.text.xml.SimpleNamespaceContext
-
public abstract class SimpleNamespaceContext extends java.lang.ObjectImplementation of NamespaceContext that is based on a number of key value pairs.
-
-
Constructor Summary
Constructors Constructor Description SimpleNamespaceContext()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.namespace.NamespaceContextcreate(KeyValuePairSet set)Create a NamespaceContext based on the supplied key value pairs.static javax.xml.namespace.NamespaceContextcreate(KeyValuePairSet set, AdaptrisMessage msg)Create a NamespaceContext based on the supplied key value pairs or object metadata.
-
-
-
Method Detail
-
create
public static javax.xml.namespace.NamespaceContext create(KeyValuePairSet set)
Create a NamespaceContext based on the supplied key value pairs.For our purposes; each element of the KeyValuePairSet.
- The key is the namespace prefix
- The value is the namespace uri
- Parameters:
set- the key values that will form the namespace context.- Returns:
- a NamespaceContext implementation or null if the set was empty / null.
-
create
public static javax.xml.namespace.NamespaceContext create(KeyValuePairSet set, AdaptrisMessage msg)
Create a NamespaceContext based on the supplied key value pairs or object metadata.In this instance, the
NamespaceContextthat may be present in theAdaptrisMessagewill only be used if no context was created from the suppliedKeyValuePairSet.- Parameters:
set- the values that will form the namespace contextmsg- theAdaptrisMessagewhich might contain the object metadata.- Returns:
- a
NamespaceContextimplementation or null if none was available. - See Also:
create(KeyValuePairSet)
-
-