/** * @return the enumeration which restricts the content of this complex type or an empty list in * case the content is not restricted by an enumeration. */ public Collection<String> getEnumerations() { Collection<String> enumerations = new ArrayList<String>(); for (XSFacet declaredFacet : simpleType.getDeclaredFacets()) { if (declaredFacet.getName().equals(DATATYPE_ENUMERATION)) { enumerations.add(declaredFacet.getValue().value); } } return enumerations; }