Examples of EList


Examples of org.eclipse.emf.common.util.EList

      String[] params = getParamsArray(operation);
      currentTransformOperation =
        TransformOperationFactory.getInstance().getTransformOperation(opID, params);
      if (currentTransformOperation != null) {
        transformer.appendTransformOperation(currentTransformOperation);
        EList childOperations = operation.getOperations();
        if (childOperations != null && childOperations.size() > 0) {
          if (!appendChildOperations(currentTransformOperation, childOperations, dtInfo)) {
            return false;
          }
        }
      } else {
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

      String[] params = getParamsArray(operation);
      currentTransformOperation =
        TransformOperationFactory.getInstance().getTransformOperation(opID, params);
      if (currentTransformOperation != null) {
        parentOperation.appendChildOperation(currentTransformOperation);
        EList childOperations = operation.getOperations();
        if (childOperations != null && childOperations.size() > 0) {
          if (!appendChildOperations(currentTransformOperation, childOperations, dtInfo)) {
            return false;
          }
        }
       
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

    }
    return true;
  }

  private String[] getParamsArray(Operation operation) {
    EList paramsList = operation.getParameters();
    if (paramsList != null) {
      Iterator itParamsList = paramsList.iterator();
      String[] paramsArray = new String[paramsList.size()];
      int index = 0;
      while (itParamsList.hasNext()) {
        Parameter param = (Parameter)itParamsList.next();
        paramsArray[index++] = param.getValue();
      }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

   * (non-Javadoc)
   * @see org.eclipse.jst.pagedesigner.dtmanager.internal.provisional.IDTInfo#getTagDecorateInfo(java.lang.String)
   */
  public TagDecorateInfo getTagDecorateInfo(String id) {
    TagDecorateInfo tdInfo = null;
    EList tdInfos = dtInfo.getTagDecorateInfos();
    Iterator itTDInfos = tdInfos.iterator();
    while (itTDInfos.hasNext()) {
      TagDecorateInfo curTDInfo = (TagDecorateInfo)itTDInfos.next();
      if (curTDInfo.getId().equals(id)) {
        tdInfo = curTDInfo;
        break;
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

        }
        if (webApp != null) {
          String filesString = null;
          //need to branch here due to model version differences (BugZilla #119442)
          if (webApp.getVersionID() == J2EEVersionConstants.WEB_2_3_ID) {
            EList contexts = webApp.getContexts();
            Iterator itContexts = contexts.iterator();
            while (itContexts.hasNext()) {
              ContextParam contextParam = (ContextParam)itContexts.next();
              if (contextParam.getParamName().equals(CONFIG_FILES_CONTEXT_PARAM_NAME)) {
                filesString = contextParam.getParamValue();
                break;
              }
            }
          } else {
            EList contextParams = webApp.getContextParams();
            Iterator itContextParams = contextParams.iterator();
            while (itContextParams.hasNext()) {
              ParamValue paramValue = (ParamValue)itContextParams.next();
              if (paramValue.getName().equals(CONFIG_FILES_CONTEXT_PARAM_NAME)) {
                filesString = paramValue.getValue();
                break;
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

         * @param jsfLib
         * @param logMissingJar true to log an error for each invalid JAR.
         * @return elements
         */
        public final IPath[] getJARPathforJSFLib(JSFLibrary jsfLib, boolean logMissingJar) {       
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = archiveFiles.size();
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            for (int i= 0; i < numJars; i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() && logMissingJar ) {
                    logErroronMissingJAR(jsfLib, ar);
                }
                elements[i] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
            }
            return elements;
        }  
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

         * @param jsfLib
         * @param logMissingJar true to log an error for each invalid JAR.
         * @return elements
         */
        public final IPath[] getJARPathforJSFLibwFilterMissingJars(JSFLibrary jsfLib, boolean logMissingJar) {
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = numberofValidJar(archiveFiles);
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            int idxValidJar = 0;
            for (int i= 0; i < archiveFiles.size(); i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() ) {
                    if (logMissingJar) {
                        logErroronMissingJAR(jsfLib, ar);
                    }
                } else {
                    elements[idxValidJar] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
                    idxValidJar++;
                }
            }
            return elements;       
        }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

    }
  }

  private void startLocatingJ2EEConfigs(WebApp webApp){
    webApp.eAdapters().add(contextParamAdapter);
    EList contexts = webApp.getContexts();
    if (contexts != null) {
      Iterator itContexts = contexts.iterator();
      while (itContexts.hasNext()) {
        ContextParam contextParam = (ContextParam)itContexts.next();
        contextParam.eAdapters().add(contextParamAdapter);
      }
    }
    EList contextParams = webApp.getContextParams();
    if (contextParams != null) {
      Iterator itContextParams = contextParams.iterator();
      while (itContextParams.hasNext()) {
        ParamValue paramValue = (ParamValue)itContextParams.next();
        paramValue.eAdapters().add(contextParamAdapter);
      }
    }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

    }
  }

  private void stopLocatingJ2EEConfigs(WebApp webApp) {
    webApp.eAdapters().remove(contextParamAdapter);
    EList contexts = webApp.getContexts();
    if (contexts != null) {
      Iterator itContexts = contexts.iterator();
      while (itContexts.hasNext()) {
        ContextParam contextParam = (ContextParam)itContexts.next();
        contextParam.eAdapters().remove(contextParamAdapter);
      }
    }
    EList contextParams = webApp.getContextParams();
    if (contextParams != null) {
      Iterator itContextParams = contextParams.iterator();
      while (itContextParams.hasNext()) {
        ParamValue paramValue = (ParamValue)itContextParams.next();
        paramValue.eAdapters().remove(contextParamAdapter);
      }
    }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

   * facesConfig property.
   */
  protected void createModel() {
    facesConfig = FacesConfigFactory.eINSTANCE.createFacesConfigType();
    //create and add converters by id
    EList converters = facesConfig.getConverter();
    converters.add(createConverter("BigDecimal")); //$NON-NLS-1$
    converters.add(createConverter("BigInteger")); //$NON-NLS-1$
    converters.add(createConverter("Boolean")); //$NON-NLS-1$
    converters.add(createConverter("Byte")); //$NON-NLS-1$
    converters.add(createConverter("Character")); //$NON-NLS-1$
    converters.add(createConverter("DateTime")); //$NON-NLS-1$
    converters.add(createConverter("Double")); //$NON-NLS-1$
    converters.add(createConverter("Float")); //$NON-NLS-1$
    converters.add(createConverter("Integer")); //$NON-NLS-1$
    converters.add(createConverter("Long")); //$NON-NLS-1$
    converters.add(createConverter("Number")); //$NON-NLS-1$
    converters.add(createConverter("Short")); //$NON-NLS-1$
    converters.add(createConverter("Enum")); //$NON-NLS-1$
    // converters by for-class (see spec 3.3.3 -- Standard Converter Implementions
    converters.add(createForClassConverter("java.lang.Boolean", "javax.faces.convert.BooleanConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Byte", "javax.faces.convert.ByteConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Character", "javax.faces.convert.CharacterConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Double", "javax.faces.convert.DoubleConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Float", "javax.faces.convert.FloatConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Integer", "javax.faces.convert.IntegerConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Long", "javax.faces.convert.LongConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Short", "javax.faces.converter.ShortConverter")); //$NON-NLS-1$ //$NON-NLS-2$
        converters.add(createForClassConverter("java.lang.Enum", "javax.faces.converter.EnumConverter")); //$NON-NLS-1$ //$NON-NLS-2$
    //create and add validators
    EList validators = facesConfig.getValidator();
    validators.add(createValidator("DoubleRange")); //$NON-NLS-1$
    validators.add(createValidator("Length")); //$NON-NLS-1$
    validators.add(createValidator("LongRange")); //$NON-NLS-1$
    validators.add(createValidator("Bean")); //$NON-NLS-1$
    validators.add(createValidator("RegularExpression")); //$NON-NLS-1$
    validators.add(createValidator("Required")); //$NON-NLS-1$
    //create and add UI components
    EList components = facesConfig.getComponent();
    components.add(createUIComponent("Column")); //$NON-NLS-1$
    components.add(createUIComponent("Command")); //$NON-NLS-1$
    components.add(createUIComponent("Data")); //$NON-NLS-1$
    components.add(createUIComponent("Form")); //$NON-NLS-1$
    components.add(createUIComponent("Graphic")); //$NON-NLS-1$
    components.add(createUIComponent("Input")); //$NON-NLS-1$
    components.add(createUIComponent("Message")); //$NON-NLS-1$
    components.add(createUIComponent("Messages")); //$NON-NLS-1$
        components.add(createUIComponent("NamingContainer")); //$NON-NLS-1$
    components.add(createUIComponent("Output")); //$NON-NLS-1$
    components.add(createUIComponent("Panel")); //$NON-NLS-1$
    components.add(createUIComponent("Parameter")); //$NON-NLS-1$
    components.add(createUIComponent("SelectBoolean")); //$NON-NLS-1$
    components.add(createUIComponent("SelectItem")); //$NON-NLS-1$
    components.add(createUIComponent("SelectItems")); //$NON-NLS-1$
    components.add(createUIComponent("SelectMany")); //$NON-NLS-1$
    components.add(createUIComponent("SelectOne")); //$NON-NLS-1$
    components.add(createUIComponent("ViewRoot")); //$NON-NLS-1$
    //create and add HTML components
    components.add(createHTMLComponent("HtmlCommandButton")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlCommandLink")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlDataTable")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlForm")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlGraphicImage")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlInputHidden")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlInputSecret")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlInputText")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlInputTextarea")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlMessage")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlMessages")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlOutputFormat")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlOutputLabel")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlOutputLink")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlOutputText")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlPanelGrid")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlPanelGroup")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlSelectBooleanCheckbox")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlSelectManyCheckbox")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlSelectManyListbox")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlSelectManyMenu")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlSelectOneListbox")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlSelectOneMenu")); //$NON-NLS-1$
    components.add(createHTMLComponent("HtmlSelectOneRadio")); //$NON-NLS-1$
  }
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.