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 int
All_ELEMENTS
static int
ALWAYS
static int
BLOCK_ELEMENTS
static int
COUNTERS
static int
DOM_ELEMENTS
static int
FOOTNOTE_AREA
int
index
The index is implicitly defined when the key is registered.static int
INLINE_ELEMENTS
static int
MARGINS
String
name
The name of the style key.static int
PAGE_CONTEXT
static int
PSEUDO_AFTER
static int
PSEUDO_ALTERNATE
static int
PSEUDO_BEFORE
static int
PSEUDO_FIRST_LETTER
static int
PSEUDO_FIRST_LINE
static int
PSEUDO_LINEMARKER
static int
PSEUDO_MARKER
static int
PSEUDO_OTHER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object o)
Indicates whether some other object is "equal to" this one.int
getIndex()
String
getName()
Returns the name of the key.int
hashCode()
Returns a hash code value for the object.boolean
isInherited()
boolean
isTransient()
Checks, whether this stylekey denotes a temporary computation result.boolean
isValidOn(int mask)
String
toString()
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:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-