com.silverpeas.pdc.web
Class LocalizedPdcAxisValue

java.lang.Object
  extended by com.silverpeas.pdc.model.PdcAxisValue
      extended by com.silverpeas.pdc.web.LocalizedPdcAxisValue
All Implemented Interfaces:
LocalizedValue, Serializable, Cloneable

public class LocalizedPdcAxisValue
extends com.silverpeas.pdc.model.PdcAxisValue
implements LocalizedValue

A decorator of a Pdc axis 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
static LocalizedPdcAxisValue decorate(com.silverpeas.pdc.model.PdcAxisValue value, String forLanguage)
           
 String getAxisId()
           
 Set<com.silverpeas.pdc.model.PdcAxisValue> getChildValues()
           
 String getId()
           
 String getLanguage()
          Gets the language in which the path of the value is localized.
 String getLocalizedPath()
          Gets the path of the value whose the terms are translated in a given language.
 String getMeaning()
           
 String getMeaningTranslatedIn(String language)
           
 com.silverpeas.pdc.model.PdcAxisValue getParentValue()
           
 String getTerm()
           
 String getTermTranslatedIn(String language)
           
 String getValuePath()
           
 boolean isBaseValue()
           
 com.stratelia.silverpeas.pdc.model.ClassifyValue toClassifyValue()
           
 String toString()
           
 
Methods inherited from class com.silverpeas.pdc.model.PdcAxisValue
aPdcAxisValue, aPdcAxisValueFromTreeNode, clone, equals, fromTreeNode, getTreeNode, getTreeNodeParents, getUsedAxis, hashCode, inAxisId, setId, withAsTreeNodeParents, withId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

decorate

public static LocalizedPdcAxisValue decorate(com.silverpeas.pdc.model.PdcAxisValue value,
                                             String forLanguage)

getLocalizedPath

public String getLocalizedPath()
Description copied from interface: LocalizedValue
Gets the path of the value whose the terms are translated in a given language.

Specified by:
getLocalizedPath in interface LocalizedValue
Returns:
the translated path to render.

getLanguage

public String getLanguage()
Description copied from interface: LocalizedValue
Gets the language in which the path of the value is localized.

Specified by:
getLanguage in interface LocalizedValue
Returns:

toString

public String toString()
Overrides:
toString in class com.silverpeas.pdc.model.PdcAxisValue

toClassifyValue

public com.stratelia.silverpeas.pdc.model.ClassifyValue toClassifyValue()
                                                                 throws com.stratelia.silverpeas.pdc.model.PdcException
Overrides:
toClassifyValue in class com.silverpeas.pdc.model.PdcAxisValue
Throws:
com.stratelia.silverpeas.pdc.model.PdcException

isBaseValue

public boolean isBaseValue()
Overrides:
isBaseValue in class com.silverpeas.pdc.model.PdcAxisValue

getValuePath

public String getValuePath()
Overrides:
getValuePath in class com.silverpeas.pdc.model.PdcAxisValue

getTermTranslatedIn

public String getTermTranslatedIn(String language)
Overrides:
getTermTranslatedIn in class com.silverpeas.pdc.model.PdcAxisValue

getTerm

public String getTerm()
Overrides:
getTerm in class com.silverpeas.pdc.model.PdcAxisValue

getParentValue

public com.silverpeas.pdc.model.PdcAxisValue getParentValue()
Overrides:
getParentValue in class com.silverpeas.pdc.model.PdcAxisValue

getMeaningTranslatedIn

public String getMeaningTranslatedIn(String language)
Overrides:
getMeaningTranslatedIn in class com.silverpeas.pdc.model.PdcAxisValue

getMeaning

public String getMeaning()
Overrides:
getMeaning in class com.silverpeas.pdc.model.PdcAxisValue

getId

public String getId()
Overrides:
getId in class com.silverpeas.pdc.model.PdcAxisValue

getChildValues

public Set<com.silverpeas.pdc.model.PdcAxisValue> getChildValues()
Overrides:
getChildValues in class com.silverpeas.pdc.model.PdcAxisValue

getAxisId

public String getAxisId()
Overrides:
getAxisId in class com.silverpeas.pdc.model.PdcAxisValue


Copyright © 2016 Silverpeas. All Rights Reserved.