public final class StyleKey extends Object implements Serializable, Cloneable
BandStyleSheet
or an ElementStyleSheet
Note that this class also defines a static Hashtable in which all defined keys are stored.BandStyleKeys
,
ElementStyleSheet
,
Serialized FormModifier and Type | Field and Description |
---|---|
int |
identifier
A unique int-key for the stylekey.
|
String |
name
The name of the style key.
|
Modifier and Type | Method and Description |
---|---|
static void |
assertNoNullEntries() |
Object |
clone() |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
static int |
getDefinedStyleKeyCount() |
static StyleKey[] |
getDefinedStyleKeys() |
static List<StyleKey> |
getDefinedStyleKeysList() |
int |
getIdentifier() |
String |
getName()
Returns the name of the key.
|
static StyleKey |
getStyleKey(String name)
Returns the key with the specified name.
|
static StyleKey |
getStyleKey(String name,
Class valueType)
Returns the key with the specified name.
|
static StyleKey |
getStyleKey(String name,
Class valueType,
boolean trans,
boolean inheritable)
Returns the key with the specified name.
|
Class<?> |
getValueType()
Returns the class of the value for this key.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isInheritable() |
boolean |
isTransient() |
static void |
lock() |
static void |
registerClass(Class c) |
static void |
registerDefaults() |
String |
toString()
Returns a string representation of the object.
|
public final String name
public final int identifier
public String getName()
public Class<?> getValueType()
public static StyleKey getStyleKey(String name, Class valueType)
name
- the name.valueType
- the class.public static StyleKey getStyleKey(String name, Class valueType, boolean trans, boolean inheritable)
name
- the name.valueType
- the class.inheritable
- a flag indicating whether the value will be inherited from parent bands to child elements.trans
- a flag indicating whether the style property should be saved. Transient properties are temporary artifacts
and should not be stored in report definitions.public static void lock()
public static StyleKey getStyleKey(String name)
name
- the name.public boolean equals(Object o)
public int hashCode()
java.util.Hashtable
.
public boolean isTransient()
public String toString()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean isInheritable()
public int getIdentifier()
public static int getDefinedStyleKeyCount()
public static StyleKey[] getDefinedStyleKeys()
public static void assertNoNullEntries()
public static void registerDefaults()
public static void registerClass(Class c)
Copyright © 2017 Hitachi Vantara. All rights reserved.