org.jvnet.annox.model
Class XAnnotated

java.lang.Object
  extended by org.jvnet.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
XAnnotated(XAnnotation[] xannotations)
          Constructs an annotated item.
 
Method Summary
 boolean equals(Object obj)
           
 Annotation[] getAnnotations()
          Returns annotations for this annotated item.
 XAnnotation[] getXAnnotations()
          Returns the annotations associated with the item.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAnnotated

public XAnnotated(XAnnotation[] xannotations)
Constructs an annotated item.

Parameters:
xannotations - item annotations, may be null
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.

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


Copyright © 2006-2011 Highsource. All Rights Reserved.