|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlObject
A wrapper for an Xml Object. Used with XSEM to support mapping between Xml and Search Engine. The Xml Object can be an Xml element/attribute/... .
| Method Summary | |
|---|---|
boolean |
canCompileXpath()
Returns true of the xml object supports xpath expression
compilation. |
XmlXPathExpression |
compile(String path)
Compiles the given xpath expression. |
String |
getName()
Returns the name of the xml object. |
Map<String,String> |
getNamespaces()
Returns a lookup map for namespaces (prefix to uri). |
String |
getValue()
Returns the value of the xml object. |
XmlObject[] |
selectPath(String path)
Returns a list of xml objects matching the given xpath expression. |
void |
setNamespaces(Map<String,String> namespaces)
Sets a lookup map for given namespaces (prefix to uri). |
| Method Detail |
|---|
String getName()
String getValue()
void setNamespaces(Map<String,String> namespaces)
Map<String,String> getNamespaces()
XmlObject[] selectPath(String path)
throws Exception
path - The xpath expression
Exceptionboolean canCompileXpath()
true of the xml object supports xpath expression
compilation.
XmlXPathExpression compile(String path)
throws Exception
path - The xpath expression
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||