Package edu.mit.simile.fresnel.selection

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


  private void addLens(Lens lens) {
    this._lenses.add(lens);
    this._all.put(lens.getIdentifier(), lens);

    for (Iterator<ISelector> di = lens.getDomainSet().iterator(); di.hasNext(); ) {
      TypeSelector ts = (TypeSelector) di.next();
      LensMatchSet lms = this._classLensMatches.getMatch(ts.getType());
      if (null == lms) {
        lms = new LensMatchSet(ts.getType());
      }
      lms.add(lens);
      this._classLensMatches.putMatch(ts.getType(), lms);
    }
  }
View Full Code Here


    while (domainsI.hasNext()) {
      ISelector domain = null;
      Value domainNode = domainsI.next().getObject();
      if (domainNode instanceof Resource) {
        // This is a type selector
        domain = new TypeSelector((URI) domainNode);
      } else if (domainNode instanceof Literal) {
        Literal domainL = (Literal) domainNode;
        // TODO: catch bad expressions?  throw exceptions?
        if (domainL.getDatatype().equals(FresnelCoreTypes.fslSelector)) {
          domain = new FSESelector(domainL.getLabel(), _fslContext, conf.getNamespaceMap());
View Full Code Here

          while (primaryDomains.hasNext()) {
            Value domainNode = (Value) primaryDomains.next();
            ISelector domain = null;
            if (domainNode instanceof Resource) {
              // This is a type selector
              domain = new TypeSelector((Resource) domainNode);
            } else if (domainNode instanceof Literal) {
              Literal domainL = (Literal) domainNode;
              // TODO: catch bad expressions?  throw exceptions?
              if (domainL.getDatatype().equals(FresnelCoreTypes.fslSelector)) {
                domain = new FSESelector(domainL.getLabel(), _fslContext, conf.getNamespaceMap());
View Full Code Here

TOP

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

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.