Package org.gephi.data.attributes.spi

Examples of org.gephi.data.attributes.spi.AttributeValueDelegateProvider


        }
        else {
            if (value == null)
                return null;

            AttributeValueDelegateProvider attributeValueDelegateProvider = column.getProvider();

            Object result;
            if (AttributeUtilsImpl.getDefault().isEdgeColumn(column))
                result = attributeValueDelegateProvider.getEdgeAttributeValue(value, column);
            else if (AttributeUtilsImpl.getDefault().isNodeColumn(column))
                result = attributeValueDelegateProvider.getNodeAttributeValue(value, column);
            else
                throw new AssertionError();

            // important for Neo4j and in future also for other storing engines
            // the conversion can be necessary because of types mismatch
View Full Code Here


        } else {
            if (value == null) {
                return null;
            }

            AttributeValueDelegateProvider attributeValueDelegateProvider = column.getProvider();

            Object result;
            if (AttributeUtilsImpl.getDefault().isEdgeColumn(column)) {
                result = attributeValueDelegateProvider.getEdgeAttributeValue(value, column);
            } else if (AttributeUtilsImpl.getDefault().isNodeColumn(column)) {
                result = attributeValueDelegateProvider.getNodeAttributeValue(value, column);
            } else {
                throw new AssertionError();
            }
           
            if(result != null && result.getClass() != column.getType().getType()){
View Full Code Here

TOP

Related Classes of org.gephi.data.attributes.spi.AttributeValueDelegateProvider

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.