List<String> list = null;
if (treeNodes[0].getSchemaType() != null && treeNodes[0].getSchemaType().getEnumerationValues() != null) {
list = BoundaryRestrictionUtill.extractEnums(treeNodes[0]);
restrictionLabel.setJlabel(list.toString().replaceFirst(",", ""));
} else {
SchemaTypeImpl simpleType = (SchemaTypeImpl) treeNodes[0].getSchemaType();
if (simpleType != null && !simpleType.isNoType()) {
XmlObjectTreeModel model2 = new XmlObjectTreeModel(simpleType.getTypeSystem(),
simpleType.getParseObject());
list = BoundaryRestrictionUtill.getRestrictions(model2.getRootNode(), new ArrayList<String>());
if (list.isEmpty()) {
list.add("No restrictions in schema are specified for this parameter!");
}
restrictionLabel.setJlabel(list.toString());