org.codehaus.stax2.validation.XMLValidationSchema.createValidator()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中org.codehaus.stax2.validation.XMLValidationSchema.createValidator()方法的一些代码示例,展示了XMLValidationSchema.createValidator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLValidationSchema.createValidator()方法的具体详情如下:
包路径:org.codehaus.stax2.validation.XMLValidationSchema
类名称:XMLValidationSchema
方法名:createValidator

XMLValidationSchema.createValidator介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. XMLValidator vld = schema.createValidator(this);
  5. if (mValidator == null) {
  6. /* Need to enable other validation modes? Structural validation
  7. * should always be done when we have other validators as well,
  8. * as well as attribute uniqueness checks.
  9. */
  10. mCheckStructure = true;
  11. mCheckAttrs = true;
  12. mValidator = vld;
  13. } else {
  14. mValidator = new ValidatorPair(mValidator, vld);
  15. }
  16. return vld;
  17. }

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: FasterXML/woodstox

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: woodstox/wstx-lgpl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: woodstox/wstx-asl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: Nextdoor/bender

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. /* Should we first check if we maybe already have a validator
  5. * for the schema?
  6. */
  7. return addValidator(schema.createValidator(this));
  8. }

代码示例来源:origin: woodstox/wstx-asl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. XMLValidator vld = schema.createValidator(this);
  5. if (mValidator == null) {
  6. /* Need to enable other validation modes? Structural validation
  7. * should always be done when we have other validators as well,
  8. * as well as attribute uniqueness checks.
  9. */
  10. mCheckStructure = true;
  11. mCheckAttrs = true;
  12. mValidator = vld;
  13. } else {
  14. mValidator = new ValidatorPair(mValidator, vld);
  15. }
  16. return vld;
  17. }

代码示例来源:origin: FasterXML/aalto-xml

  1. @Override
  2. public XMLValidator validateAgainst(XMLValidationSchema schema) throws XMLStreamException
  3. {
  4. XMLValidator vld = schema.createValidator(this);
  5. if (_validator == null) {
  6. /* Need to enable other validation modes? Structural validation
  7. * should always be done when we have other validators as well,
  8. * as well as attribute uniqueness checks.
  9. */
  10. _cfgCheckStructure = true;
  11. _cfgCheckAttrs = true;
  12. _validator = vld;
  13. } else {
  14. _validator = new ValidatorPair(_validator, vld);
  15. }
  16. return vld;
  17. }

代码示例来源:origin: com.fasterxml/aalto-xml

  1. @Override
  2. public XMLValidator validateAgainst(XMLValidationSchema schema) throws XMLStreamException
  3. {
  4. XMLValidator vld = schema.createValidator(this);
  5. if (_validator == null) {
  6. /* Need to enable other validation modes? Structural validation
  7. * should always be done when we have other validators as well,
  8. * as well as attribute uniqueness checks.
  9. */
  10. _cfgCheckStructure = true;
  11. _cfgCheckAttrs = true;
  12. _validator = vld;
  13. } else {
  14. _validator = new ValidatorPair(_validator, vld);
  15. }
  16. return vld;
  17. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. XMLValidator vld = schema.createValidator(this);
  5. if (mValidator == null) {
  6. /* Need to enable other validation modes? Structural validation
  7. * should always be done when we have other validators as well,
  8. * as well as attribute uniqueness checks.
  9. */
  10. mCheckStructure = true;
  11. mCheckAttrs = true;
  12. mValidator = vld;
  13. } else {
  14. mValidator = new ValidatorPair(mValidator, vld);
  15. }
  16. return vld;
  17. }

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

  1. @Override
  2. public XMLValidator validateAgainst(XMLValidationSchema schema)
  3. throws XMLStreamException
  4. {
  5. XMLValidator vld = schema.createValidator(this);
  6. if (mValidator == null) {
  7. /* Need to enable other validation modes? Structural validation
  8. * should always be done when we have other validators as well,
  9. * as well as attribute uniqueness checks.
  10. */
  11. mCheckStructure = true;
  12. mCheckAttrs = true;
  13. mValidator = vld;
  14. } else {
  15. mValidator = new ValidatorPair(mValidator, vld);
  16. }
  17. return vld;
  18. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. XMLValidator vld = schema.createValidator(this);
  5. if (mValidator == null) {
  6. /* Need to enable other validation modes? Structural validation
  7. * should always be done when we have other validators as well,
  8. * as well as attribute uniqueness checks.
  9. */
  10. mCheckStructure = true;
  11. mCheckAttrs = true;
  12. mValidator = vld;
  13. } else {
  14. mValidator = new ValidatorPair(mValidator, vld);
  15. }
  16. return vld;
  17. }

代码示例来源:origin: woodstox/wstx-lgpl

  1. public XMLValidator validateAgainst(XMLValidationSchema schema)
  2. throws XMLStreamException
  3. {
  4. XMLValidator vld = schema.createValidator(this);
  5. if (mValidator == null) {
  6. /* Need to enable other validation modes? Structural validation
  7. * should always be done when we have other validators as well,
  8. * as well as attribute uniqueness checks.
  9. */
  10. mCheckStructure = true;
  11. mCheckAttrs = true;
  12. mValidator = vld;
  13. } else {
  14. mValidator = new ValidatorPair(mValidator, vld);
  15. }
  16. return vld;
  17. }

代码示例来源:origin: Nextdoor/bender

  1. @Override
  2. public XMLValidator validateAgainst(XMLValidationSchema schema)
  3. throws XMLStreamException
  4. {
  5. XMLValidator vld = schema.createValidator(this);
  6. if (mValidator == null) {
  7. /* Need to enable other validation modes? Structural validation
  8. * should always be done when we have other validators as well,
  9. * as well as attribute uniqueness checks.
  10. */
  11. mCheckStructure = true;
  12. mCheckAttrs = true;
  13. mValidator = vld;
  14. } else {
  15. mValidator = new ValidatorPair(mValidator, vld);
  16. }
  17. return vld;
  18. }

代码示例来源:origin: FasterXML/woodstox

  1. @Override
  2. public XMLValidator validateAgainst(XMLValidationSchema schema)
  3. throws XMLStreamException
  4. {
  5. XMLValidator vld = schema.createValidator(this);
  6. if (mValidator == null) {
  7. /* Need to enable other validation modes? Structural validation
  8. * should always be done when we have other validators as well,
  9. * as well as attribute uniqueness checks.
  10. */
  11. mCheckStructure = true;
  12. mCheckAttrs = true;
  13. mValidator = vld;
  14. } else {
  15. mValidator = new ValidatorPair(mValidator, vld);
  16. }
  17. return vld;
  18. }

相关文章