// i.e there is a pattern faceset
patternString = metaInfHolder.getPatternFacet().trim() + "|" + patternString;
}
metaInfHolder.setPatternFacet(patternString);
} else if (facet instanceof XmlSchemaEnumerationFacet) {
XmlSchemaEnumerationFacet enumeration = (XmlSchemaEnumerationFacet) facet;
if (restrictionName.equals(SchemaConstants.XSD_QNAME)) {
// we have to process the qname here and shoud find the local part and namespace uri
String value = enumeration.getValue().toString();
String prefix = value.substring(0, value.indexOf(":"));
String localPart = value.substring(value.indexOf(":") + 1);
String namespaceUri = parentSchema.getNamespaceContext().getNamespaceURI(prefix);
// set the string to suite for the convertQname method
String qNameString = value + "\", \"" + namespaceUri;
metaInfHolder.addEnumFacet(qNameString);
} else {
metaInfHolder.addEnumFacet(enumeration.getValue().toString());
}
} else if (facet instanceof XmlSchemaLengthFacet) {
XmlSchemaLengthFacet length = (XmlSchemaLengthFacet) facet;
metaInfHolder.setLengthFacet(Integer.parseInt(length.getValue().toString()));