schema.getBuiltInTypeName(SimpleTypesFactory.NOTATION_TYPE),
"restriction");
Iterator values = dtdAttribute.getValues();
FacetFactory facetFactory = FacetFactory.getInstance();
while (values.hasNext()) {
Facet facet = facetFactory.createFacet(
Facet.ENUMERATION, (String) values.next());
facet.setOwningType(type);
type.addFacet(facet);
}
}
else if (dtdAttribute.isEnumerationType())
{
type = schema.createSimpleType(null,
schema.getBuiltInTypeName(SimpleTypesFactory.NMTOKEN_TYPE),
"restriction");
Iterator values = dtdAttribute.getValues();
FacetFactory facetFactory = FacetFactory.getInstance();
while (values.hasNext()) {
Facet facet = facetFactory.createFacet(
Facet.ENUMERATION, (String)values.next());
facet.setOwningType(type);
type.addFacet(facet);
}
}
else
{