public abstract class NamedAnnotationMetaData extends AbstractAnnotationImpl implements Serializable, MappableMetaData
Constructor and Description |
---|
NamedAnnotationMetaData(Class<? extends Annotation> annotationType)
Create a new NamedMetaData.
|
Modifier and Type | Method and Description |
---|---|
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() |
annotationType
public NamedAnnotationMetaData(Class<? extends Annotation> annotationType)
annotationType
- the annotation typepublic String getKey()
MappableMetaData
getKey
in interface MappableMetaData
public String name()
public String getName()
public void setName(String name)
name
- the name.IllegalArgumentException
- for a null namepublic boolean equals(Object obj)
equals
in interface Annotation
equals
in class AbstractAnnotationImpl
public int hashCode()
hashCode
in interface Annotation
hashCode
in class AbstractAnnotationImpl
public String toString()
toString
in interface Annotation
toString
in class Object
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.