/**
* Field _source
*/
- private java.lang.Object _source;
+ private java.lang.String _source;
/**
* Field _version
*/
- private java.lang.Object _version;
+ private java.lang.String _version;
/**
* Field _accessionId
*/
- private java.lang.Object _accessionId;
+ private java.lang.String _accessionId;
/**
* Field _id
/**
* Returns the value of field 'accessionId'.
*
- * @return Object
+ * @return String
* @return the value of field 'accessionId'.
*/
- public java.lang.Object getAccessionId()
+ public java.lang.String getAccessionId()
{
return this._accessionId;
- } //-- java.lang.Object getAccessionId()
+ } //-- java.lang.String getAccessionId()
/**
* Returns the value of field 'id'.
/**
* Returns the value of field 'source'.
*
- * @return Object
+ * @return String
* @return the value of field 'source'.
*/
- public java.lang.Object getSource()
+ public java.lang.String getSource()
{
return this._source;
- } //-- java.lang.Object getSource()
+ } //-- java.lang.String getSource()
/**
* Returns the value of field 'version'.
*
- * @return Object
+ * @return String
* @return the value of field 'version'.
*/
- public java.lang.Object getVersion()
+ public java.lang.String getVersion()
{
return this._version;
- } //-- java.lang.Object getVersion()
+ } //-- java.lang.String getVersion()
/**
* Method isValid
*
* @param accessionId the value of field 'accessionId'.
*/
- public void setAccessionId(java.lang.Object accessionId)
+ public void setAccessionId(java.lang.String accessionId)
{
this._accessionId = accessionId;
- } //-- void setAccessionId(java.lang.Object)
+ } //-- void setAccessionId(java.lang.String)
/**
* Sets the value of field 'id'.
*
* @param source the value of field 'source'.
*/
- public void setSource(java.lang.Object source)
+ public void setSource(java.lang.String source)
{
this._source = source;
- } //-- void setSource(java.lang.Object)
+ } //-- void setSource(java.lang.String)
/**
* Sets the value of field 'version'.
*
* @param version the value of field 'version'.
*/
- public void setVersion(java.lang.Object version)
+ public void setVersion(java.lang.String version)
{
this._version = version;
- } //-- void setVersion(java.lang.Object)
+ } //-- void setVersion(java.lang.String)
/**
* Method unmarshal
//-- initialize attribute descriptors
//-- _source
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_source", "source", org.exolab.castor.xml.NodeType.Attribute);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_source", "source", org.exolab.castor.xml.NodeType.Attribute);
+ desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
try {
DbRef target = (DbRef) object;
- target.setSource( (java.lang.Object) value);
+ target.setSource( (java.lang.String) value);
}
catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
- return new java.lang.Object();
+ return null;
}
};
desc.setHandler(handler);
//-- validation code for: _source
fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
+ StringValidator typeValidator = new StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
//-- _version
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_version", "version", org.exolab.castor.xml.NodeType.Attribute);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_version", "version", org.exolab.castor.xml.NodeType.Attribute);
+ desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
try {
DbRef target = (DbRef) object;
- target.setVersion( (java.lang.Object) value);
+ target.setVersion( (java.lang.String) value);
}
catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
- return new java.lang.Object();
+ return null;
}
};
desc.setHandler(handler);
//-- validation code for: _version
fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
+ StringValidator typeValidator = new StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
//-- _accessionId
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_accessionId", "accessionId", org.exolab.castor.xml.NodeType.Attribute);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_accessionId", "accessionId", org.exolab.castor.xml.NodeType.Attribute);
+ desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
try {
DbRef target = (DbRef) object;
- target.setAccessionId( (java.lang.Object) value);
+ target.setAccessionId( (java.lang.String) value);
}
catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
- return new java.lang.Object();
+ return null;
}
};
desc.setHandler(handler);
//-- validation code for: _accessionId
fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
+ StringValidator typeValidator = new StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
//-- _id