Package org.dmlite.model.component.link

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


   * 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

TOP

Related Classes of org.dmlite.model.component.link.Links

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.