org.objectweb.easybeans.deployment.annotations.metadata
Class FieldAnnotationMetadata

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.metadata.CommonAnnotationMetadata
      extended by org.objectweb.easybeans.deployment.annotations.metadata.FieldAnnotationMetadata
All Implemented Interfaces:
IAnnotationResource, IEjbEJB, IPersistenceContext, IPersistenceUnit, ISharedMetadata

public class FieldAnnotationMetadata
extends CommonAnnotationMetadata

This class represents the annotation metadata of a field.

Author:
Florent Benoit

Field Summary
private  ClassAnnotationMetadata classAnnotationMetadata
          Parent metadata.
private  boolean inherited
          This field is a field from a super class ?
private  JField jField
          Method on which we got metadata.
 
Constructor Summary
FieldAnnotationMetadata(JField jField, ClassAnnotationMetadata classAnnotationMetadata)
          Constructor.
 
Method Summary
 ClassAnnotationMetadata getClassAnnotationMetadata()
           
 java.lang.String getFieldName()
           
 JField getJField()
           
 boolean isInherited()
           
 void setInherited(boolean inherited)
          Sets the inheritance of this method.
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.easybeans.deployment.annotations.metadata.CommonAnnotationMetadata
concatStringBuilder, concatStringBuilder, getJAnnotationResource, getJavaxPersistenceContext, getJavaxPersistenceUnit, getJEjbEJB, isPersistenceContext, isPersistenceUnit, setJAnnotationResource, setJavaxPersistenceContext, setJavaxPersistenceUnit, setJEjbEJB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jField

private JField jField
Method on which we got metadata.


classAnnotationMetadata

private ClassAnnotationMetadata classAnnotationMetadata
Parent metadata.


inherited

private boolean inherited
This field is a field from a super class ?

Constructor Detail

FieldAnnotationMetadata

public FieldAnnotationMetadata(JField jField,
                               ClassAnnotationMetadata classAnnotationMetadata)
Constructor.

Parameters:
jField - the field on which we will set/add metadata
classAnnotationMetadata - the parent metadata.
Method Detail

getFieldName

public java.lang.String getFieldName()
Returns:
name of the field

getJField

public JField getJField()
Returns:
JMethod object

toString

public java.lang.String toString()
Overrides:
toString in class CommonAnnotationMetadata
Returns:
string representation

isInherited

public boolean isInherited()
Returns:
true if this method is inherited from a super class

setInherited

public void setInherited(boolean inherited)
Sets the inheritance of this method.

Parameters:
inherited - true if method is from a super class

getClassAnnotationMetadata

public ClassAnnotationMetadata getClassAnnotationMetadata()
Returns:
parent metadata (class)