org.apache.xerces.impl.xs.XMLSchemaLoader.<init>()方法的使用及代码示例

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

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

XMLSchemaLoader.<init>介绍

[英]This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager, will be passed during reset(XMLComponentManager).
[中]XMLSchemaValidator使用此构造函数。重置(XMLComponentManager)期间将传递其他属性,即XMLEntityManager。

代码示例

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 * <strong>REVISIT:</strong> 
 * Grammar pool will be updated when the new validation engine is
 * implemented.
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XMLGrammarCachingConfiguration(SymbolTable symbolTable,
                  XMLGrammarPool grammarPool,
                  XMLComponentManager parentSettings) {
  super(symbolTable, grammarPool, parentSettings);
  // REVISIT:  may need to add some features/properties
  // specific to this configuration at some point...
  // add default recognized features
  // set state for default features
  // add default recognized properties
  // create and register missing components
  fSchemaLoader = new XMLSchemaLoader(fSymbolTable);
  fSchemaLoader.setProperty(XMLGRAMMAR_POOL, fGrammarPool);
  // and set up the DTD loader too:
  fDTDLoader = new XMLDTDLoader(fSymbolTable, fGrammarPool);
} // <init>(SymbolTable,XMLGrammarPool, XMLComponentManager)

代码示例来源:origin: org.wso2.bpel/ode-utils

XMLSchemaLoader schemaLoader = new XMLSchemaLoader();
InternalSchemaResolver resolver = new InternalSchemaResolver();
schemaLoader.setEntityResolver(resolver);

代码示例来源:origin: org.eclipse/org.eclipse.datatools.enablement.oda.xml

XSLoader xsLoader = new XMLSchemaLoader( );
LSInput input = new DOMInputImpl( );
try

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

/**
* Get an instance of XSLoader that is capable of
* parsing schema files
*
* @return
*/
public XSLoader getXSLoader()
{
 XMLSchemaLoader xsloader = new XMLSchemaLoader();
 JBossXSErrorHandler eh = new JBossXSErrorHandler();
 xsloader.setErrorHandler(eh);
 xsloader.setProperty("http://apache.org/xml/properties/internal/grammar-pool", new XMLGrammarPoolImpl());
 return xsloader;
}

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

/**
* Get an instance of XSLoader that is capable of
* parsing schema files
* @param xeh XML Error handler
* @param xer XML Entity Resolver
* @return
*/
public XSLoader getXSLoader(XMLErrorHandler xeh, XMLEntityResolver xer)
{
 XMLSchemaLoader xsloader = new XMLSchemaLoader();
 xsloader.setEntityResolver(xer);
 xsloader.setErrorHandler(xeh);
 xsloader.setProperty("http://apache.org/xml/properties/internal/grammar-pool", new XMLGrammarPoolImpl());
 return xsloader;
}

代码示例来源:origin: org.wso2.bpel/ode-utils

XMLSchemaLoader schemaLoader = new XMLSchemaLoader();
schemaLoader.setEntityResolver(cr);
schemaLoader.setFeature("http://apache.org/xml/features/honour-all-schemaLocations", true);

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

private final XMLSchemaLoader fXMLSchemaLoader = new XMLSchemaLoader();

代码示例来源:origin: elodina/xml-avro

public Schema createSchema(LSInput input) {
  ErrorHandler errorHandler = new ErrorHandler();
  XMLSchemaLoader loader = new XMLSchemaLoader();
  if (resolver != null)
    loader.setEntityResolver(new EntityResolver(resolver));
  loader.setErrorHandler(errorHandler);
  loader.setParameter(Constants.DOM_ERROR_HANDLER, errorHandler);
  XSModel model = loader.load(input);
  errorHandler.throwExceptionIfHasError();
  return createSchema(model);
}

代码示例来源:origin: deegree/deegree3

XMLSchemaLoader schemaLoader = new XMLSchemaLoader();
schemaLoader.setFeature( SCHEMA_FULL_CHECKING_FEATURE_ID, true );

代码示例来源:origin: deegree/deegree3

IllegalAccessException {
XMLSchemaLoader schemaLoader = new XMLSchemaLoader();
DOMConfiguration config = schemaLoader.getConfig();
ErrorHandler errorHandler = new ErrorHandler();

代码示例来源:origin: deegree/deegree3

IllegalAccessException {
XMLSchemaLoader schemaLoader = new XMLSchemaLoader();
DOMConfiguration config = schemaLoader.getConfig();
ErrorHandler errorHandler = new ErrorHandler();

相关文章