protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( startTag.containsAttribute("ref") ) { // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.groupDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; } return null; // use null to indicate that there is no child expression. }
protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; String refQName = startTag.getAttribute("ref"); if( refQName==null ) // child expressions are expected. (although it's optional) return Expression.epsilon; Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.attributeGroups; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; }
protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; String refQName = startTag.getAttribute("ref"); if( refQName==null ) // child expressions are expected. (although it's optional) return Expression.epsilon; Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.attributeGroups; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; }
protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; String refQName = startTag.getAttribute("ref"); if( refQName==null ) // child expressions are expected. (although it's optional) return Expression.epsilon; Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.attributeGroups; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; }
protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; String refQName = startTag.getAttribute("ref"); if( refQName==null ) // child expressions are expected. (although it's optional) return Expression.epsilon; Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.attributeGroups; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; }
protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( startTag.containsAttribute("ref") ) { // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.groupDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; } return null; // use null to indicate that there is no child expression. }
protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( startTag.containsAttribute("ref") ) { // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.groupDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; } return null; // use null to indicate that there is no child expression. }
protected Expression makeExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: what attributes can be used with @ref? if( !startTag.containsAttribute("ref") ) // existance of @ref must be checked before instanciation of this object. throw new Error(); // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.elementDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. // minOccurs/maxOccurs is processed through interception return exp; } }
protected Expression makeExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: what attributes can be used with @ref? if( !startTag.containsAttribute("ref") ) // existance of @ref must be checked before instanciation of this object. throw new Error(); // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.elementDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. // minOccurs/maxOccurs is processed through interception return exp; } }
protected Expression initialExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( startTag.containsAttribute("ref") ) { // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.groupDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. return exp; } return null; // use null to indicate that there is no child expression. }
protected Expression makeExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: what attributes can be used with @ref? if( !startTag.containsAttribute("ref") ) // existance of @ref must be checked before instanciation of this object. throw new Error(); // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.elementDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. // minOccurs/maxOccurs is processed through interception return exp; } }
protected Expression makeExpression() { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // TODO: what attributes can be used with @ref? if( !startTag.containsAttribute("ref") ) // existance of @ref must be checked before instanciation of this object. throw new Error(); // this this tag has @ref. Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() { public ReferenceContainer get( XMLSchemaSchema g ) { return g.elementDecls; } } ); if( exp==null ) return Expression.epsilon; // couldn't resolve QName. // minOccurs/maxOccurs is processed through interception return exp; } }
Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() {
Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() {
Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() {
Expression exp = reader.resolveQNameRef( startTag, "ref", new XMLSchemaReader.RefResolver() {