Class Attribute

All Implemented Interfaces:
Serializable, Comparable<PerunBean>

public class Attribute extends AttributeDefinition implements Serializable
This class represents attribute (with value) of some object (VO, member). TODO
Author:
Slavek Licehammer <glory@ics.muni.cz>
See Also:
  • Constructor Details

    • Attribute

      public Attribute()
    • Attribute

      public Attribute(Attribute attribute, boolean copyValue)
    • Attribute

      public Attribute(AttributeDefinition attributeDefinition)
      Creates Attribute instance from an AttributeDefinition with null value.
    • Attribute

      public Attribute(AttributeDefinition attributeDefinition, Object value)
      Creates Attribute instance from an AttributeDefinition and a value.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AttributeDefinition
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • getValueCreatedAt

      public String getValueCreatedAt()
    • setValueCreatedAt

      public void setValueCreatedAt(String valueCreatedAt)
    • getValueCreatedBy

      public String getValueCreatedBy()
    • setValueCreatedBy

      public void setValueCreatedBy(String valueCreatedBy)
    • getValueModifiedAt

      public String getValueModifiedAt()
    • setValueModifiedAt

      public void setValueModifiedAt(String valueModifiedAt)
    • getValueModifiedBy

      public String getValueModifiedBy()
    • setValueModifiedBy

      public void setValueModifiedBy(String valueModifiedBy)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AttributeDefinition
    • serializeToString

      public String serializeToString()
      Overrides:
      serializeToString in class AttributeDefinition
    • toString

      public String toString()
      Overrides:
      toString in class AttributeDefinition
    • valueAsBoolean

      public Boolean valueAsBoolean()
    • valueAsInteger

      public Integer valueAsInteger()
    • valueAsList

      public ArrayList<String> valueAsList()
    • valueAsMap

      public LinkedHashMap<String,String> valueAsMap()
    • valueAsString

      public String valueAsString()
    • valueContains

      public boolean valueContains(String value)
      Check if the attribute value contains value. In case of list, it uses method contains. In case of array it searches in both keys and values.
      Parameters:
      value - value
      Returns:
      true if the attribute value contains value.