Ejemplo n.º 1
0
 /**
  * Returns the VPFFile for a particular column. It will only find the first match, but that should
  * be okay because duplicate columns will cause even bigger problems elsewhere.
  *
  * @param column the column to search for
  * @return the VPFFile that owns this column
  */
 private VPFFile getVPFFile(AttributeDescriptor column) {
   Name columnName = column.getName();
   VPFFile result = null;
   VPFFile temp;
   Iterator<VPFFile> iter = featureType.getFeatureClass().getFileList().iterator();
   while (iter.hasNext()) {
     temp = iter.next();
     if ((temp != null) && (temp.getColumn(columnName.getLocalPart()) != null)) {
       result = temp;
       break;
     }
   }
   return result;
 }
Ejemplo n.º 2
0
 /**
  * Returns the VPFFile for a particular column. It will only find the first match, but that should
  * be okay because duplicate columns will cause even bigger problems elsewhere.
  *
  * @param column the column to search for
  * @return the VPFFile that owns this column
  */
 private VPFFile getVPFFile(VPFColumn column) {
   String columnName = column.getName();
   VPFFile result = null;
   VPFFile temp;
   Iterator<VPFFile> iter = featureType.getFeatureClass().getFileList().iterator();
   while (iter.hasNext()) {
     temp = (VPFFile) iter.next();
     if ((temp != null) && (temp.getColumn(columnName) != null)) {
       result = temp;
       break;
     }
   }
   return result;
 }