Examples of references()


Examples of org.apache.isis.objectstore.xml.internal.data.CollectionData.references()

        writer.append("</value>\n");
    }

    private static void writeCollection(final Data data, final Writer writer) throws IOException {
        final CollectionData collection = (CollectionData) data;
        final ListOfRootOid refs = collection.references();
        for (int i = 0; i < refs.size(); i++) {
            final Object oid = refs.elementAt(i);
            writer.append("  <element");
            final RootOid rootOid = (RootOid) oid;
            Utils.appendAttribute(writer, "oid", rootOid.enString(getOidMarshaller()));
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.CollectionData.references()

        xml.append("</value>\n");
    }

    private void writeCollection(final Data data, final StringBuffer xml) {
        final CollectionData collection = (CollectionData) data;
        final ReferenceVector refs = collection.references();
        for (int i = 0; i < refs.size(); i++) {
            final Object oid = refs.elementAt(i);
            xml.append("  <element ");
            xml.append("ref=\"" + encodedOid((SerialOid) oid) + "\"/>\n");
        }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.CollectionData.references()

        xml.append("</value>\n");
    }

    private void writeCollection(final Data data, final StringBuffer xml) {
        final CollectionData collection = (CollectionData) data;
        final ReferenceVector refs = collection.references();
        for (int i = 0; i < refs.size(); i++) {
            final Object oid = refs.elementAt(i);
            xml.append("  <element ");
            xml.append("ref=\"" + encodedOid((SerialOid) oid) + "\"/>\n");
        }
View Full Code Here

Examples of org.rssowl.core.model.reference.AttachmentReference.references()

              attachmentDeleted[0] = true;

            else if (attachmentRef2.references(attachment))
              attachmentDeleted[1] = true;

            else if (attachmentRef3.references(attachment))
              attachmentDeleted[2] = true;
          }
        }
      };
      fModel.addAttachmentListener(attachmentListener);
View Full Code Here

Examples of org.rssowl.core.model.reference.AttachmentReference.references()

            if (attachmentRef1.references(attachment))
              attachmentDeleted[0] = true;
            else if (attachmentRef2.references(attachment))
              attachmentDeleted[1] = true;
            else if (attachmentRef3.references(attachment))
              attachmentDeleted[2] = true;
          }
        }
      };
      fModel.addAttachmentListener(attachmentListener);
View Full Code Here

Examples of org.rssowl.core.model.reference.BookMarkReference.references()

              bookMarkEventsIssued[0] = true;

            else if (bookMarkRef2.references(bookMark))
              bookMarkEventsIssued[1] = true;

            else if (bookMarkRef3.references(bookMark))
              bookMarkEventsIssued[2] = true;
          }
        }
      };
      fModel.addBookMarkListener(bookMarkListener);
View Full Code Here

Examples of org.rssowl.core.model.reference.CategoryReference.references()

            ICategory category = event.getEntity();

            if (categoryRef1.references(category))
              categoryDeleted[0] = true;

            else if (categoryRef2.references(category))
              categoryDeleted[1] = true;
          }
        }
      };
      fModel.addCategoryListener(categoryListener);
View Full Code Here

Examples of org.rssowl.core.model.reference.CategoryReference.references()

      categoryListener = new CategoryAdapter() {
        @Override
        public void categoryDeleted(Set<CategoryEvent> events) {
          for (CategoryEvent event : events) {
            assertFalse("Expected this Event to be no Root Event", event.isRoot());
            if (categoryRef.references(event.getEntity()))
              categoryDeleted[0] = true;
          }
        }
      };
      fModel.addCategoryListener(categoryListener);
View Full Code Here

Examples of org.rssowl.core.model.reference.FeedReference.references()

      feedListener = new FeedAdapter() {
        @Override
        public void feedDeleted(Set<FeedEvent> events) {
          for (FeedEvent event : events) {
            assertFalse("Already received feed deleted event!", feedEventsIssued[0]);
            if (feedRef.references(event.getEntity()))
              feedEventsIssued[0] = true;
          }
        }
      };
      fModel.addFeedListener(feedListener);
View Full Code Here

Examples of org.rssowl.core.model.reference.FeedReference.references()

        public void feedDeleted(Set<FeedEvent> events) {
          for (FeedEvent event : events) {
            assertFalse("Already received feedDeleted Event", feedDeleted[0]);
            assertTrue("Expected this Event to be Root Event", event.isRoot());

            if (feedRef.references(event.getEntity()))
              feedDeleted[0] = true;
          }
        }
      };
      fModel.addFeedListener(feedListener);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.