Package com.iplanet.services.util
Class XMLParser
- java.lang.Object
-
- com.iplanet.services.util.XMLParser
-
public class XMLParser extends Object
XMLParser provides a way for applications to handle a hook into applications and applications and it's server.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapgetGroupContainer()Objectparse(InputStream xmlin)Parse an XML document.Objectparse(String s)Parses an XML document from a String variable.voidregister(String elemname, String classname)Register a call back function.
-
-
-
Constructor Detail
-
XMLParser
public XMLParser()
The application have to implement Parseoutput interface when use constructor without parameter.
-
XMLParser
public XMLParser(boolean usegeneric, Map groupContainer)Use default GenericNode as node type if usegeneric is true.
- Parameters:
usegeneric-
-
-
Method Detail
-
parse
public Object parse(String s) throws XMLException
Parses an XML document from a String variable.- Throws:
XMLException
-
parse
public Object parse(InputStream xmlin) throws XMLException
Parse an XML document.
- Throws:
XMLException
-
register
public void register(String elemname, String classname)
Register a call back function.
- Parameters:
elemname- is the tag name of this nodeclassname- is the call back function
-
getGroupContainer
public Map getGroupContainer()
-
-