Uses of Class
nu.xom.Element
-
Packages that use Element Package Description nu.xom nu.xomis 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.converterscontains classes that convert XOM documents to other models such as SAX and DOM.nu.xom.tests nu.xom.testscontains the JUnit based test suite for XOM. -
-
Uses of Element in nu.xom
Methods in nu.xom that return Element Modifier and Type Method Description ElementElement. copy()Creates a deep copy of this element with no parent, that can be added to this document or a different one.ElementElements. get(int index)Returns the indexth element in the list.ElementElement. getFirstChildElement(java.lang.String name)Returns the first child element with the specified name in no namespace.ElementElement. getFirstChildElement(java.lang.String localName, java.lang.String namespaceURI)Returns the first child element with the specified local name and namespace URI.ElementDocument. getRootElement()Returns this document's root element.ElementNodeFactory. makeRootElement(java.lang.String name, java.lang.String namespace)Creates a new element in the specified namespace with the specified name.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.ElementNodeFactory. startMakingElement(java.lang.String name, java.lang.String namespace)Creates a newElementin the specified namespace with the specified name.Methods in nu.xom that return types with arguments of type Element Modifier and Type Method Description java.util.Iterator<Element>Elements. iterator()Methods in nu.xom with parameters of type Element Modifier and Type Method Description NodesNodeFactory. finishMakingElement(Element element)Signals the end of an element.static XPathContextXPathContext. makeNamespaceContext(Element element)Creates a new XPath context that contains all the namespace bindings in scope on the element.voidDocument. setRootElement(Element root)Replaces the current root element with a different root element.protected voidSerializer. write(Element element)Serializes an element onto the output stream using the current options.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. writeEmptyElementTag(Element element)Writes an empty-element tag for the element including all its namespace declarations and attributes.protected voidSerializer. writeEndTag(Element element)Writes the end-tag for an element in the form</name>.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.protected voidSerializer. writeStartTag(Element element)Writes the start-tag for the element including all its namespace declarations and attributes.Constructors in nu.xom with parameters of type Element Constructor Description Document(Element root)Creates a newDocumentobject with the specified root element.Element(Element element)Creates a deep copy of an element.Namespace(java.lang.String prefix, java.lang.String URI, Element parent)Create a new namespace node. -
Uses of Element in nu.xom.converters
Methods in nu.xom.converters that return Element Modifier and Type Method Description static ElementDOMConverter. convert(org.w3c.dom.Element element)Translates a DOMorg.w3c.dom.Elementobject into an equivalentnu.xom.Elementobject. -
Uses of Element in nu.xom.tests
Methods in nu.xom.tests with parameters of type Element Modifier and Type Method Description static voidXOMTestCase. assertEquals(java.lang.String message, Element expected, Element actual)Asserts that two element nodes are equal.static voidXOMTestCase. assertEquals(Element expected, Element actual)Asserts that two element nodes are equal.
-