Package com.linkedin.restli.common.util

Examples of com.linkedin.restli.common.util.ResourceSchemaToResourceSpecTranslator


    String projectDir = System.getProperty("test.projectDir");
    idlDir = projectDir + FS + ".." + FS + "restli-int-test-api" + FS + "src" + FS + "main" + FS + "idl";
    String pdscDir = projectDir +  FS + ".." + FS + "restli-int-test-api" + FS + "src" + FS + "main" + FS + "pegasus";
    resolver = new FileDataSchemaResolver(SchemaParserFactory.instance(), pdscDir);

    translator = new ResourceSchemaToResourceSpecTranslator(resolver, new ExampleGeneratorClassBindingResolver());
  }
View Full Code Here


    }
  }

  private static ResourceSpec translate(ResourceSchema resourceSchema, DataSchemaResolver schemaResolver)
  {
    return new ResourceSchemaToResourceSpecTranslator(schemaResolver, BINDING_RESOLVER).translate(resourceSchema);
  }
View Full Code Here

TOP

Related Classes of com.linkedin.restli.common.util.ResourceSchemaToResourceSpecTranslator

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.