Class StyleKey

    • Field Detail

      • name

        public final String name
        The name of the style key.
      • identifier

        public final int identifier
        A unique int-key for the stylekey.
    • Method Detail

      • getName

        public String getName()
        Returns the name of the key.
        Returns:
        the name.
      • getValueType

        public Class<?> getValueType()
        Returns the class of the value for this key.
        Returns:
        the class.
      • getStyleKey

        public static StyleKey getStyleKey​(String name,
                                           Class valueType)
        Returns the key with the specified name. The given type is not checked against a possibly alredy defined definition, it is assumed that the type is only given for a new key definition.
        Parameters:
        name - the name.
        valueType - the class.
        Returns:
        the style key.
      • getStyleKey

        public static StyleKey getStyleKey​(String name,
                                           Class valueType,
                                           boolean trans,
                                           boolean inheritable)
        Returns the key with the specified name. The given type is not checked against a possibly alredy defined definition, it is assumed that the type is only given for a new key definition.
        Parameters:
        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.
        Returns:
        the style key.
      • lock

        public static void lock()
      • getStyleKey

        public static StyleKey getStyleKey​(String name)
        Returns the key with the specified name.
        Parameters:
        name - the name.
        Returns:
        the style key.
      • equals

        public boolean equals​(Object o)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        o - the reference object with which to compare.
        Returns:
        true if this object is the same as the obj argument; false otherwise.
      • 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 by java.util.Hashtable.

        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for this object.
      • isTransient

        public boolean isTransient()
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.
      • isInheritable

        public boolean isInheritable()
      • getIdentifier

        public int getIdentifier()
      • getDefinedStyleKeyCount

        public static int getDefinedStyleKeyCount()
      • getDefinedStyleKeysList

        public static List<StyleKey> getDefinedStyleKeysList()
      • getDefinedStyleKeys

        public static StyleKey[] getDefinedStyleKeys()
      • assertNoNullEntries

        public static void assertNoNullEntries()
      • registerDefaults

        public static void registerDefaults()
      • registerClass

        public static void registerClass​(Class c)