/**
* Field _data
*/
- private java.lang.String _data;
+ private byte[] _data;
/**
* Field _dataReference
*/
- private byte[] _dataReference;
+ private java.lang.String _dataReference;
//----------------/
/**
* Returns the value of field 'data'.
*
- * @return String
+ * @return byte
* @return the value of field 'data'.
*/
- public java.lang.String getData()
+ public byte[] getData()
{
return this._data;
- } //-- java.lang.String getData()
+ } //-- byte[] getData()
/**
* Returns the value of field 'dataReference'.
*
- * @return byte
+ * @return String
* @return the value of field 'dataReference'.
*/
- public byte[] getDataReference()
+ public java.lang.String getDataReference()
{
return this._dataReference;
- } //-- byte[] getDataReference()
+ } //-- java.lang.String getDataReference()
/**
* Method isValid
*
* @param data the value of field 'data'.
*/
- public void setData(java.lang.String data)
+ public void setData(byte[] data)
{
this._data = data;
- } //-- void setData(java.lang.String)
+ } //-- void setData(byte)
/**
* Sets the value of field 'dataReference'.
*
* @param dataReference the value of field 'dataReference'.
*/
- public void setDataReference(byte[] dataReference)
+ public void setDataReference(java.lang.String dataReference)
{
this._dataReference = dataReference;
- } //-- void setDataReference(byte)
+ } //-- void setDataReference(java.lang.String)
/**
* Method unmarshal
//-- initialize element descriptors
//-- _data
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_data", "data", org.exolab.castor.xml.NodeType.Element);
- desc.setImmutable(true);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(byte[].class, "_data", "data", org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
try {
AppDataChoice target = (AppDataChoice) object;
- target.setData( (java.lang.String) value);
+ target.setData( (byte[]) value);
}
catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
- StringValidator typeValidator = new StringValidator();
- typeValidator.setWhiteSpace("preserve");
- fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
//-- _dataReference
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(byte[].class, "_dataReference", "dataReference", org.exolab.castor.xml.NodeType.Element);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_dataReference", "dataReference", org.exolab.castor.xml.NodeType.Element);
+ desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
try {
AppDataChoice target = (AppDataChoice) object;
- target.setDataReference( (byte[]) value);
+ target.setDataReference( (java.lang.String) value);
}
catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
fieldValidator = new org.exolab.castor.xml.FieldValidator();
fieldValidator.setMinOccurs(1);
{ //-- local scope
+ StringValidator typeValidator = new StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
} //-- org.vamsas.objects.core.AppDataChoiceDescriptor()