Package org.eclipse.emf.common.util

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


    }
  }

  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

   * 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

//-------------------------------------------------------------------------------------------------// 

  public List<ManagedBeanType> getManagedBeans() {
    final List<ManagedBeanType> allManagedBeans = new ArrayList<ManagedBeanType>();
    for (final FacesConfigType facesConfig : getFacesConfigModels()) {   
      final EList managedBeans = facesConfig.getManagedBean();
      allManagedBeans.addAll(managedBeans);
    }
    return allManagedBeans;
    }
View Full Code Here

  }

  public List<ValidatorType> getValidators() {
    final List<ValidatorType> allValidators = new ArrayList<ValidatorType>();
    for (final FacesConfigType facesConfig : getFacesConfigModels()) { 
      final EList validators = facesConfig.getValidator();
      allValidators.addAll(validators);
    }
    return allValidators;
  }
View Full Code Here

    }

  public List<ConverterType> getConverters() {
    final List<ConverterType> allConverters = new ArrayList<ConverterType>();
    for (final FacesConfigType facesConfig : getFacesConfigModels()) {
      final EList converters = facesConfig.getConverter();
      allConverters.addAll(converters);
    }
    return allConverters;
  }
View Full Code Here

  }

  public List<NavigationRuleType> getNavigationRules() {
    final List<NavigationRuleType> allNavigationRules = new ArrayList<NavigationRuleType>();
    for (final FacesConfigType facesConfig : getFacesConfigModels()) {
      final EList navigationRules = facesConfig.getNavigationRule();
      allNavigationRules.addAll(navigationRules);
    }
    return allNavigationRules;
  }
View Full Code Here

  }

  public List<ApplicationType> getApplications() {
    final List<ApplicationType> allApplications = new ArrayList<ApplicationType>();
    for (final FacesConfigType facesConfig : getFacesConfigModels()) {
      final EList applications = facesConfig.getApplication();
      allApplications.addAll(applications);
    }
    return allApplications;
  }
View Full Code Here

  }

  public List<FactoryType> getFactories() {
    final List<FactoryType> allFactories = new ArrayList<FactoryType>();
    for (final FacesConfigType facesConfig : getFacesConfigModels()) {
      final EList factories = facesConfig.getFactory();
      allFactories.addAll(factories);
    }
    return allFactories;
  }
View Full Code Here

  }

  public List<ComponentType> getComponents() {
    final List<ComponentType> allComponents = new ArrayList<ComponentType>();
    for (final FacesConfigType facesConfig : getFacesConfigModels()) {
      final EList components = facesConfig.getComponent();
      allComponents.addAll(components);
    }
    return allComponents;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.util.EList

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.