Class XSingleAnnotationField<T>
- java.lang.Object
-
- org.jvnet.jaxb.annox.model.annotation.field.XAnnotationField<T>
-
- org.jvnet.jaxb.annox.model.annotation.field.XSingleAnnotationField<T>
-
public class XSingleAnnotationField<T> extends XAnnotationField<T>
-
-
Constructor Summary
Constructors Constructor Description XSingleAnnotationField(String name, Class<?> type, XAnnotationValue<T> value)
-
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>getAnnotationValue()Class<?>getType()Return the type of the field.TgetValue()Returns the value of the field.inthashCode()StringtoString()-
Methods inherited from class org.jvnet.jaxb.annox.model.annotation.field.XAnnotationField
getInternalValue, getName, getResult
-
-
-
-
Constructor Detail
-
XSingleAnnotationField
public XSingleAnnotationField(String name, Class<?> type, XAnnotationValue<T> value)
-
-
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.
-
getValue
public T getValue()
Description copied from class:XAnnotationFieldReturns the value of the field.- Specified by:
getValuein classXAnnotationField<T>- Returns:
- Value of the field.
-
getAnnotationValue
public XAnnotationValue<T> getAnnotationValue()
-
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.
-
-