Examples of containsName()


Examples of com.bergerkiller.bukkit.tc.pathfinding.PathNode.containsName()

          destination = prop.getDestination();
          prop.setLastPathNode(node.getName());
        }
        // Continue with path finding if a valid destination is specified
        // If the current node denotes the destination - don't switch!
        if (!LogicUtil.nullOrEmpty(destination) && !node.containsName(destination)) {
          if (PathProvider.isProcessing()) {
            double currentForce = info.getGroup().getAverageForce();
            // Add an action to let the train wait until the node IS explored
            info.getGroup().getActions().addAction(new GroupActionWaitPathFinding(info, node, destination));
            info.getMember().getActions().addActionLaunch(info.getMember().getDirectionFrom(), 1.0, currentForce);
View Full Code Here

Examples of com.elasticinbox.core.model.LabelMap.containsName()

  {
    // get all existing labels
    LabelMap existingLabels = AccountPersistence.getLabels(mailbox.getId());

    // validate only if name is changed (skips letter case changes)
    if (label.getName() != null && !existingLabels.containsName(label.getName())) {
      LabelUtils.validateLabelName(label.getName(), existingLabels);
    }

    // check if label id reserved
    if (ReservedLabels.contains(label.getId())) {
View Full Code Here

Examples of com.opengamma.analytics.financial.interestrate.YieldCurveBundle.containsName()

    YieldCurveBundle bundle = new YieldCurveBundle();
    bundle.setCurve("Constant 2% Yield Curve", yieldCurve);

    out.println(bundle.getAllNames());

    assert bundle.containsName("Constant 2% Yield Curve");
    assert bundle.getCurve("Constant 2% Yield Curve").equals(yieldCurve);
  }
}
View Full Code Here

Examples of com.volantis.map.common.param.MutableParameters.containsName()

        builder.build(external, params);

        // Check if all the source url componentys were preserved
        assertEquals("http", params.getParameterValue(ParameterNames.SOURCE_PROTOCOL));
        assertFalse(params.containsName(ParameterNames.SOURCE_USER_INFO));
        assertEquals("myotherhost", params.getParameterValue(ParameterNames.SOURCE_HOST));
        assertFalse(params.containsName(ParameterNames.SOURCE_PORT));
        assertEquals("images/get", params.getParameterValue(ParameterNames.SOURCE_PATH));
        assertEquals("imageId=me, myself and I", params.getParameterValue(ParameterNames.SOURCE_QUERY));
        assertEquals("whatever", params.getParameterValue(ParameterNames.SOURCE_FRAGMENT));
View Full Code Here

Examples of com.volantis.map.common.param.MutableParameters.containsName()

        // Check if all the source url componentys were preserved
        assertEquals("http", params.getParameterValue(ParameterNames.SOURCE_PROTOCOL));
        assertFalse(params.containsName(ParameterNames.SOURCE_USER_INFO));
        assertEquals("myotherhost", params.getParameterValue(ParameterNames.SOURCE_HOST));
        assertFalse(params.containsName(ParameterNames.SOURCE_PORT));
        assertEquals("images/get", params.getParameterValue(ParameterNames.SOURCE_PATH));
        assertEquals("imageId=me, myself and I", params.getParameterValue(ParameterNames.SOURCE_QUERY));
        assertEquals("whatever", params.getParameterValue(ParameterNames.SOURCE_FRAGMENT));

        // Check if ICS info was properly extracted
View Full Code Here

Examples of com.volantis.map.common.param.MutableParameters.containsName()

                "#whatever");

        builder.build(external, params);

        // Check if all the source url componentys were preserved
        assertFalse(params.containsName(ParameterNames.SOURCE_PROTOCOL));
        assertFalse(params.containsName(ParameterNames.SOURCE_USER_INFO));
        assertFalse(params.containsName(ParameterNames.SOURCE_HOST));
        assertFalse(params.containsName(ParameterNames.SOURCE_PORT));
        assertEquals("images/get", params.getParameterValue(ParameterNames.SOURCE_PATH));
        assertEquals("imageId=me, myself and I", params.getParameterValue(ParameterNames.SOURCE_QUERY));
View Full Code Here

Examples of com.volantis.map.common.param.MutableParameters.containsName()

        builder.build(external, params);

        // Check if all the source url componentys were preserved
        assertFalse(params.containsName(ParameterNames.SOURCE_PROTOCOL));
        assertFalse(params.containsName(ParameterNames.SOURCE_USER_INFO));
        assertFalse(params.containsName(ParameterNames.SOURCE_HOST));
        assertFalse(params.containsName(ParameterNames.SOURCE_PORT));
        assertEquals("images/get", params.getParameterValue(ParameterNames.SOURCE_PATH));
        assertEquals("imageId=me, myself and I", params.getParameterValue(ParameterNames.SOURCE_QUERY));
        assertEquals("whatever", params.getParameterValue(ParameterNames.SOURCE_FRAGMENT));
View Full Code Here

Examples of com.volantis.map.common.param.MutableParameters.containsName()

        builder.build(external, params);

        // Check if all the source url componentys were preserved
        assertFalse(params.containsName(ParameterNames.SOURCE_PROTOCOL));
        assertFalse(params.containsName(ParameterNames.SOURCE_USER_INFO));
        assertFalse(params.containsName(ParameterNames.SOURCE_HOST));
        assertFalse(params.containsName(ParameterNames.SOURCE_PORT));
        assertEquals("images/get", params.getParameterValue(ParameterNames.SOURCE_PATH));
        assertEquals("imageId=me, myself and I", params.getParameterValue(ParameterNames.SOURCE_QUERY));
        assertEquals("whatever", params.getParameterValue(ParameterNames.SOURCE_FRAGMENT));
View Full Code Here

Examples of com.volantis.map.common.param.MutableParameters.containsName()

        // Check if all the source url componentys were preserved
        assertFalse(params.containsName(ParameterNames.SOURCE_PROTOCOL));
        assertFalse(params.containsName(ParameterNames.SOURCE_USER_INFO));
        assertFalse(params.containsName(ParameterNames.SOURCE_HOST));
        assertFalse(params.containsName(ParameterNames.SOURCE_PORT));
        assertEquals("images/get", params.getParameterValue(ParameterNames.SOURCE_PATH));
        assertEquals("imageId=me, myself and I", params.getParameterValue(ParameterNames.SOURCE_QUERY));
        assertEquals("whatever", params.getParameterValue(ParameterNames.SOURCE_FRAGMENT));

        // Check if ICS info was properly extracted
View Full Code Here

Examples of com.volantis.map.common.param.MutableParameters.containsName()

     * @param uri
     * @throws XDIMEException
     */
    private void setHostAndPort(Request request, URI uri) throws XDIMEException {
        MutableParameters params = (MutableParameters) request.getInputParams();
        if (!params.containsName(ParameterNames.SOURCE_HOST)) {
            try {
                // generate an absolute URL to the asset. This allows us to
                // hijack the host and port.
                URL fakeUrl = pageContext.getAbsoluteURL(
                    new MarinerURL(uri.toString()), true);
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.