com.silverpeas.pdc.web
Class LocalizedClassifyValue
java.lang.Object
com.stratelia.silverpeas.classifyEngine.Value
com.stratelia.silverpeas.pdc.model.ClassifyValue
com.silverpeas.pdc.web.LocalizedClassifyValue
- All Implemented Interfaces:
- LocalizedValue, Serializable
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
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 interface LocalizedValue
- 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 interface LocalizedValue
- Returns:
- the language used in the localization.
getAxisName
public String getAxisName()
- Overrides:
getAxisName in class ClassifyValue
getFullPath
public List<Value> getFullPath()
- Overrides:
getFullPath in class ClassifyValue
setAxisName
public void setAxisName(String axisName)
- Overrides:
setAxisName in class ClassifyValue
setFullPath
public void setFullPath(List<Value> fullPath)
- Overrides:
setFullPath in class ClassifyValue
toString
public String toString()
- Overrides:
toString in class ClassifyValue
checkValue
public void checkValue()
throws ClassifyEngineException
- Overrides:
checkValue in class Value
- Throws:
ClassifyEngineException
getAxisId
public int getAxisId()
- Overrides:
getAxisId in class Value
getPhysicalAxisId
public int getPhysicalAxisId()
- Overrides:
getPhysicalAxisId in class Value
getValue
public String getValue()
- Overrides:
getValue in class Value
setAxisId
public void setAxisId(int nGivenAxisId)
- Overrides:
setAxisId in class Value
setPhysicalAxisId
public void setPhysicalAxisId(int id)
- Overrides:
setPhysicalAxisId in class Value
setValue
public void setValue(String sGivenValue)
- Overrides:
setValue in class Value
equals
public boolean equals(Object o)
- Overrides:
equals in class ClassifyValue
hashCode
public int hashCode()
- Overrides:
hashCode in class ClassifyValue
Copyright © 2016 Silverpeas. All Rights Reserved.