Uses of Class

nu.xom.Element

Packages that use Element
nu.xom nu.xom is the core package of XOM that contains all the basic classes representing the different kinds of nodes: elements, attributes, comments, text nodes, and so forth. 
nu.xom.converters nu.xom.converters contains classes that convert XOM documents to other models such as SAX and DOM. 
nu.xom.tests nu.xom.tests contains the JUnit based test suite for XOM. 
 

Uses of Element in nu.xom
 

Methods in nu.xom that return Element
 ElementNodeFactory.makeRootElement(String name, String namespace)

           Creates a new element in the specified namespace with the specified name.
 ElementNodeFactory.startMakingElement(String name, String namespace)

           Creates a new Element in the specified namespace with the specified name.
 ElementElements.get(int index)

           Returns the indexth element in the list.
 ElementElement.getFirstChildElement(String name)

           Returns the first child element with the specified name in no namespace.
 ElementElement.getFirstChildElement(String localName, String namespaceURI)

           Returns the first child element with the specified local name and namespace URI.
protected  ElementElement.shallowCopy()

           Creates a very shallow copy of the element with the same name and namespace URI, but no children, attributes, base URI, or namespace declaration.
 ElementDocument.getRootElement()

           Returns this document's root element.
 

Methods in nu.xom with parameters of type Element
protected  voidSerializer.write(Element element)

           Serializes an element onto the output stream using the current options.
protected  voidSerializer.writeEndTag(Element element)

           Writes the end-tag for an element in the form </name>.
protected  voidSerializer.writeStartTag(Element element)

           Writes the start-tag for the element including all its namespace declarations and attributes.
protected  voidSerializer.writeEmptyElementTag(Element element)

           Writes an empty-element tag for the element including all its namespace declarations and attributes.
protected  voidSerializer.writeAttributes(Element element)

           Writes all the attributes of the specified element onto the output stream, one at a time, separated by white space.
protected  voidSerializer.writeNamespaceDeclarations(Element element)

           Writes all the namespace declaration attributes of the specified element onto the output stream, one at a time, separated by white space.
 NodesNodeFactory.finishMakingElement(Element element)

           Signals the end of an element.
 voidDocument.setRootElement(Element root)

           Replaces the current root element with a different root element.
 

Constructors in nu.xom with parameters of type Element
Element(Element element)

           Creates a deep copy of an element.
Document(Element root)

           Creates a new Document object with the specified root element.
 

Uses of Element in nu.xom.converters
 

Methods in nu.xom.converters that return Element
static ElementDOMConverter.convert(org.w3c.dom.Element element)

           Translates a DOM org.w3c.dom.Element object into an equivalent nu.xom.Element object.
 

Uses of Element in nu.xom.tests
 

Methods in nu.xom.tests with parameters of type Element
static voidXOMTestCase.assertEquals(Element expected, Element actual)

           Asserts that two element nodes are equal.
static voidXOMTestCase.assertEquals(String message, Element expected, Element actual)

           Asserts that two element nodes are equal.
 



Copyright 2002-2005 Elliotte Rusty Harold

elharo@metalab.unc.edu