|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.pdc.model.PdcAxisValue
@Entity public class PdcAxisValue
A value of one of the PdC's axis. A value belongs to an axis. An axis represents a given concept for which it defines an hierarchic tree of semantic terms belonging to the concept. A value of an axis is then the path from the axis origin down to a given node of the tree, where each node is a term refining or specifying the parent term a little more. For example, for an axis representing the concept of geography, one possible value can be "France / Rhônes-Alpes / Isère / Grenoble" where France, Rhônes-Alpes, Isère and Grenoble are each a term (thus a node) in the axis. "France" is another value, parent of the above one, and that is also a base value of the axis as it has no parent (one of the root values of the axis).
Constructor Summary | |
---|---|
protected |
PdcAxisValue()
|
Method Summary | |
---|---|
static PdcAxisValue |
aPdcAxisValue(String valueId,
String axisId)
Creates a value of a PdC's axis from the specified value information. |
static PdcAxisValue |
aPdcAxisValueFromTreeNode(TreeNode treeNode)
Creates a value of a PdC's axis from the specified tree node. |
protected PdcAxisValue |
clone()
|
boolean |
equals(Object obj)
|
protected PdcAxisValue |
fromTreeNode(TreeNode treeNode)
|
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 |
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. |
protected TreeNode |
getTreeNode()
Gets the persisted representation of this axis value. |
protected List<? extends TreeNode> |
getTreeNodeParents()
|
protected UsedAxis |
getUsedAxis()
Gets the axis to which this value belongs to and that is used to classify contents on the PdC. |
String |
getValuePath()
Gets the path of this value from the root value (that is a base value of the axis). |
int |
hashCode()
|
protected PdcAxisValue |
inAxisId(String axisId)
|
boolean |
isBaseValue()
Is this value is a base one? |
protected void |
setId(long id)
|
ClassifyValue |
toClassifyValue()
Converts this PdC axis value to a ClassifyValue instance. |
String |
toString()
|
protected PdcAxisValue |
withAsTreeNodeParents(List<? extends TreeNode> parents)
|
protected PdcAxisValue |
withId(String id)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected PdcAxisValue()
Method Detail |
---|
public static PdcAxisValue aPdcAxisValueFromTreeNode(TreeNode treeNode)
treeNode
- the current persistence representation of the axis value.
public static PdcAxisValue aPdcAxisValue(String valueId, String axisId)
valueId
- the unique identifier of the existing value.axisId
- the unique identifier of the axis the value belongs to.
public String getId()
public String getAxisId()
public Set<PdcAxisValue> getChildValues()
public PdcAxisValue getParentValue()
public String getTerm()
public String getTermTranslatedIn(String language)
language
- the language in which the term should be translated.
public boolean isBaseValue()
public String getMeaning()
public String getMeaningTranslatedIn(String language)
public String getValuePath()
protected PdcAxisValue clone()
clone
in class Object
protected UsedAxis getUsedAxis()
protected TreeNode getTreeNode()
protected void setId(long id)
protected PdcAxisValue withId(String id)
protected PdcAxisValue inAxisId(String axisId)
protected PdcAxisValue fromTreeNode(TreeNode treeNode)
protected PdcAxisValue withAsTreeNodeParents(List<? extends TreeNode> parents)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public ClassifyValue toClassifyValue() throws PdcException
PdcException
- if an error occurs while transforming this value into a ClassifyValue
instance.protected List<? extends TreeNode> getTreeNodeParents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |