Novell exteNd Web Services SDK API

com.sssw.jbroker.web.portable.annotation
Class ClassInfo

java.lang.Object
  extended bycom.sssw.jbroker.web.portable.annotation.ClassInfo

public final class ClassInfo
extends Object

Objects of type ClassInfo can be used to store annotations for a java.lang.Class object.

Since:
jBroker Web 2.0

Constructor Summary
ClassInfo(Class cls)
          Construct a class information object for a given class.
 
Method Summary
 Class getClassObject()
          Get the class object for which this ClassInfo object manages properties.
 MethodInfo getMethodInfo(Method method)
          Get a MethodInfo object for a given method
 Iterator getMethods()
          Get an iterator over all MethodInfo objects
 Object getProperty(String key)
          Get a property for this class
 void setProperty(String key, Object value)
          Set a property for this class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassInfo

public ClassInfo(Class cls)
Construct a class information object for a given class.

Parameters:
cls - the class
Method Detail

getClassObject

public Class getClassObject()
Get the class object for which this ClassInfo object manages properties.

Returns:
the class that this object was constructed with

getProperty

public Object getProperty(String key)
Get a property for this class

Parameters:
key - the property name
Returns:
the property value, or null if no value found

setProperty

public void setProperty(String key,
                        Object value)
Set a property for this class

Parameters:
key - the property name
value - the property value

getMethodInfo

public MethodInfo getMethodInfo(Method method)
Get a MethodInfo object for a given method

Parameters:
method - the method object
Returns:
the method information for the specified method, or null if not found

getMethods

public Iterator getMethods()
Get an iterator over all MethodInfo objects

Returns:
an standard iterator with MethodInfo elements

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.