Package ugh.dl

Examples of ugh.dl.Reference


     * -------------------------------- alle Seiten hinzufügen --------------------------------
     */
    if (inOldDocstruct.getAllToReferences() != null) {
      // TODO: get rid of Iterators, use a for Loop instead
      for (Iterator<Reference> iterator = inOldDocstruct.getAllToReferences().iterator(); iterator.hasNext();) {
        Reference p = iterator.next();
        newDocstruct.addReferenceTo(p.getTarget(), p.getType());
      }
    }

    /*
     * -------------------------------- alle Docstruct-Children hinzufügen --------------------------------
View Full Code Here


       * -------------------------------- Referenzen sortieren --------------------------------
       */
      Collections.sort(listReferenzen, new Comparator<Reference>() {
        @Override
        public int compare(final Reference o1, final Reference o2) {
          final Reference r1 = o1;
          final Reference r2 = o2;
          Integer page1 = 0;
          Integer page2 = 0;
          final MetadataType mdt = MetadatenHelper.this.myPrefs.getMetadataTypeByName("physPageNumber");
          List<? extends Metadata> listMetadaten = r1.getTarget().getAllMetadataByType(mdt);
          if (listMetadaten != null && listMetadaten.size() > 0) {
            final Metadata meineSeite = listMetadaten.get(0);
            page1 = Integer.parseInt(meineSeite.getValue());
          }
          listMetadaten = r2.getTarget().getAllMetadataByType(mdt);
          if (listMetadaten != null && listMetadaten.size() > 0) {
            final Metadata meineSeite = listMetadaten.get(0);
            page2 = Integer.parseInt(meineSeite.getValue());
          }
          return page1.compareTo(page2);
View Full Code Here

       * -------------------------------- Referenzen sortieren --------------------------------
       */
      Collections.sort(listReferenzen, new Comparator<Reference>() {
        @Override
        public int compare(final Reference o1, final Reference o2) {
          final Reference r1 = o1;
          final Reference r2 = o2;
          Integer page1 = 0;
          Integer page2 = 0;

          MetadataType mdt = Metadaten.this.myPrefs.getMetadataTypeByName("physPageNumber");
          List<? extends Metadata> listMetadaten = r1.getTarget().getAllMetadataByType(mdt);
          if (listMetadaten != null && listMetadaten.size() > 0) {
            Metadata meineSeite = listMetadaten.get(0);
            page1 = Integer.parseInt(meineSeite.getValue());
          }
          listMetadaten = r2.getTarget().getAllMetadataByType(mdt);
          if (listMetadaten != null && listMetadaten.size() > 0) {
            Metadata meineSeite = listMetadaten.get(0);
            page2 = Integer.parseInt(meineSeite.getValue());
          }
          return page1.compareTo(page2);
View Full Code Here

      /*
       * wenn schon References vorhanden, prüfen, ob schon enthalten, erst dann zuweisen
       */
      if (this.myDocStruct.getAllToReferences("logical_physical") != null) {
        for (Iterator<Reference> iter = this.myDocStruct.getAllToReferences("logical_physical").iterator(); iter.hasNext();) {
          Reference obj = iter.next();
          if (obj.getTarget() == this.alleSeitenNeu[aktuelleID].getMd().getDocStruct()) {
            schonEnthalten = true;
            break;
          }
        }
      }
View Full Code Here

TOP

Related Classes of ugh.dl.Reference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.