001: package org.geotools.feature;
002:
003: import java.util.Collection;
004:
005: import org.opengis.feature.Association;
006: import org.opengis.feature.Attribute;
007: import org.opengis.feature.FeatureFactory;
008: import org.opengis.feature.ComplexAttribute;
009: import org.opengis.feature.Feature;
010: import org.opengis.feature.FeatureCollection;
011: import org.opengis.feature.GeometryAttribute;
012: import org.opengis.feature.type.AssociationDescriptor;
013: import org.opengis.feature.type.AttributeDescriptor;
014: import org.opengis.feature.type.ComplexType;
015: import org.opengis.feature.type.FeatureCollectionType;
016: import org.opengis.feature.type.FeatureType;
017: import org.opengis.referencing.crs.CRSFactory;
018: import org.opengis.referencing.crs.CoordinateReferenceSystem;
019: import org.opengis.geometry.coordinate.GeometryFactory;
020:
021: /**
022: * Factory for creating instances of the Attribute family of classes.
023: *
024: * @author Ian Schneider
025: * @author Gabriel Roldan
026: * @author Justin Deoliveira
027: *
028: * @version $Id: FeatureFactoryImpl.java 24925 2007-03-27 20:12:08Z jgarnett $
029: */
030: public class FeatureFactoryImpl implements FeatureFactory {
031:
032: /**
033: * Factory used to create CRS objects
034: */
035: CRSFactory crsFactory;
036: /**
037: * Factory used to create geomtries
038: */
039: GeometryFactory geometryFactory;
040:
041: public CRSFactory getCRSFactory() {
042: return crsFactory;
043: }
044:
045: public void setCRSFactory(CRSFactory crsFactory) {
046: this .crsFactory = crsFactory;
047: }
048:
049: public GeometryFactory getGeometryFactory() {
050: return geometryFactory;
051: }
052:
053: public void setGeometryFactory(GeometryFactory geometryFactory) {
054: this .geometryFactory = geometryFactory;
055: }
056:
057: public Association createAssociation(Attribute related,
058: AssociationDescriptor descriptor) {
059: throw new UnsupportedOperationException();
060: //return new AssociationImpl(related,descriptor);
061: }
062:
063: public Attribute createAttribute(Object value,
064: AttributeDescriptor descriptor, String id) {
065: throw new UnsupportedOperationException();
066: //return new AttributeImpl(value,descriptor,id);
067: }
068:
069: public GeometryAttribute createGeometryAttribute(Object value,
070: AttributeDescriptor desc, String id,
071: CoordinateReferenceSystem crs) {
072:
073: throw new UnsupportedOperationException();
074: //return new GeometricAttribute(value,desc,id,crs);
075: }
076:
077: public ComplexAttribute createComplexAttribute(Collection value,
078: AttributeDescriptor desc, String id) {
079: throw new UnsupportedOperationException();
080: //return new ComplexAttributeImpl(value, desc, id );
081: }
082:
083: public ComplexAttribute createComplexAttribute(Collection value,
084: ComplexType type, String id) {
085: throw new UnsupportedOperationException();
086: //return new ComplexAttributeImpl(value, type, id );
087: }
088:
089: public Feature createFeature(Collection value,
090: AttributeDescriptor desc, String id) {
091: throw new UnsupportedOperationException();
092: //return new FeatureImpl(value, desc, id);
093: }
094:
095: public Feature createFeature(Collection value, FeatureType type,
096: String id) {
097: throw new UnsupportedOperationException();
098: //return new FeatureImpl(value, type, id);
099: }
100:
101: public FeatureCollection createFeatureCollection(Collection value,
102: AttributeDescriptor desc, String id) {
103: throw new UnsupportedOperationException();
104: //return new FeatureCollectionImpl(value, desc, id);
105: }
106:
107: public FeatureCollection createFeatureCollection(Collection value,
108: FeatureCollectionType type, String id) {
109: throw new UnsupportedOperationException();
110: //return new FeatureCollectionImpl(value, type, id);
111: }
112:
113: }
|