public XSConfiguration() { super(XS.getInstance()); }
/** 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; }
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; } }
new SchemaLocationResolver(XS.getInstance()) { new SchemaLocationResolver(XS.getInstance()) {
public XSConfiguration() { super(XS.getInstance()); }
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; } }
public XSConfiguration() { super(XS.getInstance()); }
/** * 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; }
/** * 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; }
public PropertyValueCollection(FeatureCollection delegate, AttributeDescriptor descriptor) { super(delegate); this.descriptor = descriptor; this.typeMappingProfiles.add(XS.getInstance().getTypeMappingProfile()); this.typeMappingProfiles.add(GML.getInstance().getTypeMappingProfile()); }
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; }