Package org.apache.juneau.annotation
Annotation Interface ParentProperty
@Target({METHOD,FIELD,TYPE})
@Retention(RUNTIME)
@Inherited
@Repeatable(Array.class)
@ContextApply(Applier.class)
public @interface ParentProperty
Identifies a setter as a method for adding a parent reference to a child object.
 
Can be used in the following locations:
- Bean getter/setter/field.
- @Rest -annotated classes and- @RestOp -annotated methods when an- on()value is specified.
Used by the parsers to add references to parent objects in child objects.
Notes:
- The annotated field or method does not need to be public.
See Also:
- 
Element Details- 
descriptionOptional description for the exposed API.- Returns:
- The annotation value.
- Since:
- 9.2.0
 - Default:
- {}
 
- 
onDynamically apply this annotation to the specified methods/fields.Used in conjunction with BeanContext.Builder.applyAnnotations(Class...)to dynamically apply an annotation to an existing method/field. It is ignored when the annotation is applied directly to methods/fields.Valid patterns:- Methods:
      - Fully qualified with args:
            - "com.foo.MyClass.myMethod(String,int)" 
- "com.foo.MyClass.myMethod(java.lang.String,int)" 
- "com.foo.MyClass.myMethod()" 
 
- Fully qualified:
            - "com.foo.MyClass.myMethod" 
 
- Simple with args:
            - "MyClass.myMethod(String,int)" 
- "MyClass.myMethod(java.lang.String,int)" 
- "MyClass.myMethod()" 
 
- Simple:
            - "MyClass.myMethod" 
 
- Simple inner class:
            - "MyClass$Inner1$Inner2.myMethod" 
- "Inner1$Inner2.myMethod" 
- "Inner2.myMethod" 
 
 
- Fully qualified with args:
            
- Fields:
      - Fully qualified:
            - "com.foo.MyClass.myField" 
 
- Simple:
            - "MyClass.myField" 
 
- Simple inner class:
            - "MyClass$Inner1$Inner2.myField" 
- "Inner1$Inner2.myField" 
- "Inner2.myField" 
 
 
- Fully qualified:
            
- A comma-delimited list of anything on this list.
 See Also:- Returns:
- The annotation value.
 - Default:
- {}
 
- Methods:
      
 
-