Package org.jvnet.basicjaxb_annox.model
Class XAnnotation<A extends Annotation>
java.lang.Object
org.jvnet.basicjaxb_annox.model.XAnnotation<A>
Defines an xannotation.
- Author:
- Aleksei Valikov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXAnnotation(Class<A> annotationClass, XAnnotationField<?>... fields) Constructs an xannotation for the given annotation class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<? extends Annotation>Returns the annotation class.List<XAnnotationField<?>>Returns the list of the fields.Returns the map of the fields.Returns the instance of the annotation for this xannotation.inthashCode()toString()
-
Field Details
-
EMPTY_ARRAY
Empty array of annotations.
-
-
Constructor Details
-
XAnnotation
public XAnnotation(Class<A> annotationClass, XAnnotationField<?>... fields) throws IllegalArgumentException Constructs an xannotation for the given annotation class.- Parameters:
annotationClass- annotation class, must not benullfields- fields of the xannotation.- Throws:
IllegalArgumentException- If annotation class isnull, some required annotation fields are missing or some annotation fields have mismatching types.
-
-
Method Details
-
getAnnotationClass
Returns the annotation class.- Returns:
- annotation class.
-
getAnnotationClassName
-
getFieldsList
Returns the list of the fields.- Returns:
- list of the fields.
-
getFieldsMap
Returns the map of the fields.- Returns:
- map of the fields.
-
hashCode
public int hashCode() -
equals
-
toString
-
getResult
Returns the instance of the annotation for this xannotation.- Returns:
- Instance of the annotation for this xannotation.
-