public class PropertyDeclaration
extends java.lang.Object
CascadedStyle
.Modifier and Type | Field and Description |
---|---|
static int |
IMPORTANCE_AND_ORIGIN_COUNT
ImportanceAndOrigin of stylesheet - how many different
|
Constructor and Description |
---|
PropertyDeclaration(CSSName cssName,
org.w3c.dom.css.CSSPrimitiveValue value,
boolean imp,
int orig)
Creates a new instance of PropertyDeclaration from an
CSSPrimitiveValue instance. |
Modifier and Type | Method and Description |
---|---|
IdentValue |
asIdentValue()
Description of the Method
|
CSSName |
getCSSName()
Gets the cSSName attribute of the PropertyDeclaration object
|
java.lang.String |
getDeclarationStandardText() |
java.lang.String |
getFingerprint() |
int |
getImportanceAndOrigin()
Returns an int representing the combined origin and importance of the
property as declared.
|
int |
getOrigin() |
java.lang.String |
getPropertyName()
Returns the CSS name of this property, e.g.
|
org.w3c.dom.css.CSSPrimitiveValue |
getValue()
Returns the specified
CSSValue for this property. |
boolean |
isImportant() |
java.lang.String |
toString()
Converts to a String representation of the object.
|
public static final int IMPORTANCE_AND_ORIGIN_COUNT
public PropertyDeclaration(CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue value, boolean imp, int orig)
CSSPrimitiveValue
instance.cssName
- value
- The CSSValue to wrapimp
- True if property was declared important! and false if
not.orig
- int constant from Stylesheet
for the origin of
the property declaration, that is, the origin of the style sheet
where it was declared. See StylesheetInfo.USER_AGENT
, StylesheetInfo.USER
, and StylesheetInfo.AUTHOR
.public java.lang.String toString()
toString
in class java.lang.Object
public IdentValue asIdentValue()
public java.lang.String getDeclarationStandardText()
public java.lang.String getFingerprint()
public int getImportanceAndOrigin()
public java.lang.String getPropertyName()
public CSSName getCSSName()
public org.w3c.dom.css.CSSPrimitiveValue getValue()
CSSValue
for this property.
Specified means the value as entered by the user. Modifying the CSSValue
returned here will result in indeterminate behavior--consider it
immutable.public boolean isImportant()
public int getOrigin()