- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.xerces.xni.grammars.XSGrammar
类的一些代码示例,展示了XSGrammar
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSGrammar
类的具体详情如下:
包路径:org.apache.xerces.xni.grammars.XSGrammar
类名称:XSGrammar
[英]Representing a schema grammar. It contains declaratoin/definitions from a certain namespace. When a grammar is preparsed, and its grammar type is XML Schema, it can be casted to this interface. Objects of this interface can be converted to XSModel, from which further information about components in this grammar can be obtained.
[中]表示模式语法。它包含来自特定命名空间的声明/定义。当一个语法已经准备好,并且它的语法类型是XMLSchema时,它可以被转换到这个接口。此接口的对象可以转换为XSModel,从中可以获得有关此语法中组件的更多信息。
代码示例来源:origin: org.opengis.cite/cite1-utils
public void parse(String baseUri, String schemaText) throws IOException {
this.model = ((XSGrammar) GrammarUtil.parseGrammar(baseUri, schemaText,
null, this.grammarErrorHandler)).toXSModel();
initialize();
}
代码示例来源:origin: org.opengis.cite/schema-utils
for (int i = 0; i < grammars.length; i++) {
XSGrammar xsGrammar = (XSGrammar) grammars[i];
if (xsGrammar.getGrammarDescription().getNamespace()
.equals(targetNamespace)) {
xsModel = xsGrammar.toXSModel();
break;
代码示例来源:origin: org.opengis.cite/cite1-utils
public void parse(String baseUri, Reader in) throws IOException {
this.model = ((XSGrammar) GrammarUtil.parseGrammar(baseUri, in, null,
this.grammarErrorHandler)).toXSModel();
initialize();
}
代码示例来源:origin: org.opengis.cite/cite1-utils
public void parse(File file) throws IOException {
this.model = ((XSGrammar) GrammarUtil.parseGrammar(file, null,
this.grammarErrorHandler)).toXSModel();
initialize();
}
代码示例来源:origin: org.opengis.cite/cite1-utils
public void parse(URL grammarUrl) throws IOException {
this.model = ((XSGrammar) GrammarUtil.parseGrammar(grammarUrl, null,
this.grammarErrorHandler)).toXSModel();
initialize();
}
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
public XSModel load(LSInput is) {
try {
Grammar g = loadGrammar(dom2xmlInputSource(is));
return ((XSGrammar) g).toXSModel();
} catch (Exception e) {
reportDOMFatalError(e);
return null;
}
}
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
public XSModel loadURI(String uri) {
try {
Grammar g = loadGrammar(new XMLInputSource(null, uri, null));
return ((XSGrammar)g).toXSModel();
}
catch (Exception e){
reportDOMFatalError(e);
return null;
}
}
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
/**
* Parse an XML Schema document from a resource identified by a
* <code>LSInput</code> .
* @param is The <code>LSInput</code> from which the source
* document is to be read.
* @return An XSModel representing this schema.
*/
public XSModel load(LSInput is) {
try {
fGrammarPool.clear();
return ((XSGrammar) fSchemaLoader.loadGrammar(fSchemaLoader.dom2xmlInputSource(is))).toXSModel();
}
catch (Exception e) {
fSchemaLoader.reportDOMFatalError(e);
return null;
}
}
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
/**
* Parse an XML Schema document from a location identified by a URI
* reference. If the URI contains a fragment identifier, the behavior is
* not defined by this specification.
* @param uri The location of the XML Schema document to be read.
* @return An XSModel representing this schema.
*/
public XSModel loadURI(String uri) {
try {
fGrammarPool.clear();
return ((XSGrammar) fSchemaLoader.loadGrammar(new XMLInputSource(null, uri, null))).toXSModel();
}
catch (Exception e){
fSchemaLoader.reportDOMFatalError(e);
return null;
}
}
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.wsdl-asl
schemaModel = xsGrammar.toXSModel();
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
try {
XSGrammar xsg = (XSGrammar) parser.preparseGrammar(XMLGrammarDescription.XML_SCHEMA, source);
org.apache.xerces.xs.XSModel xsm = xsg.toXSModel();
XSNamedMap map = xsm.getComponents(XSTypeDefinition.SIMPLE_TYPE);
int numDefs = map.getLength();
代码示例来源:origin: org.eclipse/org.eclipse.wst.wsi
xsModel = grammar.toXSModel();
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
xsModel = grammar.toXSModel();
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
StringList namespaces = grammar.toXSModel().getNamespaces();
if(namespaces.contains(targetNamespace))
xsModel = grammar.toXSModel();
是否有使用 Xerces XNI 的简单示例? ?我正在查看示例代码,无法弄清楚它在做什么,也不想直接剪切并粘贴到我的应用程序中。例如,我不知道如何创建 org.apache.xerces.xni.p
本文整理了Java中org.apache.xerces.xni.grammars.XSGrammar类的一些代码示例,展示了XSGrammar类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中org.apache.xerces.xni.parser.XMLDocumentSource类的一些代码示例,展示了XMLDocumentSource类的具体用法。这些代码示例主要
本文整理了Java中org.apache.xerces.xni.grammars.XSGrammar.toXSModel()方法的一些代码示例,展示了XSGrammar.toXSModel()的具体用
本文整理了Java中org.apache.xerces.xni.parser.XMLDocumentSource.getDocumentHandler()方法的一些代码示例,展示了XMLDocumen
本文整理了Java中org.apache.xerces.xni.parser.XMLDocumentSource.setDocumentHandler()方法的一些代码示例,展示了XMLDocumen
我使用 Netbeans 7.4 和 Apache Tomcat 来调试 servlet。 Tomcat 服务器抛出错误: java.lang.ClassNotFoundException: org.
我在gradle项目中使用Xerces jar,然后在gradle插件中使用该项目的jar:实际上,我正在开发一个gradle插件,其中包含使用gradle项目jar的某些功能的自定义任务;当我尝试运
我在 there 中提到过类似的问题.我正在使用 mvn clean compile site 命令,我的版本是: cobertura.version: 2.5.1 findbugs.version:
我正在 Eclipse 中开发 GWT 应用程序并使用 jdom2 读取一些自定义 xml 属性文件。 在最近的更新之后,我的应用程序现在在尝试读取 xml 文件时失败并出现上述错误。相关堆栈跟踪是:
我正在使用 openjdk11,在使用 maven 构建时出现以下错误。 以下是我在日志中收到的错误: Caused by: org.apache.maven.plugin.PluginContain
我是一名优秀的程序员,十分优秀!