Class StyleKey

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class StyleKey
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Creation-Date: 26.10.2005, 14:05:23
    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • StyleKey

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

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

        public boolean isTransient()
        Checks, whether this stylekey denotes a temporary computation result.
        Returns:
        true, if the key is transient, false otherwise.
      • toString

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

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException