Class AbstractValueSetAttribute

All Implemented Interfaces:
TagBase, Serializable, Cloneable
Direct Known Subclasses:
AutoComplete, ClassAttribute, Headers, Rel

public abstract class AbstractValueSetAttribute extends AbstractAttribute
Since:
2.1.15
See Also:
  • Constructor Details

    • AbstractValueSetAttribute

      public AbstractValueSetAttribute()
  • Method Details

    • setAttributeValue

      protected void setAttributeValue(boolean updateClient, String value)
      sets the value for this attribute
      Overrides:
      setAttributeValue in class AbstractAttribute
      Parameters:
      updateClient - true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.
      value - the value for the attribute.
      Since:
      2.1.15
    • setAttributeValue

      protected void setAttributeValue(String value)
      sets the value for this attribute
      Overrides:
      setAttributeValue in class AbstractAttribute
      Parameters:
      value - the value for the attribute.
      Since:
      2.1.15
    • contains

      public boolean contains(String value)
      Checks if the value is a part of this attribute value.
      Parameters:
      value - the value to be checked
      Returns:
      true if the given value is contained in the value string of this attribute.
      Since:
      2.1.15
    • containsAll

      public boolean containsAll(Collection<String> values)
      Checks if the values are part of this attribute value.
      Parameters:
      values - the values to be checked
      Returns:
      true if the given values are contained in the value string of this attribute.
      Since:
      2.1.15
    • getAttributeValue

      public String getAttributeValue()
      Overrides:
      getAttributeValue in class AbstractAttribute
      Returns:
      the attributeValue
    • addAllToAttributeValueSet

      protected void addAllToAttributeValueSet(String... attrValues)
      Parameters:
      attrValues -
      Since:
      2.1.15
    • replaceAllInAttributeValueSet

      protected void replaceAllInAttributeValueSet(String... attrValues)
      Removes all values from the attributeValueSet and adds the given attribute values.
      Parameters:
      attrValues -
      Since:
      3.0.1
    • replaceAllInAttributeValueSet

      protected void replaceAllInAttributeValueSet(boolean updateClient, String... attrValues)
      Removes all values from the attributeValueSet and adds the given attribute values.
      Parameters:
      updateClient -
      attrValues -
      Since:
      3.0.1