RichFaces Examples Template 4.3.3.Final

org.richfaces.example
Class XMLBody

java.lang.Object
  extended by org.richfaces.example.XMLBody

public class XMLBody
extends Object

This class must read XML file from input stream and can extract body of root element for include into target in generation.

Author:
shura

Constructor Summary
XMLBody()
           
 
Method Summary
 NodeList getByXpath(String xpath)
           
 NodeList getByXpathUnique(String xpath, String keyXPath, Set<String> keySet)
           
 String getContent()
           
 String getContent(String xpath)
           
 String getContentUnique(String xpath, String keyXPath, Set<String> keySet)
           
 String getDoctype()
           
 String getPiblicId()
           
 String getRootTypeName()
           
 boolean isRootName(String name)
          Check name of root element is as expected.
 void loadXML(InputStream input)
          Load XML document and parse it into DOM.
 void loadXML(InputStream input, boolean namespaceAware)
          Load XML document and parse it into DOM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBody

public XMLBody()
Method Detail

loadXML

public void loadXML(InputStream input)
             throws ParsingException
Load XML document and parse it into DOM.

Parameters:
input -
Throws:
ParsingException

loadXML

public void loadXML(InputStream input,
                    boolean namespaceAware)
             throws ParsingException
Load XML document and parse it into DOM.

Parameters:
input -
Throws:
ParsingException

isRootName

public boolean isRootName(String name)
Check name of root element is as expected.

Parameters:
name -
Returns:

getDoctype

public String getDoctype()

getPiblicId

public String getPiblicId()

getRootTypeName

public String getRootTypeName()

getContent

public String getContent()
                  throws ParsingException
Throws:
ParsingException

getContent

public String getContent(String xpath)
                  throws ParsingException
Throws:
ParsingException

getByXpath

public NodeList getByXpath(String xpath)
                    throws ParsingException
Throws:
ParsingException

getByXpathUnique

public NodeList getByXpathUnique(String xpath,
                                 String keyXPath,
                                 Set<String> keySet)
                          throws ParsingException
Throws:
ParsingException

getContentUnique

public String getContentUnique(String xpath,
                               String keyXPath,
                               Set<String> keySet)
                        throws ParsingException
Throws:
ParsingException

RichFaces Examples Template 4.3.3.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.