Class MetaNonWhitespaceCharacterCountAttribute

All Implemented Interfaces:
Serializable, Cloneable, Attr, EventTarget, Node, NodeList, TypeInfo

public class MetaNonWhitespaceCharacterCountAttribute extends OdfAttribute
DOM implementation of OpenDocument attribute @meta:non-whitespace-character-count.
See Also:
  • Field Details

    • ATTRIBUTE_NAME

      public static final OdfName ATTRIBUTE_NAME
  • Constructor Details

    • MetaNonWhitespaceCharacterCountAttribute

      public MetaNonWhitespaceCharacterCountAttribute(OdfFileDom ownerDocument)
      Create the instance of OpenDocument attribute @meta:non-whitespace-character-count.
      Parameters:
      ownerDocument - The type is OdfFileDom
  • Method Details

    • getOdfName

      public OdfName getOdfName()
      Returns the attribute name.
      Specified by:
      getOdfName in class OdfAttribute
      Returns:
      the OdfName for @meta:non-whitespace-character-count.
    • getName

      public String getName()
      Specified by:
      getName in interface Attr
      Overrides:
      getName in class AttrImpl
      Returns:
      Returns the name of this attribute.
    • setIntValue

      public void setIntValue(int value)
      Parameters:
      value - The int value of the attribute.
    • intValue

      public int intValue()
      Returns:
      Returns the int value of the attribute
    • getDefault

      public String getDefault()
      Returns the default value of @meta:non-whitespace-character-count.
      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 @meta:non-whitespace-character-count has an element parent otherwise return false as undefined.
    • isId

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