private String concatenateMessages( Set items, boolean more, String separatorStr, String moreStr ) { return concatenateMessages( new Vector(items), more, separatorStr, moreStr ); }
return createAcceptor( e.content, e.continuation, cccc.getMatchedElements(), cccc.numMatchedElements() ); errRef.str = diagnoseBadTagName(tag); if( errRef.str==null ) return createRecoveryAcceptors();
/** checks if this Acceptor is satisifed */ public boolean isAcceptState( StringRef errRef ) { if( errRef==null ) return expression.isEpsilonReducible(); else { if(expression.isEpsilonReducible()) return true; // error. provide diagnosis errRef.str = diagnoseUncompletedContent(); return false; } }
String dtMsg = getDiagnosisFromTypedString( tse, rtoken.value ); if(dtMsg==null) return null; REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_WRAPUP, rtoken.qName, concatenateMessages( items, more, REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_SEPARATOR, REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_MORE ) );
public final boolean onAttribute2( String namespaceURI, String localName, String qName, String value, IDContextProvider2 context, StringRef refErr, DatatypeRef refType ) { // instead of creating a new object each time, // use a cached copy. docDecl.attToken.reinit( namespaceURI,localName,qName, new StringToken(docDecl,value,context,refType) ); return onAttribute( docDecl.attToken, refErr ); }
REDocumentDeclaration.DIAG_CONTENT_MODEL_IS_NULLSET, null ); } else { refErr.str = diagnoseMissingAttribute(sti); if( refErr.str==null )
errRef.str = diagnoseUnexpectedLiteral( (StringToken)token );
return createAcceptor( contentModel, continuation, null, 0 );
refErr.str = diagnoseBadAttributeValue( rtoken ); if( refErr.str==null ) {
String dtMsg = getDiagnosisFromTypedString( tse, rtoken.value ); if(dtMsg==null) return null; REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_WRAPUP, rtoken.qName, concatenateMessages( items, more, REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_SEPARATOR, REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_MORE ) );
public final boolean onAttribute2( String namespaceURI, String localName, String qName, String value, IDContextProvider2 context, StringRef refErr, DatatypeRef refType ) { // instead of creating a new object each time, // use a cached copy. docDecl.attToken.reinit( namespaceURI,localName,qName, new StringToken(docDecl,value,context,refType) ); return onAttribute( docDecl.attToken, refErr ); }
REDocumentDeclaration.DIAG_CONTENT_MODEL_IS_NULLSET, null ); } else { refErr.str = diagnoseMissingAttribute(sti); if( refErr.str==null )
errRef.str = diagnoseUnexpectedLiteral( (StringToken)token );
return createAcceptor( contentModel, continuation, null, 0 );
refErr.str = diagnoseBadAttributeValue( rtoken ); if( refErr.str==null ) {
return createAcceptor( e.content, e.continuation, cccc.getMatchedElements(), cccc.numMatchedElements() ); errRef.str = diagnoseBadTagName(tag); if( errRef.str==null ) return createRecoveryAcceptors();
private final String concatenateMessages( Set items, boolean more, String separatorStr, String moreStr ) { return concatenateMessages( new Vector(items), more, separatorStr, moreStr ); }
String dtMsg = getDiagnosisFromTypedString( tse, rtoken.value ); if(dtMsg==null) return null; REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_WRAPUP, rtoken.qName, concatenateMessages( items, more, REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_SEPARATOR, REDocumentDeclaration.DIAG_BAD_ATTRIBUTE_VALUE_MORE ) );
/** checks if this Acceptor is satisifed */ public boolean isAcceptState( StringRef errRef ) { if( errRef==null ) return expression.isEpsilonReducible(); else { if(expression.isEpsilonReducible()) return true; // error. provide diagnosis errRef.str = diagnoseUncompletedContent(); return false; } }
public final boolean onAttribute2( String namespaceURI, String localName, String qName, String value, IDContextProvider2 context, StringRef refErr, DatatypeRef refType ) { // instead of creating a new object each time, // use a cached copy. docDecl.attToken.reinit( namespaceURI,localName,qName, new StringToken(docDecl,value,context,refType) ); return onAttribute( docDecl.attToken, refErr ); }