|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Child
Mark a JSR-170 child node. This indicates that this item should be stored as a child node. This annotation can only be used for non-primitive data types, and automatically creates a constraint limiting the type of child nodes to that specified by the annotated method's return type. This annotation can not be used in combination with @property.
| Optional Element Summary | |
|---|---|
boolean |
allowsSameNameSiblings
Specifies whether this child node can have same-name siblings. |
java.lang.String |
defaultPrimaryType
Specifies the default primary node type that will be assigned to the child node if it is created without an explicitly specified primary node type. |
boolean |
mandatory
Specifies whether the child node is mandatory. |
java.lang.String |
name
Specifies the name of this child node for in the repository. |
java.lang.String[] |
requiredPrimaryTypes
Specifies the minimum set of primary node types that the child node must have. |
public abstract java.lang.String name
public abstract boolean mandatory
public abstract boolean allowsSameNameSiblings
public abstract java.lang.String[] requiredPrimaryTypes
public abstract java.lang.String defaultPrimaryType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||