Logo Search packages:      
Sourcecode: jclic version File versions  Download package

String org::jdom::Element::getChildText ( String  name  )  [inline]

Returns the textual content of the named child element, or null if there's no such child. This method is a convenience because calling getChild().getText() can throw a NullPointerException.

name the name of the child
text content for the named child, or null if no such child

Definition at line 527 of file Element.java.

References getChild(), and getText().

        Element child = getChild(name);
        if (child == null) {
            return null;
        return child.getText();

Generated by  Doxygen 1.6.0   Back to index