|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.alt.assembler.classic.xml.DomTools
public class DomTools
Field Summary | |
---|---|
static boolean |
debug
If true debug data will be printed to the System.out containing the data in the XML config file being parsed. |
static int |
debugRecursionDepth
|
static String |
PROPERTIES
Represents the properties element in the XML config file. |
static String |
PROPERTY
Represents the property element in the XML config file. |
static String |
PROPERTY_NAME
Represents the property-name element in the XML config file. |
static String |
PROPERTY_VALUE
Represents the property-value element in the XML config file. |
static SafeToolkit |
toolkit
|
Constructor Summary | |
---|---|
DomTools()
|
Method Summary | |
---|---|
protected static DomObject |
collectChildElementByType(Node node,
Class classType,
String elementType)
Convenience method for obtaining a single child element from the node passed in. |
protected static DomObject[] |
collectChildElementsByType(Node node,
Class classType,
String elementType)
Convenience method for obtaining all the child elements of the node passed in. |
protected static Node |
getChildElement(Node node,
String childName)
Returns the child element of the node passed in that matches the element name passed in. |
protected static String |
getChildElementPCData(Node node,
String elementType)
Returns the PCDATA of a child element in the node passed in. |
protected static Node[] |
getChildElements(Node node,
String childName)
Returns the child elements of the node passed in that match the element name passed in. |
protected static String[] |
getChildElementsPCData(Node node,
String elementType)
Returns the PCDATA of all child elements to the node passed in. |
protected static Properties |
getElementAttributes(Node node)
Returns the named attributes of the node passed in. |
protected static String |
getElementPCData(Node node)
Returns the PCDATA of the node passed in. |
static Properties |
readProperties(Node node)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SafeToolkit toolkit
public static final String PROPERTIES
public static final String PROPERTY
public static final String PROPERTY_NAME
public static final String PROPERTY_VALUE
public static final boolean debug
public static int debugRecursionDepth
Constructor Detail |
---|
public DomTools()
Method Detail |
---|
public static Properties readProperties(Node node)
protected static DomObject[] collectChildElementsByType(Node node, Class classType, String elementType) throws OpenEJBException
node
- the node in the DOM containing the child elements needed.classType
- the subclass of DomObject that will parse the data in the child elements.elementType
- the name of the child element as it appears in the DTD.
OpenEJBException
Node
protected static DomObject collectChildElementByType(Node node, Class classType, String elementType) throws OpenEJBException
node
- the node in the DOM containing the child elements needed.classType
- the subclass of DomObject that will parse the data in the child elements.elementType
- the name of the child element as it appears in the DTD.
OpenEJBException
Node
protected static String[] getChildElementsPCData(Node node, String elementType)
node
- the node in the DOM containing the child element.elementType
- the name of the child element as it appears in the DTD.
protected static String getChildElementPCData(Node node, String elementType)
node
- the node in the DOM containing the child element.elementType
- the name of the child element as it appears in the DTD.
protected static String getElementPCData(Node node)
node
- the node in the DOM containing the PCDATA.
protected static Properties getElementAttributes(Node node)
node
- the node in the DOM containing the attributes.
protected static Node getChildElement(Node node, String childName)
node
- the node in the DOM containing the PCDATA.childName
- the element name of the desired child element as defined in the DTD.
protected static Node[] getChildElements(Node node, String childName)
node
- the node in the DOM containing the PCDATA.childName
- the element name of the desired child element as defined in the DTD.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |