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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.JAXBPropertySG
All Implemented Interfaces:
PropertySGChain
Direct Known Subclasses:
AnyAttributePropertySG, AnyElementPropertySG

public class JAXBPropertySG
extends java.lang.Object
implements PropertySGChain

Author:
Jochen Wiedmann, Ias

Constructor Summary
protected JAXBPropertySG(AttributeSG pAttribute, XSAttribute pXSAttribute)
           
protected JAXBPropertySG(ObjectSG pElement, XSElement pXSElement)
           
protected JAXBPropertySG(java.lang.String pDefaultPropertyName, SchemaSG pSchema, XSObject pXSObject, java.lang.String pDefaultValue, TypeSG pTypeSG)
           
protected JAXBPropertySG(TypeSG pComplexType, XSType pType)
           
 
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)
           
 java.lang.String getCollectionType(PropertySG pController)
           
 java.lang.String getPropertyName(PropertySG pController)
           
 java.lang.Object getValue(PropertySG pController, DirectAccessible pElement)
           
 JavaField getXMLField(PropertySG pController, JavaSource pSource)
           
 java.lang.String getXMLFieldName(PropertySG pController)
           
 JavaMethod getXMLGetMethod(PropertySG pController, JavaSource pSource)
           
 java.lang.String getXMLGetMethodName(PropertySG pController)
           
 JavaMethod getXMLIsSetMethod(PropertySG pController, JavaSource pSource)
           
 java.lang.String getXMLIsSetMethodName(PropertySG pController)
           
 JavaMethod getXMLSetMethod(PropertySG pController, JavaSource pSource)
           
 java.lang.String getXMLSetMethodName(PropertySG pController)
           
 boolean hasIsSetMethod(PropertySG pController)
           
 void init(PropertySG pController)
           
 void setValue(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, java.lang.Object pValue, JavaQName pType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBPropertySG

protected JAXBPropertySG(java.lang.String pDefaultPropertyName,
                         SchemaSG pSchema,
                         XSObject pXSObject,
                         java.lang.String pDefaultValue,
                         TypeSG pTypeSG)

JAXBPropertySG

protected JAXBPropertySG(AttributeSG pAttribute,
                         XSAttribute pXSAttribute)

JAXBPropertySG

protected JAXBPropertySG(ObjectSG pElement,
                         XSElement pXSElement)

JAXBPropertySG

protected JAXBPropertySG(TypeSG pComplexType,
                         XSType pType)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
Method Detail

init

public void init(PropertySG pController)
          throws org.xml.sax.SAXException
Specified by:
init in interface PropertySGChain
Throws:
org.xml.sax.SAXException

hasIsSetMethod

public boolean hasIsSetMethod(PropertySG pController)
Specified by:
hasIsSetMethod in interface PropertySGChain

getCollectionType

public java.lang.String getCollectionType(PropertySG pController)
Specified by:
getCollectionType in interface PropertySGChain

getXMLFieldName

public java.lang.String getXMLFieldName(PropertySG pController)
                                 throws org.xml.sax.SAXException
Specified by:
getXMLFieldName in interface PropertySGChain
Throws:
org.xml.sax.SAXException

getPropertyName

public java.lang.String getPropertyName(PropertySG pController)
                                 throws org.xml.sax.SAXException
Specified by:
getPropertyName in interface PropertySGChain
Throws:
org.xml.sax.SAXException

getXMLGetMethodName

public java.lang.String getXMLGetMethodName(PropertySG pController)
                                     throws org.xml.sax.SAXException
Specified by:
getXMLGetMethodName in interface PropertySGChain
Throws:
org.xml.sax.SAXException

getXMLSetMethodName

public java.lang.String getXMLSetMethodName(PropertySG pController)
                                     throws org.xml.sax.SAXException
Specified by:
getXMLSetMethodName in interface PropertySGChain
Throws:
org.xml.sax.SAXException

getXMLIsSetMethodName

public java.lang.String getXMLIsSetMethodName(PropertySG pController)
                                       throws org.xml.sax.SAXException
Specified by:
getXMLIsSetMethodName in interface PropertySGChain
Throws:
org.xml.sax.SAXException

getXMLField

public JavaField getXMLField(PropertySG pController,
                             JavaSource pSource)
                      throws org.xml.sax.SAXException
Specified by:
getXMLField in interface PropertySGChain
Throws:
org.xml.sax.SAXException

getXMLGetMethod

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

getXMLSetMethod

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

getXMLIsSetMethod

public JavaMethod getXMLIsSetMethod(PropertySG pController,
                                    JavaSource pSource)
                             throws org.xml.sax.SAXException
Specified by:
getXMLIsSetMethod in interface PropertySGChain
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
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
Throws:
org.xml.sax.SAXException

getValue

public java.lang.Object getValue(PropertySG pController,
                                 DirectAccessible pElement)
                          throws org.xml.sax.SAXException
Specified by:
getValue in interface PropertySGChain
Throws:
org.xml.sax.SAXException

generate

public void generate(PropertySG pController,
                     JavaSource pSource)
              throws org.xml.sax.SAXException
Specified by:
generate in interface PropertySGChain
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
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
Throws:
org.xml.sax.SAXException