org.ow2.util.scan.api.metadata.specific
Interface ISpecificClassMetadata<SC extends ISpecificClassMetadata<SC,SM,SF>,SM extends ISpecificMethodMetadata<SC,SM,SF>,SF extends ISpecificFieldMetadata<SC,SM,SF>>

Type Parameters:
SC - interface of a specific class metadata
SM - interface of a specific method metadata
SF - interface of a specific field metadata
All Known Implementing Classes:
SpecificClassMetadata

public interface ISpecificClassMetadata<SC extends ISpecificClassMetadata<SC,SM,SF>,SM extends ISpecificMethodMetadata<SC,SM,SF>,SF extends ISpecificFieldMetadata<SC,SM,SF>>

Interface of a specific class metadata.

Author:
Gael Lalire

Method Summary
 void addSpecificFieldMetadata(SF fieldAnnotationMetadata)
          Add field annotation metadata for a given Bean.
 void addSpecificMethodMetadata(SM methodAnnotationMetadata)
          add a method metadata.
 JClass getJClass()
           
 SF getSpecificFieldMetadata(JField jField)
           
 java.util.Collection<? extends SF> getSpecificFieldMetadataCollection()
          Get collections of fields annotation metadata.
 SM getSpecificMethodMetadata(JMethod jMethod)
           
 java.util.Collection<? extends SM> getSpecificMethodMetadataCollection()
          Get collections of methods annotation metadata.
 java.util.List<? extends SF> searchSpecificFieldMetadata(java.lang.String fieldName)
           
 java.util.List<? extends SM> searchSpecificMethodMetadata(java.lang.String methodName)
           
 

Method Detail

addSpecificMethodMetadata

void addSpecificMethodMetadata(SM methodAnnotationMetadata)
add a method metadata.

Parameters:
methodAnnotationMetadata - the method metadata

getSpecificMethodMetadata

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

searchSpecificMethodMetadata

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

searchSpecificFieldMetadata

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

getSpecificMethodMetadataCollection

java.util.Collection<? extends SM> getSpecificMethodMetadataCollection()
Get collections of methods annotation metadata.

Returns:
collections of methods annotation metadata.

addSpecificFieldMetadata

void addSpecificFieldMetadata(SF fieldAnnotationMetadata)
Add field annotation metadata for a given Bean.

Parameters:
fieldAnnotationMetadata - metadata of a field.

getSpecificFieldMetadata

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

getSpecificFieldMetadataCollection

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

Returns:
collections of fields annotation metadata.

getJClass

JClass getJClass()
Returns:
class representation


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