Class XAnnotated

java.lang.Object
org.jvnet.basicjaxb_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 Details

    • XAnnotated

      public XAnnotated(XAnnotation<?>[] xannotations)
      Constructs an annotated item.
      Parameters:
      xannotations - item annotations, may be null
  • Method Details

    • 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.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object