gpt4 book ai didi

com.sun.msv.verifier.regexp.xmlschema.XSREDocDecl类的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 09:09:05 27 4
gpt4 key购买 nike

本文整理了Java中com.sun.msv.verifier.regexp.xmlschema.XSREDocDecl类的一些代码示例,展示了XSREDocDecl类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSREDocDecl类的具体详情如下:
包路径:com.sun.msv.verifier.regexp.xmlschema.XSREDocDecl
类名称: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:

  1. the xsi:nil attribute support.
  2. the runtime type substitution by the xsi:type attribute
    [中]REDocumentDeclaration支持多个W3C XML模式特定语义。
    如果使用W3C XML模式进行验证,那么应该使用这个VGM,而不是普通的REDocumentDeclaration。您还应该使用IDConstraintChecker而不是Verifier类。
    这个包实现了以下功能:
    1.xsi:nil属性支持。
    1.使用xsi:type属性替换运行时类型

代码示例

代码示例来源: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);
  }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com