Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EAttribute


            //
            eAttributeMap.get(ePackage.getEFeature_ID()).put(eClass,it.eIDAttribute());
            //
            // Add mapping from EFeature SRID to implementation (optional)
            //
            EAttribute eAttribute = it.eSRIDAttribute();
            if(eAttribute!=null) {
                eAttributeMap.get(ePackage.getEFeature_SRID()).put(eClass,eAttribute);
            }
            //
            // Add mapping from EFeature default geometry to implementation (optional)
View Full Code Here


        Literal upper = toLiteral(eExpressionStack.pop(),
                "PropertyIsBetween upper bound expression is not a Literal");
        //
        // Get EAttribute instance from definition
        //
        EAttribute eAttribute = eFeatureInfo.eGetAttribute(name.getPropertyName());
        //
        // Found attribute?
        //
        if (eAttribute == null) {
            throw new IllegalArgumentException("EAttribute " + name.getPropertyName()
View Full Code Here

        PropertyName name = toType(eExpressionStack.pop(), PropertyName.class,
                "PropertyIsLike expression is not a PropertyName");

        // Get EAttribute instance from definition
        //
        EAttribute eAttribute = eFeatureInfo.eGetAttribute(name.getPropertyName());

        // Found attribute?
        //
        if (eAttribute == null) {
            throw new IllegalArgumentException("EAttribute " + name.getPropertyName()
View Full Code Here

            throw new IllegalArgumentException("Right argument must be a Literal");
        }

        // Get EAttribute instance from definition
        //
        EAttribute eAttribute = eFeatureInfo.eGetAttribute(name);

        // Found attribute?
        //
        if (eAttribute == null) {
            throw new IllegalArgumentException("EAttribute " + name + " not found");
View Full Code Here

        PropertyName name = toType(eExpressionStack.pop(), PropertyName.class,
                "PropertyIsNull expression is not a PropertyName");

        // Get EAttribute instance from definition
        //
        EAttribute eAttribute = eFeatureInfo.eGetAttribute(name.getPropertyName());

        // Found attribute?
        //
        if (eAttribute == null) {
            throw new IllegalArgumentException("EAttribute " + name.getPropertyName()
View Full Code Here

            throw new NullPointerException("Identifier is null");
        }
        //
        // Get ID EAttribute instance from definition
        //
        EAttribute eAttribute = eFeatureInfo.eIDAttribute();

        try {
            // Create EObjectCondition instance and push it
            //
            EAttributeValueIsID eCondition = new EAttributeValueIsID(eAttribute, id.toString());
View Full Code Here

                    + "compare a property name and a geometry");
        }

        // Get EAttribute instance
        //
        EAttribute eAttribute = eFeatureInfo.eGetAttribute(property.getPropertyName());

        // Going through evaluate ensures we get the proper result even
        // if the name has not been specified (convention -> the default geometry)
        AttributeDescriptor descriptor = (AttributeDescriptor) property.evaluate(featureType);
        if (descriptor instanceof GeometryDescriptor) {
View Full Code Here

        //
        if (eID == null) {
            //
            // Get EMF id attribute
            //
            EAttribute eIDAttribute = eStructure().eIDAttribute();
            //
            // Get feature id as string
            //
            String fid = (eIDAttribute == null || !eFeature().eIsSet(eIDAttribute) ? null
                    : EcoreUtil.convertToString(eIDAttribute.getEAttributeType(),
                            eFeature().eGet(eIDAttribute)));
            //
            // Create feature id instance
            //
            eID = new FeatureIdImpl(fid);
View Full Code Here

    }

    @Override
    public void setValue(Collection<Property> values) {
        for (Property it : values) {
            EAttribute eAttr = eStructure().eGetAttribute(it.getName().getURI());
            eFeature().eSet(eAttr, it.getValue());
        }
    }
View Full Code Here

            throw new IllegalArgumentException("EStructuralFeature '" + eName + "'" + " not found");
        }
        //
        // Do value type sanity check
        //
        EAttribute eAttribute = eStructure.eAttribute();
        Class<?> actualType = eAttribute.getEAttributeType().getInstanceClass();
        if (!valueType.isAssignableFrom(actualType)) {
            //
            // Not correct type
            //
            throw new IllegalArgumentException("Value type '" +
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.EAttribute

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.