addValue
public void addValue(JavaMethod pMethod,
DirectAccessible pElement,
TypedValue pValue,
JavaQName pType)
throws SAXException
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.
generate
public void generate(JavaSource pSource)
throws SAXException
Generates the property setters and getters.
- generate in interface PropertySG
getPropertyName
public String getPropertyName()
throws SAXException
Returns the objects property name.
- getPropertyName in interface PropertySG
getValue
public Object getValue(DirectAccessible pElement)
throws SAXException
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".
getXMLFieldName
public String getXMLFieldName()
throws SAXException
Returns the objects field name. By default, this is the
property name with the prefix '_'.
- getXMLFieldName in interface PropertySG
getXMLGetMethodName
public String getXMLGetMethodName()
throws SAXException
Returns the objects getter name.
- getXMLGetMethodName in interface PropertySG
getXMLIsSetMethodName
public String getXMLIsSetMethodName()
throws SAXException
Returns the name of the objects "isSet" method.
- getXMLIsSetMethodName in interface PropertySG
getXMLSetMethodName
public String getXMLSetMethodName()
throws SAXException
Returns the objects setter name.
- getXMLSetMethodName in interface PropertySG
hasIsSetMethod
public boolean hasIsSetMethod()
Returns whether the property has an "is set" method.
- hasIsSetMethod in interface PropertySG
init
public void init()
throws SAXException
Initializes the PropertySG
.
- init in interface PropertySG
setValue
public void setValue(JavaMethod pMethod,
DirectAccessible pElement,
Object pValue,
JavaQName pType)
throws SAXException
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.