JBoss Metadata Common 7.0.1.Final

org.jboss.metadata.javaee.support
Class NamedAnnotationMetaData

java.lang.Object
  extended by org.jboss.metadata.annotation.AbstractAnnotationImpl
      extended by org.jboss.metadata.javaee.support.NamedAnnotationMetaData
All Implemented Interfaces:
Serializable, Annotation, MappableMetaData

public abstract class NamedAnnotationMetaData
extends AbstractAnnotationImpl
implements Serializable, MappableMetaData

NamedAnnotationMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
NamedAnnotationMetaData(Class<? extends Annotation> annotationType)
          Create a new NamedMetaData.
 
Method Summary
 boolean equals(Object obj)
           
 String getKey()
          The key
 String getName()
          Get the name.
 int hashCode()
           
 String name()
          Get the name.
 void setName(String name)
          Set the name.
 String toString()
           
 
Methods inherited from class org.jboss.metadata.annotation.AbstractAnnotationImpl
annotationType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedAnnotationMetaData

public NamedAnnotationMetaData(Class<? extends Annotation> annotationType)
Create a new NamedMetaData.

Parameters:
annotationType - the annotation type
Method Detail

getKey

public String getKey()
Description copied from interface: MappableMetaData
The key

Specified by:
getKey in interface MappableMetaData
Returns:
return the key

name

public String name()
Get the name.

Returns:
the name.

getName

public String getName()
Get the name.

Returns:
the name.

setName

public void setName(String name)
Set the name.

Parameters:
name - the name.
Throws:
IllegalArgumentException - for a null name

equals

public boolean equals(Object obj)
Specified by:
equals in interface Annotation
Overrides:
equals in class AbstractAnnotationImpl

hashCode

public int hashCode()
Specified by:
hashCode in interface Annotation
Overrides:
hashCode in class AbstractAnnotationImpl

toString

public String toString()
Specified by:
toString in interface Annotation
Overrides:
toString in class Object

JBoss Metadata Common 7.0.1.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.