public class SingleSelectionPropertyDescriptor extends PropertyDescriptor implements SelectionPropertyDescriptor
Constructor and Description |
---|
SingleSelectionPropertyDescriptor(SingleSelectionPropertyDescriptor pOriginalDescriptor,
List<com.escenic.module.Module> pModules) |
SingleSelectionPropertyDescriptor(SingleSelectionPropertyDescriptor pOriginalDescriptor,
String pLabel,
String pDescription) |
SingleSelectionPropertyDescriptor(SingleSelectionPropertyDescriptor pOriginalDescriptor,
String pLabel,
String pDescription,
List<? extends EnumerationOption> pOptions) |
SingleSelectionPropertyDescriptor(String pName,
Class<?> pType,
String pMimetype,
Object pDefaultValue,
Collection<? extends Constraint> pConstraints,
List<? extends EnumerationOption> pOptions) |
SingleSelectionPropertyDescriptor(String pName,
Class<?> pType,
String pLabel,
String pDescription,
String pMimetype,
Object pDefaultValue,
boolean pReadonly,
Collection<? extends Constraint> pConstraints,
List<com.escenic.module.Module> pModules,
List<? extends EnumerationOption> pOptions) |
SingleSelectionPropertyDescriptor(String pName,
Class<?> pType,
String pLabel,
String pDescription,
String pMimetype,
Object pDefaultValue,
Collection<? extends Constraint> pConstraints,
List<com.escenic.module.Module> pModules,
List<? extends EnumerationOption> pOptions) |
Modifier and Type | Method and Description |
---|---|
List<EnumerationOption> |
getOptions() |
boolean |
isValid(Object pValue)
Validate that this value is
assignable and valid according to the
constraints (business rules) of this property. |
protected boolean |
isValidOption(Object pValue) |
equals, getConstraints, getDefaultValue, getDescription, getLabel, getMimetype, getModule, getModule, getModules, getModules, getModules, getModules, getName, getType, hashCode, hasModules, isAssignable, isNullable, isReadOnly, toString
public SingleSelectionPropertyDescriptor(String pName, Class<?> pType, String pMimetype, Object pDefaultValue, Collection<? extends Constraint> pConstraints, List<? extends EnumerationOption> pOptions)
public SingleSelectionPropertyDescriptor(SingleSelectionPropertyDescriptor pOriginalDescriptor, String pLabel, String pDescription)
public SingleSelectionPropertyDescriptor(SingleSelectionPropertyDescriptor pOriginalDescriptor, List<com.escenic.module.Module> pModules)
public SingleSelectionPropertyDescriptor(SingleSelectionPropertyDescriptor pOriginalDescriptor, String pLabel, String pDescription, List<? extends EnumerationOption> pOptions)
public SingleSelectionPropertyDescriptor(String pName, Class<?> pType, String pLabel, String pDescription, String pMimetype, Object pDefaultValue, Collection<? extends Constraint> pConstraints, List<com.escenic.module.Module> pModules, List<? extends EnumerationOption> pOptions)
public SingleSelectionPropertyDescriptor(String pName, Class<?> pType, String pLabel, String pDescription, String pMimetype, Object pDefaultValue, boolean pReadonly, Collection<? extends Constraint> pConstraints, List<com.escenic.module.Module> pModules, List<? extends EnumerationOption> pOptions)
public List<EnumerationOption> getOptions()
getOptions
in interface SelectionPropertyDescriptor
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.protected boolean isValidOption(Object pValue)
© 1998- 2021 Escenic AS