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