Package com.intellij.javaee.model.xml

Examples of com.intellij.javaee.model.xml.ParamValue


   * @param webApp Web application.
   * @return File names.
   */
  private static Set<String> findConfiguredTilesPaths(final WebApp webApp) {
    @NonNls final Set<String> tilesConfigNames = new THashSet<String>();
    final ParamValue tilesParamValue = ContainerUtil.find(webApp.getContextParams(), TILES_CONTEXT_PARAM_CONDITION);
    if (tilesParamValue == null) {
      return tilesConfigNames;
    }

    final String paramValue = tilesParamValue.getParamValue().getStringValue();
    if (paramValue == null) {
      return tilesConfigNames;
    }

    for (final String file : StringUtil.split(paramValue, ",")) {
View Full Code Here


    assert paramValueElement != null;

    final DomElement domElement = paramValueElement.getParent();
    assert domElement instanceof ParamValue;

    final ParamValue initParamElement = (ParamValue) domElement;
    final String paramName = initParamElement.getParamName().getStringValue();
    if (StringUtil.isEmpty(paramName)) {
      return null;
    }

    final StrutsConstantManager constantManager = StrutsConstantManager.getInstance(myElement.getProject());
View Full Code Here

      return value; // no web.xml
    }

    final Filter filter = ContainerUtil.find(webApp.getFilters(), WEB_XML_STRUTS_FILTER_CONDITION);
    if (filter != null) {
      final ParamValue initParam = ContainerUtil.find(filter.getInitParams(), new Condition<ParamValue>() {
        public boolean value(final ParamValue paramValue) {
          return Comparing.equal(paramValue.getParamName().getStringValue(), name);
        }
      });
      if (initParam != null) {
        value = initParam.getParamValue().getStringValue();
      }
    }

    return value;
  }
View Full Code Here

TOP

Related Classes of com.intellij.javaee.model.xml.ParamValue

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.