Package org.jvnet.jaxb.annox.model
Class XAnnotated
- java.lang.Object
-
- org.jvnet.jaxb.annox.model.XAnnotated
-
- Direct Known Subclasses:
XAnnotatedElement,XParameter
public abstract class XAnnotated extends Object
Defines an item with an array of the associated annotations.- Author:
- Aleksei Valikov
-
-
Constructor Summary
Constructors Constructor Description XAnnotated(XAnnotation<?>[] xannotations)Constructs an annotated item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Annotation[]getAnnotations()Returns annotations for this annotated item.XAnnotation<?>[]getXAnnotations()Returns the annotations associated with the item.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
XAnnotated
public XAnnotated(XAnnotation<?>[] xannotations)
Constructs an annotated item.- Parameters:
xannotations- item annotations, may benull
-
-
Method Detail
-
getXAnnotations
public XAnnotation<?>[] getXAnnotations()
Returns the annotations associated with the item.- Returns:
- Item annotations.
-
getAnnotations
public Annotation[] getAnnotations()
Returns annotations for this annotated item.- Returns:
- Array of annotations.
-
-