@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 |
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 |
getValuesSeparator() |
int |
hashCode() |
boolean |
isAllowsMultipleValues() |
void |
setAllowedValues(ProfileConditionValuePO[] allowedValues,
boolean sort)
Set the list of allowed 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 java.lang.String getAllowedValuesDescription()
public void checkValid()
throws ro.sync.options.InvalidPersistentObjException
PersistentObjectInvalidPersistentObjException exception.checkValid in interface PersistentObjectInvalidPersistentObjException - Thrown when instance is not valid.PersistentObject.checkValid()public java.lang.String[] getNotPersistentFieldNames()
getNotPersistentFieldNames in interface PersistentObjectPersistentObject.getNotPersistentFieldNames()public ProfileConditionInfoPO clone()
PersistentObjectclone in interface PersistentObjectclone in class java.lang.ObjectObject.clone()public void setAllowedValues(ProfileConditionValuePO[] allowedValues, boolean sort)
allowedValues - The allowedValues to set.sort - true to sort the allowed values.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.