本文整理了Java中com.sun.msv.verifier.regexp.xmlschema.XSREDocDecl
类的一些代码示例,展示了XSREDocDecl
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSREDocDecl
类的具体详情如下:
包路径:com.sun.msv.verifier.regexp.xmlschema.XSREDocDecl
类名称:XSREDocDecl
[英]REDocumentDeclaration that supports several W3C XML Schema specific semantics.
If you do validation by using W3C XML Schema, then you should use this VGM instead of plain REDocumentDeclaration
. You should also use IDConstraintChecker instead of Verifier class.
This package implements the following things:
REDocumentDeclaration
。您还应该使用IDConstraintChecker而不是Verifier类。代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public XMLValidator createValidator(ValidationContext ctxt)
throws XMLStreamException
{
XSREDocDecl dd = new XSREDocDecl(mGrammar);
return new GenericMsvValidator(this, ctxt, dd);
}
}
代码示例来源:origin: kohsuke/msv
_docDecl.getCCCEC().get( getExpression(), sti, true );
switch( _docDecl.getCCCEC().numMatchedElements() ) {
case 0:
final ElementExp element = _docDecl.getCCCEC().getMatchedElements()[0];
refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_NON_NILLABLE_ELEMENT, sti.qName );
return new XSAcceptor( _docDecl, Expression.epsilon, xe, null );
代码示例来源:origin: msv/msv
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);
}
代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi
_docDecl.getCCCEC().get( getExpression(), sti, true );
switch( _docDecl.getCCCEC().numMatchedElements() ) {
case 0:
final ElementExp element = _docDecl.getCCCEC().getMatchedElements()[0];
refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_NON_NILLABLE_ELEMENT, sti.qName );
return new XSAcceptor( _docDecl, Expression.epsilon, xe, null );
代码示例来源:origin: msv/msv
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);
}
代码示例来源:origin: com.sun.xml.bind/jaxb1-impl
public IDConstraintChecker( XMLSchemaGrammar grammar, ErrorHandler errorHandler ) {
super(new XSREDocDecl(grammar),errorHandler);
this.grammar = grammar;
}
代码示例来源:origin: msv/msv
_docDecl.getCCCEC().get( getExpression(), sti, true );
switch( _docDecl.getCCCEC().numMatchedElements() ) {
case 0:
final ElementExp element = _docDecl.getCCCEC().getMatchedElements()[0];
refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_NON_NILLABLE_ELEMENT, sti.qName );
return new XSAcceptor( _docDecl, Expression.epsilon, xe, null );
代码示例来源:origin: kohsuke/msv
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);
}
代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi
public IDConstraintChecker( XMLSchemaGrammar grammar, ErrorHandler errorHandler ) {
super(new XSREDocDecl(grammar),errorHandler);
this.grammar = grammar;
}
代码示例来源:origin: com.sun.xml.bind/jaxb1-impl
_docDecl.getCCCEC().get( getExpression(), sti, true );
switch( _docDecl.getCCCEC().numMatchedElements() ) {
case 0:
final ElementExp element = _docDecl.getCCCEC().getMatchedElements()[0];
refErr.str = _docDecl.localizeMessage( XSREDocDecl.ERR_NON_NILLABLE_ELEMENT, sti.qName );
return new XSAcceptor( _docDecl, Expression.epsilon, xe, null );
代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi
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);
}
代码示例来源:origin: kohsuke/msv
public IDConstraintChecker( XMLSchemaGrammar grammar, ErrorHandler errorHandler ) {
super(new XSREDocDecl(grammar),errorHandler);
this.grammar = grammar;
}
代码示例来源:origin: com.sun.xml.bind/jaxb1-impl
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);
}
代码示例来源:origin: msv/msv
public IDConstraintChecker( XMLSchemaGrammar grammar, ErrorHandler errorHandler ) {
super(new XSREDocDecl(grammar),errorHandler);
this.grammar = grammar;
}
代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi
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);
}
代码示例来源:origin: Nextdoor/bender
@Override
public XMLValidator createValidator(ValidationContext ctxt)
throws XMLStreamException
{
XSREDocDecl dd = new XSREDocDecl(mGrammar);
return new GenericMsvValidator(this, ctxt, dd);
}
}
代码示例来源:origin: com.sun.xml.bind/jaxb1-impl
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);
}
代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi
private static REDocumentDeclaration wrapByVGM( Grammar g ) {
if( g instanceof XMLSchemaGrammar )
return new XSREDocDecl((XMLSchemaGrammar)g);
else
return new REDocumentDeclaration(g);
}
代码示例来源:origin: kohsuke/msv
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);
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
@Override
public XMLValidator createValidator(ValidationContext ctxt)
throws XMLStreamException
{
XSREDocDecl dd = new XSREDocDecl(mGrammar);
return new GenericMsvValidator(this, ctxt, dd);
}
}
内容来源于网络,如有侵权,请联系作者删除!