public abstract class PropertyComponent extends Component implements Property
Property implementations that hold other properties (e.g. a bean object or collection).
A PropertyComponent may only hold Property children.
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
createMissingBeans |
AGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE| Constructor and Description |
|---|
PropertyComponent()
Constructs a new PropertyComponent.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyAccessor |
getAccessor() |
Class<?> |
getType() |
boolean |
isIdentifier()
Returns whether this property or any of its descendants are used to
identify a bean object.
|
boolean |
isMatchNull()
Returns whether this bean can still identify a record if null.
|
boolean |
isRequired()
Returns whether this property should always be instantiated when
Property.createValue(ParsingContext) is invoked. |
protected boolean |
isSupportedChild(Component child)
Returns whether a node is a supported child of this node.
|
void |
setAccessor(PropertyAccessor accessor) |
void |
setIdentifier(boolean identifier) |
void |
setMatchNull(boolean matchNull)
Sets whether this bean can still identify a record if null.
|
void |
setRequired(boolean required)
Sets whether this property should always be instantiated when
Property.createValue(ParsingContext) is invoked. |
void |
setType(Class<?> type) |
protected void |
toParamString(StringBuilder s)
Called by
TreeNode.toString() to append node parameters to the output. |
registerLocalsadd, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toString, updateReferencesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearValue, createValue, defines, getName, getValue, setValue, typeforEach, spliteratorpublic boolean isIdentifier()
PropertyisIdentifier in interface Propertypublic void setIdentifier(boolean identifier)
setIdentifier in interface Propertypublic PropertyAccessor getAccessor()
getAccessor in interface Propertypublic void setAccessor(PropertyAccessor accessor)
setAccessor in interface Propertypublic boolean isRequired()
Property.createValue(ParsingContext) is invoked.public void setRequired(boolean required)
Property.createValue(ParsingContext) is invoked.required - true to always instantiate this property, false otherwisepublic boolean isMatchNull()
public void setMatchNull(boolean matchNull)
matchNull - true if null allowed for record identification, false otherwiseprotected boolean isSupportedChild(Component child)
TreeNodeTreeNode.add(TreeNode).isSupportedChild in class TreeNode<Component>child - the node to testprotected void toParamString(StringBuilder s)
TreeNodeTreeNode.toString() to append node parameters to the output.toParamString in class TreeNode<Component>s - the output to append