wt.dataops.objectcol.xmldef
Class MethodXMLDefAdapter

java.lang.Object
  extended bywt.dataops.objectcol.xmldef.BaseXMLDefAdapter
      extended bywt.dataops.objectcol.xmldef.MethodXMLDefAdapter
All Implemented Interfaces:
CriterionDefTags
Direct Known Subclasses:
RelatedByMethodXMLDefAdapter

public class MethodXMLDefAdapter
extends BaseXMLDefAdapter


Field Summary
protected  Object base
           
protected  String inputNameForRecurse
           
protected  String methodname
           
protected  Map[] params
           
private static String RESOURCE
           
protected  Class returnType
           
 
Fields inherited from class wt.dataops.objectcol.xmldef.BaseXMLDefAdapter
inputMap, root
 
Fields inherited from interface wt.dataops.objectcol.xmldef.CriterionDefTags
ALLOW_SUBTYPES_XML_TAG, ATTR_XML_TAG, BASE_XML_TAG, BY_METHOD_XML_TAG, BY_RELATIONSHIP_XML_TAG, CLASSNAME_XML_TAG, COLLECT_OTHER_END_XML_TAG, COLLECT_REL_BY_XML_TAG, CONCAT_CHAR_XML_TAG, CONDITION_XML_TAG, CONTENT_XML_TAG, DEFAULT_VALUE_XML_TAG, DELEGATE_NAME_XML_TAG, DELEGATE_XML_TAG, DERIVE_XML_TAG, DERIVED_XML_TAG, DESCRIPTION_XML_TAG, DISPLAY_NAME_XML_TAG, FIELD_XML_TAG, FILTER_XML_TAG, IF_EXISTS_XML_TAG, INCLUDE_DESCENDANTS_XML_TAG, INCLUDE_TYPES_XML_TAG, INPUT_XML_TAG, LINK_XML_TAG, MATCH_XML_TAG, META_DATA_XML_TAG, METHOD_DEF_XML_TAG, METHOD_XML_TAG, NAME_XML_TAG, OBJECT_TYPE_XML_TAG, OBJECTREF, OTHER_END_DEPENDANT_XML_TAG, OUTPUT_TYPE_XML_TAG, OUTPUT_TYPES_XML_TAG, PARAM_XML_TAG, PARAMS_XML_TAG, PATTERN_XML_TAG, POST_PROCESS_XML_TAG, PRIMITIVE_XML_TAG, RECURSE_XML_TAG, RELATED_XML_TAG, RELATIONSHIP_XML_TAG, REQUIRED_XML_TAG, RESOURCE_XML_TAG, RETURN_TYPE_XML_TAG, ROLE_XML_TAG, SEED_XML_TAG, SEEDS_XML_TAG, STRING, TYPE_XML_TAG, UNIQUE_NAME_XML_TAG, USED_AS_XML_TAG, XMLDEF_OBJECT_KEY
 
Constructor Summary
MethodXMLDefAdapter()
           
 
Method Summary
protected  Map createMapForParam(Element param)
           
 Object getBase()
           
protected  Class getClassValueFromElement(Element paramElt)
           
protected  String getDefaultValue(Element paramElt)
           
 String getInputNameForRecurse()
           
 String getMethodname()
           
 Map[] getParams()
           
 Class getReturnType()
           
protected  String getTypeClassValueFromElement(Element paramElt)
           
protected  Object initBaseObject(Object base, Element baseElt)
           
protected  void initialize(Element elt)
           
protected  String initInputNameForRecurse(Element methodElt)
           
protected  String initMethodName(Element baseElt)
           
protected  Map[] initParams(Element baseElt)
           
protected  Class initReturnType(Element baseElt)
           
protected  boolean isOut(Element paramElt)
           
protected  boolean isRequired(Element paramElt)
           
protected  boolean isSeed(Element paramElt)
           
static MethodXMLDefAdapter newMethodXMLDefAdapter(Element root)
           
 void setBase(Object object)
           
 void setInputNameForRecurse(String string)
           
 void setMethodname(String string)
           
 void setParams(Map[] objects)
           
 void setReturnType(Class class1)
           
 
Methods inherited from class wt.dataops.objectcol.xmldef.BaseXMLDefAdapter
derivedValue, getAllInputs, getDefaultValueForNamedInput, getDefaultValueForNamedInput, getInputNameForElement, getInputType, getMatchingMatcher, getNameValueFromElement, getRequiredInputs, initInputMap, isInputRequired, matches, matches, newBaseXMLDefAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

base

protected Object base

methodname

protected String methodname

returnType

protected Class returnType

params

protected Map[] params

inputNameForRecurse

protected String inputNameForRecurse
Constructor Detail

MethodXMLDefAdapter

public MethodXMLDefAdapter()
Method Detail

initialize

protected void initialize(Element elt)
                   throws WTException
Overrides:
initialize in class BaseXMLDefAdapter
Throws:
WTException

newMethodXMLDefAdapter

public static MethodXMLDefAdapter newMethodXMLDefAdapter(Element root)
                                                  throws WTException
Throws:
WTException

initBaseObject

protected Object initBaseObject(Object base,
                                Element baseElt)
                         throws WTException
Throws:
WTException

initMethodName

protected String initMethodName(Element baseElt)
                         throws WTException
Throws:
WTException

initReturnType

protected Class initReturnType(Element baseElt)
                        throws WTException
Throws:
WTException

initParams

protected Map[] initParams(Element baseElt)
                    throws WTException
Throws:
WTException

createMapForParam

protected Map createMapForParam(Element param)
                         throws WTException
Throws:
WTException

initInputNameForRecurse

protected String initInputNameForRecurse(Element methodElt)
                                  throws WTException
Throws:
WTException

getBase

public Object getBase()
Returns:

getInputNameForRecurse

public String getInputNameForRecurse()
Returns:

getMethodname

public String getMethodname()
Returns:

getParams

public Map[] getParams()
Returns:

getReturnType

public Class getReturnType()
Returns:

setBase

public void setBase(Object object)
Parameters:
object -

setInputNameForRecurse

public void setInputNameForRecurse(String string)
Parameters:
string -

setMethodname

public void setMethodname(String string)
Parameters:
string -

setParams

public void setParams(Map[] objects)
Parameters:
objects -

setReturnType

public void setReturnType(Class class1)
Parameters:
class1 -

getClassValueFromElement

protected Class getClassValueFromElement(Element paramElt)
                                  throws WTException
Overrides:
getClassValueFromElement in class BaseXMLDefAdapter
Throws:
WTException

isRequired

protected boolean isRequired(Element paramElt)
                      throws WTException
Throws:
WTException

isSeed

protected boolean isSeed(Element paramElt)
                  throws WTException
Throws:
WTException

isOut

protected boolean isOut(Element paramElt)
                 throws WTException
Throws:
WTException

getDefaultValue

protected String getDefaultValue(Element paramElt)
                          throws WTException
Throws:
WTException

getTypeClassValueFromElement

protected String getTypeClassValueFromElement(Element paramElt)
                                       throws WTException
Throws:
WTException