public class CmsEntityAttribute extends java.lang.Object implements java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
CmsEntityAttribute()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static CmsEntityAttribute |
createEntityAttribute(java.lang.String name,
java.util.List<CmsEntity> values)
Creates a entity type attribute.
|
static CmsEntityAttribute |
createSimpleAttribute(java.lang.String name,
java.util.List<java.lang.String> values)
Creates a simple type attribute.
|
java.lang.String |
getAttributeName()
Returns the attribute name.
|
CmsEntity |
getComplexValue()
Returns the first complex value in the list.
|
java.util.List<CmsEntity> |
getComplexValues()
Returns the list of complex values.
|
java.lang.String |
getSimpleValue()
Returns the first simple value in the list.
|
java.util.List<java.lang.String> |
getSimpleValues()
Returns the list of simple values.
|
int |
getValueCount()
Returns the number of values set for this attribute.
|
boolean |
isComplexValue()
Returns if the is a complex type value.
|
boolean |
isSimpleValue()
Returns if the is a simple type value.
|
boolean |
isSingleValue()
Returns if this is a single value attribute.
|
protected CmsEntityAttribute()
public static CmsEntityAttribute createEntityAttribute(java.lang.String name, java.util.List<CmsEntity> values)
name
- the attribute namevalues
- the attribute valuespublic static CmsEntityAttribute createSimpleAttribute(java.lang.String name, java.util.List<java.lang.String> values)
name
- the attribute namevalues
- the attribute valuespublic java.lang.String getAttributeName()
public CmsEntity getComplexValue()
public java.util.List<CmsEntity> getComplexValues()
public java.lang.String getSimpleValue()
public java.util.List<java.lang.String> getSimpleValues()
public int getValueCount()
public boolean isComplexValue()
true
if this is a complex type valuepublic boolean isSimpleValue()
true
if this is a simple type valuepublic boolean isSingleValue()
true
if this is a single value attribute