/** * Create a new object property with the supplied parameters set. * * @param name the property name; may be null * @param label the human-readable property label; may be null * @param description the description for this property; may be null * @param category the category for this property; may be null * @param readOnly true if the property is read-only, or false otherwise * @param type the value class; may be null * @param allowedValues the array of allowed values, or null or empty if the values are not constrained */ public Property( String name, String label, String description, String category, boolean readOnly, Class<?> type, Object... allowedValues ) { setName(name); if (label != null) setLabel(label); if (description != null) setDescription(description); setCategory(category); setReadOnly(readOnly); setType(type); setAllowedValues(allowedValues); }
/** * Create a new object property with the supplied parameters set. * * @param name the property name; may be null * @param label the human-readable property label; may be null * @param description the description for this property; may be null * @param category the category for this property; may be null * @param readOnly true if the property is read-only, or false otherwise * @param type the value class; may be null * @param allowedValues the array of allowed values, or null or empty if the values are not constrained */ public Property( String name, String label, String description, String category, boolean readOnly, Class<?> type, Object... allowedValues ) { setName(name); if (label != null) setLabel(label); if (description != null) setDescription(description); setCategory(category); setReadOnly(readOnly); setType(type); setAllowedValues(allowedValues); }
/** * Create a new object property with the supplied parameters set. * * @param name the property name; may be null * @param label the human-readable property label; may be null * @param description the description for this property; may be null * @param category the category for this property; may be null * @param readOnly true if the property is read-only, or false otherwise * @param type the value class; may be null * @param allowedValues the array of allowed values, or null or empty if the values are not constrained */ public Property( String name, String label, String description, String category, boolean readOnly, Class<?> type, Object... allowedValues ) { setName(name); if (label != null) setLabel(label); if (description != null) setDescription(description); setCategory(category); setReadOnly(readOnly); setType(type); setAllowedValues(allowedValues); }