return fd;
}
private CollectionDescriptor parseCollectionDescriptor() throws XmlPullParserException {
CollectionDescriptor fd = new CollectionDescriptor();
/*
* fieldName CDATA #REQUIRED
* jcrName CDATA #IMPLIED
* proxy (true | false) "false"
* autoRetrieve (true|false) "true"
* autoUpdate (true|false) "true"
* autoInsert (true|false) "true"
* elementClassName CDATA #REQUIRED
* collectionClassName CDATA #IMPLIED
* collectionConverter 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.setElementClassName(this.getRequiredAttribute("elementClassName"));
fd.setCollectionClassName(this.getOptionalAttribute("collectionClassName"));
fd.setCollectionConverter(this.getOptionalAttribute("collectionConverter"));
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.setJcrType(this.getOptionalAttribute("jcrType"));
fd.setJcrMultiple(this.getOptionalAttribute("jcrMultiple", false));
return fd;
}