本文整理了Java中org.eclipse.xsd.XSDSchema.eAdapters()
方法的一些代码示例,展示了XSDSchema.eAdapters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDSchema.eAdapters()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDSchema
类名称:XSDSchema
方法名:eAdapters
暂无
代码示例来源:origin: geotools/geotools
public void destroy() {
// remove the adapter from the schemas
if (schemas == null) {
return;
}
for (int i = 0; i < schemas.length; i++) {
synchronized (this.schemas[i].eAdapters()) {
this.schemas[i].eAdapters().remove(adapter);
}
}
schemas = null;
}
代码示例来源:origin: geotools/geotools
public SchemaIndexImpl(XSDSchema[] schemas) {
this.schemas = new XSDSchema[schemas.length + 1];
adapter = new SchemaAdapter();
// set the schemas passed in
for (int i = 0; i < schemas.length; i++) {
this.schemas[i] = schemas[i];
synchronized (this.schemas[i].eAdapters()) {
this.schemas[i].eAdapters().add(adapter);
}
}
// add the schema for xml schema itself
this.schemas[schemas.length] = schemas[0].getSchemaForSchema();
}
代码示例来源: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
.eAdapters()
.add(new SubstitutionGroupLeakPreventer());
schema.eAdapters().add(new ReferencingDirectiveLeakPreventer());
return schema;
代码示例来源:origin: geotools/geotools
synchronized (resolvedSchema.eAdapters()) {
resolvedSchema.getReferencingDirectives().remove(directive);
for (XSDElementDeclaration dec :
代码示例来源:origin: org.geotools/gt2-xml-core
public SchemaIndexImpl(XSDSchema[] schemas) {
this.schemas = new XSDSchema[schemas.length + 1];
//set the schemas passed in
for (int i = 0; i < schemas.length; i++) {
this.schemas[i] = schemas[i];
this.schemas[i].eAdapters().add(new SchemaAdapter());
}
//add the schema for xml schema itself
this.schemas[schemas.length] = schemas[0].getSchemaForSchema();
}
代码示例来源:origin: org.geotools/gt2-xml-xsd
public SchemaIndexImpl(XSDSchema[] schemas) {
this.schemas = new XSDSchema[ schemas.length + 1 ];
//set the schemas passed in
for ( int i = 0; i < schemas.length; i++ ) {
this.schemas[ i ] = schemas[ i ];
this.schemas[i].eAdapters().add( new SchemaAdapter());
}
//add the schema for xml schema itself
this.schemas[schemas.length] = schemas[0].getSchemaForSchema();
}
代码示例来源:origin: org.geotools.xsd/gt-core
public SchemaIndexImpl(XSDSchema[] schemas) {
this.schemas = new XSDSchema[schemas.length + 1];
//set the schemas passed in
for (int i = 0; i < schemas.length; i++) {
this.schemas[i] = schemas[i];
this.schemas[i].eAdapters().add(new SchemaAdapter());
}
//add the schema for xml schema itself
this.schemas[schemas.length] = schemas[0].getSchemaForSchema();
}
代码示例来源: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;
}
}
代码示例来源:origin: org.geotools.xsd/gt-xsd-gml3
schema.eAdapters().add(new ReferencingDirectiveLeakPreventer());
return schema;
代码示例来源:origin: org.geoserver/gs-wfs
/** Imports the WFS 1.0.0 schema as a dependency. */
private static XSDSchema importWfsSchema(XSDSchema schema) throws IOException {
XSDSchema wfsSchema = org.geotools.wfs.v1_1.WFS.getInstance().getSchema();
if (wfsSchema == null || !(wfsSchema instanceof XSDSchemaImpl)) {
return schema;
}
XSDImport wfsImport = XSDFactory.eINSTANCE.createXSDImport();
wfsImport.setNamespace(org.geotools.wfs.v1_1.WFS.NAMESPACE);
wfsImport.setResolvedSchema(wfsSchema);
schema.getContents().add(wfsImport);
schema.getQNamePrefixToNamespaceMap().put("wfs", org.geotools.wfs.v1_1.WFS.NAMESPACE);
synchronized (wfsSchema.eAdapters()) {
((XSDSchemaImpl) wfsSchema).imported(wfsImport);
}
// make sure that GML 3.1 namespace is used
schema.getQNamePrefixToNamespaceMap().put("gml", GML.NAMESPACE);
return schema;
}
}
内容来源于网络,如有侵权,请联系作者删除!