| java.lang.Object uk.org.ponder.saxalizer.SAXAccessMethodSpec
SAXAccessMethodSpec | public class SAXAccessMethodSpec implements SAXalizable,SAXalizableAttrs(Code) | | A SAXAccessMethodSpec identifies a mapping from an XML tag name to a Java
method name that is capable of either setting or getting an XML-serialised
subobject (the target object
<clazz> <methodname>() . If
it is a set method, the signature of the method must be void
<methodname>(<clazz>) .
Thus we must be clear that clazz is the type returned or taken
from the access method, i.e. the type of the subobject and NOT the type of
the object that the method is a member of.
The value "*" is allowed for the parameter clazz , which
indicates that the XML tagname will be interpreted as a fully-qualified Java
classname. This class must exist and be a subclass of the actual argument
type of the method identified.
|
DEFAULT_ACCESS | final public static String DEFAULT_ACCESS(Code) | | |
DEFAULT_XML_FORM | final public static String DEFAULT_XML_FORM(Code) | | |
FIELD_METHOD | final public static int FIELD_METHOD(Code) | | |
GET_METHOD | final public static int GET_METHOD(Code) | | |
SET_METHOD | final public static int SET_METHOD(Code) | | |
SAXAccessMethodSpec | public SAXAccessMethodSpec(String tag, String methodname, Class clazz)(Code) | | Parameters: tag - The tagname that will be used when the target object isserialised, or "*" if the tag is not known. Parameters: methodname - The method to be called in order to deliver or retrievethe target object. Parameters: clazz - The class (or a superclass) of the target object |
SAXAccessMethodSpec | public SAXAccessMethodSpec()(Code) | | |
convertToAttrSpec | public static void convertToAttrSpec(SAXAccessMethodSpec[] toconvert)(Code) | | This is a utility method, currently called by MethodAnalyser, for SAMS
returned from getSAXQqqAttrMethod() in order to convert swap the name
supplied for "tagname" which defaults to referring to a tag method into an
attribute.
Parameters: toconvert - |
convertToSetSpec | public static void convertToSetSpec(SAXAccessMethodSpec[] toconvert)(Code) | | This is a utility method, currently called by MethodAnalyser, for SAMS
returned from getSAXQqqMethod() in order to swap the name supplied for
"methodname" which defaults to referring to a get method into a set method.
Parameters: toconvert - |
|
|