|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opengis.cite.owc.util.NamespaceBindings
public class NamespaceBindings
Provides namespace bindings for evaluating XPath 1.0 expressions using the JAXP XPath API. A namespace name (URI) may be bound to only one prefix.
Constructor Summary | |
---|---|
NamespaceBindings()
|
Method Summary | |
---|---|
void |
addAllBindings(Map<String,String> nsBindings)
Adds all of the supplied namespace bindings to the existing set of entries. |
void |
addNamespaceBinding(String namespaceURI,
String prefix)
Adds a namespace binding that associates a namespace name with a prefix. |
Map<String,String> |
getAllBindings()
Returns an unmodifiable view of the declared namespace bindings. |
String |
getNamespaceURI(String prefix)
|
String |
getPrefix(String namespaceURI)
|
Iterator<String> |
getPrefixes(String namespaceURI)
|
String |
toString()
|
static NamespaceBindings |
withStandardBindings()
Creates a NamespaceBindings object that declares the following namespace bindings: ows: "http://www.opengis.net/ows/1.1" xlink: "http://www.w3.org/1999/xlink" gml: "http://www.opengis.net/gml/3.2" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamespaceBindings()
Method Detail |
---|
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
public void addNamespaceBinding(String namespaceURI, String prefix)
namespaceURI
- A String denoting a namespace name (an absolute URI value).prefix
- A prefix associated with the namespace name.public void addAllBindings(Map<String,String> nsBindings)
nsBindings
- A Map containing a collection of namespace bindings where the
key is an absolute URI specifying the namespace name and the
value denotes the associated prefix.public Map<String,String> getAllBindings()
public static NamespaceBindings withStandardBindings()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |