jsc.add("//-- initialize attribute descriptors");
jsc.add("");
for (int i = 0; i < atts.length; i++) {
FieldInfo member = atts[i];
//-- skip transient members
if (member.isTransient()) {
continue;
}
if (base != null) {
String baseNodeName = new XMLInfoNature(member).getNodeName();
if (baseNodeName.equals(XMLInfo.CHOICE_NODE_NAME_ERROR_INDICATION)) {
createDescriptor(classDesc, member, localClassName, nsURI, jsc);
} else {
if (base.getAttributeField(baseNodeName) != null) {
createRestrictedDescriptor(member, jsc);
} else {
createDescriptor(classDesc, member, localClassName,
nsURI, jsc);
}
}
} else {
createDescriptor(classDesc, member, localClassName, nsURI, jsc);
}
}
//------------------------------/
//- Create element descriptors -/
//------------------------------/
FieldInfo[] elements = classInfo.getElementFields();
jsc.add("//-- initialize element descriptors");
jsc.add("");
for (int i = 0; i < elements.length; i++) {
FieldInfo member = elements[i];
//-- skip transient members
if (member.isTransient()) {
continue;
}
if (base != null) {
String baseNodeName = xmlNature.getNodeName();