JBoss Metadata Common 7.0.1.Final

org.jboss.metadata.javaee.support
Class LanguageMetaData

java.lang.Object
  extended by org.jboss.metadata.annotation.AbstractAnnotationImpl
      extended by org.jboss.metadata.javaee.support.LanguageMetaData
All Implemented Interfaces:
Serializable, Annotation, IdMetaData, MappableMetaData
Direct Known Subclasses:
DescriptionImpl, DisplayNameImpl, IconImpl

public abstract class LanguageMetaData
extends AbstractAnnotationImpl
implements Serializable, MappableMetaData, IdMetaData

LanguageMetaData.

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

Constructor Summary
LanguageMetaData(Class<? extends Annotation> annotationType)
          Create a new LanguageMetaData.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          Get the id.
 String getKey()
          The key
 String getLanguage()
          Get the language.
 int hashCode()
           
 String language()
           
 void setId(String id)
          Set the id.
 void setLanguage(String language)
          Set the Langauge.
 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

LanguageMetaData

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

Parameters:
annotationType - the annotation type
Method Detail

language

public String language()

getId

public String getId()
Description copied from interface: IdMetaData
Get the id.

Specified by:
getId in interface IdMetaData
Returns:
the id.

setId

public void setId(String id)
Description copied from interface: IdMetaData
Set the id.

Specified by:
setId in interface IdMetaData
Parameters:
id - the id.

getKey

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

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

getLanguage

public String getLanguage()
Get the language.

Returns:
the language.

setLanguage

public void setLanguage(String language)
Set the Langauge.

Parameters:
language - the language.
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.