Class ChecksumTypeAttribute

    • Field Detail

      • ATTRIBUTE_NAME

        public static final OdfName ATTRIBUTE_NAME
    • Constructor Detail

      • ChecksumTypeAttribute

        public ChecksumTypeAttribute​(OdfFileDom ownerDocument)
        Create the instance of OpenDocument attribute @manifest:checksum-type.
        Parameters:
        ownerDocument - The type is OdfFileDom
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface Attr
        Overrides:
        getName in class org.apache.xerces.dom.AttrImpl
        Returns:
        Returns the name of this attribute.
      • setEnumValue

        public void setEnumValue​(ChecksumTypeAttribute.Value attrValue)
        Parameters:
        attrValue - The Enum value of the attribute.
      • setValue

        public void setValue​(String attrValue)
        Specified by:
        setValue in interface Attr
        Overrides:
        setValue in class org.apache.xerces.dom.AttrImpl
        Parameters:
        attrValue - The String value of the attribute.
        Throws:
        IllegalArgumentException - If the provided attribute value is invalid
      • getValue

        public String getValue()
        Specified by:
        getValue in interface Attr
        Overrides:
        getValue in class org.apache.xerces.dom.AttrImpl
        Returns:
        Returns the String value of the attribute
      • getDefault

        public String getDefault()
        Returns the default value of @manifest:checksum-type.
        Specified by:
        getDefault in class OdfAttribute
        Returns:
        the default value as String dependent of its element name return null if the default value does not exist
      • hasDefault

        public boolean hasDefault()
        Default value indicator. As the attribute default value is dependent from its element, the attribute has only a default, when a parent element exists.
        Specified by:
        hasDefault in class OdfAttribute
        Returns:
        true if @manifest:checksum-type has an element parent otherwise return false as undefined.
      • isId

        public boolean isId()
        Specified by:
        isId in interface Attr
        Overrides:
        isId in class org.apache.xerces.dom.AttrImpl
        Returns:
        Returns whether this attribute is known to be of type ID (i.e. xml:id ?)