net.authorize.util
Class BasicXmlDocument

java.lang.Object
  extended by net.authorize.util.BasicXmlDocument
All Implemented Interfaces:
Serializable

public class BasicXmlDocument
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
BasicXmlDocument()
           
BasicXmlDocument(String sourceFile)
           
 
Method Summary
 void addError(String message)
           
 Element createElement(String name)
           
 String dump()
           
 String dump(boolean collapse)
           
 boolean dumpToDisk(String fileName)
           
 boolean dumpToDisk(String fileName, boolean collapse)
           
 Document getDocument()
           
 Element getDocumentElement()
           
static String getElementText(Element parent_el, String element_name)
          Helper for getting element text from a parent.
 ArrayList<String> getErrors()
           
 long getParseTime()
           
 boolean IsAccessible()
           
 boolean parse()
           
 boolean parse(File in_file)
           
 boolean parse(InputStream in)
           
 boolean parse(String xmlFile)
           
 boolean parseBytes(byte[] xmlBytes)
           
 boolean parseString(String xmlValue)
           
 boolean removeChildren(Node ref)
           
 void saveDocument(String fileName)
           
 void setResolvePath(String p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicXmlDocument

public BasicXmlDocument()

BasicXmlDocument

public BasicXmlDocument(String sourceFile)
Method Detail

setResolvePath

public void setResolvePath(String p)

getParseTime

public long getParseTime()

IsAccessible

public boolean IsAccessible()

getDocument

public Document getDocument()

getDocumentElement

public Element getDocumentElement()

createElement

public Element createElement(String name)

getErrors

public ArrayList<String> getErrors()

addError

public void addError(String message)

removeChildren

public boolean removeChildren(Node ref)

parse

public boolean parse()

parse

public boolean parse(String xmlFile)

saveDocument

public void saveDocument(String fileName)

parse

public boolean parse(File in_file)

parse

public boolean parse(InputStream in)

parseString

public boolean parseString(String xmlValue)

parseBytes

public boolean parseBytes(byte[] xmlBytes)

dump

public String dump()

dump

public String dump(boolean collapse)

dumpToDisk

public boolean dumpToDisk(String fileName)

dumpToDisk

public boolean dumpToDisk(String fileName,
                          boolean collapse)

getElementText

public static String getElementText(Element parent_el,
                                    String element_name)
Helper for getting element text from a parent.

Parameters:
parent_el -
element_name -
Returns:
element text


Copyright © 2014. All Rights Reserved.