Class ElementWrapper

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      <T extends Base>
      T
      addComment​(java.lang.String value)
      Deprecated.
      Add an XML comment to this Base
      java.lang.Object clone()
      Deprecated.
      Clone this Base
      <T extends Base>
      T
      complete()
      Deprecated.
      Ensure that the underlying streams are fully parsed.
      <T extends Element>
      T
      declareNS​(java.lang.String uri, java.lang.String prefix)
      Deprecated.
      Declare a namespace
      void discard()
      Deprecated.
      Removes this element from its current document
      boolean equals​(java.lang.Object other)
      Deprecated.
       
      java.util.List<javax.xml.namespace.QName> getAttributes()
      Deprecated.
      Returns a listing of all attributes on this element
      java.lang.String getAttributeValue​(java.lang.String name)
      Deprecated.
      Returns the value of the named attribute
      java.lang.String getAttributeValue​(javax.xml.namespace.QName qname)
      Deprecated.
      Returns the value of the named attribute
      IRI getBaseUri()
      Deprecated.
      Returns the value of this element's xml:base attribute or null if xml:base is undefined.
      WriterOptions getDefaultWriterOptions()
      Deprecated.
      Get the default WriterOptions for this object
      <T extends Element>
      Document<T>
      getDocument()
      Deprecated.
      Returns the document to which this element belongs
      <T extends Element>
      java.util.List<T>
      getElements()
      Deprecated.
      Return a listing of this elements child elements
      java.util.List<javax.xml.namespace.QName> getExtensionAttributes()
      Deprecated.
      Returns a listing of extension attributes on this element (extension attributes are attributes whose namespace URI is different than the elements)
      Factory getFactory()
      Deprecated.
      Get the Factory used to create this Base
      <T extends Element>
      T
      getFirstChild()
      Deprecated.
      Get the first child element
      <T extends Element>
      T
      getFirstChild​(javax.xml.namespace.QName qname)
      Deprecated.
      Get the first child element with the given QName
      Element getInternal()
      Deprecated.
       
      java.lang.String getLanguage()
      Deprecated.
      Returns the value of this elements xml:lang attribute or null if xml:lang is undefined.
      Lang getLanguageTag()
      Deprecated.
      Returns the value of the xml:lang attribute as a Lang object
      java.util.Locale getLocale()
      Deprecated.
      Returns a Locale object created from the xml:lang attribute
      boolean getMustPreserveWhitespace()
      Deprecated.
      Return true if insignificant whitespace must be preserved
      java.util.Map<java.lang.String,​java.lang.String> getNamespaces()
      Deprecated.
      Return a map listing the xml namespaces declared for this element
      <T extends Element>
      T
      getNextSibling()
      Deprecated.
      Get the element following this one
      <T extends Element>
      T
      getNextSibling​(javax.xml.namespace.QName qname)
      Deprecated.
      Get the first following sibling with the specified QName
      <T extends Base>
      T
      getParentElement()
      Deprecated.
      Return this Element's parent element or document
      <T extends Element>
      T
      getPreviousSibling()
      Deprecated.
      Get the element preceding this one
      <T extends Element>
      T
      getPreviousSibling​(javax.xml.namespace.QName qname)
      Deprecated.
      Get the first previous sibling with the specified QName
      javax.xml.namespace.QName getQName()
      Deprecated.
      Return the XML QName of this element
      IRI getResolvedBaseUri()
      Deprecated.
      Returns the current in-scope, fully qualified Base URI for this element.
      java.lang.String getText()
      Deprecated.
      Returns the Text value of this element
      int hashCode()
      Deprecated.
       
      java.util.Iterator<Element> iterator()
      Deprecated.
       
      <T extends Element>
      T
      removeAttribute​(java.lang.String name)
      Deprecated.
      Remove the named attribute
      <T extends Element>
      T
      removeAttribute​(javax.xml.namespace.QName qname)
      Deprecated.
      Remove the named Attribute
      <T extends Element>
      T
      setAttributeValue​(java.lang.String name, java.lang.String value)
      Deprecated.
      Sets the value of the named attribute
      <T extends Element>
      T
      setAttributeValue​(javax.xml.namespace.QName qname, java.lang.String value)
      Deprecated.
      Sets the value of the named attribute
      <T extends Element>
      T
      setBaseUri​(java.lang.String base)
      Deprecated.
      Sets the value of this element's xml:base attribute.
      <T extends Element>
      T
      setBaseUri​(IRI base)
      Deprecated.
      Sets the value of this element's xml:base attribute.
      <T extends Element>
      T
      setLanguage​(java.lang.String language)
      Deprecated.
      Sets the value of this elements xml:lang attribute.
      <T extends Element>
      T
      setMustPreserveWhitespace​(boolean preserve)
      Deprecated.
      Set to true to preserve insignificant whitespace
      <T extends Element>
      T
      setParentElement​(Element parent)
      Deprecated.
      Set this Element's parent element
      void setText​(java.lang.String text)
      Deprecated.
      Set the Text value of this element
      <T extends Element>
      T
      setText​(javax.activation.DataHandler handler)
      Deprecated.
      Set the Text value of this element using the data handler
      java.lang.String toString()
      Deprecated.
       
      void writeTo​(java.io.OutputStream out)
      Deprecated.
      Serializes the model component out to the specified stream
      void writeTo​(java.io.OutputStream out, WriterOptions options)
      Deprecated.
      Serializes the model component out to the specified stream
      void writeTo​(java.io.Writer writer)
      Deprecated.
      Serializes the model component out to the specified writer
      void writeTo​(java.io.Writer out, WriterOptions options)
      Deprecated.
      Serializes the model component out to the specified java.io.Writer
      void writeTo​(java.lang.String writer, java.io.OutputStream out)
      Deprecated.
      Serializes the model component out to the specified stream using the given Abdera writer
      void writeTo​(java.lang.String writer, java.io.OutputStream out, WriterOptions options)
      Deprecated.
      Serializes the model component out to the specified stream using the given abdera writer
      void writeTo​(java.lang.String writer, java.io.Writer out)
      Deprecated.
      Serializes the model component out to the specified java.io.Writer using the given Abdera writer
      void writeTo​(java.lang.String writer, java.io.Writer out, WriterOptions options)
      Deprecated.
      Serializes the model component out to the specified java.io.Writer using the given abdera writer
      void writeTo​(Writer writer, java.io.OutputStream out)
      Deprecated.
      Serializes the model component out to the specified stream using the given Abdera writer
      void writeTo​(Writer writer, java.io.OutputStream out, WriterOptions options)
      Deprecated.
      Serializes the model component out to the specified stream using the given abdera writer
      void writeTo​(Writer writer, java.io.Writer out)
      Deprecated.
      Serializes the model component out to the specified java.io.Writer using the given Abdera writer
      void writeTo​(Writer writer, java.io.Writer out, WriterOptions options)
      Deprecated.
      Serializes the model component out to the specified java.io.Writer using the given abdera writer
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • addComment

        public <T extends Base> T addComment​(java.lang.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 java.lang.Object clone()
        Deprecated.
        Description copied from interface: Base
        Clone this Base
        Specified by:
        clone in interface Base
      • declareNS

        public <T extends Element> T declareNS​(java.lang.String uri,
                                               java.lang.String prefix)
        Deprecated.
        Description copied from interface: Element
        Declare a namespace
        Specified by:
        declareNS in interface Element
      • 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 java.util.List<javax.xml.namespace.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 java.lang.String getAttributeValue​(javax.xml.namespace.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 java.lang.String getAttributeValue​(java.lang.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 java.util.List<javax.xml.namespace.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​(javax.xml.namespace.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 java.lang.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 java.util.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​(javax.xml.namespace.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​(javax.xml.namespace.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 javax.xml.namespace.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 java.lang.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​(javax.xml.namespace.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​(java.lang.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​(javax.xml.namespace.QName qname,
                                                       java.lang.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​(java.lang.String name,
                                                       java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(javax.activation.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​(java.io.OutputStream out)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.Writer writer)
                     throws java.io.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:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object other)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • hashCode

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

        public Element getInternal()
        Deprecated.
      • getElements

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

        public java.util.Map<java.lang.String,​java.lang.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​(java.io.OutputStream out,
                            WriterOptions options)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(Writer writer,
                            java.io.OutputStream out,
                            WriterOptions options)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(Writer writer,
                            java.io.OutputStream out)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(Writer writer,
                            java.io.Writer out,
                            WriterOptions options)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(Writer writer,
                            java.io.Writer out)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(java.lang.String writer,
                            java.io.OutputStream out,
                            WriterOptions options)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(java.lang.String writer,
                            java.io.OutputStream out)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(java.lang.String writer,
                            java.io.Writer out,
                            WriterOptions options)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(java.lang.String writer,
                            java.io.Writer out)
                     throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.Writer out,
                            WriterOptions options)
                     throws java.io.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:
        java.io.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
      • iterator

        public java.util.Iterator<Element> iterator()
        Deprecated.
        Specified by:
        iterator in interface java.lang.Iterable<Element>