Examples of AttributeName


Examples of org.jrdf.query.relation.attributename.AttributeName

        Node value = createLiteral(node);
        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

Examples of org.jrdf.query.relation.attributename.AttributeName

            addNewEntry(attribute);
        }
    }

    private void updateEntry(final Attribute newAttribute) {
        final AttributeName key = newAttribute.getAttributeName();
        final PositionalNodeType currentEntry = variables.get(key);
        final NodeType type = newAttribute.getType();
        if (type instanceof PositionalNodeType) {
            if (!currentEntry.getClass().equals(type.getClass())) {
                variables.put(key, currentEntry.upgrade((PositionalNodeType) type));
View Full Code Here

Examples of org.jrdf.query.relation.attributename.AttributeName

    private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
        variables = new HashMap<AttributeName, PositionalNodeType>();
        int elements = input.readInt();
        for (int i = 0; i < elements; i++) {
            AttributeName attribute = (AttributeName) input.readObject();
            PositionalNodeType node = (PositionalNodeType) input.readObject();
            variables.put(attribute, node);
        }
    }
View Full Code Here

Examples of wpn.hdri.ss.data.attribute.AttributeName

        Thread.sleep(7000);
        engine.stop();

        Multimap<AttributeName, AttributeValue<?>> values = engine.getLatestValues(AttributesManager.DEFAULT_ATTR_GROUP);

        assertSame(Value.NULL, Iterables.getFirst(values.asMap().get(new AttributeName("Test.Device", "Test.Attribute", null)), null).getValue());
//        this produces NPE because event based attribute has never been updated
//        assertEquals("NA", Iterables.getLast(values.values(),null).getValue().get());

        engine.shutdown();
    }
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.