Beispiel #1
0
 public void setOrInsertField(String pFieldName, Object pData, int pInd) {
   if (mFormat.containsField(pFieldName)) {
     set(pFieldName, pData);
   } else {
     insertField(pInd, pFieldName, pData);
   }
 }
Beispiel #2
0
 public void setOrAppendField(String pFieldName, Object pData) {
   if (mFormat.containsField(pFieldName)) {
     set(pFieldName, pData);
   } else {
     appendField(pFieldName, pData);
   }
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #5
0
 public boolean containsField(String pFieldId) {
   return mFormat.containsField(pFieldId);
 }