|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.xpath.evaluator.EvaluationContext
public class EvaluationContext
Evalution context used by XPathEvaluator.
| Constructor Summary | |
|---|---|
EvaluationContext()
Constructs a default evalution context. |
|
| Method Summary | |
|---|---|
void |
addNamespaces(Map<String,String> map)
Adds all namespaces from given map. |
Automaton |
getCanonicalName(NameTest t,
boolean attribute)
Gets the canonical name for a name test node by expanding its prefix to the corresponding URI and allowing all possible xsi-attribute suffixes. |
String |
getDefaultNamespace()
Gets the default namespace URI. |
String |
getNamespace(String prefix)
Gets the namespace URI for a prefix. |
void |
setDefaultNamespace(String uri)
Sets the default namespace URI. |
void |
setNamespace(String prefix,
String uri)
Sets the namespace URI for a prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluationContext()
| Method Detail |
|---|
public void addNamespaces(Map<String,String> map)
map - map from prefix to namespace uri
public Automaton getCanonicalName(NameTest t,
boolean attribute)
t - test node
public String getDefaultNamespace()
public String getNamespace(String prefix)
prefix - the prefix to lookup
public void setDefaultNamespace(String uri)
uri - default namespace
public void setNamespace(String prefix,
String uri)
prefix - the prefixuri - the uri
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||