Package org.opengis.feature

Examples of org.opengis.feature.Property


        }
    }

    @Override
    public Object getAttribute(Name eName) {
        Property p = getProperty(eName);
        return (p != null ? p.getValue() : null);
    }
View Full Code Here


        return (p != null ? p.getValue() : null);
    }

    @Override
    public void setAttribute(Name eName, Object newValue) {
        Property p = getProperty(eName);
        if (p != null) {
            p.setValue(newValue);
        }
    }
View Full Code Here

        }
    }

    @Override
    public Object getAttribute(int index) throws IndexOutOfBoundsException {
        Property p = getProperties().get(index);
        return p.getValue();
    }
View Full Code Here

        return p.getValue();
    }

    @Override
    public void setAttribute(int index, Object newValue) throws IndexOutOfBoundsException {
        Property p = getProperties().get(index);
        if (p != null) {
            p.setValue(newValue);
        }
    }
View Full Code Here

        return eInternal.getProperties().size();
    }

    @Override
    public Geometry getDefaultGeometry() {
        Property p = getDefaultGeometryProperty();
        return (Geometry) (p != null ? p.getValue() : null);
    }
View Full Code Here

        return (Geometry) (p != null ? p.getValue() : null);
    }

    @Override
    public void setDefaultGeometry(Object newGeometry) {
        Property p = getDefaultGeometryProperty();
        if (p != null) {
            p.setValue(newGeometry);
        }
    }
View Full Code Here

        public void visit(final Feature feature) {
            assertNotNull(feature);
            assertNotNull(feature.getIdentifier().getID());
            for (AttributeDescriptor descriptor : featureType.getAttributeDescriptors()) {
                final String name = descriptor.getLocalName();
                Property property = feature.getProperty(name);
                assertNotNull(name + " property was not parsed", property);
                assertNotNull("got null value for property " + name, property.getValue());
            }
        }
View Full Code Here

        public void visit(final Feature feature) {
            assertNotNull(feature);
            assertNotNull(feature.getIdentifier().getID());
            for (AttributeDescriptor descriptor : featureType.getAttributeDescriptors()) {
                final String name = descriptor.getLocalName();
                Property property = feature.getProperty(name);
                assertNotNull(name + " property was not parsed", property);
                assertNotNull("got null value for property " + name, property.getValue());
            }
        }
View Full Code Here

     * @return
     */
    public static Object unpack(Object value) {
       
        if (value instanceof org.opengis.feature.ComplexAttribute){
            Property simpleContent = ((org.opengis.feature.ComplexAttribute)value).getProperty(SIMPLE_CONTENT);
            if (simpleContent == null) {
                return null;
            } else {
                return simpleContent.getValue();
            }
        }
       
        if(value instanceof org.opengis.feature.Attribute){
            return ((org.opengis.feature.Attribute)value).getValue();
View Full Code Here

        //TODO: implement and remove call to super
        return super.parse(instance, node, value);
    }
   
    public Element encode(Object object, Document document, Element value) throws Exception {
        Property property = (Property) object;
        // I don't think we can assign values to this type, so only encode client properties
        // for the mean time
        GML3EncodingUtils.encodeClientProperties(property, value);

        return value;
View Full Code Here

TOP

Related Classes of org.opengis.feature.Property

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.