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 setExtension(Extension extension) { this.extension = extension; if (extension != null) { extension.setOwner(this); } }
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); }
public void setTypeDefParticle(TypeDefParticle typeDefParticle) { this.typeDefParticle = typeDefParticle; if (typeDefParticle instanceof Choice) { setChoice((Choice)typeDefParticle); } else if (typeDefParticle instanceof Sequence) { setSequence((Sequence)typeDefParticle); } else { setAll((All)typeDefParticle); } }
public void setTypeDefParticle(TypeDefParticle typeDefParticle) { this.typeDefParticle = typeDefParticle; if (typeDefParticle instanceof Choice) { setChoice((Choice)typeDefParticle); } else if (typeDefParticle instanceof Sequence) { setSequence((Sequence)typeDefParticle); } else { setAll((All)typeDefParticle); } }
public void setSimpleContent(SimpleContent simpleContent) { if (simpleContent != null) { simpleContent.setOwner(this); } this.simpleContent = simpleContent; }
public String getOwnerName() { if (owner != null) { return owner.getOwnerName(); } return null; }
public void setComplexContent(ComplexContent complexContent) { if (complexContent != null) { complexContent.setOwner(this); } this.complexContent = complexContent; }
/** * Indicates if a Result has been set for this Schema. * * @return true if a Result has been set, false otherwise */ public boolean hasResult() { return getResult() != null; }
public void setSequence(Sequence sequence) { this.sequence = sequence; if (sequence != null) { sequence.setOwner(this); this.typeDefParticle = sequence; } }
public void setAll(All all) { this.all = all; if (all != null) { all.setOwner(this); this.typeDefParticle = all; } }
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); }
public void setTypeDefParticle(TypeDefParticle typeDefParticle) { this.typeDefParticle = typeDefParticle; if (typeDefParticle instanceof Choice) { setChoice((Choice)typeDefParticle); } else if (typeDefParticle instanceof Sequence) { setSequence((Sequence)typeDefParticle); } else { setAll((All)typeDefParticle); } }
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 setExtension(Extension extension) { this.extension = extension; if (extension != null) { extension.setOwner(this); } }
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; } }