|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Property
Mark a getter as JCR property. The return type of the method is used to determine the datatype of this property in the repository. If the return type is an array, then the property will automatically be marked as multiple in the repository. Non-primitive types (e.g. classes) are mapped to JCR references and a constraint is created to automatically limit the target node type to that specified by the annotated method's return type. This annotation can not be used in combination with @child. See JSR-170 specification section 4.7.
| Optional Element Summary | |
|---|---|
java.lang.String[] |
constraints
Add constraints for this item. |
boolean |
mandatory
Specifies whether the property is mandatory. |
boolean |
multiple
Specifies whether the property can have more than one value. |
java.lang.String |
name
Specifies the name of this property for in the repository. |
int |
type
Specifies the JCR-170 property type to use. |
public abstract java.lang.String name
public abstract int type
public abstract boolean mandatory
public abstract boolean multiple
public abstract java.lang.String[] constraints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||