Class InitialValue

All Implemented Interfaces:
CSSValue, ValueItem, Serializable, Cloneable

public class InitialValue extends KeywordValue
An initial value.
See Also:
  • Constructor Details

    • InitialValue

      protected InitialValue()
      Must access instance through static method.
  • Method Details

    • getValue

      public static InitialValue getValue()
    • getPrimitiveType

      public CSSValue.Type getPrimitiveType()
      Description copied from interface: CSSValue
      Get the primitive type.
      Returns:
      the primitive type.
    • getCssText

      public String getCssText()
      Description copied from class: StyleValue
      Get a string representation of the current value.
      Specified by:
      getCssText in interface CSSValue
      Specified by:
      getCssText in class StyleValue
      Returns:
      the css text representing the value of this property.
    • writeCssText

      public void writeCssText(io.sf.carte.util.SimpleWriter wri) throws IOException
      Description copied from interface: CSSValue
      Serialize this value to a SimpleWriter.
      Parameters:
      wri - the SimpleWriter.
      Throws:
      IOException - if an error happened while writing.
    • getCSSValue

      public KeywordValue getCSSValue()
      Description copied from interface: ValueItem
      Gets the CSSValue associated to this item.

      If there is an item there must be a value, so this method cannot return null.

      Returns:
      the CSSValue associated to this item.