Package org.jrdf.query.relation.mem

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


            if (type == null) {
                String literal = variable.getLiteral();
                throw new ParserException(new TIdentifier(literal), "Failed to find variable " +
                    literal + " in where clause. ");
            } else {
                Attribute attribute = new AttributeImpl(variable, type);
                newAttributes.add(attribute);
            }
        }
        return newAttributes;
    }
View Full Code Here

        AttributeName existingAttributeName = existingAttribute.getAttributeName();
        NodeType newNodeType = allVariables.get(existingAttributeName);
        if (newNodeType == null) {
            newNodeType = existingAttribute.getType();
        }
        return new AttributeImpl(existingAttributeName, newNodeType);
    }
View Full Code Here

        if (attributeName == null) {
            returnValue.put(NULLARY_ATTRIBUTE, value);
        } else {
            NodeType type = namePosMap.get(attributeName);
            type = (type == null) ? new ObjectNodeType() : type;
            Attribute attribute = new AttributeImpl(attributeName, type);
            returnValue.put(attribute, value);
            collector.addConstraints(returnValue);
        }
        return returnValue;
    }
View Full Code Here

        avp.put(attribute, value);
    }

    private void createAttributeValuePair(NodeType type, Node anyNode, String variableName) {
        AttributeName attributeName = new VariableName(variableName);
        Attribute att = new AttributeImpl(attributeName, type);
        avp.put(att, anyNode);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.query.relation.mem.AttributeImpl

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.