regex = rf.getRegex();
} else if (facet instanceof PermittedValuesFacet) {
PermittedValuesFacet pvf = (PermittedValuesFacet)facet;
pValues = pvf.getPermittedValuesAsString();
} else if (facet instanceof CardinalityFacet) {
CardinalityFacet cf = (CardinalityFacet)facet;
cardMin = cf.getCardMin();
cardMax = cf.getCardMax();
}
}
}
sb.append(schema.getTypeName()+ (!mandatory ? " (OPTIONAL)":""));