private void processFacet(Element element, Facet facet) { if (element.getSimpleType() == null) element.setSimpleType(new SimpleType()); Restriction restriction = element.getSimpleType().getRestriction(); if (restriction == null) { restriction = new Restriction(element.getType()); element.getSimpleType().setRestriction(restriction); } element.setType(null); // Prevent error: "Cannot have both a 'type' attribute and an 'anonymous type' child". facet.accept(FacetVisitorHolder.VISITOR, restriction); }
private void processFacet(Element element, Facet facet) { if (element.getSimpleType() == null) element.setSimpleType(new SimpleType()); Restriction restriction = element.getSimpleType().getRestriction(); if (restriction == null) { restriction = new Restriction(element.getType()); element.getSimpleType().setRestriction(restriction); } element.setType(null); // Prevent error: "Cannot have both a 'type' attribute and an 'anonymous type' child". facet.accept(FacetVisitorHolder.VISITOR, restriction); }
(org.eclipse.persistence.internal.oxm.schema.model.Element) dbwsAdapter.getExtendedSchema().getTopLevelElements().get(invocation.getName()); String typeName = invocationElement.getType(); int idx = typeName.indexOf(':'); if (idx != -1) { String argName = e.getName(); Object argValue = invocation.getParameter(argName); String argType = e.getType(); if (argType != null) { String argTypePrefix = null;
(org.eclipse.persistence.internal.oxm.schema.model.Element) dbwsAdapter.getExtendedSchema().getTopLevelElements().get(invocation.getName()); String typeName = invocationElement.getType(); int idx = typeName.indexOf(':'); if (idx != -1) { String argName = e.getName(); Object argValue = invocation.getParameter(argName); String argType = e.getType(); if (argType != null) { String argTypePrefix = null;
if(currentElement.getType() != null && currentElement.getComplexType() == null) { currentElement.setComplexType(cType); } else { String eType = currentElement.getType(); ComplexType cType = new ComplexType(); SimpleContent sContent = new SimpleContent(); xpr.simpleContentType = cType; } else { String eType = currentElement.getType(); ComplexType cType = new ComplexType(); SimpleContent sContent = new SimpleContent();
if(currentElement.getType() != null && currentElement.getComplexType() == null) { currentElement.setComplexType(cType); } else { String eType = currentElement.getType(); ComplexType cType = new ComplexType(); SimpleContent sContent = new SimpleContent(); xpr.simpleContentType = cType; } else { String eType = currentElement.getType(); ComplexType cType = new ComplexType(); SimpleContent sContent = new SimpleContent();