@API(type=EXTENDABLE, src=PRIVATE) public class ProfileConditionInfoPO extends java.lang.Object implements PersistentObject
Constructor and Description |
---|
ProfileConditionInfoPO()
Constructor.
|
ProfileConditionInfoPO(java.lang.String attributeName,
java.lang.String attributeRenderName,
boolean allowsMultipleValues,
ProfileConditionValuePO[] allowedValues,
java.lang.String valuesSeparator,
java.lang.String documentTypePattern)
Constructor used only by default values.
|
Modifier and Type | Method and Description |
---|---|
void |
checkValid()
Check if object is valid to be used.
|
ProfileConditionInfoPO |
clone()
Forces all the persistent objects to be cloneable.
|
boolean |
containsGroup(java.lang.String attribute,
java.lang.String value)
Check if a specific group with the given attribute and value is allowed.
|
boolean |
containsValue(java.lang.String value)
Check if a specific value is allowed.
|
static ProfileConditionInfoPO |
createDefaultProfileConditionInfoPO(java.lang.String attributeName,
java.lang.String attributeRenderName,
boolean allowsMultipleValues,
java.lang.String[] allowedValues,
java.lang.String valuesSeparator,
java.lang.String documentTypePattern)
Creates a default Profile Condition Info.
|
boolean |
equals(java.lang.Object obj) |
ProfileConditionValuePO[] |
getAllowedValues() |
java.lang.String |
getAllowedValuesDescription() |
java.lang.String |
getAttributeName() |
java.lang.String |
getAttributeRenderName() |
java.lang.String |
getDocumentTypePattern() |
java.lang.String[] |
getNotPersistentFieldNames() |
java.lang.String |
getRenderValueName(java.lang.String groupAttribute,
java.lang.String value)
Get the render name for the given value.
|
java.lang.String |
getValuesSeparator() |
int |
hashCode() |
boolean |
isAllowsMultipleValues() |
void |
setAllowedValues(ProfileConditionValuePO[] allowedValues,
boolean sort)
Set the list of allowed values.
|
void |
setAllowsMultipleValues(boolean allowsMultipleValues)
true if allows or not multiple values. |
void |
setAttributeRenderName(java.lang.String attributeRenderName)
Set the attribute render name.
|
java.lang.String |
toString() |
public ProfileConditionInfoPO()
public ProfileConditionInfoPO(java.lang.String attributeName, java.lang.String attributeRenderName, boolean allowsMultipleValues, ProfileConditionValuePO[] allowedValues, java.lang.String valuesSeparator, java.lang.String documentTypePattern)
attributeName
- The conditional attribute name.attributeRenderName
- Attribute render name.allowsMultipleValues
- True
if multiple values are allowed for this attributeallowedValues
- Allowed values for this attribute.valuesSeparator
- The condition values separator.documentTypePattern
- Document type pattern. If specified, the condition will be used only for the document types
that match it.public static ProfileConditionInfoPO createDefaultProfileConditionInfoPO(java.lang.String attributeName, java.lang.String attributeRenderName, boolean allowsMultipleValues, java.lang.String[] allowedValues, java.lang.String valuesSeparator, java.lang.String documentTypePattern)
attributeName
- The conditional attribute name.attributeRenderName
- Attribute render name.allowsMultipleValues
- True
if multiple values are allowed for this attributeallowedValues
- Allowed values for this attribute.valuesSeparator
- The condition values separator.documentTypePattern
- Document type pattern. If specified, the condition will be used only for the document types
that match it.public void setAttributeRenderName(java.lang.String attributeRenderName)
attributeRenderName
- The attribute Render Name.public java.lang.String getAttributeName()
public java.lang.String getAttributeRenderName()
public boolean isAllowsMultipleValues()
true
if multiple values are allowed for this attributepublic ProfileConditionValuePO[] getAllowedValues()
public java.lang.String getValuesSeparator()
public java.lang.String getDocumentTypePattern()
public boolean containsValue(java.lang.String value)
value
- The value to be checked.True
if the value is allowedpublic boolean containsGroup(java.lang.String attribute, java.lang.String value)
attribute
- The attribute of the group to be checked.value
- The value of the group attribute to be checked.True
if the group is allowed.public java.lang.String getAllowedValuesDescription()
public void checkValid() throws InvalidPersistentObjException
PersistentObject
InvalidPersistentObjException
exception.checkValid
in interface PersistentObject
InvalidPersistentObjException
- Thrown when instance is not valid.PersistentObject.checkValid()
public java.lang.String[] getNotPersistentFieldNames()
getNotPersistentFieldNames
in interface PersistentObject
PersistentObject.getNotPersistentFieldNames()
public ProfileConditionInfoPO clone()
PersistentObject
clone
in interface PersistentObject
clone
in class java.lang.Object
Object.clone()
public void setAllowedValues(ProfileConditionValuePO[] allowedValues, boolean sort)
allowedValues
- The allowedValues to set.sort
- true
to sort the allowed values.public void setAllowsMultipleValues(boolean allowsMultipleValues)
true
if allows or not multiple values.allowsMultipleValues
- true
if allows or not multiple values.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getRenderValueName(java.lang.String groupAttribute, java.lang.String value)
groupAttribute
- The group attribute name. It can be null
if the value is simple.value
- The value to search.null
if wasn't found a render for value.© Copyright Syncro Soft SRL 2002 - 2022. All rights reserved.