Package org.silverpeas.core.webapi.pdc
Class LocalizedClassifyValue
- java.lang.Object
-
- org.silverpeas.core.pdc.classification.Value
-
- org.silverpeas.core.pdc.pdc.model.ClassifyValue
-
- org.silverpeas.core.webapi.pdc.LocalizedClassifyValue
-
- All Implemented Interfaces:
Serializable
,LocalizedValue
public class LocalizedClassifyValue extends ClassifyValue implements LocalizedValue
A decorator of a classify value by adding to it additional methods required to compute information to render in a view. Theses information are localized according to the language passed in the constructor.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.webapi.pdc.LocalizedValue
MAX_NUMBER_OF_RENDERED_PATH_NODE, NUMBER_OF_RENDERED_PATH_NODE_IN_TRUNCATION, SEPARATOR_PATH, TRUNCATION_SEPARATOR
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValue()
static LocalizedClassifyValue
decorate(ClassifyValue value, String forLanguage)
boolean
equals(Object o)
int
getAxisId()
String
getAxisName()
List<Value>
getFullPath()
String
getLanguage()
Gets the language used in the localization.String
getLocalizedPath()
Gets the path of this value, on the PdC's axis, in which each path node is localized according to the language.int
getPhysicalAxisId()
String
getValue()
int
hashCode()
void
setAxisId(int nGivenAxisId)
void
setAxisName(String axisName)
void
setFullPath(List<Value> fullPath)
void
setPhysicalAxisId(int id)
void
setValue(String sGivenValue)
String
toString()
-
-
-
Method Detail
-
decorate
public static LocalizedClassifyValue decorate(ClassifyValue value, String forLanguage)
-
getLocalizedPath
public String getLocalizedPath()
Gets the path of this value, on the PdC's axis, in which each path node is localized according to the language.- Specified by:
getLocalizedPath
in interfaceLocalizedValue
- Returns:
- the localized path of this value on the PdC's axis.
-
getLanguage
public String getLanguage()
Gets the language used in the localization.- Specified by:
getLanguage
in interfaceLocalizedValue
- Returns:
- the language used in the localization.
-
getAxisName
public String getAxisName()
- Overrides:
getAxisName
in classClassifyValue
-
getFullPath
public List<Value> getFullPath()
- Overrides:
getFullPath
in classClassifyValue
-
setAxisName
public void setAxisName(String axisName)
- Overrides:
setAxisName
in classClassifyValue
-
setFullPath
public void setFullPath(List<Value> fullPath)
- Overrides:
setFullPath
in classClassifyValue
-
toString
public String toString()
- Overrides:
toString
in classClassifyValue
-
checkValue
public void checkValue() throws ClassifyEngineException
- Overrides:
checkValue
in classValue
- Throws:
ClassifyEngineException
-
getPhysicalAxisId
public int getPhysicalAxisId()
- Overrides:
getPhysicalAxisId
in classValue
-
setPhysicalAxisId
public void setPhysicalAxisId(int id)
- Overrides:
setPhysicalAxisId
in classValue
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classClassifyValue
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classClassifyValue
-
-