com.silverpeas.pdc.web
Class LocalizedClassifyValue

java.lang.Object
  extended by com.stratelia.silverpeas.classifyEngine.Value
      extended by com.stratelia.silverpeas.pdc.model.ClassifyValue
          extended by 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

Field Summary
 
Fields inherited from interface com.silverpeas.pdc.web.LocalizedValue
MAX_NUMBER_OF_RENDERED_PATH_NODE, NUMBER_OF_RENDERED_PATH_NODE_IN_TRUNCATION, SEPARATOR_PATH, TRUNCATION_SEPARATOR
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 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.