com.liferay.portlet.dynamicdatamapping.storage
Class Field
java.lang.Object
com.liferay.portlet.dynamicdatamapping.storage.Field
- All Implemented Interfaces:
- Serializable
public class Field
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Constructor Summary |
Field()
|
Field(long ddmStructureId,
String name,
List<Serializable> values,
Locale locale)
|
Field(long ddmStructureId,
String name,
Map<Locale,List<Serializable>> valuesMap,
Locale defaultLocale)
|
Field(long ddmStructureId,
String name,
Serializable value)
|
Field(String name,
Serializable value)
|
Field
public Field()
Field
public Field(long ddmStructureId,
String name,
List<Serializable> values,
Locale locale)
Field
public Field(long ddmStructureId,
String name,
Map<Locale,List<Serializable>> valuesMap,
Locale defaultLocale)
Field
public Field(long ddmStructureId,
String name,
Serializable value)
Field
public Field(String name,
Serializable value)
addValue
public void addValue(Locale locale,
Serializable value)
addValues
public void addValues(Locale locale,
List<Serializable> values)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getAvailableLocales
public Set<Locale> getAvailableLocales()
getDataType
public String getDataType()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDDMStructure
public DDMStructure getDDMStructure()
throws SystemException
- Throws:
SystemException
getDDMStructureId
public long getDDMStructureId()
getDefaultLocale
public Locale getDefaultLocale()
getName
public String getName()
getRenderedValue
public String getRenderedValue(Locale locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRenderedValue
public String getRenderedValue(Locale locale,
int valueIndex)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getType
public String getType()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getValue
public Serializable getValue()
getValue
public Serializable getValue(Locale locale)
getValue
public Serializable getValue(Locale locale,
int index)
getValues
public List<Serializable> getValues(Locale locale)
getValuesMap
public Map<Locale,List<Serializable>> getValuesMap()
isPrivate
public boolean isPrivate()
isRepeatable
public boolean isRepeatable()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setDDMStructureId
public void setDDMStructureId(long ddmStructureId)
setDefaultLocale
public void setDefaultLocale(Locale defaultLocale)
setName
public void setName(String name)
setValue
public void setValue(Locale locale,
Serializable value)
setValue
public void setValue(Serializable value)
setValues
public void setValues(Locale locale,
List<Serializable> values)
setValuesMap
public void setValuesMap(Map<Locale,List<Serializable>> valuesMap)
getFieldRenderer
protected FieldRenderer getFieldRenderer()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException