return fd;
}
private BeanDescriptor parseBeanDescriptor() throws XmlPullParserException {
BeanDescriptor fd = new BeanDescriptor();
/*
* fieldName CDATA #REQUIRED
* jcrName CDATA #IMPLIED
* proxy (true | false) "false"
* autoRetrieve (true|false) "true"
* autoUpdate (true|false) "true"
* autoInsert (true|false) "true"
* converter CDATA #IMPLIED
* jcrType CDATA #IMPLIED
* jcrAutoCreated (true | false) "false"
* jcrMandatory (true | false) "false"
* jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) "COPY"
* jcrProtected (true | false) "false"
* jcrSameNameSiblings (true | false) "false"
*/
fd.setFieldName(this.getRequiredAttribute("fieldName"));
fd.setJcrName(this.getOptionalAttribute("jcrName", fd.getFieldName()));
fd.setProxy(this.getOptionalAttribute("proxy", false));
fd.setAutoRetrieve(this.getOptionalAttribute("autoRetrieve", true));
fd.setAutoUpdate(this.getOptionalAttribute("autoUpdate", true));
fd.setAutoInsert(this.getOptionalAttribute("autoInsert", true));
fd.setJcrType(this.getOptionalAttribute("jcrType"));
fd.setJcrAutoCreated(this.getOptionalAttribute("jcrAutoCreated", false));
fd.setJcrMandatory(this.getOptionalAttribute("jcrMandatory", false));
fd.setJcrOnParentVersion(this.getOptionalAttribute("jcrOnParentVersion", "COPY"));
fd.setJcrProtected(this.getOptionalAttribute("jcrProtected", false));
fd.setJcrSameNameSiblings(this.getOptionalAttribute("jcrSameNameSiblings", false));
fd.setJcrMultiple(this.getOptionalAttribute("jcrMultiple", false));
return fd;
}