Package org.opencms.acacia.shared
Class CmsEntityAttribute
java.lang.Object
org.opencms.acacia.shared.CmsEntityAttribute
- All Implemented Interfaces:
Serializable
Serializable entity attribute implementation.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CmsEntityAttribute
createEntityAttribute
(String name, List<CmsEntity> values) Creates a entity type attribute.static CmsEntityAttribute
createSimpleAttribute
(String name, List<String> values) Creates a simple type attribute.Returns the attribute name.Returns the first complex value in the list.Returns the list of complex values.Returns the first simple value in the list.Returns the list of simple values.int
Returns the number of values set for this attribute.boolean
Returns if the is a complex type value.boolean
Returns if the is a simple type value.boolean
Returns if this is a single value attribute.
-
Constructor Details
-
CmsEntityAttribute
protected CmsEntityAttribute()Constructor. For serialization only.
-
-
Method Details
-
createEntityAttribute
Creates a entity type attribute.- Parameters:
name
- the attribute namevalues
- the attribute values- Returns:
- the newly created attribute
-
createSimpleAttribute
Creates a simple type attribute.- Parameters:
name
- the attribute namevalues
- 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
Returns the number of values set for this attribute.- Returns:
- the number of values
-
isComplexValue
Returns if the is a complex type value.- Returns:
true
if this is a complex type value
-
isSimpleValue
Returns if the is a simple type value.- Returns:
true
if this is a simple type value
-
isSingleValue
Returns if this is a single value attribute.- Returns:
true
if this is a single value attribute
-