Esempio n. 1
0
 /**
  * Sets the file annotation data.
  *
  * @param data The value to set.
  */
 void setFileAnnotationData(FileAnnotationData data) {
   fileAnnotation = data;
   if (data == null) {
     fileID = 0;
     fileName = null;
     nameSpace = null;
     return;
   }
   this.fileID = data.getFileID();
   this.fileName = data.getFileName();
   nameSpace = data.getNameSpace();
 }
 /**
  * Returns the collection of the attachments linked to the <code>DataObject</code>.
  *
  * @return See above.
  */
 private List<FileAnnotationData> getTabularData() {
   StructuredDataResults data = getStructuredData();
   List<FileAnnotationData> l = new ArrayList<FileAnnotationData>();
   if (data == null) return l;
   Collection<FileAnnotationData> attachments = data.getAttachments();
   if (attachments == null) return l;
   Iterator<FileAnnotationData> i = attachments.iterator();
   FileAnnotationData f;
   String ns;
   while (i.hasNext()) {
     f = i.next();
     ns = f.getNameSpace();
     if (FileAnnotationData.BULK_ANNOTATIONS_NS.equals(ns)) {
       l.add(f);
     }
   }
   return l;
 }