Package com.puppetlabs.geppetto.forge.model

Examples of com.puppetlabs.geppetto.forge.model.Type


  protected void call(CallSymbol key, int line, int offset, int length, List<JElement> args) {
    switch(key) {
      case types: {
        List<Type> types = new ArrayList<Type>(args.size());
        for(JElement jsonType : args) {
          Type type = createType(jsonType);
          if(type != null)
            types.add(type);
        }
        md.setTypes(types);
        break;
View Full Code Here


        providers = createNamedTypeItemList(val);
    }
    if(name == null)
      return null;

    Type type = new Type();
    type.setName(name);
    type.setDocumentation(doc);
    type.setParameters(parameters);
    type.setProperties(properties);
    type.setProviders(providers);
    return type;
  }
View Full Code Here

    List<Type> typeList = new ArrayList<Type>();
    for(File typeFile : typeFiles) {
      if(!typeFile.getName().endsWith(".rb"))
        continue;
      Type type = new Type();
      loadTypeFile(type, typeFile);
      typeList.add(type);
    }

    if(typeList.isEmpty())
View Full Code Here

public class TypeTest extends AbstractForgeTest {
  private Type fixture = null;

  @Before
  public void setUp() throws Exception {
    fixture = new Type();
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.model.Type

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.