Class XArrayAnnotationField<T>
- java.lang.Object
-
- org.jvnet.jaxb.annox.model.annotation.field.XAnnotationField<T[]>
-
- org.jvnet.jaxb.annox.model.annotation.field.XArrayAnnotationField<T>
-
public class XArrayAnnotationField<T> extends XAnnotationField<T[]>
-
-
Constructor Summary
Constructors Constructor Description XArrayAnnotationField(String name, Class<?> type, XAnnotationValue<T>... values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P> Paccept(XAnnotationFieldVisitor<P> visitor)Accepts the annotation visitor.booleanequals(Object obj)XAnnotationValue<T>[]getAnnotationValues()ObjectgetResult()Returns the result value of the field.Class<?>getType()Return the type of the field.T[]getValue()Returns the value of the field.inthashCode()StringtoString()-
Methods inherited from class org.jvnet.jaxb.annox.model.annotation.field.XAnnotationField
getInternalValue, getName
-
-
-
-
Constructor Detail
-
XArrayAnnotationField
public XArrayAnnotationField(String name, Class<?> type, XAnnotationValue<T>... values)
-
-
Method Detail
-
getType
public Class<?> getType()
Description copied from class:XAnnotationFieldReturn the type of the field.- Specified by:
getTypein classXAnnotationField<T[]>- Returns:
- Type of the field.
-
getAnnotationValues
public XAnnotationValue<T>[] getAnnotationValues()
-
getValue
public T[] getValue()
Description copied from class:XAnnotationFieldReturns the value of the field.- Specified by:
getValuein classXAnnotationField<T[]>- Returns:
- Value of the field.
-
getResult
public Object getResult()
Description copied from class:XAnnotationFieldReturns the result value of the field. By default, returns the value of the field.- Overrides:
getResultin classXAnnotationField<T[]>- Returns:
- Result value of the field.
-
accept
public <P> P accept(XAnnotationFieldVisitor<P> visitor)
Description copied from class:XAnnotationFieldAccepts the annotation visitor.- Specified by:
acceptin classXAnnotationField<T[]>- Type Parameters:
P- Return type of the visitor.- Parameters:
visitor- visitor to accept.- Returns:
- Result of the visit.
-
-