-
- List<String> types = new ArrayList<String>();
- for (SchemaElement e : elements) {
- Element localElement = e.getElement();
- QName refType = null;
- String type = null;
-
- if (localElement.getName() != null) {
- refType = localElement.getType();
- type = base.getL0TypeFromPrimitiveType(refType);
- } else if (localElement.getRef() != null) {
- refType = localElement.getRef();
- type = base.getL0TypeFromPrimitiveType(refType);
- }
- if (type == null) {
- SchemaObject obj = base.getWithName(refType);
- types.add(getName(obj,"has"));
- }
- }
- if (types.size() > 0) {
- for (String type : types) {
- writer.print(" <R " + type);
- }
- } else {
- writer.print(" <R XML.hasElement");
- }
-