Exemplo n.º 1
0
 private boolean doesSectionContain(
     FieldDataPacket section, String lookFor, MiniLocalization localization) {
   FieldSpec fields[] = section.getFieldSpecs().asArray();
   for (int f = 0; f < fields.length; ++f) {
     MartusField field = getField(fields[f].getTag());
     if (field.contains(lookFor, localization)) return true;
   }
   return false;
 }
Exemplo n.º 2
0
  public boolean hasUnknownCustomField() {
    FieldDataPacket fdp = getFieldDataPacket();
    FieldSpec[] specs = fdp.getFieldSpecs().asArray();
    for (int i = 0; i < specs.length; ++i) {
      if (specs[i].hasUnknownStuff()) return true;
    }

    return false;
  }