|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.pdc.web.PdcValueEntity
com.silverpeas.pdc.web.PdcAxisValueEntity
public class PdcAxisValueEntity
A value of a PdC's axis. A value of an axis is a term in the vocabulary of the concept represented by the axis, and it is related to the base value of the axis; It can be either a parent or a child of the axis base value. As the axis is a tree, its values can be refined by its branches. As such, the value can also be a part of an axis branch whose its level attribute indicates its position in the tree from the root.
Constructor Summary | |
---|---|
protected |
PdcAxisValueEntity()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static PdcAxisValueEntity |
fromValue(Value value,
String inLanguage)
Creates a new value of a PdC axis from the specified business PdC value and expressed in the specified language. |
int |
getClassifiedContentsCount()
Gets the count of contents that are classified with this value. |
int |
getLevel()
Gets the position level of this value in the semantic tree or 0. 0 means its level is at the axis. |
String |
getTerm()
Gets the translated term represented by this value. |
int |
hashCode()
|
boolean |
isAscendant()
Is this value is ascendant from the axis origin ? |
boolean |
isOrigin()
Is this value the origin of the axis? |
boolean |
isRootValue()
Is this value is the root one of the axis? |
protected void |
setAsAscendant()
Sets this axis value as ascendant to the axis origin value. |
protected void |
setAsOriginValue()
Sets this axis value as the origin of the axis. |
String |
toString()
|
Methods inherited from class com.silverpeas.pdc.web.PdcValueEntity |
---|
belongToATree, getAxisId, getId, getSynonyms, getTermId, getTreeId, setSynonyms, setTreeId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected PdcAxisValueEntity()
Method Detail |
---|
public static PdcAxisValueEntity fromValue(Value value, String inLanguage)
value
- the business PdC value.inLanguage
- the language of the user.
public String getTerm()
public int getLevel()
public boolean isAscendant()
public int getClassifiedContentsCount()
public boolean isRootValue()
public boolean isOrigin()
public boolean equals(Object obj)
equals
in class PdcValueEntity
public int hashCode()
hashCode
in class PdcValueEntity
public String toString()
toString
in class Object
protected void setAsOriginValue()
protected void setAsAscendant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |