|
||||||||||
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 java.lang.String |
PROPERTIES
Represents the properties element in the XML config file. |
static java.lang.String |
PROPERTY
Represents the property element in the XML config file. |
static java.lang.String |
PROPERTY_NAME
Represents the property-name element in the XML config file. |
static java.lang.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(org.w3c.dom.Node node,
java.lang.Class classType,
java.lang.String elementType)
Convenience method for obtaining a single child element from the node passed in. |
protected static DomObject[] |
collectChildElementsByType(org.w3c.dom.Node node,
java.lang.Class classType,
java.lang.String elementType)
Convenience method for obtaining all the child elements of the node passed in. |
protected static org.w3c.dom.Node |
getChildElement(org.w3c.dom.Node node,
java.lang.String childName)
Returns the child element of the node passed in that matches the element name passed in. |
protected static java.lang.String |
getChildElementPCData(org.w3c.dom.Node node,
java.lang.String elementType)
Returns the PCDATA of a child element in the node passed in. |
protected static org.w3c.dom.Node[] |
getChildElements(org.w3c.dom.Node node,
java.lang.String childName)
Returns the child elements of the node passed in that match the element name passed in. |
protected static java.lang.String[] |
getChildElementsPCData(org.w3c.dom.Node node,
java.lang.String elementType)
Returns the PCDATA of all child elements to the node passed in. |
protected static java.util.Properties |
getElementAttributes(org.w3c.dom.Node node)
Returns the named attributes of the node passed in. |
protected static java.lang.String |
getElementPCData(org.w3c.dom.Node node)
Returns the PCDATA of the node passed in. |
static java.util.Properties |
readProperties(org.w3c.dom.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 java.lang.String PROPERTIES
public static final java.lang.String PROPERTY
public static final java.lang.String PROPERTY_NAME
public static final java.lang.String PROPERTY_VALUE
public static final boolean debug
public static int debugRecursionDepth
Constructor Detail |
---|
public DomTools()
Method Detail |
---|
public static java.util.Properties readProperties(org.w3c.dom.Node node)
protected static DomObject[] collectChildElementsByType(org.w3c.dom.Node node, java.lang.Class classType, java.lang.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(org.w3c.dom.Node node, java.lang.Class classType, java.lang.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 java.lang.String[] getChildElementsPCData(org.w3c.dom.Node node, java.lang.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 java.lang.String getChildElementPCData(org.w3c.dom.Node node, java.lang.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 java.lang.String getElementPCData(org.w3c.dom.Node node)
node
- the node in the DOM containing the PCDATA.
protected static java.util.Properties getElementAttributes(org.w3c.dom.Node node)
node
- the node in the DOM containing the attributes.
protected static org.w3c.dom.Node getChildElement(org.w3c.dom.Node node, java.lang.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 org.w3c.dom.Node[] getChildElements(org.w3c.dom.Node node, java.lang.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 |