com.bm.ejb3metadata.annotations.metadata
Class FieldAnnotationMetadata

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.metadata.CommonAnnotationMetadata
      extended by com.bm.ejb3metadata.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:
Daniel Wiese

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 com.bm.ejb3metadata.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
 

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)


Copyright © 2008. All Rights Reserved.