Class XAnnotationField<T>
java.lang.Object
org.jvnet.basicjaxb_annox.model.annotation.field.XAnnotationField<T>
- Type Parameters:
T- Type of the field.
- Direct Known Subclasses:
XArrayAnnotationField,XSingleAnnotationField
Defines an annotation field.
- Author:
- Aleksei Valikov
-
Constructor Summary
ConstructorsConstructorDescriptionXAnnotationField(String name) Constructrs an annotation field with the given name. -
Method Summary
Modifier and TypeMethodDescriptionabstract <P> Paccept(XAnnotationFieldVisitor<P> visitor) Accepts the annotation visitor.protected final ObjectReturns the internal value of the field used forObject.hashCode(),Object.equals(Object)andObject.toString()operations.getName()Returns the name of the field.Returns the result value of the field.abstract Class<?>getType()Return the type of the field.abstract TgetValue()Returns the value of the field.
-
Constructor Details
-
XAnnotationField
Constructrs an annotation field with the given name.- Parameters:
name- name of the field.
-
-
Method Details
-
getName
Returns the name of the field.- Returns:
- Name of the field.
-
getValue
Returns the value of the field.- Returns:
- Value of the field.
-
getInternalValue
Returns the internal value of the field used forObject.hashCode(),Object.equals(Object)andObject.toString()operations. Defaults to the value of the field.- Returns:
- Returns the value of the field.
-
getResult
Returns the result value of the field. By default, returns the value of the field.- Returns:
- Result value of the field.
-
getType
Return the type of the field.- Returns:
- Type of the field.
-
accept
Accepts the annotation visitor.- Type Parameters:
P- Return type of the visitor.- Parameters:
visitor- visitor to accept.- Returns:
- Result of the visit.
-