/** * 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); }
/** * Set the property name in camel case. The getter method is simply "get" followed by the name of the property (with the * first character of the property converted to uppercase). The setter method is "set" (or "is" for boolean properties) * followed by the name of the property (with the first character of the property converted to uppercase). * * @param name the nwe property name; may be null */ public void setName( String name ) { this.name = name; if (this.label == null) setLabel(null); }
/** * Set the property name in camel case. The getter method is simply "get" followed by the name of the property (with the * first character of the property converted to uppercase). The setter method is "set" (or "is" for boolean properties) * followed by the name of the property (with the first character of the property converted to uppercase). * * @param name the nwe property name; may be null */ public void setName( String name ) { this.name = name; if (this.label == null) setLabel(null); }
/** * Set the property name in camel case. The getter method is simply "get" followed by the name of the property (with the * first character of the property converted to uppercase). The setter method is "set" (or "is" for boolean properties) * followed by the name of the property (with the first character of the property converted to uppercase). * * @param name the nwe property name; may be null */ public void setName( String name ) { this.name = name; if (this.label == null) setLabel(null); }