Package edu.mit.simile.fresnel.selection

Examples of edu.mit.simile.fresnel.selection.ISelector


        RepositoryConnection conn = in.getConnection();
                RepositoryResult<Statement> focusProperties = conn.getStatements(focus, (URI) null, (Value) null, true);
                RepositoryResult<Statement> focusPropertiesInverse = conn.getStatements(null, (URI) null, focus, true);
        Iterator<ISelector> showPSI = show.iterator();
        while (showPSI.hasNext()) {
          ISelector selector = showPSI.next();
          if (AllPropertiesSelector.isAllProperties(selector)) {
            // get all properties and check if in hidden properties
            while (focusProperties.hasNext() || focusPropertiesInverse.hasNext()) {
              Statement st = (focusProperties.hasNext() ? focusProperties.next() : focusPropertiesInverse.next());
              URI maybeAdd = FresnelUtilities.dupURI(st.getPredicate());
View Full Code Here


      // get any lens-specified (property description) formatting, use instead of
      // 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();
              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

Related Classes of edu.mit.simile.fresnel.selection.ISelector

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.