Examples of expand()


Examples of org.jwall.web.audit.util.VariableContext.expand()

      Map<String, String> parameter = objectFactory.getAttributes(node);
      Map<String, String> expanded = new HashMap<String, String>();
      VariableContext ctx = new VariableContext(System.getProperties());
      for (String key : parameter.keySet()) {
        expanded.put(key, ctx.expand(parameter.get(key)));
      }

      log.debug("Creating object from '{}' with parameters: {}",
          node.getNodeName(), expanded);
      Object o = objectFactory.create(node.getNodeName(), expanded, node);
View Full Code Here

Examples of org.lealone.compress.Compressor.expand()

        Compressor compress = getCompressor(algorithm);
        try {
            int len = readVariableInt(in, 1);
            int start = 1 + getVariableIntLength(len);
            byte[] buff = DataUtils.newBytes(len);
            compress.expand(in, start, in.length - start, buff, 0, len);
            return buff;
        } catch (Exception e) {
            throw DbException.get(ErrorCode.COMPRESSION_ERROR, e);
        }
    }
View Full Code Here

Examples of org.locationtech.geogig.api.Bounded.expand()

            Bounded ba = ia.next();
            Bounded bb = ib.next();
            Envelope ea = new Envelope();
            Envelope eb = new Envelope();
            ba.expand(ea);
            bb.expand(eb);
            assertEquals(ea.getMinX(), eb.getMinX(), 1e-7D);
            assertEquals(ea.getMinY(), eb.getMinY(), 1e-7D);
            assertEquals(ea.getMaxX(), eb.getMaxX(), 1e-7D);
            assertEquals(ea.getMaxY(), eb.getMaxY(), 1e-7D);
        }
View Full Code Here

Examples of org.locationtech.geogig.api.Bucket.expand()

                out.writeStartElement("bucket");
                writeElement("bucketindex", bucketIndex.toString());
                writeElement("bucketid", bucket.id().toString());
                Envelope env = new Envelope();
                env.setToNull();
                bucket.expand(env);
                out.writeStartElement("bbox");
                writeElement("minx", Double.toString(env.getMinX()));
                writeElement("maxx", Double.toString(env.getMaxX()));
                writeElement("miny", Double.toString(env.getMinY()));
                writeElement("maxy", Double.toString(env.getMaxY()));
View Full Code Here

Examples of org.locationtech.geogig.api.Node.expand()

        Envelope bounds = new Envelope();

        for (NodeRef entry : refsByDepth) {
            Node node = entry.getNode();
            node.expand(bounds);
            String parentPath = entry.getParentPath();
            root.setChild(parentPath, node);
        }
        // recreate root node with the appropriate bounds
        rootNode = Node.create(ROOT, rootId, ObjectId.NULL, TYPE.TREE, bounds);
View Full Code Here

Examples of org.moltools.apps.probemaker.ext.target.AlleleSpecificPadlockTarget.expand()

   
    assertEquals(0,ProbeMakerPropertyUtils.getAllMessages(p).size());
   
    //Get a variant of an allele specific padlock
    AlleleSpecificPadlockTarget target2 = new AlleleSpecificPadlockTarget("T2","ATACAGTCGTCCGGGTCGAAWAGAGCATCGACGCGGATCAA","Target 2");
    target = target2.expand().get(0);
   
    pair = tpd.designTSSPair(target);
   
    p = new DefaultProbe(pair,0,0,NucleotideSequence.DNA);
    plc.checkTemplatingByTarget(p);
View Full Code Here

Examples of org.moltools.apps.probemaker.seq.VariantTarget.expand()

        VariantTarget vt = (VariantTarget) target;
        //If target is not in a group, expand it and add the new targets to temp
        TargetGroup tg = (TargetGroup) DesignUtils.getGroupWithType(vt,TargetGroup.GROUP_TYPE);
        if (tg == null) {
          tg = new TargetGroup(vt.getID());
          List<? extends ProbeMakerTarget> nts = vt.expand();
          if (nts.size() <= 1) {
            try {
              temp.addSequence(vt);
            }
            catch (DuplicateIDException e) {
View Full Code Here

Examples of org.neo4j.graphdb.traversal.TraversalDescription.expand()

            throw new IllegalArgumentException();
        }
        TraverserImpl result = new TraverserImpl();
        TraversalDescription description = traversal( result, traversalOrder,
                stopEvaluator, returnableEvaluator );
        description = description.expand( toExpander( relationshipTypesAndDirections ) );
        result.iter = description.traverse( node ).iterator();
        return result;
    }

    private static RelationshipExpander toExpander(
View Full Code Here

Examples of org.openbel.framework.core.compiler.expansion.ModificationExpansionRule.expand()

        List<Statement> stmts;

        // valid substitution
        term = BELParser.parseTerm("p(HGNC:TNF,sub(V,599,E))");
        assertThat(rule.match(term), is(true));
        stmts = rule.expand(term);
        assertThat(stmts.size(), is(1));
        assertThat(stmts.get(0).toBELShortForm(),
                is("p(HGNC:TNF) hasVariant p(HGNC:TNF,sub(V,599,E))"));

        // valid truncation
View Full Code Here

Examples of org.openbp.guiclient.model.item.itemtree.DataMemberSelectionDlg.expand()

        LogUtil.error(getClass(), "Value of property $0 in object of type $1 is not a ModelObject", rootObjectPropertyPath, o.getClass().getName(), e);
      }
    }

    dlg.rebuildTree();
    dlg.expand(1);

    // Determine the current data member path from the value of the property
    String memberPath = (String) value;
    dlg.setSelectedMemberPath(memberPath);
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.