org.ow2.util.scan.api.metadata
Interface IClassMetadata<C extends IClassMetadata<C,M,F>,M extends IMethodMetadata<C,M,F>,F extends IFieldMetadata<C,M,F>>

Type Parameters:
C - interface of a class metadata
M - interface of a method metadata
F - interface of a field metadata
All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ClassMetadata

public interface IClassMetadata<C extends IClassMetadata<C,M,F>,M extends IMethodMetadata<C,M,F>,F extends IFieldMetadata<C,M,F>>
extends java.io.Serializable

Interface of a class metadata.

Author:
Gael Lalire

Method Summary
 void addStandardFieldMetadata(F fieldAnnotationMetadata)
          Add field annotation metadata for a given Bean.
 void addStandardMethodMetadata(M methodAnnotationMetadata)
          add a method metadata.
 JClass getJClass()
           
 F getStandardFieldMetadata(JField jField)
           
 java.util.Collection<? extends F> getStandardFieldMetadataCollection()
          Get collections of fields annotation metadata.
 M getStandardMethodMetadata(JMethod jMethod)
           
 java.util.Collection<M> getStandardMethodMetadataCollection()
          Get collections of methods annotation metadata.
 java.util.List<F> searchStandardFieldMetadata(java.lang.String fieldName)
           
 java.util.List<M> searchStandardMethodMetadata(java.lang.String methodName)
           
 void setJClass(JClass jClass)
           
 

Method Detail

addStandardMethodMetadata

void addStandardMethodMetadata(M methodAnnotationMetadata)
add a method metadata.

Parameters:
methodAnnotationMetadata - the method metadata

getStandardMethodMetadata

M getStandardMethodMetadata(JMethod jMethod)
Parameters:
jMethod - key of the map of methods annotations.
Returns:
method annotation metadata of a given method.

searchStandardMethodMetadata

java.util.List<M> searchStandardMethodMetadata(java.lang.String methodName)
Parameters:
methodName - the name of the method to search
Returns:
list of method annotation metadata for the given method name

searchStandardFieldMetadata

java.util.List<F> searchStandardFieldMetadata(java.lang.String fieldName)
Parameters:
fieldName - the name of the field to search
Returns:
list of field annotation metadata for the given field name

getStandardMethodMetadataCollection

java.util.Collection<M> getStandardMethodMetadataCollection()
Get collections of methods annotation metadata.

Returns:
collections of methods annotation metadata.

addStandardFieldMetadata

void addStandardFieldMetadata(F fieldAnnotationMetadata)
Add field annotation metadata for a given Bean.

Parameters:
fieldAnnotationMetadata - metadata of a field.

getStandardFieldMetadata

F getStandardFieldMetadata(JField jField)
Parameters:
jField - key of the map of fields annotations.
Returns:
field annotation metadata of a given method.

getStandardFieldMetadataCollection

java.util.Collection<? extends F> getStandardFieldMetadataCollection()
Get collections of fields annotation metadata.

Returns:
collections of fields annotation metadata.

getJClass

JClass getJClass()
Returns:
class representation

setJClass

void setJClass(JClass jClass)
Parameters:
jClass - jClass


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.