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 SummaryFields 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 SummaryAll 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- 
ALWAYSpublic static final int ALWAYS - See Also:
- Constant Field Values
 
 - 
INLINE_ELEMENTSpublic static final int INLINE_ELEMENTS - See Also:
- Constant Field Values
 
 - 
BLOCK_ELEMENTSpublic static final int BLOCK_ELEMENTS - See Also:
- Constant Field Values
 
 - 
DOM_ELEMENTSpublic static final int DOM_ELEMENTS - See Also:
- Constant Field Values
 
 - 
All_ELEMENTSpublic static final int All_ELEMENTS - See Also:
- Constant Field Values
 
 - 
PSEUDO_BEFOREpublic static final int PSEUDO_BEFORE - See Also:
- Constant Field Values
 
 - 
PSEUDO_AFTERpublic static final int PSEUDO_AFTER - See Also:
- Constant Field Values
 
 - 
PSEUDO_ALTERNATEpublic static final int PSEUDO_ALTERNATE - See Also:
- Constant Field Values
 
 - 
PSEUDO_MARKERpublic static final int PSEUDO_MARKER - See Also:
- Constant Field Values
 
 - 
PSEUDO_LINEMARKERpublic static final int PSEUDO_LINEMARKER - See Also:
- Constant Field Values
 
 - 
PSEUDO_FIRST_LETTERpublic static final int PSEUDO_FIRST_LETTER - See Also:
- Constant Field Values
 
 - 
PSEUDO_FIRST_LINEpublic static final int PSEUDO_FIRST_LINE - See Also:
- Constant Field Values
 
 - 
PSEUDO_OTHERpublic static final int PSEUDO_OTHER - See Also:
- Constant Field Values
 
 - 
MARGINSpublic static final int MARGINS - See Also:
- Constant Field Values
 
 - 
FOOTNOTE_AREApublic static final int FOOTNOTE_AREA - See Also:
- Constant Field Values
 
 - 
PAGE_CONTEXTpublic static final int PAGE_CONTEXT - See Also:
- Constant Field Values
 
 - 
COUNTERSpublic static final int COUNTERS - See Also:
- Constant Field Values
 
 - 
indexpublic final transient int index The index is implicitly defined when the key is registered. Do not rely on that index for long term persitence.
 - 
namepublic final String name The name of the style key.
 
- 
 - 
Constructor Detail- 
StyleKeyprotected StyleKey(String name, boolean trans, boolean inherited, int index, int validity) Creates a new style key.- Parameters:
- name- the name (never null).
 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Returns the name of the key.- Returns:
- the name.
 
 - 
getIndexpublic int getIndex() 
 - 
isValidOnpublic boolean isValidOn(int mask) 
 - 
equalspublic boolean equals(Object o) Indicates whether some other object is "equal to" this one.
 - 
isInheritedpublic boolean isInherited() 
 - 
hashCodepublic 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.
 - 
isTransientpublic boolean isTransient() Checks, whether this stylekey denotes a temporary computation result.- Returns:
- true, if the key is transient, false otherwise.
 
 - 
toStringpublic String toString() Returns a string representation of the object.
 - 
clonepublic Object clone() throws CloneNotSupportedException - Overrides:
- clonein class- Object
- Throws:
- CloneNotSupportedException
 
 
- 
 
-