Class CmsEntityAttribute

java.lang.Object
org.opencms.acacia.shared.CmsEntityAttribute
All Implemented Interfaces:
Serializable

public class CmsEntityAttribute extends Object implements Serializable
Serializable entity attribute implementation.

See Also:
  • Constructor Details

  • Method Details

    • createEntityAttribute

      Creates a entity type attribute.

      Parameters:
      name - the attribute name
      values - the attribute values
      Returns:
      the newly created attribute
    • createSimpleAttribute

      public static CmsEntityAttribute createSimpleAttribute(String name, List<String> values)
      Creates a simple type attribute.

      Parameters:
      name - the attribute name
      values - the attribute values
      Returns:
      the newly created attribute
    • getAttributeName

      Returns the attribute name.

      Returns:
      the attribute name
    • getComplexValue

      Returns the first complex value in the list.

      Returns:
      the first complex value
    • getComplexValues

      Returns the list of complex values.

      Returns:
      the list of complex values
    • getSimpleValue

      Returns the first simple value in the list.

      Returns:
      the first simple value
    • getSimpleValues

      Returns the list of simple values.

      Returns:
      the list of simple values
    • getValueCount

      public int getValueCount()
      Returns the number of values set for this attribute.

      Returns:
      the number of values
    • isComplexValue

      public boolean isComplexValue()
      Returns if the is a complex type value.

      Returns:
      true if this is a complex type value
    • isSimpleValue

      public boolean isSimpleValue()
      Returns if the is a simple type value.

      Returns:
      true if this is a simple type value
    • isSingleValue

      public boolean isSingleValue()
      Returns if this is a single value attribute.

      Returns:
      true if this is a single value attribute