|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.wsdl.fromJava.BaseRep | +--org.apache.axis.wsdl.fromJava.ClassRep
ClassRep is the representation of a class used inside the Java2WSDL emitter. The information in the ClassRep can be changed by user provided code to affect the emitted wsdl file. If you wish to change the functionality (for example change the getParameterNames(...) algorithm), here is one way to do it: 1) Extend ClassRep class (MyClassRep) and override the desired methods. 2) Extend the DefaultBuilderBeanClassRep and DefaultBuilderPortTypeClasses and provide new build(...) methods that construct MyClassRep objects. 3) Extend the DefaultFactory class (MyFactory) so that it locates your new Builder classes. 4) Provide MyFactory as an option when your invoke Java2WSDL. name ClassRep +-+---------> String | | | | | | | | | | | | isIntf | | | | | +---------> boolean | | | | | | | | | | modifiers | | | | +-----------> int (use java.lang.reflect.Modifier to decode) | | | | | | | | super | | | +-------------> ClassRep | | | | | | interfaces | | +---------------> ClassRep(s) | | | | methods | +-----------------> MethodRep(s) | | fields +-------------------> FieldRep(s) name MethodRep ----------> String | | | | | | return | | +-----------> ParamRep | | | | params | +-------------> ParamRep | | exceptions +----------------> ExceptionRep name ExceptionRep ----------> String | | params +-------------> ParamRep name ParamRep -----------> String | | | | type | +-------------> Class | | mode +---------------> int (in/out/inout) name FieldRep -----------> String | | type +--------------> Class Note: all classes extend BaseRep where meta data information can be stored.
Constructor Summary | |
ClassRep()
Constructor Create an empty ClassRep |
|
ClassRep(java.lang.Class cls,
boolean inhMethods,
java.util.List stopList)
Constructor Create a default representation of ClassRep |
|
ClassRep(java.lang.Class cls,
boolean inhMethods,
java.util.List stopList,
java.lang.Class implClass)
|
Method Summary | |
protected void |
addFields(java.lang.Class cls)
Adds FieldReps to the ClassRep. |
protected void |
addMethods(java.lang.Class cls,
boolean inhMethods,
java.lang.Class implClass)
Adds MethodReps to the ClassRep. |
java.util.Vector |
getFields()
|
java.util.Vector |
getInterfaces()
|
protected void |
getMethodMetaData(MethodRep methodRep,
java.lang.reflect.Method method,
java.lang.Class implClass)
Gets additional meta data and sets it on the MethodRep. |
protected boolean |
getMethodMetaDataFromSkeleton(MethodRep methodRep,
java.lang.reflect.Method method)
Gets additional meta data and sets it on the MethodRep. |
java.util.Vector |
getMethods()
|
int |
getModifiers()
|
java.lang.String |
getName()
Getters/Setters |
protected ParameterMode[] |
getParameterModes(java.lang.reflect.Method method)
Get the list of return/parameter modes for the specified method. |
protected ParameterMode[] |
getParameterModes(java.lang.reflect.Method method,
java.lang.Class implClass)
Get the list of return/parameter modes for the specified method. |
protected ParameterMode[] |
getParameterModesFromSkeleton(java.lang.reflect.Method method)
Get the list of return/parameter modes for the specified method. |
protected java.lang.String[] |
getParameterNames(java.lang.reflect.Method method,
java.lang.Class implClass)
Get the list of parameter names for the specified method. |
protected java.lang.String[] |
getParameterNamesFromSkeleton(java.lang.reflect.Method method)
Get the list of parameter names for the specified method. |
protected java.lang.Class[] |
getParameterTypes(java.lang.reflect.Method method)
Get the list of parameter types for the specified method. |
ClassRep |
getSuper()
|
protected void |
init(java.lang.Class cls,
boolean inhMethods,
java.util.List stopList,
java.lang.Class implClass)
|
boolean |
isInterface()
|
protected boolean |
isJavaBeanIndexed(java.lang.Class cls,
java.lang.String name,
java.lang.Class type)
Determines if the Property in the Class has bean compliant indexed accessors. |
protected boolean |
isJavaBeanNormal(java.lang.Class cls,
java.lang.String name,
java.lang.Class type)
Determines if the Property in the class has been compliant accessors. |
void |
setFields(java.util.Vector v)
|
void |
setInterfaces(java.util.Vector v)
|
void |
setIsInterface(boolean b)
|
void |
setMethods(java.util.Vector v)
|
void |
setModifiers(int m)
|
void |
setName(java.lang.String name)
|
void |
setSuper(ClassRep cr)
|
Methods inherited from class org.apache.axis.wsdl.fromJava.BaseRep |
getMetaData, setMetaData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassRep()
public ClassRep(java.lang.Class cls, boolean inhMethods, java.util.List stopList)
cls
- Class to use to create default ClassRepinhMethods
- if true, then the methods array will contain
methods declared and/or inherited else only
the declared methods are put in the liststopList
- An optional vector of class names which if inhMethods
is true, will stop the inheritence search if encountered.implClass
- This is an optional parameter which is a
class that implements or extends cls. The
implClass is used to obtain parameter names.public ClassRep(java.lang.Class cls, boolean inhMethods, java.util.List stopList, java.lang.Class implClass)
Method Detail |
protected void init(java.lang.Class cls, boolean inhMethods, java.util.List stopList, java.lang.Class implClass)
public java.lang.String getName()
public void setName(java.lang.String name)
public boolean isInterface()
public void setIsInterface(boolean b)
public int getModifiers()
public void setModifiers(int m)
public ClassRep getSuper()
public void setSuper(ClassRep cr)
public java.util.Vector getInterfaces()
public void setInterfaces(java.util.Vector v)
public java.util.Vector getMethods()
public void setMethods(java.util.Vector v)
public java.util.Vector getFields()
public void setFields(java.util.Vector v)
protected void addMethods(java.lang.Class cls, boolean inhMethods, java.lang.Class implClass)
cls
- the ClassinhMethods
- if true, then the methods array will contain
methods declared and/or inherited else only
the declared methods are put in the listimplClass
- This is an optional parameter which is a
class that implements or extends cls. The
implClass is used to obtain parameter names.protected void addFields(java.lang.Class cls)
cls
- the Class
A complexType component element will be generated for each FieldRep.
This implementation generates FieldReps for public data fields and
also for properties exposed by java bean accessor methods.protected java.lang.Class[] getParameterTypes(java.lang.reflect.Method method)
method
- is the Method.protected java.lang.String[] getParameterNames(java.lang.reflect.Method method, java.lang.Class implClass)
method
- is the Method to search.implClass
- If the first search fails, the corresponding
Method in this class is searched.protected java.lang.String[] getParameterNamesFromSkeleton(java.lang.reflect.Method method)
method
- is the Method to search.protected ParameterMode[] getParameterModes(java.lang.reflect.Method method, java.lang.Class implClass)
method
- is the Method to search.implClass
- If the first search fails, the corresponding
Method in this class is searched.protected ParameterMode[] getParameterModesFromSkeleton(java.lang.reflect.Method method)
method
- is the Method to search.protected ParameterMode[] getParameterModes(java.lang.reflect.Method method)
method
- is the Method.protected void getMethodMetaData(MethodRep methodRep, java.lang.reflect.Method method, java.lang.Class implClass)
methodRep
- is the target MethodRep.method
- is the Method to search.implClass
- If the first search fails, the corresponding
Method in this class is searched.protected boolean getMethodMetaDataFromSkeleton(MethodRep methodRep, java.lang.reflect.Method method)
methodRep
- is the target MethodRep.method
- is the Method to search.protected boolean isJavaBeanNormal(java.lang.Class cls, java.lang.String name, java.lang.Class type)
cls
- the Classname
- is the name of the propertytype
- is the type of the propertyprotected boolean isJavaBeanIndexed(java.lang.Class cls, java.lang.String name, java.lang.Class type)
cls
- the Classname
- is the name of the propertytype
- is the type of the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |