org.yasl.xmlobjects.impl
Class BaseComponent

java.lang.Object
  extended byorg.yasl.xmlobjects.impl.BaseComponent
Direct Known Subclasses:
ArgumentDefComplexImpl, MapEntryArgDefImpl, MethodCallImpl, ObjectInstantiatorImpl

public abstract class BaseComponent
extends Object

Version:
1.0
Author:
Jeff Chapman

Constructor Summary
protected BaseComponent()
           
protected BaseComponent(String className, String key, String keyType)
           
 
Method Summary
 void addArgument(ArgumentDef arg)
           
protected  boolean findMatchingClass(Class targetArg, Class ctorArg)
           
protected  Class[] getArgClasses()
           
protected  Object[] getArgObjects()
           
protected  Class[] getArgumentClasses(Class[] targetArgs, Class[] ctorArgs)
           
protected  String getClassName()
           
protected  Constructor getConstructor(Class targetObj, Class[] argClasses)
           
 String getKey()
           
 String getKeyType()
           
protected  Method getMethod(Class targetClass, String methodName, Class[] parameterTypes)
           
 Object getObjectInfo(String key)
           
 void setObjectInfo(String key, Object info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseComponent

protected BaseComponent()

BaseComponent

protected BaseComponent(String className,
                        String key,
                        String keyType)
Method Detail

getArgClasses

protected Class[] getArgClasses()

getArgObjects

protected Object[] getArgObjects()
                          throws ObjectInstantiationException
Throws:
ObjectInstantiationException

getClassName

protected String getClassName()

getMethod

protected Method getMethod(Class targetClass,
                           String methodName,
                           Class[] parameterTypes)
                    throws SecurityException,
                           NoSuchMethodException
Throws:
SecurityException
NoSuchMethodException

getConstructor

protected Constructor getConstructor(Class targetObj,
                                     Class[] argClasses)
                              throws SecurityException,
                                     NoSuchMethodException
Throws:
SecurityException
NoSuchMethodException

getArgumentClasses

protected Class[] getArgumentClasses(Class[] targetArgs,
                                     Class[] ctorArgs)

findMatchingClass

protected boolean findMatchingClass(Class targetArg,
                                    Class ctorArg)

setObjectInfo

public void setObjectInfo(String key,
                          Object info)

getObjectInfo

public Object getObjectInfo(String key)

addArgument

public void addArgument(ArgumentDef arg)

getKey

public String getKey()

getKeyType

public String getKeyType()