Examples of StructuredType


Examples of org.apache.xmpbox.type.StructuredType

        return null;
    }

    public XMPSchema getSchema(Class<? extends XMPSchema> clz)
    {
        StructuredType st = clz.getAnnotation(StructuredType.class);
        return getSchema(st.namespace());
    }
View Full Code Here

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

   * @param name
   * @return
   */
  public static StructuredType getStructuredType(String name)
  {
    StructuredType st = new StructuredType();
    st.setName(name);
    return st;
  }
View Full Code Here

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

   
    SimpleType floatType = new SimpleType();
    floatType.setType(Type.FLOAT);
   
    // structure type vector
    StructuredType vector = new StructuredType();
    List<AVariable> vectorVars = new ArrayList<AVariable>();
    SimpleVariable x = new SimpleVariable();
    SimpleVariable y = new SimpleVariable();
    SimpleVariable z = new SimpleVariable();
    x.setName("x");
    x.setType(floatType);
    y.setName("y");
    y.setType(floatType);
    z.setName("z");
    z.setType(floatType);
    vectorVars.addAll(Arrays.asList(x, y, z));
    vector.setVariables(vectorVars);
   
    // structure type particle
    StructuredType particle = new StructuredType();
    List<AVariable> particleVars = new ArrayList<AVariable>();
    SimpleVariable position = new SimpleVariable();
    SimpleVariable velocity = new SimpleVariable();
    position.setName("position");
    position.setType(vector);
    velocity.setName("velocity");
    velocity.setType(vector);
    particleVars.addAll(Arrays.asList(position, velocity));
    particle.setVariables(particleVars);
   
    // array of particles
    ArrayVariable particles = new ArrayVariable();
    particles.setName("particle");
    particles.setType(particle);
View Full Code Here

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

            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))
View Full Code Here

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

    String varName = parentName.equals("") ? var.getName() : (parentName + "." + var.getName());

    if(var.getType() instanceof StructuredType)
    {
      // NODE
      StructuredType strucT = (StructuredType) var.getType();
      List<AVariable> vars = strucT.getVariables();

      for(AVariable v : vars)
      {
        GetFullVariablePath(v, varName, variablePaths);
      }
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.