Package com.iizix.prop.annotation
Annotation Type PropRef
@Documented @Retention(CLASS) @Target({FIELD,LOCAL_VARIABLE}) public @interface PropRef
Used to define a property reference to a class field or local variable. At compile time, the reference is checked by the PostJavaCompiler. The annotation is not used at Runtime.- Author:
- Christopher Mindus
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
ref
The Full String Reference to the Property.
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends GProp>
type
The Property Type class expected, defaultcom.iizix.prop.GProp.class
meaning no checking as all properties extends from GProp.java.lang.Class<?>
value
The Property Value class expected, default means no type validation.
type
java.lang.Class<? extends GProp> type
The Property Type class expected, defaultcom.iizix.prop.GProp.class
meaning no checking as all properties extends from GProp.The class does not need to be an exact match, it can be a subclass of the real class.
Example:
type = com.iizix.prop.PropCnr.class
, ortype = KStringProp.class
.- Returns:
- The expected property class name, including package.
- Default:
- com.iizix.prop.GProp.class
value
java.lang.Class<?> value
The Property Value class expected, default means no type validation.The class does not need to be an exact match, it can be a subclass of the real class.
Example:
value = String.class
, orvalue = java.lang.Integer.class
.- Returns:
- The expected property class name, including package.
- Default:
- java.lang.Object.class