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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.PropertySGChainImpl
      extended by org.apache.ws.jaxme.generator.sg.impl.MultiplePropertySG
          extended by org.apache.ws.jaxme.generator.sg.impl.ArrayPropertySG
All 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
protected 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, java.lang.Object pValue, JavaQName pType)
           
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.MultiplePropertySG
asObject, getInstanceClass, getMaxOccurs, getMinOccurs, getObjectClass, getObjectSG, getXMLField, isAutoBoxing
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.PropertySGChainImpl
getCollectionType, getPropertyName, getValue, getXMLFieldName, getXMLGetMethodName, getXMLIsSetMethod, getXMLIsSetMethodName, getXMLSetMethodName, hasIsSetMethod, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayPropertySG

protected ArrayPropertySG(PropertySGChain pBase,
                          ObjectSG pObjectSG,
                          int pMinOccurs,
                          int pMaxOccurs)
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
Method Detail

getXMLGetMethod

public JavaMethod getXMLGetMethod(PropertySG pController,
                                  JavaSource pSource)
                           throws org.xml.sax.SAXException
Specified by:
getXMLGetMethod in interface PropertySGChain
Overrides:
getXMLGetMethod in class MultiplePropertySG
Throws:
org.xml.sax.SAXException

getXMLGetElementMethod

protected JavaMethod getXMLGetElementMethod(PropertySG pController,
                                            JavaSource pSource)
                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getXMLGetLengthMethod

protected JavaMethod getXMLGetLengthMethod(PropertySG pController,
                                           JavaSource pSource)
                                    throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getXMLSetMethod

public JavaMethod getXMLSetMethod(PropertySG pController,
                                  JavaSource pSource)
                           throws org.xml.sax.SAXException
Specified by:
getXMLSetMethod in interface PropertySGChain
Overrides:
getXMLSetMethod in class MultiplePropertySG
Throws:
org.xml.sax.SAXException

getXMLSetElementMethod

protected JavaMethod getXMLSetElementMethod(PropertySG pController,
                                            JavaSource pSource)
                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

forAllValues

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

forAllNonNullValues

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

generate

public void generate(PropertySG pController,
                     JavaSource pSource)
              throws org.xml.sax.SAXException
Specified by:
generate in interface PropertySGChain
Overrides:
generate in class PropertySGChainImpl
Throws:
org.xml.sax.SAXException

setValue

public void setValue(PropertySG pController,
                     JavaMethod pMethod,
                     DirectAccessible pElement,
                     java.lang.Object pValue,
                     JavaQName pType)
              throws org.xml.sax.SAXException
Specified by:
setValue in interface PropertySGChain
Overrides:
setValue in class MultiplePropertySG
Throws:
org.xml.sax.SAXException

addValue

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