Examples of Field


Examples of com.netflix.zeno.genericobject.GenericObject.Field

    private void writeCollectionDiff(StringBuilder builder, GenericObject from, GenericObject to) {
        locker.lockCollectionFields(from, to);

        /// both objects' fields length should be the same after the lockCollectionFields operation
        for(int i=0;i<from.getFields().size();i++) {
            Field fromField = from.getFields().get(i);
            Field toField = to.getFields().get(i);
            boolean moreFromFields = moreCollectionFields(from.getFields(), i);
            boolean moreToFields = moreCollectionFields(to.getFields(), i);

            appendField(builder, fromField, toField, moreFromFields, moreToFields);
        }
View Full Code Here

Examples of com.onpositive.commons.ui.tableeditor.Field

  private void appendNeededFields(Map<String, Field> fields,
      Collection<String> ks) {
    for (String us : persistentFields.keySet()) {
      if (ks.contains(us)) {
        Field f = fields.get(us);
        Class type = null;
        if (persistentFields.containsKey(us)) {
          type = persistentFields.get(us);
        }
        if (f.getType() == null) {
          f.setType(type);
          if (Collection.class.isAssignableFrom(type)) {
            ((GAEField) f).multiplicity = true;
            f.setType(null);
          }
        }
        continue;
      }
      GAEField f = new GAEField(us, true);
      // f.setKeyKind(kind);
      Class type = null;
      if (persistentFields.containsKey(us)) {
        type = persistentFields.get(us);
      }

      updateValues(us, null);
      f.setType(type);
      if (Collection.class.isAssignableFrom(type)) {
        f.multiplicity = true;
        f.setType(null);
      }

      fields.put(f.name, f);
    }
  }
View Full Code Here

Examples of com.ontometrics.scraper.extraction.Field

    fields = scraper.url(TableWithMultipleValuesOnMultipleRows.getUrl()).extract(scraper.extractor().getFields())
        .getFields();

    log.info("fields from table with multiple values on rows: {}", fields);

    Field cfdaNumbers = null;
    for (Field field : fields) {
      if (field.getLabel().equals("CFDA Number(s)")) {
        cfdaNumbers = field;
      }
    }

    assertThat(fields.size(), is(1));
    assertThat(cfdaNumbers, is(notNullValue()));
    assertThat(cfdaNumbers.getValue().contains(";"), is(true));

  }
View Full Code Here

Examples of com.openbravo.data.model.Field

    }

    protected void init() {

        row = new Row(
                new Field("ID", Datas.STRING, Formats.STRING),
                new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true)
        );

        Table table = new Table(
                "ATTRIBUTESET",
                new PrimaryKey("ID"),
View Full Code Here

Examples of com.openshift.internal.client.Field

  private int exitCode;

  public Message(String text, String field, String severity, int exitCode) {
    this.text = text;
    this.severity = new Severity(severity);
    this.field = new Field(field);
    this.exitCode = exitCode;
  }
View Full Code Here

Examples of com.projity.field.Field

      invokeFieldAction(ACTION_DOCUMENTS,getCurrentFrame().getProject());
    }
  }

  private boolean isEnabledFieldAction(String action, Object obj) {
    Field f = FieldDictionary.getInstance().getActionField(ACTION_DOCUMENTS);
    return (obj != null && f != null && f.getValue(obj,null) != null);

  }
View Full Code Here

Examples of com.salesforce.phoenix.schema.ValueSchema.Field

    }

    private int getTerminatorCount(RowKeySchema schema) {
        int nTerminators = 0;
        for (int i = 0; i < schema.getFieldCount(); i++) {
            Field field = schema.getField(i);
            // We won't have a terminator on the last PK column
            // unless it is variable length and exclusive, but
            // having the extra byte irregardless won't hurt anything
            if (!field.getDataType().isFixedWidth()) {
                nTerminators++;
            }
        }
        return nTerminators;
    }
View Full Code Here

Examples of com.save4j.model.database.Field

    StringBuffer buff = new StringBuffer();
   
    buff.append("CREATE TABLE " + table.getName() + "(");
   
    for (String key : table.getFields().keySet()) {
      Field field = table.getFields().get(key);
     
      buff.append(field.getName() + " char(50),");
    }
   
    // Remove the extra comma at the end
    if (buff.charAt(buff.length() - 1) == ',') {
      buff.substring(0, buff.length() - 1);
View Full Code Here

Examples of com.sforce.soap.partner.Field

        DescribeSObjectResult forceFields = client.describeSObject("account");
        Field[] fields = forceFields.getFields();
        assertNotNull(fields);
        boolean hasName = false;
        for (Field field : fields) {
            Field f = field;
            if (f.getName().equals("Name")) {
                hasName = true;
            }
        }
        assertTrue("Account Name not found ", hasName);
    }
View Full Code Here

Examples of com.sforce.soap.partner.wsc.Field

     *
     * @return int
     * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
     */
    public int compare(Object obj1, Object obj2) {
        Field f1 = (Field) obj1;
        Field f2 = (Field) obj2;

        return f1.getName().compareTo(f2.getName());
    }
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.