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 com.stratelia.silverpeas.pdc.model.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(com.stratelia.silverpeas.pdc.model.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 com.stratelia.silverpeas.pdc.model.ClassifyValue
getFullPath
public List<com.stratelia.silverpeas.pdc.model.Value> getFullPath()
- Overrides:
getFullPath
in class com.stratelia.silverpeas.pdc.model.ClassifyValue
setAxisName
public void setAxisName(String axisName)
- Overrides:
setAxisName
in class com.stratelia.silverpeas.pdc.model.ClassifyValue
setFullPath
public void setFullPath(List<com.stratelia.silverpeas.pdc.model.Value> fullPath)
- Overrides:
setFullPath
in class com.stratelia.silverpeas.pdc.model.ClassifyValue
toString
public String toString()
- Overrides:
toString
in class com.stratelia.silverpeas.pdc.model.ClassifyValue
checkValue
public void checkValue()
throws com.stratelia.silverpeas.classifyEngine.ClassifyEngineException
- Overrides:
checkValue
in class com.stratelia.silverpeas.classifyEngine.Value
- Throws:
com.stratelia.silverpeas.classifyEngine.ClassifyEngineException
getAxisId
public int getAxisId()
- Overrides:
getAxisId
in class com.stratelia.silverpeas.classifyEngine.Value
getPhysicalAxisId
public int getPhysicalAxisId()
- Overrides:
getPhysicalAxisId
in class com.stratelia.silverpeas.classifyEngine.Value
getValue
public String getValue()
- Overrides:
getValue
in class com.stratelia.silverpeas.classifyEngine.Value
setAxisId
public void setAxisId(int nGivenAxisId)
- Overrides:
setAxisId
in class com.stratelia.silverpeas.classifyEngine.Value
setPhysicalAxisId
public void setPhysicalAxisId(int id)
- Overrides:
setPhysicalAxisId
in class com.stratelia.silverpeas.classifyEngine.Value
setValue
public void setValue(String sGivenValue)
- Overrides:
setValue
in class com.stratelia.silverpeas.classifyEngine.Value
equals
public boolean equals(Object o)
- Overrides:
equals
in class com.stratelia.silverpeas.pdc.model.ClassifyValue
hashCode
public int hashCode()
- Overrides:
hashCode
in class com.stratelia.silverpeas.pdc.model.ClassifyValue
Copyright © 2016 Silverpeas. All Rights Reserved.