Class StyleKey
- java.lang.Object
-
- org.pentaho.reporting.libraries.css.model.StyleKey
-
- All Implemented Interfaces:
Serializable,Cloneable
public final class StyleKey extends Object implements Serializable, Cloneable
Creation-Date: 26.10.2005, 14:05:23- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intAll_ELEMENTSstatic intALWAYSstatic intBLOCK_ELEMENTSstatic intCOUNTERSstatic intDOM_ELEMENTSstatic intFOOTNOTE_AREAintindexThe index is implicitly defined when the key is registered.static intINLINE_ELEMENTSstatic intMARGINSStringnameThe name of the style key.static intPAGE_CONTEXTstatic intPSEUDO_AFTERstatic intPSEUDO_ALTERNATEstatic intPSEUDO_BEFOREstatic intPSEUDO_FIRST_LETTERstatic intPSEUDO_FIRST_LINEstatic intPSEUDO_LINEMARKERstatic intPSEUDO_MARKERstatic intPSEUDO_OTHER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object o)Indicates whether some other object is "equal to" this one.intgetIndex()StringgetName()Returns the name of the key.inthashCode()Returns a hash code value for the object.booleanisInherited()booleanisTransient()Checks, whether this stylekey denotes a temporary computation result.booleanisValidOn(int mask)StringtoString()Returns a string representation of the object.
-
-
-
Field Detail
-
ALWAYS
public static final int ALWAYS
- See Also:
- Constant Field Values
-
INLINE_ELEMENTS
public static final int INLINE_ELEMENTS
- See Also:
- Constant Field Values
-
BLOCK_ELEMENTS
public static final int BLOCK_ELEMENTS
- See Also:
- Constant Field Values
-
DOM_ELEMENTS
public static final int DOM_ELEMENTS
- See Also:
- Constant Field Values
-
All_ELEMENTS
public static final int All_ELEMENTS
- See Also:
- Constant Field Values
-
PSEUDO_BEFORE
public static final int PSEUDO_BEFORE
- See Also:
- Constant Field Values
-
PSEUDO_AFTER
public static final int PSEUDO_AFTER
- See Also:
- Constant Field Values
-
PSEUDO_ALTERNATE
public static final int PSEUDO_ALTERNATE
- See Also:
- Constant Field Values
-
PSEUDO_MARKER
public static final int PSEUDO_MARKER
- See Also:
- Constant Field Values
-
PSEUDO_LINEMARKER
public static final int PSEUDO_LINEMARKER
- See Also:
- Constant Field Values
-
PSEUDO_FIRST_LETTER
public static final int PSEUDO_FIRST_LETTER
- See Also:
- Constant Field Values
-
PSEUDO_FIRST_LINE
public static final int PSEUDO_FIRST_LINE
- See Also:
- Constant Field Values
-
PSEUDO_OTHER
public static final int PSEUDO_OTHER
- See Also:
- Constant Field Values
-
MARGINS
public static final int MARGINS
- See Also:
- Constant Field Values
-
FOOTNOTE_AREA
public static final int FOOTNOTE_AREA
- See Also:
- Constant Field Values
-
PAGE_CONTEXT
public static final int PAGE_CONTEXT
- See Also:
- Constant Field Values
-
COUNTERS
public static final int COUNTERS
- See Also:
- Constant Field Values
-
index
public final transient int index
The index is implicitly defined when the key is registered. Do not rely on that index for long term persitence.
-
name
public final String name
The name of the style key.
-
-
Constructor Detail
-
StyleKey
protected StyleKey(String name, boolean trans, boolean inherited, int index, int validity)
Creates a new style key.- Parameters:
name- the name (never null).
-
-
Method Detail
-
getName
public String getName()
Returns the name of the key.- Returns:
- the name.
-
getIndex
public int getIndex()
-
isValidOn
public boolean isValidOn(int mask)
-
equals
public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.
-
isInherited
public boolean isInherited()
-
hashCode
public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided byjava.util.Hashtable.
-
isTransient
public boolean isTransient()
Checks, whether this stylekey denotes a temporary computation result.- Returns:
- true, if the key is transient, false otherwise.
-
toString
public String toString()
Returns a string representation of the object.
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-