public Schema createSchema(String uri) { return new SchemaImpl(uri); }
public void add(AttributeType type) { put(type.getName(), type); }
public Set keySet() { return namespace(); } public Namespace namespace() {
public String toURI() { return namespace().getURI(); }
/** Sets up the schema which maps xml schema types to attribute types. */ protected Schema buildTypeSchema() { return new SchemaImpl(getNamespaceURI()); }
public void add(AttributeType type) { put(type.getName(),type); }
Schema gtSchema = new SchemaImpl(schema.getTargetNamespace());
List<Schema> schemas = new ArrayList<Schema>(); schemas.add(new XSSchema().profile()); // encoding of common java types Schema hack = new SchemaImpl(XS.NAMESPACE);
public Schema createSchema(String uri) { return new SchemaImpl(uri); }
protected void setUp() throws Exception { Schema schema = new SchemaImpl("test"); FeatureTypeFactoryImpl typeFactory = new FeatureTypeFactoryImpl(); AttributeType pointType = typeFactory.createGeometryType( new NameImpl("test", "pointType"), Point.class, null, false, false, Collections.EMPTY_LIST, null, null); schema.put(new NameImpl("test", "pointType"), pointType); AttributeType intType = typeFactory.createAttributeType( new NameImpl("test", "intType"), Integer.class, false, false, Collections.EMPTY_LIST, null, null); schema.put(new NameImpl("test", "intType"), intType); builder = new SimpleFeatureTypeBuilder(new FeatureTypeFactoryImpl()); builder.setBindings(schema); }