Class ElementWrapper

    • Method Detail

      • addComment

        public <T extends Base> T addComment​(String value)
        Deprecated.
        Description copied from interface: Base
        Add an XML comment to this Base
        Specified by:
        addComment in interface Base
        Parameters:
        value - The text value of the comment
      • clone

        public Object clone()
        Deprecated.
        Description copied from interface: Base
        Clone this Base
        Specified by:
        clone in interface Base
      • discard

        public void discard()
        Deprecated.
        Description copied from interface: Element
        Removes this element from its current document
        Specified by:
        discard in interface Element
      • getAttributes

        public List<QName> getAttributes()
        Deprecated.
        Description copied from interface: Element
        Returns a listing of all attributes on this element
        Specified by:
        getAttributes in interface Element
        Returns:
        The listing of attributes for this element
      • getAttributeValue

        public String getAttributeValue​(QName qname)
        Deprecated.
        Description copied from interface: Element
        Returns the value of the named attribute
        Specified by:
        getAttributeValue in interface Element
        Parameters:
        qname - The XML QName of the attribute
        Returns:
        The value of the attribute
      • getAttributeValue

        public String getAttributeValue​(String name)
        Deprecated.
        Description copied from interface: Element
        Returns the value of the named attribute
        Specified by:
        getAttributeValue in interface Element
        Parameters:
        name - The name of the attribute
        Returns:
        The value of the attribute
      • getBaseUri

        public IRI getBaseUri()
        Deprecated.
        Description copied from interface: Element
        Returns the value of this element's xml:base attribute or null if xml:base is undefined.
        Specified by:
        getBaseUri in interface Element
        Returns:
        The Base URI
      • getDocument

        public <T extends ElementDocument<T> getDocument()
        Deprecated.
        Description copied from interface: Element
        Returns the document to which this element belongs
        Specified by:
        getDocument in interface Element
        Returns:
        The Document to which this element belongs
      • getExtensionAttributes

        public List<QName> getExtensionAttributes()
        Deprecated.
        Description copied from interface: Element
        Returns a listing of extension attributes on this element (extension attributes are attributes whose namespace URI is different than the elements)
        Specified by:
        getExtensionAttributes in interface Element
        Returns:
        The listing non-Atom attributes
      • getFactory

        public Factory getFactory()
        Deprecated.
        Description copied from interface: Base
        Get the Factory used to create this Base
        Specified by:
        getFactory in interface Base
        Returns:
        The Factory used to create this object
      • getFirstChild

        public <T extends Element> T getFirstChild()
        Deprecated.
        Description copied from interface: Element
        Get the first child element
        Specified by:
        getFirstChild in interface Element
        Returns:
        The first child
      • getFirstChild

        public <T extends Element> T getFirstChild​(QName qname)
        Deprecated.
        Description copied from interface: Element
        Get the first child element with the given QName
        Specified by:
        getFirstChild in interface Element
        Parameters:
        qname - The XML QName of the sibling to find
        Returns:
        The matching element
      • getLanguage

        public String getLanguage()
        Deprecated.
        Description copied from interface: Element
        Returns the value of this elements xml:lang attribute or null if xml:lang is undefined.
        Specified by:
        getLanguage in interface Element
        Returns:
        The xml:lang value
      • getLanguageTag

        public Lang getLanguageTag()
        Deprecated.
        Description copied from interface: Element
        Returns the value of the xml:lang attribute as a Lang object
        Specified by:
        getLanguageTag in interface Element
      • getLocale

        public Locale getLocale()
        Deprecated.
        Description copied from interface: Element
        Returns a Locale object created from the xml:lang attribute
        Specified by:
        getLocale in interface Element
        Returns:
        A Locale appropriate for the Language (xml:lang)
      • getNextSibling

        public <T extends Element> T getNextSibling()
        Deprecated.
        Description copied from interface: Element
        Get the element following this one
        Specified by:
        getNextSibling in interface Element
        Returns:
        The following sibling
      • getNextSibling

        public <T extends Element> T getNextSibling​(QName qname)
        Deprecated.
        Description copied from interface: Element
        Get the first following sibling with the specified QName
        Specified by:
        getNextSibling in interface Element
        Parameters:
        qname - The XML QName of the sibling to find
        Returns:
        The matching element
      • getParentElement

        public <T extends Base> T getParentElement()
        Deprecated.
        Description copied from interface: Element
        Return this Element's parent element or document
        Specified by:
        getParentElement in interface Element
        Returns:
        The parent
      • getPreviousSibling

        public <T extends Element> T getPreviousSibling()
        Deprecated.
        Description copied from interface: Element
        Get the element preceding this one
        Specified by:
        getPreviousSibling in interface Element
        Returns:
        The preceding sibling
      • getPreviousSibling

        public <T extends Element> T getPreviousSibling​(QName qname)
        Deprecated.
        Description copied from interface: Element
        Get the first previous sibling with the specified QName
        Specified by:
        getPreviousSibling in interface Element
        Parameters:
        qname - The XML QName of the sibling to find
        Returns:
        The matching element
      • getQName

        public QName getQName()
        Deprecated.
        Description copied from interface: Element
        Return the XML QName of this element
        Specified by:
        getQName in interface Element
        Returns:
        The QName of the element
      • getResolvedBaseUri

        public IRI getResolvedBaseUri()
        Deprecated.
        Description copied from interface: Element
        Returns the current in-scope, fully qualified Base URI for this element.
        Specified by:
        getResolvedBaseUri in interface Element
      • getText

        public String getText()
        Deprecated.
        Description copied from interface: Element
        Returns the Text value of this element
        Specified by:
        getText in interface Element
        Returns:
        The text value
      • removeAttribute

        public <T extends Element> T removeAttribute​(QName qname)
        Deprecated.
        Description copied from interface: Element
        Remove the named Attribute
        Specified by:
        removeAttribute in interface Element
        Parameters:
        qname - The XML QName of the attribute to remove
      • removeAttribute

        public <T extends Element> T removeAttribute​(String name)
        Deprecated.
        Description copied from interface: Element
        Remove the named attribute
        Specified by:
        removeAttribute in interface Element
        Parameters:
        name - The name of the attribute to remove
      • setAttributeValue

        public <T extends Element> T setAttributeValue​(QName qname,
                                                       String value)
        Deprecated.
        Description copied from interface: Element
        Sets the value of the named attribute
        Specified by:
        setAttributeValue in interface Element
        Parameters:
        qname - The XML QName of the attribute
        value - The value of the attribute
      • setAttributeValue

        public <T extends Element> T setAttributeValue​(String name,
                                                       String value)
        Deprecated.
        Description copied from interface: Element
        Sets the value of the named attribute
        Specified by:
        setAttributeValue in interface Element
        Parameters:
        name - The name of the attribute
        value - The value of the attribute
      • setBaseUri

        public <T extends Element> T setBaseUri​(IRI base)
        Deprecated.
        Description copied from interface: Element
        Sets the value of this element's xml:base attribute.
        Specified by:
        setBaseUri in interface Element
        Parameters:
        base - The IRI base value
      • setBaseUri

        public <T extends Element> T setBaseUri​(String base)
        Deprecated.
        Description copied from interface: Element
        Sets the value of this element's xml:base attribute.
        Specified by:
        setBaseUri in interface Element
        Parameters:
        base - The Base IRI
      • setLanguage

        public <T extends Element> T setLanguage​(String language)
        Deprecated.
        Description copied from interface: Element
        Sets the value of this elements xml:lang attribute.
        Specified by:
        setLanguage in interface Element
        Parameters:
        language - the value of the xml:lang element
      • setParentElement

        public <T extends Element> T setParentElement​(Element parent)
        Deprecated.
        Description copied from interface: Element
        Set this Element's parent element
        Specified by:
        setParentElement in interface Element
        Parameters:
        parent - The parent element
      • setText

        public void setText​(String text)
        Deprecated.
        Description copied from interface: Element
        Set the Text value of this element
        Specified by:
        setText in interface Element
        Parameters:
        text - The text value
      • setText

        public <T extends Element> T setText​(DataHandler handler)
        Deprecated.
        Description copied from interface: Element
        Set the Text value of this element using the data handler
        Specified by:
        setText in interface Element
      • writeTo

        public void writeTo​(OutputStream out)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified stream
        Specified by:
        writeTo in interface Base
        Parameters:
        out - The java.io.OutputStream to use when serializing the Base. The charset encoding specified for the document will be used
        Throws:
        IOException
      • writeTo

        public void writeTo​(Writer writer)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The java.io.Writer to use when serializing the Base
        Throws:
        IOException
      • equals

        public boolean equals​(Object other)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • getInternal

        public Element getInternal()
        Deprecated.
      • getElements

        public <T extends ElementList<T> getElements()
        Deprecated.
        Description copied from interface: Element
        Return a listing of this elements child elements
        Specified by:
        getElements in interface Element
      • getNamespaces

        public Map<String,​String> getNamespaces()
        Deprecated.
        Description copied from interface: Element
        Return a map listing the xml namespaces declared for this element
        Specified by:
        getNamespaces in interface Element
      • getMustPreserveWhitespace

        public boolean getMustPreserveWhitespace()
        Deprecated.
        Description copied from interface: Element
        Return true if insignificant whitespace must be preserved
        Specified by:
        getMustPreserveWhitespace in interface Element
      • setMustPreserveWhitespace

        public <T extends Element> T setMustPreserveWhitespace​(boolean preserve)
        Deprecated.
        Description copied from interface: Element
        Set to true to preserve insignificant whitespace
        Specified by:
        setMustPreserveWhitespace in interface Element
      • writeTo

        public void writeTo​(OutputStream out,
                            WriterOptions options)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified stream
        Specified by:
        writeTo in interface Base
        Parameters:
        out - The target output stream
        options - The WriterOptions to use
        Throws:
        IOException
      • writeTo

        public void writeTo​(Writer writer,
                            OutputStream out,
                            WriterOptions options)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified stream using the given abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The Abdera writer to use
        out - The target output stream
        options - The WriterOptions to use
        Throws:
        IOException
      • writeTo

        public void writeTo​(Writer writer,
                            OutputStream out)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified stream using the given Abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The Abdera writer to use
        out - The target output stream
        Throws:
        IOException
      • writeTo

        public void writeTo​(Writer writer,
                            Writer out,
                            WriterOptions options)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified java.io.Writer using the given abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The Abdera writer to use
        out - The target output writer
        options - The WriterOptions to use
        Throws:
        IOException
      • writeTo

        public void writeTo​(Writer writer,
                            Writer out)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified java.io.Writer using the given Abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The Abdera writer to use
        out - The target output writer
        Throws:
        IOException
      • writeTo

        public void writeTo​(String writer,
                            OutputStream out,
                            WriterOptions options)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified stream using the given abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The name of the Abdera writer to use
        out - The target output stream
        options - The WriterOptions to use
        Throws:
        IOException
      • writeTo

        public void writeTo​(String writer,
                            OutputStream out)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified stream using the given Abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The Abdera writer to use
        out - The target output stream
        Throws:
        IOException
      • writeTo

        public void writeTo​(String writer,
                            Writer out,
                            WriterOptions options)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified java.io.Writer using the given abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The name of the Abdera writer to use
        out - The target output writer
        options - The WriterOptions to use
        Throws:
        IOException
      • writeTo

        public void writeTo​(String writer,
                            Writer out)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified java.io.Writer using the given Abdera writer
        Specified by:
        writeTo in interface Base
        Parameters:
        writer - The Abdera writer to use
        out - The target output writer
        Throws:
        IOException
      • writeTo

        public void writeTo​(Writer out,
                            WriterOptions options)
                     throws IOException
        Deprecated.
        Description copied from interface: Base
        Serializes the model component out to the specified java.io.Writer
        Specified by:
        writeTo in interface Base
        Parameters:
        out - The target output writer
        options - The WriterOptions to use
        Throws:
        IOException
      • getDefaultWriterOptions

        public WriterOptions getDefaultWriterOptions()
        Deprecated.
        Description copied from interface: Base
        Get the default WriterOptions for this object
        Specified by:
        getDefaultWriterOptions in interface Base
      • complete

        public <T extends Base> T complete()
        Deprecated.
        Description copied from interface: Base
        Ensure that the underlying streams are fully parsed. Calling complete on an Element does not necessarily mean that the underlying stream is fully consumed, only that that particular element has been completely parsed.
        Specified by:
        complete in interface Base