|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.pdc.web.PdcAxis
public class PdcAxis
An axis of the classification plan (named PdC). A PdC axis is defined by an identifier and it is made up of a set of values. An axis in the PdC generally defines a concept (a meaning) or a categorization of contents in Silverpeas. An axis of the PdC is a tree whose the leaves are the values. The axis can have several branches, each of them representing then an hierarchic semantic tree carrying a refinement of a meaning (of a value). For example, the values in the concept 'geography' can be a tree in which each geographic area are divided into countries -> regions or states -> departments or regions -> towns.
Field Summary | |
---|---|
static int |
PRIMARY_AXIS
|
static int |
SECONDARY_AXIS
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static PdcAxis |
fromTheAxis(Axis axis,
String inLanguage,
UserThesaurusHolder withThesaurus)
Creates a PdC axis from the specified configured axis for a specific component instance and in which the terms are expressed in the specified language and whose synonyms are set with the specified user thesaurus. |
static PdcAxis |
fromTheUsedAxis(UsedAxis axis,
String inLanguage,
UserThesaurusHolder withThesaurus)
Creates a PdC axis from the specified configured axis for a specific component instance and in which the terms are expressed in the specified language and whose synonyms are set with the specified user thesaurus. |
int |
getId()
Gets the unique identifier of this axis in the PdC. |
String |
getInvariantValue()
Gets the value in the axis that is invariant. |
String |
getName()
Gets the name of this axis. |
String |
getOriginValue()
Gets the value that is set as the origin in this axis. |
int |
getType()
Gets the type of this axis. |
List<PdcAxisValueEntity> |
getValues()
Gets the values that made up this axis. |
int |
hashCode()
|
boolean |
isInvariant()
Is this axis is invariant in the classification on the PdC. |
boolean |
isMandatory()
Is this axis is mandatory in the classification on the PdC. |
PdcAxis |
ofType(int axisType)
Sets the type of the axis. |
String |
toString()
|
PdcAxis |
withAsPdcAxisValues(List<PdcAxisValueEntity> values,
String originValueId)
Adds the specified values into this axis and sets the value used as origin in this axis. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PRIMARY_AXIS
public static final int SECONDARY_AXIS
Method Detail |
---|
public static PdcAxis fromTheUsedAxis(UsedAxis axis, String inLanguage, UserThesaurusHolder withThesaurus) throws ThesaurusException
axis
- an axis of the PdC potentially configured for a given Silverpeas component
instance.inLanguage
- the language to use to translate the terms of the axis.withThesaurus
- the thesaurus to use to set the synonyms of the axis values. Null if no
thesaurus are available or if no synonyms require to be set.
ThesaurusException
- if an error occurs while using the thesaurus when setting up the PdC
axis.public static PdcAxis fromTheAxis(Axis axis, String inLanguage, UserThesaurusHolder withThesaurus) throws ThesaurusException
axis
- an axis of the PdC potentially configured for a given Silverpeas component
instance.inLanguage
- the language to use to translate the terms of the axis.withThesaurus
- the thesaurus to use to set the synonyms of the axis values. Null if no
thesaurus are available or if no synonyms require to be set.
ThesaurusException
- if an error occurs while using the thesaurus when setting up the PdC
axis.public int getId()
public boolean isMandatory()
public boolean isInvariant()
public String getName()
public String getInvariantValue()
public String getOriginValue()
public int getType()
public List<PdcAxisValueEntity> getValues()
public PdcAxis withAsPdcAxisValues(List<PdcAxisValueEntity> values, String originValueId)
originValueId
- the identifier of the origin value.values
- the PdC values to set.
public PdcAxis ofType(int axisType)
axisType
- the type of the axis. It accepts a value among PRIMARY_AXIS and SECONDARY_AXIS.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |