Class OdfAttribute

    • Constructor Detail

      • OdfAttribute

        public OdfAttribute​(OdfFileDom ownerDocument,
                            String namespaceURI,
                            String qualifiedName)
                     throws DOMException
        Creates a new instance of OdfAttribute
        Parameters:
        ownerDocument - - the document the attribute belongs to
        namespaceURI - - The namespace URI of the attribute to create. When it is null or an empty string, this method behaves like createAttribute.
        qualifiedName - - The qualified name of the attribute to instantiate.
        Throws:
        DOMException - - if the attribute could not be created
      • OdfAttribute

        public OdfAttribute​(OdfFileDom ownerDocument,
                            OdfName name)
                     throws DOMException
        Creates a new instance of OdfAttribute
        Parameters:
        ownerDocument - - the document the attribute belongs to
        name - - the OdfName representation of the attribute name.
        Throws:
        DOMException - - if the attribute could not be created
    • Method Detail

      • getOdfName

        public abstract OdfName getOdfName()
        Returns the attribute name.
        Returns:
        the OdfName for the attribute.
      • hasDefault

        public abstract boolean hasDefault()
        Default value indicator
        Returns:
        true if a default exists