e some attribute types AttributeType pointType = new AttributeTypeImpl( new NameImpl( "http://www.opengis.net/gml", "PointType" ), ... ); AttributeType lineStringType = new AttributeTypeImpl( new NameImpl( "http://www.opengis.net/gml", "LineStringType" ), ... ); AttributeType polygonType = new AttributeTypeImpl( new NameImpl( "http://www.opengis.net/gml", "PolygonType" ), ... ); //create a schema Schema schema = new SchemaImpl( "http://www.opengis.net/gml" ); //add types to the schema schema.add( pointType ); schema.add( lineStringType ); schema.add( polygonType );
The intention of a schema is to provide a resuable set of attribute types. These types are used when building attribute instances.
@author Jody Garnett, Refractions Research, Inc.
@author Justin Deoliveira, The Open Planning Project
@source $URL$