org.jdiameter.api.annotation
Annotation Type Child


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Child

This annotation allow describe information about child of command / group avp


Required Element Summary
 java.lang.Class<?> ref
          Return reference to child class or interface with AvpDscr annotation
 
Optional Element Summary
 int max
          Return maximum count of this child in parent avp set
 int min
          Return minimum count of this child in parent avp set
 int pos
          Return child position
 

Element Detail

ref

public abstract java.lang.Class<?> ref
Return reference to child class or interface with AvpDscr annotation

Returns:
reference to child class or interface with AvpDscr annotation

pos

public abstract int pos
Return child position

Returns:
child position
Default:
-1

min

public abstract int min
Return minimum count of this child in parent avp set

Returns:
minimum count of this child in parent avp set
Default:
0

max

public abstract int max
Return maximum count of this child in parent avp set

Returns:
maximum count of this child in parent avp set s
Default:
1


Copyright © 2010. All Rights Reserved.