Package org.geppetto.core.data.model

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

TOP

Related Classes of org.geppetto.core.data.model.AVariable

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.