org.apache.ws.jaxme.generator.sg
public interface PropertySG
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 {@link org.apache.ws.jaxme.generator.sg.SGlet} for any non null value. |
void | forAllValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) Invokes the given {@link org.apache.ws.jaxme.generator.sg.SGlet} for any value. |
void | generate(JavaSource pSource) Generates the property setters and getters. |
String | getCollectionType() Returns the properties collection type. |
String | getPropertyName() Returns the objects property name. |
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. |
String | getXMLFieldName() Returns the objects field name. |
JavaMethod | getXMLGetMethod(JavaSource pSource) Creates the getter returning the property value. |
String | getXMLGetMethodName() Returns the objects getter name. |
JavaMethod | getXMLIsSetMethod(JavaSource pSource) Creates the isSet returning whether the property value is set or not. |
String | getXMLIsSetMethodName() Returns the name of the objects "isSet" method. |
JavaMethod | getXMLSetMethod(JavaSource pSource) Creates the setter returning the property value. |
String | getXMLSetMethodName() Returns the objects setter name. |
boolean | hasIsSetMethod() Returns whether the property has an "is set" method. |
void | init() Initializes the |
void | setValue(JavaMethod pMethod, DirectAccessible pElement, Object pValue, JavaQName pType) Creates a piece of Java code setting the elements property value. |
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.
Parameters: 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.
Invokes the given {@link org.apache.ws.jaxme.generator.sg.SGlet} for any non null value.
Parameters: pElement The element on which the value is being set or null for "this".
Invokes the given {@link org.apache.ws.jaxme.generator.sg.SGlet} for any value.
Parameters: pElement The element on which the value is being set or null for "this".
Generates the property setters and getters.
Returns the properties collection type.
Returns the objects property name.
Returns a piece of Java code with the property value.
Parameters: pElement The element on which the value is being set or null for "this".
Creates the Java field holding the objects property value.
Returns the objects field name. By default, this is the property name with the prefix '_'.
Creates the getter returning the property value.
Returns the objects getter name.
Creates the isSet returning whether the property value is set or not.
Returns the name of the objects "isSet" method.
Creates the setter returning the property value.
Returns the objects setter name.
Returns whether the property has an "is set" method.
Initializes the 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.
Parameters: 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.