Examples of Schema


Examples of adipe.translate.ra.Schema

            @Override
            public void run() {
                /* translating the first query, then writing the first spreadsheet file take longer time, so let's
                 * warm up here */
                Schema schema = Schemas.fromDDL(DEFAULT_SCHEMA_TEXT);
                try {
                    Term translated = Queries.getRaOf(schema, DEFAULT_QUERY_TEXT);
                    Result result = translated.execute();
                    try (OutputStream os = new OutputStream() {
                        @Override
View Full Code Here

Examples of ch.agent.crnickl.api.Schema

      find_entity_with_property.setInt(1, getId(property));
      ResultSet rs = find_entity_with_property.executeQuery();
      while(rs.next()) {
        if (schemaIds.contains(rs.getInt(1))) {
          Surrogate entityKey = makeSurrogate(database, DBObjectType.CHRONICLE, rs.getInt(1));
          Schema schema = database.getChronicle(entityKey).getSchema(true); // hope caching is on
          if (schemaIds.contains(getId(schema)))
            result.add(entityKey);
        }
      }
    } catch (Exception e) {
View Full Code Here

Examples of co.cask.cdap.internal.io.Schema

    Decoder decoder = new BinaryDecoder(bis);

    DatumReader<KeyIdentifier> reader = readerFactory.create(KEY_IDENTIFIER_TYPE,
                                                             KeyIdentifier.Schemas.getCurrentSchema());
    int readVersion = decoder.readInt();
    Schema readSchema = KeyIdentifier.Schemas.getSchemaVersion(readVersion);
    if (readSchema == null) {
      throw new IOException("Unknown schema version for KeyIdentifier: " + readVersion);
    }
    return reader.read(decoder, readSchema);
  }
View Full Code Here

Examples of co.cask.tigon.internal.io.Schema

        int maxRetries = (tickAnnotation == null) ? processInputAnnotation.maxRetries() : tickAnnotation.maxRetries();

        ProcessMethod processMethod = processMethodFactory.create(method, maxRetries);
        Set<String> inputNames;
        Schema schema;
        TypeToken<?> dataType;
        ConsumerConfig consumerConfig;
        int batchSize = 1;

        if (tickAnnotation != null) {
View Full Code Here

Examples of com.alibaba.citrus.springext.Schema

        // <xsd:include schemaLocation="contribution schema" />
        Set<String> includings = createTreeSet();

        for (Contribution contrib : configurationPoint.getContributions()) {
            Schema contribSchema = contrib.getSchemas().getVersionedSchema(version);

            if (contribSchema == null) {
                contribSchema = contrib.getSchemas().getMainSchema();
            }

            if (contribSchema != null) {
                includings.add(contribSchema.getName());
            }
        }

        for (String including : includings) {
            Element includeElement = schemaRoot.addElement("xsd:include");
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.Validation.Schema

  protected void doGenResources(List<JarEntryData> entries, Api api, Map<Object, Object> variablesMap) throws UnsupportedEncodingException, IOException {
    if (api.getValidation() != null) {
      Validation val = api.getValidation();

      Schema schema = val.getSchema();

      if (schema != null) {

        // loop on schema resources and store them on files
        StringBuffer buf = new StringBuffer();
        List<ResourceItem> resources = schema.getResourcesList();
        int resourcesCount = resources.size();
        for (int i = 0; i < resourcesCount; i++) {
          ResourceItem item = resources.get(i);

          if (item != null) {
            boolean isMain = item.isIsMain();
            String fileName = item.getName();
            if (isMain) {
              fileName = "main." + fileName;
            }

            // log file name
            buf.append(fileName);
            if ((i + 1) < resourcesCount) {
              buf.append(";");
            }

            addJarEntry(entries, item.getGrammar().getBytes("UTF-8"), RESOURCES_FOLDER_PATH_IN_JAR + File.separator + fileName);
          }
        }

        // if the validation is WSDL, we need to add the schemas to
        // validate the SOAP envelop
        if (schema.getType() == SchemaValidationEnum.WSDL) {
          addSOAPResources(entries, buf, RESOURCES_FOLDER_PATH_IN_JAR);
        }

        // write resources.list file
        addJarEntry(entries, buf.toString().getBytes("UTF-8"), RESOURCES_FOLDER_PATH_IN_JAR + File.separator + "resources.list");
View Full Code Here

Examples of com.arconsis.android.datarobot.builder.schema.data.Schema

    this.messager = messager;
  }

  @Override
  public Schema read() {
    Schema schema = new Schema(persistence.dbName(), persistence.dbVersion(), updateHookClassName, createHookClassName);
    for (Element element : entities) {
      TypeElement entity = element.accept(new TypeResolvingVisitor(), null);
      TableReader tableReader = new TableReader(entity, entityNames, messager);
      Table read = tableReader.read();
      if (read != null) {
        schema.addTable(read);
      }
    }
    return schema;
  }
View Full Code Here

Examples of com.caucho.relaxng.Schema

   */
  public Object configure(Object obj, Path path, String schemaLocation)
    throws ConfigException
  {
    try {
      Schema schema = findCompactSchema(schemaLocation);

      QDocument doc = parseDocument(path, schema);

      return configure(obj, doc.getDocumentElement());
    } catch (RuntimeException e) {
View Full Code Here

Examples of com.caucho.xml.schema.Schema

    if (any == null)
      return;

    for (int i = 0; i < any.size(); i++) {
      if (any.get(i) instanceof Schema) {
        Schema schema = (Schema) any.get(i);
        schema.writeJAXBClasses(outputDirectory, pkg);
      }
    }
  }
View Full Code Here

Examples of com.consol.citrus.model.config.core.Schema

*/
public class SchemaSpringBeanConverter implements SpringBeanConverter<Schema> {

    @Override
    public Schema convert(SpringBean springBean) {
        Schema schema = new ObjectFactory().createSchema();

        for (Property property : springBean.getProperties()) {
            if (property.getName().equals("xsd")) {
                schema.setLocation(property.getValue());
            }
        }

        schema.setId(StringUtils.hasText(springBean.getId()) ? springBean.getId() : String.valueOf(System.currentTimeMillis()));

        return schema;
    }
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.