Class DomTools
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.tools.DomTools
Provides methods useful when utilizing
the Document Object Model API as specified by the w3c.
This class is for static use.
* $Id: DomTools.java,v 1.2 2007-10-21 17:47:09 virtualcall Exp $
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidcheckElementName(Element ele, String name) Checks if the name ofeleisname.static final ElementgetElement(Element ele, String name) Returns the first element namednameinElement ele.static final StringReturns the text embeded inele.static final booleanhasElement(Element ele, String name) Checks if the givenElementhas a child namedname.static final voidprintNodeInfo(Node node) Prints information about a given node to stdout.
-
Constructor Details
-
DomTools
public DomTools()
-
-
Method Details
-
hasElement
-
getElement
-
printNodeInfo
Prints information about a given node to stdout.- Parameters:
node- The node to print information about.
-
checkElementName
-
getText
-