Class ExtensibleElementWrapper

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.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 Detail

      • ExtensibleElementWrapper

        public ExtensibleElementWrapper​(Factory factory,
                                        javax.xml.namespace.QName qname)
        Deprecated.
    • Method Detail

      • addExtension

        public <T extends Element> T addExtension​(javax.xml.namespace.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​(java.lang.String namespace,
                                                  java.lang.String localPart,
                                                  java.lang.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​(javax.xml.namespace.QName qname,
                                          java.lang.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​(java.lang.String namespace,
                                          java.lang.String localPart,
                                          java.lang.String prefix,
                                          java.lang.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​(javax.xml.namespace.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​(java.lang.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 java.util.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 java.util.List<Element> getExtensions​(java.lang.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> java.util.List<T> getExtensions​(javax.xml.namespace.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 java.lang.String getSimpleExtension​(javax.xml.namespace.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 java.lang.String getSimpleExtension​(java.lang.String namespace,
                                                   java.lang.String localPart,
                                                   java.lang.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
      • addExtension

        public <T extends Element> T addExtension​(javax.xml.namespace.QName qname,
                                                  javax.xml.namespace.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