Package com.linkedin.data.schema.resolver

Examples of com.linkedin.data.schema.resolver.FileDataSchemaLocation


  }

  @Override
  protected void parseFile(File schemaSourceFile) throws IOException
  {
    FileDataSchemaLocation schemaLocation = new FileDataSchemaLocation(schemaSourceFile);
    pushCurrentLocation(schemaLocation);
    super.parseFile(schemaSourceFile);
    popCurrentLocation();
  }
View Full Code Here


        {
          sourceFiles.add(sourceFile);
          try
          {
            ResourceSchema resource = _codec.readResourceSchema(new FileInputStream(sourceFile));
            pushCurrentLocation(new FileDataSchemaLocation(sourceFile));
            generateResourceFacade(resource,
                                   sourceFile.getAbsolutePath(),
                                   new HashMap<String, JClass>(),
                                   new HashMap<String, JClass>(),
                                   new HashMap<String, List<String>>());
View Full Code Here

  @Override
  protected void parseFile(File schemaSourceFile) throws IOException
  {
    super.parseFile(schemaSourceFile);
    _sourceLocations.add(new FileDataSchemaLocation(schemaSourceFile));
  }
View Full Code Here

   * @param schemaSourceFile provides the source file.
   * @return true if this source file has already been resolved to data schemas.
   */
  protected boolean wasResolved(File schemaSourceFile)
  {
    FileDataSchemaLocation schemaLocation = new FileDataSchemaLocation(schemaSourceFile);
    return getSchemaResolver().locationResolved(schemaLocation);
  }
View Full Code Here

  {
    SchemaParser parser = new SchemaParser(getSchemaResolver());
    FileInputStream schemaStream = new SchemaFileInputStream(schemaSourceFile);
    try
    {
      parser.setLocation(new FileDataSchemaLocation(schemaSourceFile));
      parser.parse(schemaStream);
      if (parser.hasError())
      {
        return Collections.emptyList();
      }
View Full Code Here

TOP

Related Classes of com.linkedin.data.schema.resolver.FileDataSchemaLocation

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.