Class Property

All Implemented Interfaces:
Serializable, Locatable

public class Property extends AbstractLocatable implements Serializable

Property class.

Author:
Ronald Brill
See Also:
  • Constructor Details

    • Property

      public Property(String name, CSSValueImpl value, boolean important)
      Creates new Property.
      Parameters:
      name - the name
      value - the value
      important - true if the important flag set
  • Method Details

    • getName

      public String getName()
      Returns the name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name to a new value.
      Parameters:
      name - the new name
    • getValue

      public CSSValueImpl getValue()
      Returns the value.
      Returns:
      the value
    • isImportant

      public boolean isImportant()
      Returns true if the important flag is set.
      Returns:
      true or false
    • setValue

      public void setValue(CSSValueImpl value)
      Sets the value to a new value.
      Parameters:
      value - the new CSSValue
    • setImportant

      public void setImportant(boolean important)
      Sets the important flag to a new value.
      Parameters:
      important - the new flag value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object