Examples of containsName()


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

     * @param pageContext - MarinerPageContext
     * @throws PAPIException
     */
    private void setHostAndPort(Request request, URI uri, MarinerPageContext pageContext) throws PAPIException {
        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

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

        HttpServletRequest request = createHttpRequest("TestDevice/");

        ppb.process(request, descriptor);

        assertFalse("MaxImageSize shouldn't have been changed ",
                    params.containsName(ParameterNames.MAX_IMAGE_SIZE));
        assertFalse("DestinationFormatRule shouldn't have been changed",
                    params.containsName(ParameterNames.DESTINATION_FORMAT_RULE));
    }

    /**
 
View Full Code Here

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

        ppb.process(request, descriptor);

        assertFalse("MaxImageSize shouldn't have been changed ",
                    params.containsName(ParameterNames.MAX_IMAGE_SIZE));
        assertFalse("DestinationFormatRule shouldn't have been changed",
                    params.containsName(ParameterNames.DESTINATION_FORMAT_RULE));
    }

    /**
     * Creates HTTP servlet request with pointed device as user agent.
     *
 
View Full Code Here

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

                        ResourceDescriptor descritptor) throws ParameterBuilderException {

        try {
            Parameters params = descritptor.getInputParameters();

            if (params.containsName(ParameterNames.SUPPORTED_IMAGES)) {

                RulesWithPolicies preservedRule = (RulesWithPolicies) FORMAT_RULES_TABLE
                        .get(params.getParameterValue(ParameterNames.SOURCE_IMAGE_MIME_TYPE));

                if (preservedRule == null) {
View Full Code Here

Examples of net.sf.jmatchparser.template.engine.CallStackFrame.containsName()

    String name = varname.getString(state);
    String v = value == null ? null : value.getString(state);
    CallStackFrame frame = state.getCallStack();
    if (frame == null)
      throw new RuntimeException("SETLOCAL command cannot be used outside DEFTEMPLATE");
    if (!frame.containsName(name)) {
      String oldvalue = state.getLocal(name);
      state.setCallStack(new CallStackFrame(frame, name, oldvalue));
    }
    if (v != null)
      state.setLocal(name, v);
View Full Code Here

Examples of org.onemind.commons.java.datastructure.NametableStack.containsName()

     * @throws NoSuchFieldException the the variable cannot be found
     */
    protected Object lookupVariable(String variableName) throws NoSuchFieldException
    {
        NametableStack ntStack = getCurrentContext().getNametableStack();
        if (!ntStack.containsName(variableName))
        {
            throw new NoSuchFieldException("Variable/Function " + variableName + " is not declared before");
        }
        Object v = ntStack.access(variableName);
        if (_logger.isLoggable(Level.FINEST))
View Full Code Here

Examples of org.onemind.commons.java.datastructure.NametableStack.containsName()

        {
            String s = (String) l.get(i);
            if (i == 0)
            {
                //first case, variable
                if (ntStack.containsName(s))
                {
                    current = ntStack.access(s); //lookup variable
                } else
                {//second case, page static
                    JxpPage page = context.getCurrentPage();
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNProperties.containsName()

                        properties.getStringValue(SVNProperty.COMMITTED_DATE),
                        properties.getStringValue(SVNProperty.COMMITTED_REVISION), getOptions());
                byte[] eols = null;
                if (SVNProperty.EOL_STYLE_NATIVE.equals(properties.getStringValue(SVNProperty.EOL_STYLE))) {
                    eols = SVNTranslator.getEOL(eolStyle != null ? eolStyle : properties.getStringValue(SVNProperty.EOL_STYLE), getOptions());
                } else if (properties.containsName(SVNProperty.EOL_STYLE)) {
                    eols = SVNTranslator.getEOL(properties.getStringValue(SVNProperty.EOL_STYLE), getOptions());
                }
                if (binary) {
                    charset = null;
                    eols = null;
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNProperties.containsName()

        myEntryName = entryName;
    }

    public boolean containsProperty(String name) throws SVNException {
        SVNProperties propsMap = getProperties();
        if (propsMap != null && propsMap.containsName(name)) {
            return true;
        }

        SVNEntry entry = myAdminArea.getEntry(myEntryName, true);
        if (entry == null) {
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNProperties.containsName()

            }
            return true;
        }
        if (!isEmpty()) {
            SVNProperties props = loadProperties();
            return props.containsName(name);
        }
        return false;
    }

    public SVNPropertyValue getPropertyValue(String name) throws SVNException {
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.