public void addElement(Element elem) { getElements().add(elem); }
public String getOwnerName() { if (owner == null) { return null; } else if (owner instanceof TypeDefParticle) { return ((TypeDefParticle)owner).getOwnerName(); } else if (owner instanceof ComplexType) { return ((ComplexType)owner).getNameOrOwnerName(); } return null; } }
isUnbounded = (currentParticle.getMaxOccurs() != null && currentParticle.getMaxOccurs()==Occurs.UNBOUNDED); particle = new Choice(); if (isUnbounded) { particle.setMaxOccurs(Occurs.UNBOUNDED); type = currentParticle.getOwner(); } else { type = xpr.simpleContentType; if (minOccurs != null) currentElement.setMinOccurs(String.valueOf(minOccurs)); else currentElement.setMinOccurs(Occurs.ZERO); currentParticle.addElement(currentElement);
/** * Create an element reference and add it to a given particle. This * method will typically be called when processing an XPath and a * prefixed path element is encountered that requires an element ref. * * @param elementRefName * @param particle * @return */ public Element createRefElement(String elementRefName, TypeDefParticle particle) { Element refElement = new Element(); // ref won't have a complex type refElement.setComplexType(null); refElement.setMinOccurs(Occurs.ZERO); refElement.setMaxOccurs(Occurs.ONE); refElement.setRef(elementRefName); particle.addElement(refElement); return refElement; }
private void processTypeDef(String targetNamespace, String defaultNamespace, SDOType owningType, TypeDefParticle typeDefParticle) { if (maxOccursGreaterThanOne(typeDefParticle.getMaxOccurs())) { if (!owningType.isSequenced() && shouldBeSequenced(typeDefParticle)) { owningType.setSequenced(true); } } }
particle = new Choice(); if (isUnbounded) { particle.setMaxOccurs(Occurs.UNBOUNDED);
isUnbounded = (currentParticle.getMaxOccurs() != null && currentParticle.getMaxOccurs()==Occurs.UNBOUNDED); particle = new Choice(); if (isUnbounded) { particle.setMaxOccurs(Occurs.UNBOUNDED); type = currentParticle.getOwner(); } else { type = xpr.simpleContentType; if (minOccurs != null) currentElement.setMinOccurs(String.valueOf(minOccurs)); else currentElement.setMinOccurs(Occurs.ZERO); currentParticle.addElement(currentElement);
/** * Create an element reference and add it to a given particle. This * method will typically be called when processing an XPath and a * prefixed path element is encountered that requires an element ref. * * @param elementRefName * @param particle * @return */ public Element createRefElement(String elementRefName, TypeDefParticle particle) { Element refElement = new Element(); // ref won't have a complex type refElement.setComplexType(null); refElement.setMinOccurs(Occurs.ZERO); refElement.setMaxOccurs(Occurs.ONE); refElement.setRef(elementRefName); particle.addElement(refElement); return refElement; }
private void processTypeDef(String targetNamespace, String defaultNamespace, SDOType owningType, TypeDefParticle typeDefParticle) { if (maxOccursGreaterThanOne(typeDefParticle.getMaxOccurs())) { if (!owningType.isSequenced() && shouldBeSequenced(typeDefParticle)) { owningType.setSequenced(true); } } }
particle = new Choice(); if (isUnbounded) { particle.setMaxOccurs(Occurs.UNBOUNDED);
public void addElement(Element elem) { getElements().add(elem); }
compositor.addElement(wrapperElement); isElementFormQualified, true); compositor.addElement(wrapperElement); ComplexType wrapperType = new ComplexType(); Sequence wrapperSequence = new Sequence();
public String getOwnerName() { if (owner == null) { return null; } else if (owner instanceof TypeDefParticle) { return ((TypeDefParticle)owner).getOwnerName(); } else if (owner instanceof ComplexType) { return ((ComplexType)owner).getNameOrOwnerName(); } return null; } }
public void addElement(Element elem) { getElements().add(elem); }