org.ow2.util.scan.api.metadata.structures
Class JAnnotation

java.lang.Object
  extended by org.ow2.util.scan.api.metadata.structures.JAnnotation
All Implemented Interfaces:
Serializable

public final class JAnnotation
extends Object
implements Serializable

Annotation on class, method or field.

Author:
Gael Lalire
See Also:
Serialized Form

Constructor Summary
JAnnotation(String className, boolean visible)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String getClassName()
           
 int hashCode()
           
 boolean isVisible()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAnnotation

public JAnnotation(String className,
                   boolean visible)
Constructor.

Parameters:
className - the class name of annotation
visible - visible
Method Detail

isVisible

public boolean isVisible()
Returns:
visibility of annotation

getClassName

public String getClassName()
Returns:
name of annotation class

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
name hashcode

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Parameters:
obj - the object to compare
Returns:
true if same annotation.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.