本文整理了Java中org.geotools.xsd.XSD.buildSchema()
方法的一些代码示例,展示了XSD.buildSchema()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSD.buildSchema()
方法的具体详情如下:
包路径:org.geotools.xsd.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: geotools/geotools
/** 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: geotools/geotools
@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;
}
}
代码示例来源:origin: geotools/geotools
@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;
}
}
代码示例来源:origin: geotools/geotools
@Override
protected XSDSchema buildSchema() throws IOException {
// check if schema already exists in registry, if so do not build
XSDSchema schema = AppSchemaXSDRegistry.getInstance().lookUp(schemaLocation);
if (schema == null) {
schema = super.buildSchema();
// register schema
AppSchemaXSDRegistry.getInstance().register(schema);
} else {
// reset because included schema's are not always complete
schema.reset();
}
return schema;
}
}
内容来源于网络,如有侵权,请联系作者删除!