本文整理了Java中org.geotools.xml.XSD.buildSchema()
方法的一些代码示例,展示了XSD.buildSchema()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSD.buildSchema()
方法的具体详情如下:
包路径:org.geotools.xml.XSD
类名称:XSD
方法名:buildSchema
[英]Builds the schema from the .xsd file specified by #getSchemaLocation()
This method may be extended, but should not be overridden.
[中]从中构建架构。由#getSchemaLocation()指定的xsd文件
此方法可以扩展,但不应被重写。
代码示例来源:origin: org.geoserver/gs-wfs
/**
* Suplements the schema built by the parent by adding hte aplication schema feature typs
* defined in GeoServer.
*/
protected XSDSchema buildSchema() throws IOException {
XSDSchema wfsSchema = super.buildSchema();
wfsSchema = schemaBuilder.addApplicationTypes(wfsSchema);
return wfsSchema;
}
}
代码示例来源:origin: org.geotools/gt2-xml-core
/**
* Returns the XSD object representing the contents of the schema.
*/
public final XSDSchema getSchema() throws IOException {
if (schema == null) {
synchronized (this) {
if (schema == null) {
LOGGER.fine("building schema for schema: " + getNamespaceURI());
schema = buildSchema();
}
}
}
return schema;
}
代码示例来源:origin: org.geotools.xsd/gt-core
/**
* Returns the XSD object representing the contents of the schema.
*/
public final XSDSchema getSchema() throws IOException {
if (schema == null) {
synchronized (this) {
if (schema == null) {
LOGGER.fine("building schema for schema: " + getNamespaceURI());
schema = buildSchema();
}
}
}
return schema;
}
代码示例来源:origin: org.geotools.xsd/gt-xsd-gml3
@Override
protected XSDSchema buildSchema() throws IOException {
XSDSchema schema = super.buildSchema();
schema.resolveElementDeclaration(NAMESPACE, "_Feature").eAdapters()
.add(new SubstitutionGroupLeakPreventer());
schema.eAdapters().add(new ReferencingDirectiveLeakPreventer());
return schema;
}
}
内容来源于网络,如有侵权,请联系作者删除!