eventType = this.parser.next();
}
}
private ClassDescriptor parseClassDescriptor() throws XmlPullParserException {
ClassDescriptor fd = new ClassDescriptor();
/*
* className CDATA #REQUIRED
* jcrType CDATA #IMPLIED
* jcrSuperTypes CDATA #IMPLIED
* jcrMixinTypes CDATA #IMPLIED
* extend CDATA #IMPLIED
* abstract (true|false) "false"
* interface (true|false) "false"
* discriminator (true|false) "true"
*/
fd.setClassName(this.getRequiredAttribute("className"));
fd.setJcrType(this.getOptionalAttribute("jcrType"));
fd.setJcrSuperTypes(this.getOptionalAttribute("jcrSuperTypes"));
fd.setJcrMixinTypes(this.getOptionalAttribute("jcrMixinTypes", (String[]) null));
fd.setExtend(this.getOptionalAttribute("extend"));
fd.setAbstract(this.getOptionalAttribute("abstract", false));
fd.setInterface(this.getOptionalAttribute("interface", false));
fd.setDiscriminator(this.getOptionalAttribute("discriminator", true));
return fd;
}