|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.pdc.model.PdcPosition
@Entity public class PdcPosition
A position of a content on some axis of the classification plan (named PdC). The positions of a given content define its classification on the PdC. A position on the PdC's axis represents an atomic semantic information about its content. As such, it can be made up of one or more values of axis. As a PdC axis is defined by an hierarchic tree of terms, each of them being a value in the concept represented by the axis, a value in a position is defined by its path in the tree from the root; the root being one of the base value of the axis. For example, for a position on the axis representing the concept of geography, a possible value can be "France / Rhônes-Alpes / Isère / Grenoble" where Grenoble is the last term of the axis valuation.
Constructor Summary | |
---|---|
|
PdcPosition()
|
protected |
PdcPosition(long id)
|
Method Summary | |
---|---|
protected PdcPosition |
clone()
|
boolean |
equals(Object obj)
|
String |
getId()
|
Set<PdcAxisValue> |
getValues()
Gets the values of this position on the axis of the PdC. |
Set<PdcAxisValue> |
getValuesOfAxis(String axisId)
Gets the values of the specified axis that are present in this position. |
int |
hashCode()
|
boolean |
isEmpty()
Is this position on the PdC empty? |
ClassifyPosition |
toClassifyPosition()
Converts this position to a ClassifyPosition instance. |
String |
toString()
|
PdcPosition |
withId(String id)
Sets the specified identifier to this position. |
PdcPosition |
withValue(PdcAxisValue value)
Adds the specified value for this position. |
PdcPosition |
withValues(Collection<PdcAxisValue> values)
Adds the specified collection of values for this position. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PdcPosition()
protected PdcPosition(long id)
Method Detail |
---|
public String getId()
public PdcPosition withId(String id)
id
- the unique identifier of the position.
public boolean isEmpty()
public Set<PdcAxisValue> getValues()
public PdcPosition withValue(PdcAxisValue value)
value
- the value to add.
public PdcPosition withValues(Collection<PdcAxisValue> values)
values
- the collection of values to add.
protected PdcPosition clone()
clone
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public ClassifyPosition toClassifyPosition() throws PdcException
PdcException
- if an error occurs while transforming this position.public Set<PdcAxisValue> getValuesOfAxis(String axisId)
axisId
- the unique identifier of the axis.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |