public final boolean containsAttribute( String attrName ) { return containsAttribute("",attrName); }
protected ReferenceExp getReference() { final RELAXNGReader reader = (RELAXNGReader)this.reader; if( startTag.containsAttribute("name") ) { // since the name attribute is allowed to the certain point, // it is useful to explicitly raise this as an error. reader.reportError( RELAXNGReader.ERR_DISALLOWED_ATTRIBUTE, startTag.qName, "name" ); return null; } return reader.getGrammar(); } }
protected Expression defaultExpression() { if( startTag.containsAttribute("substitutionGroup") ) reader.reportError( XMLSchemaReader.ERR_UNIMPLEMENTED_FEATURE, "omitting type attribute in <element> element with substitutionGroup attribute"); // recover by assuming ur-type. // if no content model is given, then this element type is ur-type. // TODO: confirm it. final XMLSchemaReader reader = (XMLSchemaReader)this.reader; reader.reportWarning( XMLSchemaReader.WRN_IMPLICIT_URTYPE_FOR_ELEMENT, null ); return reader.complexUrType; }
protected ReferenceExp getReference() { final RELAXNGReader reader = (RELAXNGReader)this.reader; if( startTag.containsAttribute("name") ) { // since the name attribute is allowed to the certain point, // it is useful to explicitly raise this as an error. reader.reportError( RELAXNGReader.ERR_DISALLOWED_ATTRIBUTE, startTag.qName, "name" ); return null; } return reader.getGrammar(); } }
protected Expression defaultExpression() { if( startTag.containsAttribute("substitutionGroup") ) reader.reportError( XMLSchemaReader.ERR_UNIMPLEMENTED_FEATURE, "omitting type attribute in <element> element with substitutionGroup attribute"); // recover by assuming ur-type. // if no content model is given, then this element type is ur-type. // TODO: confirm it. final XMLSchemaReader reader = (XMLSchemaReader)this.reader; reader.reportWarning( XMLSchemaReader.WRN_IMPLICIT_URTYPE_FOR_ELEMENT, null ); return reader.complexUrType; }
protected Expression castExpression( Expression halfCastedExpression, Expression newChildExpression ) { if( startTag.containsAttribute("ref") ) reader.reportError( XMLSchemaReader.ERR_MORE_THAN_ONE_CHILD_EXPRESSION ); if( halfCastedExpression==null ) return newChildExpression; // the first one. return reader.pool.createSequence( newChildExpression, halfCastedExpression ); }
protected Expression castExpression( Expression halfCastedExpression, Expression newChildExpression ) { if( startTag.containsAttribute("ref") ) reader.reportError( XMLSchemaReader.ERR_MORE_THAN_ONE_CHILD_EXPRESSION ); if( halfCastedExpression==null ) return newChildExpression; // the first one. return reader.pool.createSequence( newChildExpression, halfCastedExpression ); }
protected Expression defaultExpression() { if( startTag.containsAttribute("substitutionGroup") ) reader.reportError( XMLSchemaReader.ERR_UNIMPLEMENTED_FEATURE, "omitting type attribute in <element> element with substitutionGroup attribute"); // recover by assuming ur-type. // if no content model is given, then this element type is ur-type. // TODO: confirm it. final XMLSchemaReader reader = (XMLSchemaReader)this.reader; reader.reportWarning( XMLSchemaReader.WRN_IMPLICIT_URTYPE_FOR_ELEMENT, null ); return reader.complexUrType; }
protected Expression castExpression( Expression halfCastedExpression, Expression newChildExpression ) { if( startTag.containsAttribute("ref") ) reader.reportError( XMLSchemaReader.ERR_MORE_THAN_ONE_CHILD_EXPRESSION ); if( halfCastedExpression==null ) return newChildExpression; // the first one. return reader.pool.createSequence( newChildExpression, halfCastedExpression ); }
protected State elementRule(State parent,StartTagInfo tag) { if(tag.containsAttribute("type")) return new ElementRuleWithTypeState(); else return new ElementRuleWithHedgeState(); }
protected Expression defaultExpression() { if( startTag.containsAttribute("substitutionGroup") ) reader.reportError( XMLSchemaReader.ERR_UNIMPLEMENTED_FEATURE, "omitting type attribute in <element> element with substitutionGroup attribute"); // recover by assuming ur-type. // if no content model is given, then this element type is ur-type. // TODO: confirm it. final XMLSchemaReader reader = (XMLSchemaReader)this.reader; reader.reportWarning( XMLSchemaReader.WRN_IMPLICIT_URTYPE_FOR_ELEMENT, null ); return reader.complexUrType; }
protected ReferenceExp getReference() { final RELAXNGReader reader = (RELAXNGReader)this.reader; if( startTag.containsAttribute("name") ) { // since the name attribute is allowed to the certain point, // it is useful to explicitly raise this as an error. reader.reportError( RELAXNGReader.ERR_DISALLOWED_ATTRIBUTE, startTag.qName, "name" ); return null; } return reader.getGrammar(); } }
protected Expression castExpression( Expression halfCastedExpression, Expression newChildExpression ) { if( startTag.containsAttribute("ref") ) reader.reportError( XMLSchemaReader.ERR_MORE_THAN_ONE_CHILD_EXPRESSION ); if( halfCastedExpression==null ) return newChildExpression; // the first one. return reader.pool.createSequence( newChildExpression, halfCastedExpression ); }
protected State elementRule(State parent,StartTagInfo tag) { if(tag.containsAttribute("type")) return new ElementRuleWithTypeState(); else return new ElementRuleWithHedgeState(); }
protected ReferenceExp getReference() { final RELAXNGReader reader = (RELAXNGReader)this.reader; if( startTag.containsAttribute("name") ) { // since the name attribute is allowed to the certain point, // it is useful to explicitly raise this as an error. reader.reportError( RELAXNGReader.ERR_DISALLOWED_ATTRIBUTE, startTag.qName, "name" ); return null; } return reader.getGrammar(); } }
protected State elementRule(State parent,StartTagInfo tag) { if(tag.containsAttribute("type")) return new ElementRuleWithTypeState(); else return new ElementRuleWithHedgeState(); }
public State createExpressionChildState( State parent, StartTagInfo tag ) { if(tag.localName.equals("element")) { if(tag.containsAttribute("ref")) return sfactory.elementRef(parent,tag); else return sfactory.elementDecl(parent,tag); } if(tag.localName.equals("any")) return sfactory.any(parent,tag); return createModelGroupState(parent,tag); }
public State createExpressionChildState( State parent, StartTagInfo tag ) { if(tag.localName.equals("element")) { if(tag.containsAttribute("ref")) return sfactory.elementRef(parent,tag); else return sfactory.elementDecl(parent,tag); } if(tag.localName.equals("any")) return sfactory.any(parent,tag); return createModelGroupState(parent,tag); }
public State createExpressionChildState( State parent, StartTagInfo tag ) { if(tag.localName.equals("element")) { if(tag.containsAttribute("ref")) return sfactory.elementRef(parent,tag); else return sfactory.elementDecl(parent,tag); } if(tag.localName.equals("any")) return sfactory.any(parent,tag); return createModelGroupState(parent,tag); }
public State createExpressionChildState( State parent, StartTagInfo tag ) { if(tag.localName.equals("element")) { if(tag.containsAttribute("ref")) return sfactory.elementRef(parent,tag); else return sfactory.elementDecl(parent,tag); } if(tag.localName.equals("any")) return sfactory.any(parent,tag); return createModelGroupState(parent,tag); }