Package ro.sync.ecss.conditions
Class ProfileConditionValuePO
java.lang.Object
ro.sync.ecss.conditions.ProfileConditionValuePO
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ProfileConditionValuePO>,PersistentObject
- Direct Known Subclasses:
ProfileConditionGroupPO
@API(type=EXTENDABLE,
src=PRIVATE)
public class ProfileConditionValuePO
extends Object
implements PersistentObject, Comparable<ProfileConditionValuePO>
Profile condition attribute value representation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ProfileConditionValuePO(String value, String description) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if object is valid to be used.clone()Forces all the persistent objects to be cloneable.intcompareTo(ProfileConditionValuePO other) Gets the composed value.intgetLevel()Get the level in the hierarchy of Subject Scheme values this condition is located on.String[]Get the render name for the profiling condition.getValue()Get the display label for the attribute's value.voidsetDescription(String description) voidsetLevel(int level) Set the level in the hierarchy of Subject Scheme values this condition is located on.voidsetRenderName(String renderName) Set the render name.toString()
-
Constructor Details
-
ProfileConditionValuePO
public ProfileConditionValuePO()Constructor. -
ProfileConditionValuePO
Constructor.- Parameters:
value- Condition value.description- Condition value description.
-
-
Method Details
-
getValue
- Returns:
- Returns the value.
-
getDescription
- Returns:
- Returns the description.
-
setDescription
- Parameters:
description- The description to set.
-
checkValid
Description copied from interface:PersistentObjectCheck if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjExceptionexception.- Specified by:
checkValidin interfacePersistentObject- Throws:
InvalidPersistentObjException- Thrown when instance is not valid.- See Also:
-
getNotPersistentFieldNames
- Specified by:
getNotPersistentFieldNamesin interfacePersistentObject- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
-
clone
Description copied from interface:PersistentObjectForces all the persistent objects to be cloneable.- Specified by:
clonein interfacePersistentObject- Overrides:
clonein classObject- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
- See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<ProfileConditionValuePO>- See Also:
-
toString
-
setLevel
public void setLevel(int level) Set the level in the hierarchy of Subject Scheme values this condition is located on.- Parameters:
level- the level in the hierarchy of Subject Scheme values this condition is located on.
-
getLevel
public int getLevel()Get the level in the hierarchy of Subject Scheme values this condition is located on.- Returns:
- Returns the level in the hierarchy of Subject Scheme values this condition is located on.
-
getComposeValue
Gets the composed value. If this value is part of a group, for example the value 'db1' from 'database(db1 db2)' then the composed value is 'database(db1)'.- Returns:
- The composed value.
-
getRenderName
Get the render name for the profiling condition. May benull.- Returns:
- Returns the render name.
-
setRenderName
Set the render name.- Parameters:
renderName- The render name to be set in the dialog used to edit the profile condition value.
-
getValueDisplayLabel
Get the display label for the attribute's value.- Returns:
- the display label if the render name is not null, empty otherwise.
-