|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.pdc.model.PdcAxisValue
com.silverpeas.pdc.web.LocalizedPdcAxisValue
public class LocalizedPdcAxisValue
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.
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(PdcAxisValue value,
String forLanguage)
|
String |
getAxisId()
Gets the unique identifier of the axis to which this value belongs to. |
Set<PdcAxisValue> |
getChildValues()
Gets all the values into which this one can be refined or specifying in a little more. |
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()
Gets the meaning carried by this value. |
String |
getMeaningTranslatedIn(String language)
Gets the meaning carried by this value translated in the specified language. |
PdcAxisValue |
getParentValue()
Gets the value this one refines or specifies a little more. |
String |
getTerm()
Gets the term carried by this value. |
String |
getTermTranslatedIn(String language)
Gets the term carried by this value and translated in the specified language. |
String |
getValuePath()
Gets the path of this value from the root value (that is a base value of the axis). |
boolean |
isBaseValue()
Is this value is a base one? |
ClassifyValue |
toClassifyValue()
Converts this PdC axis value to a ClassifyValue instance. |
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 |
---|
public static LocalizedPdcAxisValue decorate(PdcAxisValue value, String forLanguage)
public String getLocalizedPath()
LocalizedValue
getLocalizedPath
in interface LocalizedValue
public String getLanguage()
LocalizedValue
getLanguage
in interface LocalizedValue
public String toString()
toString
in class PdcAxisValue
public ClassifyValue toClassifyValue() throws PdcException
PdcAxisValue
toClassifyValue
in class PdcAxisValue
PdcException
- if an error occurs while transforming this value into a ClassifyValue
instance.public boolean isBaseValue()
PdcAxisValue
isBaseValue
in class PdcAxisValue
public String getValuePath()
PdcAxisValue
getValuePath
in class PdcAxisValue
public String getTermTranslatedIn(String language)
PdcAxisValue
getTermTranslatedIn
in class PdcAxisValue
language
- the language in which the term should be translated.
public String getTerm()
PdcAxisValue
getTerm
in class PdcAxisValue
public PdcAxisValue getParentValue()
PdcAxisValue
getParentValue
in class PdcAxisValue
public String getMeaningTranslatedIn(String language)
PdcAxisValue
getMeaningTranslatedIn
in class PdcAxisValue
public String getMeaning()
PdcAxisValue
getMeaning
in class PdcAxisValue
public String getId()
getId
in class PdcAxisValue
public Set<PdcAxisValue> getChildValues()
PdcAxisValue
getChildValues
in class PdcAxisValue
public String getAxisId()
PdcAxisValue
getAxisId
in class PdcAxisValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |