raccoon.api.bean.descriptor
Interface IBeanAnalyzer

All Known Implementing Classes:
BeanAnalyzer

public interface IBeanAnalyzer

Generates descriptors for any kind of Java Bean.

Since:
Raccoon v0.7
Version:
$Id: IBeanAnalyzer.java,v 1.1 2004/08/08 20:25:55 crouvrais Exp $
Author:
Cedric ROUVRAIS

Method Summary
 IBeanDescriptor introspect(java.lang.Class pJavaBean)
          Introspects the class and returns the description of the class.
 boolean isArray(java.lang.Class pClass)
          Checks if this provided class is an array element.
 boolean isAtomic(java.lang.Class pClass)
          Checks if this provided class is an atomic element.
 boolean isCollection(java.lang.Class pClass)
          Checks if this provided class is a collection element.
 

Method Detail

isAtomic

boolean isAtomic(java.lang.Class pClass)
Checks if this provided class is an atomic element.

Parameters:
pClass - the class to analyse.
Returns:
true if this class is atomic

isArray

boolean isArray(java.lang.Class pClass)
Checks if this provided class is an array element.

Parameters:
pClass - the class to analyse.
Returns:
true if this class is an array

isCollection

boolean isCollection(java.lang.Class pClass)
Checks if this provided class is a collection element.

Parameters:
pClass - the class to analyse.
Returns:
true if this class is a collection
See Also:
Collection

introspect

IBeanDescriptor introspect(java.lang.Class pJavaBean)
                           throws RaccoonException
Introspects the class and returns the description of the class. If the class was previously introspected than the cached introspection is sent back.

The class passed must comply to the Raccoon specification of a java bean.

Parameters:
pJavaBean - the class that is to be introspected, should be a Java Bean.
Returns:
the descriptor of the provided class.
Throws:
RaccoonException - if the service isn't running.
RaccoonException - if the class can't be analyzed


Copyright null null. All Rights Reserved.