public Acceptor createClone() { return new SimpleAcceptor( docDecl, getExpression(), owner, continuation ); } }
private Acceptor onNotSubstitutableType( StartTagInfo sti, String type, StringRef refErr ) { if(refErr==null) return null; refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_NOT_SUBSTITUTABLE_TYPE, type ); return super.createChildAcceptor(sti,refErr); }
public Acceptor createAcceptor() { // top-level Acceptor cannot have continuation. return new SimpleAcceptor(this, topLevel, null, Expression.epsilon); }
protected boolean onAttribute( AttributeToken token, StringRef refErr ) { // xsi:*** attribute is ignored. // TODO: maybe we should issue an error for unrecognized xsi:*** attributes. if( token.namespaceURI.equals(XSINamespace) ) { token.match(_docDecl.xsiAttExp); return true; } return super.onAttribute( token, refErr ); }
private Acceptor onNotSubstitutableType( StartTagInfo sti, String type, StringRef refErr ) { if(refErr==null) return null; refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_NOT_SUBSTITUTABLE_TYPE, type ); return super.createChildAcceptor(sti,refErr); }
public Acceptor createAcceptor() { // top-level Acceptor cannot have continuation. return new SimpleAcceptor(this, topLevel, null, Expression.epsilon); }
protected boolean onAttribute( AttributeToken token, StringRef refErr ) { // xsi:*** attribute is ignored. // TODO: maybe we should issue an error for unrecognized xsi:*** attributes. if( token.namespaceURI.equals(XSINamespace) ) { token.match(_docDecl.xsiAttExp); return true; } return super.onAttribute( token, refErr ); }
public Acceptor createClone() { return new SimpleAcceptor( docDecl, getExpression(), owner, continuation ); } }
private Acceptor onTypeResolutionFailure( StartTagInfo sti, String type, StringRef refErr ) { if(refErr==null) return null; refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_UNDEFINED_TYPE, type ); return super.createChildAcceptor(sti,refErr); }
public Acceptor createAcceptor() { // top-level Acceptor cannot have continuation. return new SimpleAcceptor(this, topLevel, null, Expression.epsilon); }
protected boolean onAttribute( AttributeToken token, StringRef refErr ) { // xsi:*** attribute is ignored. // TODO: maybe we should issue an error for unrecognized xsi:*** attributes. if( token.namespaceURI.equals(XSINamespace) ) { token.match(_docDecl.xsiAttExp); return true; } return super.onAttribute( token, refErr ); }
public Acceptor createClone() { return new SimpleAcceptor( docDecl, getExpression(), owner, continuation ); } }
private Acceptor onTypeResolutionFailure( StartTagInfo sti, String type, StringRef refErr ) { if(refErr==null) return null; refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_UNDEFINED_TYPE, type ); return super.createChildAcceptor(sti,refErr); }
public Acceptor createAcceptor() { // top-level Acceptor cannot have continuation. return new SimpleAcceptor(this, topLevel, null, Expression.epsilon); }
protected boolean onAttribute( AttributeToken token, StringRef refErr ) { // xsi:*** attribute is ignored. // TODO: maybe we should issue an error for unrecognized xsi:*** attributes. if( token.namespaceURI.equals(XSINamespace) ) { token.match(_docDecl.xsiAttExp); return true; } return super.onAttribute( token, refErr ); }
public Acceptor createClone() { return new SimpleAcceptor( docDecl, getExpression(), owner, continuation ); } }
private Acceptor onNotSubstitutableType( StartTagInfo sti, String type, StringRef refErr ) { if(refErr==null) { return null; } refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_NOT_SUBSTITUTABLE_TYPE, type ); return super.createChildAcceptor(sti,refErr); }
/** * creates actual Acceptor object from the computed result. */ protected Acceptor createAcceptor( Expression combined, Expression continuation, ElementExp[] primitives, int numPrimitives ) { if( primitives==null || numPrimitives<=1 ) { // primitives==null is possible when recovering from error. // in this special case, combined child pattern and primitive patterns are the same. // therefore we don't need to keep track of primitive patterns. return new SimpleAcceptor( docDecl, combined, (primitives==null)?null:primitives[0], continuation ); } // TODO: implements MultipleAcceptor for cases that // combined expression is unnecessary but there are more than one primitive. if( com.sun.msv.driver.textui.Debug.debug ) System.out.println("ComplexAcceptor is used"); // we need a fresh array. ElementExp[] owners = new ElementExp[numPrimitives]; System.arraycopy( primitives, 0, owners, 0, numPrimitives ); return new ComplexAcceptor( docDecl, combined, owners ); }
private Acceptor onTypeResolutionFailure( StartTagInfo sti, String type, StringRef refErr ) { if(refErr==null) return null; refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_UNDEFINED_TYPE, type ); return super.createChildAcceptor(sti,refErr); }
/** * creates actual Acceptor object from the computed result. */ protected Acceptor createAcceptor( Expression combined, Expression continuation, ElementExp[] primitives, int numPrimitives ) { if( primitives==null || numPrimitives<=1 ) { // primitives==null is possible when recovering from error. // in this special case, combined child pattern and primitive patterns are the same. // therefore we don't need to keep track of primitive patterns. return new SimpleAcceptor( docDecl, combined, (primitives==null)?null:primitives[0], continuation ); } // TODO: implements MultipleAcceptor for cases that // combined expression is unnecessary but there are more than one primitive. if( com.sun.msv.driver.textui.Debug.debug ) System.out.println("ComplexAcceptor is used"); // we need a fresh array. ElementExp[] owners = new ElementExp[numPrimitives]; System.arraycopy( primitives, 0, owners, 0, numPrimitives ); return new ComplexAcceptor( docDecl, combined, owners ); }