public class MultipleSelectionPropertyDescriptor extends PropertyDescriptor implements SelectionPropertyDescriptor
Constructor and Description |
---|
MultipleSelectionPropertyDescriptor(MultipleSelectionPropertyDescriptor pOriginalDescriptor,
String pLabel,
String pDescription) |
MultipleSelectionPropertyDescriptor(MultipleSelectionPropertyDescriptor pOriginalDescriptor,
String pLabel,
String pDescription,
List<? extends EnumerationOption> pOptions) |
MultipleSelectionPropertyDescriptor(String pName,
Class<?> pType,
String pMimetype,
List pDefaultValue,
Collection<? extends Constraint> pConstraints,
List<? extends EnumerationOption> pOptions) |
MultipleSelectionPropertyDescriptor(String pName,
Class<?> pType,
String pLabel,
String pDescription,
String pMimetype,
List<?> pDefaultValue,
boolean pReadOnly,
Collection<? extends Constraint> pConstraints,
List<com.escenic.module.Module> pModules,
List<? extends EnumerationOption> pOptions) |
MultipleSelectionPropertyDescriptor(String pName,
Class<?> pType,
String pLabel,
String pDescription,
String pMimetype,
List<?> pDefaultValue,
Collection<? extends Constraint> pConstraints,
List<com.escenic.module.Module> pModules,
List<? extends EnumerationOption> pOptions) |
Modifier and Type | Method and Description |
---|---|
List |
getDefaultValue() |
List<EnumerationOption> |
getOptions() |
boolean |
isAssignable(Object pValue)
Validate that the type of the parameter is assignable to this property.
|
boolean |
isValid(Object pValue)
Validate that this value is
assignable and valid according to the
constraints (business rules) of this property. |
equals, getConstraints, getDescription, getLabel, getMimetype, getModule, getModule, getModules, getModules, getModules, getModules, getName, getType, hashCode, hasModules, isNullable, isReadOnly, toString
public MultipleSelectionPropertyDescriptor(String pName, Class<?> pType, String pMimetype, List pDefaultValue, Collection<? extends Constraint> pConstraints, List<? extends EnumerationOption> pOptions)
public MultipleSelectionPropertyDescriptor(MultipleSelectionPropertyDescriptor pOriginalDescriptor, String pLabel, String pDescription)
public MultipleSelectionPropertyDescriptor(MultipleSelectionPropertyDescriptor pOriginalDescriptor, String pLabel, String pDescription, List<? extends EnumerationOption> pOptions)
public MultipleSelectionPropertyDescriptor(String pName, Class<?> pType, String pLabel, String pDescription, String pMimetype, List<?> pDefaultValue, Collection<? extends Constraint> pConstraints, List<com.escenic.module.Module> pModules, List<? extends EnumerationOption> pOptions)
public MultipleSelectionPropertyDescriptor(String pName, Class<?> pType, String pLabel, String pDescription, String pMimetype, List<?> pDefaultValue, boolean pReadOnly, Collection<? extends Constraint> pConstraints, List<com.escenic.module.Module> pModules, List<? extends EnumerationOption> pOptions)
public List getDefaultValue()
getDefaultValue
in class PropertyDescriptor
public boolean isAssignable(Object pValue)
PropertyDescriptor
null
values are always allowed.
To validate the business rules for this property PropertyDescriptor.isValid(Object)
.isAssignable
in class PropertyDescriptor
pValue
- value to test assignability of.public boolean isValid(Object pValue)
PropertyDescriptor
assignable
and valid according to the
constraints
(business rules) of this property.
TODO: This methods should return ValidationResultisValid
in class PropertyDescriptor
pValue
- value to test.public List<EnumerationOption> getOptions()
getOptions
in interface SelectionPropertyDescriptor
© 1998- 2018 Stibo DX