Examples of Links


Examples of org.dmlite.model.component.link.Links

   *            domain model
   */
  public Subject(IDomainModel domainModel) {
    super(domainModel);
    // internal child neighbors only
    links = new Links(this);
    subsubjects = new Subjects(this);
  }
View Full Code Here

Examples of org.dmlite.model.component.link.Links

   * Gets all web links.
   *
   * @return links
   */
  public Links getAllLinks() {
    Links allWebLinks = null;
    try {
      Subject subject;
      for (Iterator x = iterator(); x.hasNext();) {
        subject = (Subject) x.next();
        Links subjectWebLinks = subject.getLinks();
        if (allWebLinks == null) {
          SelectionCriteria all = SelectionCriteria
              .defineAllCriteria();
          allWebLinks = (Links) subjectWebLinks.getEntities(all);
          allWebLinks.setPropagateToSource(false);
        } else {
          Link link;
          for (Iterator y = subjectWebLinks.iterator(); y.hasNext();) {
            link = (Link) y.next();
            allWebLinks.add(link);
          }
        }
      }
View Full Code Here

Examples of org.domain.model.component.link.Links

  private Interests interests;

  public Topic(IDomainModel domainModel) {
    super(domainModel);
    // internal child neighbors only
    setLinks(new Links(this));
    setSubtopics(new Topics(this));
  }
View Full Code Here

Examples of org.domain.model.component.link.Links

      item.add(projectDescriptionLabel);

      App app = (App) getApplication();
      Topics topics = (Topics) app.getEntry("Topics");
      Topic projectTopic = (Topic) topics.getTopic(project.getName());
      Links projectTopicLinks;
      if (projectTopic == null) {
        projectTopicLinks = new Links(project.getDomainModel());
      } else {
        projectTopicLinks = (Links) projectTopic.getLinks();
      }
      ModelContext linkModelContext = new ModelContext(modelContext);
      Links approvedOrderedLinks = (Links) projectTopicLinks
          .getApprovedLinks().getLinksOrderedByName();
      linkModelContext.setEntities(approvedOrderedLinks);
      ViewContext linkViewContext = new ViewContext(viewContext);
      linkViewContext.setWicketId("linkListPanel");
      LinkListPanel linkListPanel = new LinkListPanel(linkModelContext,
View Full Code Here

Examples of org.domain.model.component.link.Links

      String title = topic.getName().toUpperCase();
      Label topicNameLabel = new Label("topicName", title);
      item.add(topicNameLabel);

      ModelContext linkModelContext = new ModelContext(modelContext);
      Links topicLinks = (Links) topic.getLinks();
      Links approvedOrderedLinks = (Links) topicLinks.getApprovedLinks()
          .getLinksOrderedByName();
      linkModelContext.setEntities(approvedOrderedLinks);
      ViewContext linkViewContext = new ViewContext(viewContext);
      linkViewContext.setWicketId("linkListPanel");
      LinkListPanel linkListPanel = new LinkListPanel(linkModelContext,
View Full Code Here

Examples of org.domain.model.component.link.Links

    Topic firstTopic = (Topic) topics.first();
    if (firstTopic != null) {
      Topics firstTopicSubtopics = firstTopic.getSubtopics();
      Topic firstSubtopic = (Topic) firstTopicSubtopics.first();
      if (firstSubtopic != null) {
        Links firstSubtopicLinks = (Links) firstSubtopic.getLinks();
        firstSubtopicLinks.output("First Subtopic Links");
      }
    }
  }
View Full Code Here

Examples of org.eclipse.bpel.model.Links

  protected Element flow2XML(Activity activity) {
    Flow flow = (Flow)activity;
    Element activityElement = createBPELElement("flow");
   
    Links links = ((Flow)activity).getLinks();
    if (links != null) {
      Element linksElement = links2XML(links);
      activityElement.appendChild(linksElement);
    }
     
View Full Code Here

Examples of org.eclipse.bpel.model.Links

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetLinks(Links newLinks, NotificationChain msgs) {
    Links oldLinks = links;
    links = newLinks;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.FLOW__LINKS, oldLinks, newLinks);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of org.eclipse.bpel.model.Links

        if (result == null) result = caseWSDLElement(correlationSets);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.LINKS: {
        Links links = (Links)theEObject;
        Object result = caseLinks(links);
        if (result == null) result = caseExtensibleElement(links);
        if (result == null) result = caseExtensibleElement_1(links);
        if (result == null) result = caseWSDLElement(links);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.bpel.model.Links

  public Link getLink(Activity activity, String linkName) {
    if (activity != null) {
      EObject container = activity.eContainer();
      while (container != null) {
        if (container instanceof Flow) {
          Links links =((Flow)container).getLinks();
          if (links != null) {
            for (Iterator it = links.getChildren().iterator(); it.hasNext(); ) {
              Link candidate = (Link)it.next();    
              if (candidate.getName().equals(linkName))
                return candidate;
            }
          }
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.