Examples of AttributeImpl


Examples of org.auraframework.impl.root.AttributeImpl

                            "java://org.auraframework.impl.model.java.TestModel",
                            ModelDef.class);
    }

    public AttributeImpl makeAttribute(String name) {
            return new AttributeImpl(DefDescriptorImpl.getInstance(
                            name == null ? defaultAttributeName : name, AttributeDef.class));
    }
View Full Code Here

Examples of org.datanucleus.api.jpa.metamodel.AttributeImpl

        {
            // First token is not the alias of this type, so reset the tokeniser
            tokeniser = new StringTokenizer(attrName, ".");
        }

        AttributeImpl currentAttr = null;
        while (tokeniser.hasMoreTokens())
        {
            token = tokeniser.nextToken();
            currentAttr = (AttributeImpl)currentType.getAttribute(token);
            if (currentAttr == null)
            {
                throw new IllegalArgumentException("Unable to access attribute " + token + " of " + currentType + " for join");
            }

            if (tokeniser.hasMoreTokens())
            {
                if (currentAttr.getPersistentAttributeType() == PersistentAttributeType.BASIC)
                {
                    throw new IllegalArgumentException("Cannot resolve attribute " + attrName + " since " +
                        token + " is not a relation field and the attribute name goes beyond it!");
                }
                currentType = (ManagedType)currentAttr.getType();
            }
        }

        return currentAttr;
    }
View Full Code Here

Examples of org.geotools.feature.AttributeImpl

        if (attrDescr == null)
            return null;
        if (attrDescr instanceof GeometryDescriptor)
            return new GeometryAttributeImpl(value, (GeometryDescriptor) attrDescr, null);
        else
            return new AttributeImpl(value, attrDescr, null);

    }
View Full Code Here

Examples of org.geotools.xml.impl.AttributeImpl

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     *
     * @generated modifiable
     */
    public Object parse(InstanceComponent instance, Object value) throws Exception {
        AttributeImpl att = (AttributeImpl) instance;
        String text = att.getText();
        AllSomeType allSomeType = AllSomeType.get(text);
        return allSomeType;
    }
View Full Code Here

Examples of org.jrdf.query.relation.mem.AttributeImpl

        final byte b = tupleInput.readByte();
        Attribute attribute;
        if (b == NORMAL_ATTRIBUTE) {
            AttributeName name = nameBinding.entryToObject(tupleInput);
            NodeType type = typeBinding.entryToObject(tupleInput);
            attribute = new AttributeImpl(name, type);
        } else if (b == NULLARY_ATTRIBUTE) {
            attribute = NullaryAttribute.NULLARY_ATTRIBUTE;
        } else {
            throw new IllegalArgumentException("Cannot read class type: " + b);
        }
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.