Examples of AVariable


Examples of org.geppetto.core.data.model.AVariable

            if(ArrayUtils.isArray(s))
            {
              searchVar = ArrayUtils.getArrayName(s);
            }

            AVariable v = getVariable(searchVar, listToCheck);

            if(v == null)
            {
              if(stok.hasMoreTokens())
              {
                StructuredType structuredType = new StructuredType();
                structuredType.setName(searchVar + "T");

                if(ArrayUtils.isArray(s))
                {
                  v = DataModelFactory.getArrayVariable(searchVar, structuredType, ArrayUtils.getArrayIndex(s) + 1);
                }
                else
                {
                  v = DataModelFactory.getSimpleVariable(searchVar, structuredType);
                }
                listToCheck.add(v);
                listToCheck = structuredType.getVariables();
              }
              else
              {
                SimpleType type = DataModelFactory.getCachedSimpleType(Type.fromValue(hdfVariable.getDataType().toString()));
                if(ArrayUtils.isArray(s))
                {
                  v = DataModelFactory.getArrayVariable(searchVar, type, ArrayUtils.getArrayIndex(s) + 1);
                }
                else
                {
                  v = DataModelFactory.getSimpleVariable(searchVar, type);
                }
                listToCheck.add(v);
              }
            }
            else
            {
              if(stok.hasMoreTokens())
              {
                listToCheck = ((StructuredType) v.getType()).getVariables();
                if(ArrayUtils.isArray(s))
                {
                  if(ArrayUtils.getArrayIndex(s) + 1 > ((ArrayVariable) v).getSize())
                  {
                    ((ArrayVariable) v).setSize(ArrayUtils.getArrayIndex(s) + 1);
View Full Code Here

Examples of org.jrdf.sparql.parser.node.AVariable

        Attribute att = new AttributeImpl(attributeName, type);
        avp.put(att, anyNode);
    }

    private String getVariableName(AVariableResourceTripleElement element) {
        AVariable variable = (AVariable) element.getVariable();
        return variable.getVariablename().getText();
    }
View Full Code Here

Examples of org.jrdf.sparql.parser.node.AVariable

        AVariable variable = (AVariable) element.getVariable();
        return variable.getVariablename().getText();
    }

    private String getVariableName(AVariableObjectTripleElement element) {
        AVariable variable = (AVariable) element.getVariable();
        return variable.getVariablename().getText();
    }
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.