public class PropertyItemDescriptor extends java.lang.Object implements IPropertyItemDescriptor
DATATYPE_BOOLEAN, DATATYPE_NUMBER, DATATYPE_STRING
Constructor and Description |
---|
PropertyItemDescriptor(int sortID,
java.lang.String propertyKey,
java.lang.String propertyName,
java.lang.String propertyDescription,
boolean mandatory,
boolean mustBeEncrypted) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IPropertyItemDescriptor object) |
int |
getDataType()
Returns the data type of the value to be set.
|
java.lang.String |
getDefaultValue()
Defines a default value if there is one.
|
INameValueItem[] |
getPossibleValues()
Returns the possible values for the property.
|
java.lang.String |
getPossibleValuesMethod()
Returns the method of the IExternalManager class that provides the possible values for the property.
|
java.lang.String |
getPropertyDescription()
Describes the property.
|
java.lang.String |
getPropertyKey()
Declares the property key.
|
java.lang.String |
getPropertyName()
Name of the property
|
int |
getSortID()
Returns the identifier that will be used for sorting.
|
boolean |
isMandatory()
Declares if the value must be provided during the configuration.
|
boolean |
mustBeEncrypted()
Declares if the value must be encrypted before storing it.
|
void |
setDataType(int dataType) |
void |
setDefaultValue(java.lang.String defaultValue) |
void |
setPossibleValues(INameValueItem[] possibleValues)
Sets the possible values for the property
|
void |
setPossibleValuesMethod(java.lang.String possibleValuesMethod) |
public PropertyItemDescriptor(int sortID, java.lang.String propertyKey, java.lang.String propertyName, java.lang.String propertyDescription, boolean mandatory, boolean mustBeEncrypted)
public int getSortID()
IPropertyItemDescriptor
getSortID
in interface IPropertyItemDescriptor
public java.lang.String getPropertyKey()
IPropertyItemDescriptor
getPropertyKey
in interface IPropertyItemDescriptor
public java.lang.String getPropertyName()
IPropertyItemDescriptor
getPropertyName
in interface IPropertyItemDescriptor
public java.lang.String getPropertyDescription()
IPropertyItemDescriptor
getPropertyDescription
in interface IPropertyItemDescriptor
public java.lang.String getDefaultValue()
IPropertyItemDescriptor
getDefaultValue
in interface IPropertyItemDescriptor
public void setDefaultValue(java.lang.String defaultValue)
public boolean isMandatory()
IPropertyItemDescriptor
isMandatory
in interface IPropertyItemDescriptor
public boolean mustBeEncrypted()
IPropertyItemDescriptor
mustBeEncrypted
in interface IPropertyItemDescriptor
public int getDataType()
IPropertyItemDescriptor
getDataType
in interface IPropertyItemDescriptor
public void setDataType(int dataType)
public INameValueItem[] getPossibleValues()
IPropertyItemDescriptor
getPossibleValues
in interface IPropertyItemDescriptor
public void setPossibleValues(INameValueItem[] possibleValues)
IPropertyItemDescriptor
setPossibleValues
in interface IPropertyItemDescriptor
possibleValues
- Sets the possible valuespublic java.lang.String getPossibleValuesMethod()
IPropertyItemDescriptor
getPossibleValuesMethod
in interface IPropertyItemDescriptor
public void setPossibleValuesMethod(java.lang.String possibleValuesMethod)
public int compareTo(IPropertyItemDescriptor object)
compareTo
in interface java.lang.Comparable<IPropertyItemDescriptor>