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. |
registerLocals
add, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toString, updateReferences
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearValue, createValue, defines, getName, getValue, setValue, type
forEach, spliterator
public boolean isIdentifier()
Property
isIdentifier
in interface Property
public void setIdentifier(boolean identifier)
setIdentifier
in interface Property
public PropertyAccessor getAccessor()
getAccessor
in interface Property
public void setAccessor(PropertyAccessor accessor)
setAccessor
in interface Property
public 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)
TreeNode
TreeNode.add(TreeNode)
.isSupportedChild
in class TreeNode<Component>
child
- the node to testprotected void toParamString(StringBuilder s)
TreeNode
TreeNode.toString()
to append node parameters to the output.toParamString
in class TreeNode<Component>
s
- the output to append