public class PropertyDescriptorImpl extends Object implements PropertyDescriptor
property descriptor
implementation.NAME_SORTER, NO_DESCRIPTORS, NO_VALUES
Constructor and Description |
---|
PropertyDescriptorImpl(boolean mandatory,
boolean modifiable,
boolean multiple,
String name,
PropertyValueType type,
Object[] values,
KPropertyFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object[] |
getDefaultValues() |
protected KPropertyFactory |
getFactory() |
String |
getName() |
PropertyValueType |
getType() |
boolean |
isMandatory() |
boolean |
isModifiable() |
boolean |
isMultiple() |
String |
toString() |
public PropertyDescriptorImpl(boolean mandatory, boolean modifiable, boolean multiple, String name, PropertyValueType type, Object[] values, KPropertyFactory factory) throws KException
mandatory
- true
if the property is mandatorymodifiable
- true
if the property is modifiablemultiple
- true
if the property is multi-valuedname
- the property name (cannot be empty)type
- the property type (cannot be null
)values
- the default values (can be null
or empty)KException
- if an error occursprotected KPropertyFactory getFactory()
public Object[] getDefaultValues()
getDefaultValues
in interface PropertyDescriptor
PropertyDescriptor.getDefaultValues()
public String getName()
getName
in interface PropertyDescriptor
PropertyDescriptor.getName()
public PropertyValueType getType()
getType
in interface PropertyDescriptor
PropertyDescriptor.getType()
public boolean isMandatory()
isMandatory
in interface PropertyDescriptor
PropertyDescriptor.isMandatory()
public boolean isModifiable()
isModifiable
in interface PropertyDescriptor
PropertyDescriptor.isModifiable()
public boolean isMultiple()
isMultiple
in interface PropertyDescriptor
PropertyDescriptor.isMultiple()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013–2019. All rights reserved.