net.sf.vex.css
Class PropertyDecl

java.lang.Object
  |
  +--net.sf.vex.css.PropertyDecl
All Implemented Interfaces:
java.lang.Comparable

public class PropertyDecl
extends java.lang.Object
implements java.lang.Comparable

Represents a particular CSS property declaration.


Field Summary
static byte SOURCE_AUTHOR
           
static byte SOURCE_DEFAULT
           
static byte SOURCE_USER
           
 
Constructor Summary
PropertyDecl(Rule rule, java.lang.String property, LexicalUnit value, boolean important)
          Class constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
          Implementation of Comparable.compareTo(Object) that implements CSS cascade ordering.
 java.lang.String getProperty()
          Return the value of the property property.
 Rule getRule()
          Return the value of the rule property.
 LexicalUnit getValue()
          Return the value of the value property.
 boolean isImportant()
          Return the value of the important property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_DEFAULT

public static final byte SOURCE_DEFAULT
See Also:
Constant Field Values

SOURCE_AUTHOR

public static final byte SOURCE_AUTHOR
See Also:
Constant Field Values

SOURCE_USER

public static final byte SOURCE_USER
See Also:
Constant Field Values
Constructor Detail

PropertyDecl

public PropertyDecl(Rule rule,
                    java.lang.String property,
                    LexicalUnit value,
                    boolean important)
Class constructor.

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Implementation of Comparable.compareTo(Object) that implements CSS cascade ordering.

Specified by:
compareTo in interface java.lang.Comparable

isImportant

public boolean isImportant()
Return the value of the important property.


getProperty

public java.lang.String getProperty()
Return the value of the property property.


getRule

public Rule getRule()
Return the value of the rule property.


getValue

public LexicalUnit getValue()
Return the value of the value property.