liuslite.parser.xml
Class XMLParser
java.lang.Object
liuslite.parser.Parser
liuslite.parser.xml.XMLParser
public class XMLParser
- extends Parser
XML parser
- Author:
- Rida Benjelloun (ridabenjelloun@apache.org)
Method Summary |
java.lang.String |
concatOccurance(java.lang.Object xmlDoc,
java.lang.String xpath,
java.lang.String concatSep)
|
void |
extractContent(org.jdom.Document xmlDoc,
Content content,
java.util.Map<java.lang.String,Content> contentsMap)
|
java.util.List |
getAllDocumentNs(org.jdom.Document doc)
|
Content |
getContent(java.lang.String name)
Get a content object, this object is configured from the LiusConfig Xml. |
java.util.List<Content> |
getContents()
Get a List of contents objects, this objects are configured from the
LiusConfig Xml file. |
java.lang.String |
getStrContent()
Get the string content of the document |
void |
setDocNs(java.util.List ns)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser()
getContent
public Content getContent(java.lang.String name)
- Description copied from class:
Parser
- Get a content object, this object is configured from the LiusConfig Xml.
It could be a document metadata, XPath selection, regex selection or
fulltext
- Specified by:
getContent
in class Parser
getStrContent
public java.lang.String getStrContent()
- Description copied from class:
Parser
- Get the string content of the document
- Specified by:
getStrContent
in class Parser
getContents
public java.util.List<Content> getContents()
- Description copied from class:
Parser
- Get a List of contents objects, this objects are configured from the
LiusConfig Xml file. It could be a document metadata, XPath selection,
regex selection or fulltext
- Specified by:
getContents
in class Parser
concatOccurance
public java.lang.String concatOccurance(java.lang.Object xmlDoc,
java.lang.String xpath,
java.lang.String concatSep)
getAllDocumentNs
public java.util.List getAllDocumentNs(org.jdom.Document doc)
extractContent
public void extractContent(org.jdom.Document xmlDoc,
Content content,
java.util.Map<java.lang.String,Content> contentsMap)
setDocNs
public void setDocNs(java.util.List ns)