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

Class JAXBPropertySG

Implemented Interfaces:
PropertySGChain
Known Direct Subclasses:
AnyAttributePropertySG, AnyElementPropertySG

public class JAXBPropertySG
extends java.lang.Object
implements PropertySGChain

Authors:
Jochen Wiedmann
Ias

Constructor Summary

JAXBPropertySG(String pDefaultPropertyName, SchemaSG pSchema, XSObject pXSObject, String pDefaultValue, TypeSG pTypeSG)
JAXBPropertySG(AttributeSG pAttribute, XSAttribute pXSAttribute)
JAXBPropertySG(ObjectSG pElement, XSElement pXSElement)
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)
String
getCollectionType(PropertySG pController)
String
getPropertyName(PropertySG pController)
Object
getValue(PropertySG pController, DirectAccessible pElement)
JavaField
getXMLField(PropertySG pController, JavaSource pSource)
String
getXMLFieldName(PropertySG pController)
JavaMethod
getXMLGetMethod(PropertySG pController, JavaSource pSource)
String
getXMLGetMethodName(PropertySG pController)
JavaMethod
getXMLIsSetMethod(PropertySG pController, JavaSource pSource)
String
getXMLIsSetMethodName(PropertySG pController)
JavaMethod
getXMLSetMethod(PropertySG pController, JavaSource pSource)
String
getXMLSetMethodName(PropertySG pController)
boolean
hasIsSetMethod(PropertySG pController)
void
init(PropertySG pController)
void
setValue(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, Object pValue, JavaQName pType)

Constructor Details

JAXBPropertySG

protected JAXBPropertySG(String pDefaultPropertyName,
                         SchemaSG pSchema,
                         XSObject pXSObject,
                         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 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

forAllNonNullValues

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

forAllValues

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

generate

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

getCollectionType

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

getPropertyName

public String getPropertyName(PropertySG pController)
            throws SAXException
Specified by:
getPropertyName in interface PropertySGChain

getValue

public Object getValue(PropertySG pController,
                       DirectAccessible pElement)
            throws SAXException
Specified by:
getValue in interface PropertySGChain

getXMLField

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

getXMLFieldName

public String getXMLFieldName(PropertySG pController)
            throws SAXException
Specified by:
getXMLFieldName in interface PropertySGChain

getXMLGetMethod

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

getXMLGetMethodName

public String getXMLGetMethodName(PropertySG pController)
            throws SAXException
Specified by:
getXMLGetMethodName in interface PropertySGChain

getXMLIsSetMethod

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

getXMLIsSetMethodName

public String getXMLIsSetMethodName(PropertySG pController)
            throws SAXException
Specified by:
getXMLIsSetMethodName in interface PropertySGChain

getXMLSetMethod

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

getXMLSetMethodName

public String getXMLSetMethodName(PropertySG pController)
            throws SAXException
Specified by:
getXMLSetMethodName in interface PropertySGChain

hasIsSetMethod

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

init

public void init(PropertySG pController)
            throws SAXException
Specified by:
init in interface PropertySGChain

setValue

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