Package ro.sync.ecss.conditions
Class ProfileConditionValuePO
- java.lang.Object
-
- ro.sync.ecss.conditions.ProfileConditionValuePO
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<ProfileConditionValuePO>
,PersistentObject
- Direct Known Subclasses:
ProfileConditionGroupPO
@API(type=EXTENDABLE, src=PRIVATE) public class ProfileConditionValuePO extends java.lang.Object implements PersistentObject, java.lang.Comparable<ProfileConditionValuePO>
Profile condition attribute value representation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProfileConditionValuePO()
Constructor.ProfileConditionValuePO(java.lang.String value, java.lang.String description)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValid()
Check if object is valid to be used.java.lang.Object
clone()
Forces all the persistent objects to be cloneable.int
compareTo(ProfileConditionValuePO other)
java.lang.String
getComposeValue()
Gets the composed value.java.lang.String
getDescription()
int
getLevel()
Get the level in the hierarchy of Subject Scheme values this condition is located on.java.lang.String[]
getNotPersistentFieldNames()
java.lang.String
getRenderName()
Get the render name for the profiling condition.java.lang.String
getValue()
java.lang.String
getValueDisplayLabel()
Get the display label for the attribute's value.void
setDescription(java.lang.String description)
void
setLevel(int level)
Set the level in the hierarchy of Subject Scheme values this condition is located on.void
setRenderName(java.lang.String renderName)
Set the render name.java.lang.String
toString()
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
- Returns:
- Returns the value.
-
getDescription
public java.lang.String getDescription()
- Returns:
- Returns the description.
-
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description
- The description to set.
-
checkValid
public void checkValid() throws InvalidPersistentObjException
Description copied from interface:PersistentObject
Check if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjException
exception.- Specified by:
checkValid
in interfacePersistentObject
- Throws:
InvalidPersistentObjException
- Thrown when instance is not valid.- See Also:
PersistentObject.checkValid()
-
getNotPersistentFieldNames
public java.lang.String[] getNotPersistentFieldNames()
- Specified by:
getNotPersistentFieldNames
in interfacePersistentObject
- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
PersistentObject.getNotPersistentFieldNames()
-
clone
public java.lang.Object clone()
Description copied from interface:PersistentObject
Forces all the persistent objects to be cloneable.- Specified by:
clone
in interfacePersistentObject
- Overrides:
clone
in classjava.lang.Object
- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
- See Also:
Object.clone()
-
compareTo
public int compareTo(ProfileConditionValuePO other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ProfileConditionValuePO>
- See Also:
Comparable.compareTo(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.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
public java.lang.String 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
public java.lang.String getRenderName()
Get the render name for the profiling condition. May benull
.- Returns:
- Returns the render name.
-
setRenderName
public void setRenderName(java.lang.String renderName)
Set the render name.- Parameters:
renderName
- The render name to be set in the dialog used to edit the profile condition value.
-
getValueDisplayLabel
public java.lang.String getValueDisplayLabel()
Get the display label for the attribute's value.- Returns:
- the display label if the render name is not null, empty otherwise.
-
-