| java.lang.Object org.netbeans.modules.vmd.api.model.PropertyDescriptor
PropertyDescriptor | final public class PropertyDescriptor (Code) | | This immutable class represents a property descriptor used in component descriptor.
This class holds information about name, type id, default value or factory for default values, serializable and readonly ability.
author: David Kaspar |
Inner Class :public interface DefaultValueFactory | |
Constructor Summary | |
public | PropertyDescriptor(String name, TypeID type, PropertyValue defaultValue, boolean allowNull, boolean allowUserCode, Versionable versionable) Creates a new property descriptor using name, type id, and default value. | public | PropertyDescriptor(String name, TypeID type, PropertyValue defaultValue, boolean allowNull, boolean allowUserCode, Versionable versionable, boolean useForSerialization, boolean readonly) Creates a new property descriptor using name, type id, default value, serializable and read-only ability. | public | PropertyDescriptor(String name, TypeID type, DefaultValueFactory defaultValueFactory, boolean allowNull, boolean allowUserCode, Versionable versionable, boolean useForSerialization, boolean readonly) Creates a new property descriptor using name, type id, factory for default values, serializable and read-only ability. |
PropertyDescriptor | public PropertyDescriptor(String name, TypeID type, PropertyValue defaultValue, boolean allowNull, boolean allowUserCode, Versionable versionable)(Code) | | Creates a new property descriptor using name, type id, and default value. It will be serializable and read-write by default.
Parameters: name - the property name Parameters: type - the property type id Parameters: defaultValue - the default property value Parameters: allowNull - the property allow null values Parameters: allowUserCode - the property allow user code values Parameters: versionable - the property version |
PropertyDescriptor | public PropertyDescriptor(String name, TypeID type, PropertyValue defaultValue, boolean allowNull, boolean allowUserCode, Versionable versionable, boolean useForSerialization, boolean readonly)(Code) | | Creates a new property descriptor using name, type id, default value, serializable and read-only ability.
Parameters: name - the property name Parameters: type - the property type id Parameters: defaultValue - the default property value Parameters: allowNull - the property allow null values Parameters: allowUserCode - the property allow user code values Parameters: versionable - the property version Parameters: useForSerialization - true if serializable Parameters: readonly - true if the property is read-only |
PropertyDescriptor | public PropertyDescriptor(String name, TypeID type, DefaultValueFactory defaultValueFactory, boolean allowNull, boolean allowUserCode, Versionable versionable, boolean useForSerialization, boolean readonly)(Code) | | Creates a new property descriptor using name, type id, factory for default values, serializable and read-only ability.
Parameters: name - the property name Parameters: type - the property type id Parameters: defaultValueFactory - the factory for default property values Parameters: allowNull - the property allow null values Parameters: allowUserCode - the property allow user code values Parameters: versionable - the property version Parameters: useForSerialization - true if serializable Parameters: readonly - true if the property is read-only |
createDefaultValue | public PropertyValue createDefaultValue(DesignComponent component, String propertyName)(Code) | | Creates a new default property value.
Parameters: component - the component where the default value should be stored Parameters: propertyName - the property name of a property where the default value should be stored the property value |
getDefaultValue | public PropertyValue getDefaultValue()(Code) | | Returns a default value.
the default value, null if a default-value-factory is used |
getName | public String getName()(Code) | | Returns a property name.
the property name |
getType | public TypeID getType()(Code) | | Returns a property type id.
the property type id |
getVersionable | public Versionable getVersionable()(Code) | | Returns a property version.
the property version |
isAllowNull | public boolean isAllowNull()(Code) | | Returns whether the property allows null values.
true, if allows null |
isAllowUserCode | public boolean isAllowUserCode()(Code) | | Returns whether the property allows user code values.
true, if allows null |
isReadOnly | public boolean isReadOnly()(Code) | | Returns a state of read-only ability.
true if a property is read-only, false if a property is read-write |
isUseForSerialization | public boolean isUseForSerialization()(Code) | | Returns a state of serialization ability.
true if a property is serializable |
|
|