|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jaxme.generator.sg.impl.PropertySGImpl
| Constructor Summary | |
PropertySGImpl(PropertySGChain o)
|
|
| Method Summary | |
void |
addValue(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
java.lang.Object p2,
net.sf.jaxme.js.JavaQName p3)
Creates a piece of Java code adding an element value. |
void |
forAllNonNullValues(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
SGlet p2)
Invokes the given SGlet
for any non null value. |
void |
forAllValues(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
SGlet p2)
Invokes the given SGlet
for any value. |
void |
generate(net.sf.jaxme.js.JavaSource p0)
Generates the property setters and getters. |
java.lang.String |
getCollectionType()
Returns the properties collection type. |
PropertySGChain |
getHeadOfChain()
|
java.lang.Object |
getValue(net.sf.jaxme.js.DirectAccessible p0)
Returns a piece of Java code with the property value. |
net.sf.jaxme.js.JavaField |
getXMLField(net.sf.jaxme.js.JavaSource p0)
Creates the Java field holding the objects property value. |
java.lang.String |
getXMLFieldName()
Returns the objects property name. |
net.sf.jaxme.js.JavaMethod |
getXMLGetMethod(net.sf.jaxme.js.JavaSource p0)
Creates the getter returning the property value. |
java.lang.String |
getXMLGetMethodName()
Returns the objects getter name. |
net.sf.jaxme.js.JavaMethod |
getXMLIsSetMethod(net.sf.jaxme.js.JavaSource p0)
Creates the isSet returning whether the property value is set or not. |
java.lang.String |
getXMLIsSetMethodName()
Returns the name of the objects "isSet" method. |
net.sf.jaxme.js.JavaMethod |
getXMLSetMethod(net.sf.jaxme.js.JavaSource p0)
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(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
java.lang.Object p2,
net.sf.jaxme.js.JavaQName p3)
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 java.lang.Object getValue(net.sf.jaxme.js.DirectAccessible p0)
throws SAXException
PropertySGReturns a piece of Java code with the property value.
getValue in interface PropertySGp0 - The element on which the value is being set or null for "this".
SAXException
public void init()
throws SAXException
PropertySGInitializes the PropertySG.
init in interface PropertySGSAXException
public void generate(net.sf.jaxme.js.JavaSource p0)
throws SAXException
PropertySGGenerates the property setters and getters.
generate in interface PropertySGSAXException
public void setValue(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
java.lang.Object p2,
net.sf.jaxme.js.JavaQName p3)
throws SAXException
PropertySGCreates 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 PropertySGp0 - The method being generated.p1 - The element on which the value is being set or null for "this".p3 - The values type, if a cast is required, or null, if the value
is already casted.
SAXException
public void forAllValues(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
SGlet p2)
throws SAXException
PropertySGInvokes the given SGlet
for any value.
forAllValues in interface PropertySGp1 - The element on which the value is being set or null for "this".
SAXException
public void forAllNonNullValues(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
SGlet p2)
throws SAXException
PropertySGInvokes the given SGlet
for any non null value.
forAllNonNullValues in interface PropertySGp1 - The element on which the value is being set or null for "this".
SAXExceptionpublic boolean hasIsSetMethod()
PropertySGReturns whether the property has an "is set" method.
hasIsSetMethod in interface PropertySGpublic java.lang.String getCollectionType()
PropertySGReturns the properties collection type.
getCollectionType in interface PropertySG
public java.lang.String getXMLFieldName()
throws SAXException
PropertySGReturns the objects property name.
getXMLFieldName in interface PropertySGSAXException
public java.lang.String getXMLGetMethodName()
throws SAXException
PropertySGReturns the objects getter name.
getXMLGetMethodName in interface PropertySGSAXException
public java.lang.String getXMLSetMethodName()
throws SAXException
PropertySGReturns the objects setter name.
getXMLSetMethodName in interface PropertySGSAXException
public java.lang.String getXMLIsSetMethodName()
throws SAXException
PropertySGReturns the name of the objects "isSet" method.
getXMLIsSetMethodName in interface PropertySGSAXException
public net.sf.jaxme.js.JavaField getXMLField(net.sf.jaxme.js.JavaSource p0)
throws SAXException
PropertySGCreates the Java field holding the objects property value.
getXMLField in interface PropertySGSAXException
public net.sf.jaxme.js.JavaMethod getXMLGetMethod(net.sf.jaxme.js.JavaSource p0)
throws SAXException
PropertySGCreates the getter returning the property value.
getXMLGetMethod in interface PropertySGSAXException
public net.sf.jaxme.js.JavaMethod getXMLSetMethod(net.sf.jaxme.js.JavaSource p0)
throws SAXException
PropertySGCreates the setter returning the property value.
getXMLSetMethod in interface PropertySGSAXException
public net.sf.jaxme.js.JavaMethod getXMLIsSetMethod(net.sf.jaxme.js.JavaSource p0)
throws SAXException
PropertySGCreates the isSet returning whether the property value is set or not.
getXMLIsSetMethod in interface PropertySGSAXException
public void addValue(net.sf.jaxme.js.JavaMethod p0,
net.sf.jaxme.js.DirectAccessible p1,
java.lang.Object p2,
net.sf.jaxme.js.JavaQName p3)
throws SAXException
PropertySGCreates 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 PropertySGp1 - The element on which the value is being set or null for "this".p3 - The values type, if a cast is required, or null, if the value
is already casted.
SAXExceptionpublic PropertySGChain getHeadOfChain()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||