Example #1
0
 public void setOrInsertField(String pFieldName, Object pData, int pInd) {
   if (mFormat.containsField(pFieldName)) {
     set(pFieldName, pData);
   } else {
     insertField(pInd, pFieldName, pData);
   }
 }
Example #2
0
 public void setOrAppendField(String pFieldName, Object pData) {
   if (mFormat.containsField(pFieldName)) {
     set(pFieldName, pData);
   } else {
     appendField(pFieldName, pData);
   }
 }
Example #3
0
 public Object get(String pFieldName) {
   if (!(mFormat.containsField(pFieldName))) {
     throw new RuntimeException("No such field: " + pFieldName);
   }
   int fieldInd = mFormat.getFieldIndex(pFieldName);
   return get(fieldInd);
 }
Example #4
0
 public void set(String pFieldName, Object pVal) {
   if (!(mFormat.containsField(pFieldName))) {
     throw new RuntimeException("No such field: " + pFieldName);
   }
   int fieldInd = mFormat.getFieldIndex(pFieldName);
   set(fieldInd, pVal);
 }
Example #5
0
 public boolean containsField(String pFieldId) {
   return mFormat.containsField(pFieldId);
 }