Class ExtensibleElementWrapper

java.lang.Object
org.apache.abdera.model.ElementWrapper
org.apache.abdera.model.ExtensibleElementWrapper
All Implemented Interfaces:
Cloneable, Iterable<Element>, Base, Element, ExtensibleElement
Direct Known Subclasses:
MediaContent, MediaGroup, PersonWrapper

@Deprecated(since="2021-07-29") public abstract class ExtensibleElementWrapper extends ElementWrapper implements ExtensibleElement
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
ElementWrapper implementation that implements the ExtensibleElement interface. This should be used to create static extension elements that support extensions
  • Constructor Details

    • ExtensibleElementWrapper

      public ExtensibleElementWrapper(Factory factory, QName qname)
      Deprecated.
  • Method Details

    • addExtension

      public <T extends ExtensibleElement> T addExtension(Element extension)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Adds an individual extension element
      Specified by:
      addExtension in interface ExtensibleElement
      Parameters:
      extension - An extension element to add
    • addExtension

      public <T extends Element> T addExtension(QName qname)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Adds an individual extension element
      Specified by:
      addExtension in interface ExtensibleElement
      Parameters:
      qname - An extension element to create
      Returns:
      The newly created extension element
    • addExtension

      public <T extends Element> T addExtension(String namespace, String localPart, String prefix)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Adds an individual extension element
      Specified by:
      addExtension in interface ExtensibleElement
      Parameters:
      namespace - An XML namespace
      localPart - A localname
      prefix - A XML namespace prefix
      Returns:
      The newly creatd extension element
    • addSimpleExtension

      public Element addSimpleExtension(QName qname, String value)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Adds a simple extension (text content only)
      Specified by:
      addSimpleExtension in interface ExtensibleElement
      Parameters:
      qname - An XML QName
      value - The simple text value of the element
      Returns:
      The newly created extension element
    • addSimpleExtension

      public Element addSimpleExtension(String namespace, String localPart, String prefix, String value)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Adds a simple extension (text content only)
      Specified by:
      addSimpleExtension in interface ExtensibleElement
      Parameters:
      namespace - An XML namespace
      localPart - A local name
      prefix - A namespace prefix
      value - The simple text value
      Returns:
      The newly created extension element
    • getExtension

      public <T extends Element> T getExtension(QName qname)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Returns the first extension element with the XML qualified name
      Specified by:
      getExtension in interface ExtensibleElement
      Parameters:
      qname - An XML QName
      Returns:
      An extension with the specified qname
    • getExtension

      public <T extends Element> T getExtension(Class<T> _class)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Find an extension by Class rather than QName
      Specified by:
      getExtension in interface ExtensibleElement
      Parameters:
      _class - The implementation class of the extension
      Returns:
      The extension element
    • getExtensions

      public List<Element> getExtensions()
      Deprecated.
      Description copied from interface: ExtensibleElement
      Returns the complete set of extension elements
      Specified by:
      getExtensions in interface ExtensibleElement
      Returns:
      a listing of extensions
    • getExtensions

      public List<Element> getExtensions(String uri)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Returns the complete set of extension elements using the specified XML Namespace URI
      Specified by:
      getExtensions in interface ExtensibleElement
      Parameters:
      uri - A namespace URI
      Returns:
      A listing of extensions using the specified XML namespace
    • getExtensions

      public <T extends Element> List<T> getExtensions(QName qname)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Returns the complete set of extension elements using the specified XML qualified name
      Specified by:
      getExtensions in interface ExtensibleElement
      Parameters:
      qname - An XML QName
      Returns:
      A listing of extensions with the specified QName
    • getSimpleExtension

      public String getSimpleExtension(QName qname)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Gets the value of a simple extension
      Specified by:
      getSimpleExtension in interface ExtensibleElement
      Parameters:
      qname - An XML QName
      Returns:
      The string value of the extension
    • getSimpleExtension

      public String getSimpleExtension(String namespace, String localPart, String prefix)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Gets the value of a simple extension
      Specified by:
      getSimpleExtension in interface ExtensibleElement
      Parameters:
      namespace - An XML namespace
      localPart - A localname
      prefix - A namespace prefix
      Returns:
      The string value of the extension
    • getMustPreserveWhitespace

      public boolean getMustPreserveWhitespace()
      Deprecated.
      Description copied from interface: Element
      Return true if insignificant whitespace must be preserved
      Specified by:
      getMustPreserveWhitespace in interface Element
      Overrides:
      getMustPreserveWhitespace in class ElementWrapper
    • 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
      Overrides:
      setMustPreserveWhitespace in class ElementWrapper
    • addExtension

      public <T extends ExtensibleElement> T addExtension(Element extension, Element before)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Adds an individual extension element before the specified element
      Specified by:
      addExtension in interface ExtensibleElement
    • addExtension

      public <T extends Element> T addExtension(QName qname, QName before)
      Deprecated.
      Description copied from interface: ExtensibleElement
      Adds an individual extension element
      Specified by:
      addExtension in interface ExtensibleElement
      Parameters:
      qname - An extension element to create
      Returns:
      The newly created extension element