gpt4 book ai didi

org.geotools.xs.XS.getInstance()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 09:12:40 27 4
gpt4 key购买 nike

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

XS.getInstance介绍

[英]The singleton instance.
[中]单例。

代码示例

代码示例来源:origin: geotools/geotools

public XSConfiguration() {
  super(XS.getInstance());
}

代码示例来源:origin: geotools/geotools

/** The dependencies of this schema. */
public final Set<XSD> getDependencies() {
  if (dependencies == null) {
    synchronized (this) {
      if (dependencies == null) {
        Set<XSD> newDeps = new LinkedHashSet();
        // bootstrap, every xsd depends on XS
        newDeps.add(XS.getInstance());
        // call subclass hook
        addDependencies(newDeps);
        dependencies = newDeps;
      }
    }
  }
  return dependencies;
}

代码示例来源:origin: geotools/geotools

public PropertyValueCollection(
    FeatureCollection delegate, AttributeDescriptor descriptor, PropertyName propName) {
  this.delegate = delegate;
  this.descriptor = descriptor;
  this.typeMappingProfiles.add(XS.getInstance().getTypeMappingProfile());
  this.typeMappingProfiles.add(GML.getInstance().getTypeMappingProfile());
  this.propertyName = propName;
  // fallback for gml:id "property"
  if (descriptor == null) {
    this.descriptor = ID_DESCRIPTOR;
  }
}

代码示例来源:origin: geotools/geotools

new SchemaLocationResolver(XS.getInstance()) {
new SchemaLocationResolver(XS.getInstance()) {

代码示例来源:origin: org.geotools.xsd/gt-core

public XSConfiguration() {
  super(XS.getInstance());
}

代码示例来源:origin: geotools/geotools

private Class mapTypeName(String typeName) {
    // try xs simple type
    Schema xsTypeMappingProfile = XS.getInstance().getTypeMappingProfile();
    NameImpl name = new NameImpl(XS.NAMESPACE, typeName);
    if (xsTypeMappingProfile.containsKey(name)) {
      AttributeType type = xsTypeMappingProfile.get(name);
      if (type.getBinding() != null) {
        return type.getBinding();
      }
    }

    // try gml geometry types
    Geometries g = Geometries.getForName(typeName);
    if (g != null) {
      return g.getBinding();
    }

    // default
    return String.class;
  }
}

代码示例来源:origin: org.geotools/gt2-xml-core

public XSConfiguration() {
  super(XS.getInstance());
}

代码示例来源:origin: org.geotools/gt2-xml-core

/**
 * The dependencies of this schema.
 */
public final Set getDependencies() {
  if (dependencies == null) {
    synchronized (this) {
      if (dependencies == null) {
        dependencies = new LinkedHashSet();
        //bootstrap, every xsd depends on XS
        dependencies.add(XS.getInstance());
        //call subclass hook
        addDependencies(dependencies);
      }
    }
  }
  return dependencies;
}

代码示例来源:origin: org.geotools.xsd/gt-core

/**
 * The dependencies of this schema.
 */
public final Set getDependencies() {
  if (dependencies == null) {
    synchronized (this) {
      if (dependencies == null) {
        dependencies = new LinkedHashSet();
        //bootstrap, every xsd depends on XS
        dependencies.add(XS.getInstance());
        //call subclass hook
        addDependencies(dependencies);
      }
    }
  }
  return dependencies;
}

代码示例来源:origin: org.geotools.xsd/gt-xsd-wfs

public PropertyValueCollection(FeatureCollection delegate, AttributeDescriptor descriptor) {
  super(delegate);
  this.descriptor = descriptor;
  this.typeMappingProfiles.add(XS.getInstance().getTypeMappingProfile());
  this.typeMappingProfiles.add(GML.getInstance().getTypeMappingProfile());
}

代码示例来源:origin: org.geotools.xsd/gt-xsd-kml

private Class mapTypeName(String typeName) {
  //try xs simple type
  Schema xsTypeMappingProfile = XS.getInstance().getTypeMappingProfile();
  NameImpl name = new NameImpl(XS.NAMESPACE, typeName);
  if (xsTypeMappingProfile.containsKey(name)) {
    AttributeType type = xsTypeMappingProfile.get(name);
    if (type.getBinding() != null) {
      return type.getBinding();
    }
  }
  //try gml geometry types
  Geometries g = Geometries.getForName(typeName);
  if (g != null) {
    return g.getBinding();
  }
  //default
  return String.class;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com