org.apache.ws.jaxme.generator.sg.impl

Class ArrayPropertySG

Implemented Interfaces:
PropertySGChain

public class ArrayPropertySG
extends MultiplePropertySG

A subclass of MultiplePropertySG, which generates arrays rather than lists.

Field Summary

Fields inherited from class org.apache.ws.jaxme.generator.sg.impl.MultiplePropertySG

OBJECT_TYPE

Constructor Summary

ArrayPropertySG(PropertySGChain pBase, ObjectSG pObjectSG, int pMinOccurs, int pMaxOccurs)

Method Summary

void
addValue(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, TypedValue pValue, JavaQName pType)
void
forAllNonNullValues(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)
void
forAllValues(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)
void
generate(PropertySG pController, JavaSource pSource)
protected JavaMethod
getXMLGetElementMethod(PropertySG pController, JavaSource pSource)
protected JavaMethod
getXMLGetLengthMethod(PropertySG pController, JavaSource pSource)
JavaMethod
getXMLGetMethod(PropertySG pController, JavaSource pSource)
protected JavaMethod
getXMLSetElementMethod(PropertySG pController, JavaSource pSource)
JavaMethod
getXMLSetMethod(PropertySG pController, JavaSource pSource)
void
setValue(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, Object pValue, JavaQName pType)

Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.MultiplePropertySG

addValue, asObject, forAllNonNullValues, forAllValues, getInstanceClass, getMaxOccurs, getMinOccurs, getObjectClass, getObjectSG, getXMLField, getXMLGetMethod, getXMLSetMethod, isAutoBoxing, setValue

Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.PropertySGChainImpl

addValue, forAllNonNullValues, forAllValues, generate, getCollectionType, getPropertyName, getValue, getXMLField, getXMLFieldName, getXMLGetMethod, getXMLGetMethodName, getXMLIsSetMethod, getXMLIsSetMethodName, getXMLSetMethod, getXMLSetMethodName, hasIsSetMethod, init, setValue

Constructor Details

ArrayPropertySG

protected ArrayPropertySG(PropertySGChain pBase,
                          ObjectSG pObjectSG,
                          int pMinOccurs,
                          int pMaxOccurs)
            throws SAXException

Method Details

addValue

public void addValue(PropertySG pController,
                     JavaMethod pMethod,
                     DirectAccessible pElement,
                     TypedValue pValue,
                     JavaQName pType)
            throws SAXException
Specified by:
addValue in interface PropertySGChain
Overrides:
addValue in interface MultiplePropertySG

forAllNonNullValues

public void forAllNonNullValues(PropertySG pController,
                                JavaMethod pMethod,
                                DirectAccessible pElement,
                                SGlet pSGlet)
            throws SAXException
Specified by:
forAllNonNullValues in interface PropertySGChain
Overrides:
forAllNonNullValues in interface MultiplePropertySG

forAllValues

public void forAllValues(PropertySG pController,
                         JavaMethod pMethod,
                         DirectAccessible pElement,
                         SGlet pSGlet)
            throws SAXException
Specified by:
forAllValues in interface PropertySGChain
Overrides:
forAllValues in interface MultiplePropertySG

generate

public void generate(PropertySG pController,
                     JavaSource pSource)
            throws SAXException
Specified by:
generate in interface PropertySGChain
Overrides:
generate in interface PropertySGChainImpl

getXMLGetElementMethod

protected JavaMethod getXMLGetElementMethod(PropertySG pController,
                                            JavaSource pSource)
            throws SAXException

getXMLGetLengthMethod

protected JavaMethod getXMLGetLengthMethod(PropertySG pController,
                                           JavaSource pSource)
            throws SAXException

getXMLGetMethod

public JavaMethod getXMLGetMethod(PropertySG pController,
                                  JavaSource pSource)
            throws SAXException
Specified by:
getXMLGetMethod in interface PropertySGChain
Overrides:
getXMLGetMethod in interface MultiplePropertySG

getXMLSetElementMethod

protected JavaMethod getXMLSetElementMethod(PropertySG pController,
                                            JavaSource pSource)
            throws SAXException

getXMLSetMethod

public JavaMethod getXMLSetMethod(PropertySG pController,
                                  JavaSource pSource)
            throws SAXException
Specified by:
getXMLSetMethod in interface PropertySGChain
Overrides:
getXMLSetMethod in interface MultiplePropertySG

setValue

public void setValue(PropertySG pController,
                     JavaMethod pMethod,
                     DirectAccessible pElement,
                     Object pValue,
                     JavaQName pType)
            throws SAXException
Specified by:
setValue in interface PropertySGChain
Overrides:
setValue in interface MultiplePropertySG