Examples of EFeatureInternal


Examples of org.geotools.data.efeature.internal.EFeatureInternal

    public static List<Object> eGetFeatureValues(
            EFeatureInfo eStructure, EObject eObject, Transaction transaction) {
        //
        // Get internal EFeature implementation
        //
        EFeatureInternal eInternal = EFeatureInternal.eInternal(eStructure, eObject);
        //
        // Enter modification mode
        //
        eInternal.enter(transaction);
        //
        // Try to get values
        //       
        try {
            List<Object> eList = new ArrayList<Object>();
            for(EAttribute it : eStructure.eGetAttributeList(true)) {
                eList.add(eObject.eGet(it));
            }
            return Collections.unmodifiableList(eList);
        } finally {
            //
            // Leave modification mode
            //
            eInternal.leave();
        }   
    }
View Full Code Here

Examples of org.geotools.data.efeature.internal.EFeatureInternal

            EFeatureInfo eStructure, EObject eObject,
            List<Object> eValues, Transaction transaction) {
        //
        // Get internal EFeature implementation
        //
        EFeatureInternal eInternal = EFeatureInternal.eInternal(eStructure, eObject);
        //
        // Enter modification mode
        //
        eInternal.enter(transaction);
        //
        // Try to set values
        //       
        try {
            int i=0;
            for(EAttribute it : eStructure.eGetAttributeList(true)) {
                eObject.eSet(it,eValues.get(i++));           
            }
        } finally {
            //
            // Leave modification mode
            //
            eInternal.leave();
        }
    }   
View Full Code Here

Examples of org.geotools.data.efeature.internal.EFeatureInternal

        //
        super();
        //
        // Construct the internal EFeature implementation
        //
        eInternal = new EFeatureInternal(this);
    }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.