public void setParent(ElementDecl parent) { this.parent = parent; parent.getOwnerSchema().addIdentityConstraint(this); }
@Override public boolean canBeSubstitutedBy(XSElementDecl e) { return getSubstitutables().contains(e); }
public void updateSubstitutabilityMap() { ElementDecl parent = this; XSType type = this.getType(); while( (parent=(ElementDecl)parent.getSubstAffiliation())!=null ) { if(parent.isSubstitutionDisallowed(XSType.SUBSTITUTION)) continue; boolean rd = parent.isSubstitutionDisallowed(XSType.RESTRICTION); boolean ed = parent.isSubstitutionDisallowed(XSType.EXTENSION); XSType parentType = parent.getType(); while (type!=parentType) { if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; ed |= type.asComplexType().isSubstitutionProhibited(XSType.EXTENSION); if (getRoot().getAnyType().equals(type)) break; parent.addSubstitutable(this);
private void action7()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getElementDecl(e.getName()) ); $runtime.currentSchema.addElementDecl(e); }
public XSSchemaSet getResult() throws SAXException { // run all the patchers for (Patch patcher : patchers) patcher.run(); patchers.clear(); // build the element substitutability map Iterator itr = schemaSet.iterateElementDecls(); while(itr.hasNext()) ((ElementDecl)itr.next()).updateSubstitutabilityMap(); // run all the error checkers for (Patch patcher : errorCheckers) patcher.run(); errorCheckers.clear(); if(hadError) return null; else return schemaSet; }
ElementDecl ed = new ElementDecl( $runtime, $runtime.document,
private void processElement(CElementPropertyInfo property, ClassOutline clase, JFieldVar var, ElementDecl element) { String propertyName = propertyName(property); String className = clase.implClass.name(); XSType elementType = element.getType(); validAnnotation(elementType, var, propertyName, className); if (elementType instanceof XSSimpleType) { processType((XSSimpleType) elementType, var, propertyName, className); } else if (elementType.getBaseType() instanceof XSSimpleType) { processType((XSSimpleType) elementType.getBaseType(), var, propertyName, className); } }
public void updateSubstitutabilityMap() { ElementDecl parent = this; XSType type = this.getType(); while( (parent=(ElementDecl)parent.getSubstAffiliation())!=null ) { if(parent.isSubstitutionDisallowed(XSType.SUBSTITUTION)) continue; boolean rd = parent.isSubstitutionDisallowed(XSType.RESTRICTION); boolean ed = parent.isSubstitutionDisallowed(XSType.EXTENSION); XSType parentType = parent.getType(); while (type!=parentType) { if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; ed |= type.asComplexType().isSubstitutionProhibited(XSType.EXTENSION); if (getRoot().getAnyType().equals(type)) break; parent.addSubstitutable(this);
private void action7()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getElementDecl(e.getName()) ); $runtime.currentSchema.addElementDecl(e); }
public XSSchemaSet getResult() throws SAXException { // run all the patchers for (Patch patcher : patchers) patcher.run(); patchers.clear(); // build the element substitutability map Iterator itr = schemaSet.iterateElementDecls(); while(itr.hasNext()) ((ElementDecl)itr.next()).updateSubstitutabilityMap(); // run all the error checkers for (Patch patcher : errorCheckers) patcher.run(); errorCheckers.clear(); if(hadError) return null; else return schemaSet; }
ElementDecl ed = new ElementDecl( $runtime, $runtime.document,
public void updateSubstitutabilityMap() { ElementDecl parent = this; XSType type = this.getType(); while( (parent=(ElementDecl)parent.getSubstAffiliation())!=null ) { if(parent.isSubstitutionDisallowed(XSType.SUBSTITUTION)) continue; boolean rd = parent.isSubstitutionDisallowed(XSType.RESTRICTION); boolean ed = parent.isSubstitutionDisallowed(XSType.EXTENSION); XSType parentType = parent.getType(); while (type!=parentType) { if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; ed |= type.asComplexType().isSubstitutionProhibited(XSType.EXTENSION); if (getRoot().getAnyType().equals(type)) break; parent.addSubstitutable(this);
@Override public boolean canBeSubstitutedBy(XSElementDecl e) { return getSubstitutables().contains(e); }
public void setParent(ElementDecl parent) { this.parent = parent; parent.getOwnerSchema().addIdentityConstraint(this); }
private void action7()throws SAXException { $runtime.checkDoubleDefError( $runtime.currentSchema.getElementDecl(e.getName()) ); $runtime.currentSchema.addElementDecl(e); }
public XSSchemaSet getResult() throws SAXException { // run all the patchers for (Patch patcher : patchers) patcher.run(); patchers.clear(); // build the element substitutability map Iterator itr = schemaSet.iterateElementDecls(); while(itr.hasNext()) ((ElementDecl)itr.next()).updateSubstitutabilityMap(); // run all the error checkers for (Patch patcher : errorCheckers) patcher.run(); errorCheckers.clear(); if(hadError) return null; else return schemaSet; }
ElementDecl ed = new ElementDecl( $runtime, $runtime.document,
public void updateSubstitutabilityMap() { ElementDecl parent = this; XSType type = this.getType(); while( (parent=(ElementDecl)parent.getSubstAffiliation())!=null ) { if(parent.isSubstitutionDisallowed(XSType.SUBSTITUTION)) continue; boolean rd = parent.isSubstitutionDisallowed(XSType.RESTRICTION); boolean ed = parent.isSubstitutionDisallowed(XSType.EXTENSION); XSType parentType = parent.getType(); while (type!=parentType) { if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; ed |= type.asComplexType().isSubstitutionProhibited(XSType.EXTENSION); if (getRoot().getAnyType().equals(type)) break; parent.addSubstitutable(this);
public boolean canBeSubstitutedBy(XSElementDecl e) { return getSubstitutables().contains(e); }
public void setParent(ElementDecl parent) { this.parent = parent; parent.getOwnerSchema().addIdentityConstraint(this); }