* The following information will be available at the endElement call:
* nil, specified, normalized value, member type, validity, error codes,
* default
*/
public void printPSVIEndElement(Augmentations augs) {
ElementPSVI elemPSVI = (ElementPSVI)augs.getItem(Constants.ELEMENT_PSVI);
if (elemPSVI != null) {
short validation = elemPSVI.getValidationAttempted();
if (validation == ItemPSVI.NO_VALIDATION) {
printElement("psv:validationAttempted","none");
}
else if (validation == ItemPSVI.PARTIAL_VALIDATION) {
printElement("psv:validationAttempted","partial");
}
else if (validation == ItemPSVI.FULL_VALIDATION) {
printElement("psv:validationAttempted","full");
}
short validity = elemPSVI.getValidity();
if (validity == ItemPSVI.UNKNOWN_VALIDITY) {
printElement("psv:validity","unknown");
}
else if (validity == ItemPSVI.VALID_VALIDITY) {
printElement("psv:validity","valid");
}
else if (validity == ItemPSVI.INVALID_VALIDITY) {
printElement("psv:validity","invalid");
}
//revisit
String [] errorCode = elemPSVI.getErrorCodes();
if (errorCode != null) {
int errorCount = errorCode.length;
for (int i=0;i< errorCount; i++) {
fErrorBuffer.append(errorCode[i]);
fErrorBuffer.append(" ");
}
printElement("psv:schemaErrorCode",fErrorBuffer.toString());
fErrorBuffer.setLength(0);
}
else {
printElement("psv:schemaErrorCode","");
}
printElement("psv:nil", String.valueOf(elemPSVI.isNil()));
printElement("psv:schemaNormalizedValue",elemPSVI.getSchemaNormalizedValue());
String specified = elemPSVI.isSpecified()?"infoset":"schema";
printElement("psv:schemaSpecified",specified);
}
}