|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.generator.sg.impl.PropertySGImpl
public class PropertySGImpl
Constructor Summary | |
---|---|
PropertySGImpl(PropertySGChain o)
|
Method Summary | |
---|---|
void |
addValue(JavaMethod pMethod,
DirectAccessible pElement,
TypedValue pValue,
JavaQName pType)
Creates a piece of Java code adding an element value. |
void |
forAllNonNullValues(JavaMethod pMethod,
DirectAccessible pElement,
SGlet pSGlet)
Invokes the given SGlet
for any non null value. |
void |
forAllValues(JavaMethod pMethod,
DirectAccessible pElement,
SGlet pSGlet)
Invokes the given SGlet
for any value. |
void |
generate(JavaSource pSource)
Generates the property setters and getters. |
java.lang.String |
getCollectionType()
Returns the properties collection type. |
PropertySGChain |
getHeadOfChain()
|
java.lang.String |
getPropertyName()
Returns the objects property name. |
java.lang.Object |
getValue(DirectAccessible pElement)
Returns a piece of Java code with the property value. |
JavaField |
getXMLField(JavaSource pSource)
Creates the Java field holding the objects property value. |
java.lang.String |
getXMLFieldName()
Returns the objects field name. |
JavaMethod |
getXMLGetMethod(JavaSource pSource)
Creates the getter returning the property value. |
java.lang.String |
getXMLGetMethodName()
Returns the objects getter name. |
JavaMethod |
getXMLIsSetMethod(JavaSource pSource)
Creates the isSet returning whether the property value is set or not. |
java.lang.String |
getXMLIsSetMethodName()
Returns the name of the objects "isSet" method. |
JavaMethod |
getXMLSetMethod(JavaSource pSource)
Creates the setter returning the property value. |
java.lang.String |
getXMLSetMethodName()
Returns the objects setter name. |
boolean |
hasIsSetMethod()
Returns whether the property has an "is set" method. |
void |
init()
Initializes the PropertySG . |
void |
setValue(JavaMethod pMethod,
DirectAccessible pElement,
java.lang.Object pValue,
JavaQName pType)
Creates a piece of Java code setting the elements property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertySGImpl(PropertySGChain o)
Method Detail |
---|
public void init() throws org.xml.sax.SAXException
PropertySG
Initializes the PropertySG
.
init
in interface PropertySG
org.xml.sax.SAXException
public boolean hasIsSetMethod()
PropertySG
Returns whether the property has an "is set" method.
hasIsSetMethod
in interface PropertySG
public java.lang.String getCollectionType()
PropertySG
Returns the properties collection type.
getCollectionType
in interface PropertySG
public java.lang.String getXMLFieldName() throws org.xml.sax.SAXException
PropertySG
Returns the objects field name. By default, this is the property name with the prefix '_'.
getXMLFieldName
in interface PropertySG
org.xml.sax.SAXException
public java.lang.String getPropertyName() throws org.xml.sax.SAXException
PropertySG
Returns the objects property name.
getPropertyName
in interface PropertySG
org.xml.sax.SAXException
public java.lang.String getXMLGetMethodName() throws org.xml.sax.SAXException
PropertySG
Returns the objects getter name.
getXMLGetMethodName
in interface PropertySG
org.xml.sax.SAXException
public java.lang.String getXMLSetMethodName() throws org.xml.sax.SAXException
PropertySG
Returns the objects setter name.
getXMLSetMethodName
in interface PropertySG
org.xml.sax.SAXException
public java.lang.String getXMLIsSetMethodName() throws org.xml.sax.SAXException
PropertySG
Returns the name of the objects "isSet" method.
getXMLIsSetMethodName
in interface PropertySG
org.xml.sax.SAXException
public JavaField getXMLField(JavaSource pSource) throws org.xml.sax.SAXException
PropertySG
Creates the Java field holding the objects property value.
getXMLField
in interface PropertySG
org.xml.sax.SAXException
public JavaMethod getXMLGetMethod(JavaSource pSource) throws org.xml.sax.SAXException
PropertySG
Creates the getter returning the property value.
getXMLGetMethod
in interface PropertySG
org.xml.sax.SAXException
public JavaMethod getXMLSetMethod(JavaSource pSource) throws org.xml.sax.SAXException
PropertySG
Creates the setter returning the property value.
getXMLSetMethod
in interface PropertySG
org.xml.sax.SAXException
public JavaMethod getXMLIsSetMethod(JavaSource pSource) throws org.xml.sax.SAXException
PropertySG
Creates the isSet returning whether the property value is set or not.
getXMLIsSetMethod
in interface PropertySG
org.xml.sax.SAXException
public java.lang.Object getValue(DirectAccessible pElement) throws org.xml.sax.SAXException
PropertySG
Returns a piece of Java code with the property value.
getValue
in interface PropertySG
pElement
- The element on which the value is being set or null for "this".
org.xml.sax.SAXException
public void setValue(JavaMethod pMethod, DirectAccessible pElement, java.lang.Object pValue, JavaQName pType) throws org.xml.sax.SAXException
PropertySG
Creates a piece of Java code setting the elements property value. In the case of an element with multiplicity > 1, the object must be a list or an array.
setValue
in interface PropertySG
pMethod
- The method being generated.pElement
- The element on which the value is being set or null for "this".pType
- The values type, if a cast is required, or null, if the value
is already casted.
org.xml.sax.SAXException
public void addValue(JavaMethod pMethod, DirectAccessible pElement, TypedValue pValue, JavaQName pType) throws org.xml.sax.SAXException
PropertySG
Creates a piece of Java code adding an element value. In the case of an element with multiplicity > 1, the object must be the atomic value.
addValue
in interface PropertySG
pElement
- The element on which the value is being set or null for "this".pType
- The values type, if a cast is required, or null, if the value
is already casted.
org.xml.sax.SAXException
public void forAllValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) throws org.xml.sax.SAXException
PropertySG
Invokes the given SGlet
for any value.
forAllValues
in interface PropertySG
pElement
- The element on which the value is being set or null for "this".
org.xml.sax.SAXException
public void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) throws org.xml.sax.SAXException
PropertySG
Invokes the given SGlet
for any non null value.
forAllNonNullValues
in interface PropertySG
pElement
- The element on which the value is being set or null for "this".
org.xml.sax.SAXException
public void generate(JavaSource pSource) throws org.xml.sax.SAXException
PropertySG
Generates the property setters and getters.
generate
in interface PropertySG
org.xml.sax.SAXException
public PropertySGChain getHeadOfChain()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |