public class PropertyDescription extends AbstractDescription
PropertyDescription describes a property
of a component.
In general all fields should be set by an annocation scanner,
no default values should be assumed for these fields:
| Modifier and Type | Field and Description |
|---|---|
private int |
cardinality |
private java.lang.String |
description |
private java.lang.Boolean |
isPrivate |
private java.lang.String |
label |
private java.lang.String[] |
multiValue |
private java.lang.String |
name |
private java.lang.String[] |
options |
private PropertyType |
type |
private PropertyUnbounded |
unbounded |
private java.lang.String |
value |
annotation| Constructor and Description |
|---|
PropertyDescription(ScannedAnnotation annotation) |
| Modifier and Type | Method and Description |
|---|---|
AbstractDescription |
clone() |
int |
getCardinality() |
java.lang.String |
getDescription() |
java.lang.String |
getLabel() |
java.lang.String[] |
getMultiValue() |
java.lang.String |
getName() |
java.lang.String[] |
getOptions() |
PropertyType |
getType() |
PropertyUnbounded |
getUnbounded() |
java.lang.String |
getValue() |
java.lang.Boolean |
isPrivate() |
void |
setCardinality(int cardinality) |
void |
setDescription(java.lang.String description) |
void |
setLabel(java.lang.String label) |
void |
setMultiValue(java.lang.String[] values) |
void |
setName(java.lang.String name) |
void |
setOptions(java.lang.String[] values) |
void |
setPrivate(java.lang.Boolean isPrivate) |
void |
setType(PropertyType type) |
void |
setUnbounded(PropertyUnbounded unbounded) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
getAnnotation, getIdentifier, getSource, setSourceprivate java.lang.String name
private java.lang.String value
private PropertyType type
private java.lang.String[] multiValue
private PropertyUnbounded unbounded
private int cardinality
private java.lang.Boolean isPrivate
private java.lang.String label
private java.lang.String description
private java.lang.String[] options
public PropertyDescription(ScannedAnnotation annotation)
public PropertyUnbounded getUnbounded()
public void setUnbounded(PropertyUnbounded unbounded)
public java.lang.String[] getOptions()
public void setOptions(java.lang.String[] values)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public PropertyType getType()
public void setType(PropertyType type)
public java.lang.String[] getMultiValue()
public void setMultiValue(java.lang.String[] values)
public java.lang.Boolean isPrivate()
public void setPrivate(java.lang.Boolean isPrivate)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public int getCardinality()
public void setCardinality(int cardinality)
public java.lang.String toString()
toString in class java.lang.Objectpublic AbstractDescription clone()
clone in class AbstractDescription