String maxLength = null;
String length = null;
Iterator i = restrictionType.getFacets().getIterator();
while (i.hasNext()) {
XmlSchemaFacet val = (XmlSchemaFacet)i.next();
if (val instanceof XmlSchemaMaxLengthFacet) {
maxLength = val.getValue().toString();
}
if (val instanceof XmlSchemaLengthFacet) {
length = val.getValue().toString();
}
}
if (isEnumeration(restrictionType)) {
corbaTypeImpl = createCorbaEnum(restrictionType, name, schematypeName);