public final class StyleKey
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and 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 |
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 |
Modifier | Constructor and Description |
---|---|
protected |
StyleKey(java.lang.String name,
boolean trans,
boolean inherited,
int index,
int validity)
Creates a new style key.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
int |
getIndex() |
java.lang.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) |
java.lang.String |
toString()
Returns a string representation of the object.
|
public static final int ALWAYS
public static final int INLINE_ELEMENTS
public static final int BLOCK_ELEMENTS
public static final int DOM_ELEMENTS
public static final int All_ELEMENTS
public static final int PSEUDO_BEFORE
public static final int PSEUDO_AFTER
public static final int PSEUDO_ALTERNATE
public static final int PSEUDO_MARKER
public static final int PSEUDO_LINEMARKER
public static final int PSEUDO_FIRST_LETTER
public static final int PSEUDO_FIRST_LINE
public static final int PSEUDO_OTHER
public static final int MARGINS
public static final int FOOTNOTE_AREA
public static final int PAGE_CONTEXT
public static final int COUNTERS
public final int index
protected StyleKey(java.lang.String name, boolean trans, boolean inherited, int index, int validity)
name
- the name (never null).public java.lang.String getName()
public int getIndex()
public boolean isValidOn(int mask)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the reference object with which to compare.true
if this object is the same as the obj argument;
false
otherwise.public boolean isInherited()
public int hashCode()
java.util.Hashtable
.
hashCode
in class java.lang.Object
public boolean isTransient()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException