Examples of canSelect()


Examples of edu.mit.simile.fresnel.selection.ISelector.canSelect()

      Lens lens = li.next();
      Iterator<ISelector> di = lens.getDomainSet().iterator();
      while (di.hasNext()) {
        ISelector select = di.next();
        if (select.canSelectResources()) {
          if (select.canSelect(in, focus)) {
            if (null == validStarts || (null != validStarts && validStarts.contains(focus))) {
              if (this._lensMatches.containsKey(focus)) {
                match = this._lensMatches.getMatch(focus);
                match.add(lens);
              } else {
View Full Code Here

Examples of edu.mit.simile.fresnel.selection.ISelector.canSelect()

                  while (sublensesIt.hasNext()) {
                    sublens = sublensesIt.next();
                    Iterator<ISelector> domainIt = sublens.getDomainSet().iterator();
                    while (domainIt.hasNext()) {
                      ISelector subdomain = domainIt.next();
                      if (subdomain.canSelect(in, objResource)) {
                        subr = applyLens(group, in, sublens, objResource, current + 1, newdepth);
                        match = true;
                        break matched;
                      }
                    }
View Full Code Here

Examples of edu.mit.simile.fresnel.selection.ISelector.canSelect()

                  while (sublensesIt.hasNext()) {
                    sublens = sublensesIt.next();
                    Iterator<ISelector> domainIt = sublens.getDomainSet().iterator();
                    while (domainIt.hasNext()) {
                      ISelector subdomain = domainIt.next();
                      if (subdomain.canSelect(in, objResource)) {
                        Result subr = applyLabelLens(sublens, in, objResource, current + 1, newdepth);
                        ValueResult vr = new ValueResult(subr, pr, selected.getContext());
                        pr.addValue(vr);
                        this._propertyResultModelHash.putResult(prop, pr);
                        matched = true;
View Full Code Here

Examples of edu.mit.simile.fresnel.selection.ISelector.canSelect()

      // passed in format if necessary
      Lens parent = r.getParent().getLens();
      Iterator<ISelector> psi = parent.getShowProperties().iterator();
      while (psi.hasNext()) {
        ISelector check = psi.next();
        if (check.canSelect(in, r.getParent().getOrigin(), r.getOrigin())) {
          if (check instanceof PropertyDescription) {
            PropertyDescription pd = (PropertyDescription) check;
            if (pd.isGroupUse()) {
              // pick which format to use...
              Group groupFormats = (Group) pd.getUse();
View Full Code Here

Examples of edu.mit.simile.fresnel.selection.ISelector.canSelect()

              Iterator<Format> fi = groupFormats.getFormats().iterator();
              while (fi.hasNext()) {
                Format potential = fi.next();
                for (Iterator<ISelector> di = potential.getDomainSet().iterator(); di.hasNext(); ) {
                  ISelector potentialCheck = di.next();
                  if (potentialCheck.canSelect(getModel(), r.getParent().getOrigin(), r.getOrigin())) {
                    format = potential;
                    break;
                  }
                }
              }
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.