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

Class MultiplePropertySG

Implemented Interfaces:
PropertySGChain
Known Direct Subclasses:
ArrayPropertySG

public class MultiplePropertySG
extends PropertySGChainImpl

1.
Author:
Jochen Wiedmann

Field Summary

protected static JavaQName
OBJECT_TYPE

Constructor Summary

MultiplePropertySG(PropertySGChain pBase, ObjectSG pObjectSG, int pMinOccurs, int pMaxOccurs)
Creates a new instance of MultipleObjectSG.

Method Summary

void
addValue(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, TypedValue pValue, JavaQName pType)
protected Object
asObject(Object pObject)
void
forAllNonNullValues(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)
void
forAllValues(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)
protected JavaQName
getInstanceClass()
protected int
getMaxOccurs()
protected int
getMinOccurs()
protected JavaQName
getObjectClass()
protected ObjectSG
getObjectSG()
JavaField
getXMLField(PropertySG pController, JavaSource pSource)
JavaMethod
getXMLGetMethod(PropertySG pController, JavaSource pSource)
JavaMethod
getXMLSetMethod(PropertySG pController, JavaSource pSource)
protected boolean
isAutoBoxing()
void
setValue(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, Object pValue, JavaQName pType)

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

Field Details

OBJECT_TYPE

protected static final JavaQName OBJECT_TYPE

Constructor Details

MultiplePropertySG

protected MultiplePropertySG(PropertySGChain pBase,
                             ObjectSG pObjectSG,
                             int pMinOccurs,
                             int pMaxOccurs)
Creates a new instance of MultipleObjectSG.

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 PropertySGChainImpl

asObject

protected Object asObject(Object pObject)
            throws SAXException

forAllNonNullValues

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

forAllValues

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

getInstanceClass

protected JavaQName getInstanceClass()
            throws SAXException

getMaxOccurs

protected int getMaxOccurs()

getMinOccurs

protected int getMinOccurs()

getObjectClass

protected JavaQName getObjectClass()
            throws SAXException

getObjectSG

protected ObjectSG getObjectSG()

getXMLField

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

getXMLGetMethod

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

getXMLSetMethod

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

isAutoBoxing

protected boolean isAutoBoxing()
            throws SAXException

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 PropertySGChainImpl