Package org.eclipse.jst.jsf.facesconfig.emf

Examples of org.eclipse.jst.jsf.facesconfig.emf.ComponentType


   * @param name Base name of component from which component-type and
   * component-class are formed.
   * @return {@link ComponentType} instance.
   */
  protected ComponentType createUIComponent(String name) {
    ComponentType componentType = FacesConfigFactory.eINSTANCE.createComponentType();
    //set component-type
    ComponentTypeType componentTypeType = FacesConfigFactory.eINSTANCE.createComponentTypeType();
    StringBuffer sb = new StringBuffer();
    sb.append("javax.faces."); //$NON-NLS-1$
    sb.append(name);
    componentTypeType.setTextContent(sb.toString());
    componentType.setComponentType(componentTypeType);
    //set component-class
    ComponentClassType componentClassType = FacesConfigFactory.eINSTANCE.createComponentClassType();
    sb = new StringBuffer();
    sb.append("javax.faces.component.UI"); //$NON-NLS-1$
    sb.append(name);
    componentClassType.setTextContent(sb.toString());
    componentType.setComponentClass(componentClassType);
    return componentType;
  }
View Full Code Here


   * @param name Base name of component from which component-type and
   * component-class are formed.
   * @return {@link ComponentType} instance.
   */
  protected ComponentType createHTMLComponent(String name) {
    ComponentType componentType = FacesConfigFactory.eINSTANCE.createComponentType();
    //set component-type
    ComponentTypeType componentTypeType = FacesConfigFactory.eINSTANCE.createComponentTypeType();
    StringBuffer sb = new StringBuffer();
    sb.append("javax.faces."); //$NON-NLS-1$
    sb.append(name);
    componentTypeType.setTextContent(sb.toString());
    componentType.setComponentType(componentTypeType);
    //set component-class
    ComponentClassType componentClassType = FacesConfigFactory.eINSTANCE.createComponentClassType();
    sb = new StringBuffer();
    sb.append("javax.faces.component.html."); //$NON-NLS-1$
    sb.append(name);
    componentClassType.setTextContent(sb.toString());
    componentType.setComponentClass(componentClassType);
    return componentType;
  }
View Full Code Here

   * @param name Base name of component from which component-type and
   * component-class are formed.
   * @return {@link ComponentType} instance.
   */
  protected ComponentType createUIComponent(String name) {
    ComponentType componentType = FacesConfigFactory.eINSTANCE.createComponentType();
    //set component-type
    ComponentTypeType componentTypeType = FacesConfigFactory.eINSTANCE.createComponentTypeType();
    StringBuffer sb = new StringBuffer();
    sb.append("javax.faces."); //$NON-NLS-1$
    sb.append(name);
    componentTypeType.setTextContent(sb.toString());
    componentType.setComponentType(componentTypeType);
    //set component-class
    ComponentClassType componentClassType = FacesConfigFactory.eINSTANCE.createComponentClassType();
    sb = new StringBuffer();
    sb.append("javax.faces.component.UI"); //$NON-NLS-1$
    sb.append(name);
    componentClassType.setTextContent(sb.toString());
    componentType.setComponentClass(componentClassType);
    return componentType;
  }
View Full Code Here

   * @param name Base name of component from which component-type and
   * component-class are formed.
   * @return {@link ComponentType} instance.
   */
  protected ComponentType createHTMLComponent(String name) {
    ComponentType componentType = FacesConfigFactory.eINSTANCE.createComponentType();
    //set component-type
    ComponentTypeType componentTypeType = FacesConfigFactory.eINSTANCE.createComponentTypeType();
    StringBuffer sb = new StringBuffer();
    sb.append("javax.faces."); //$NON-NLS-1$
    sb.append(name);
    componentTypeType.setTextContent(sb.toString());
    componentType.setComponentType(componentTypeType);
    //set component-class
    ComponentClassType componentClassType = FacesConfigFactory.eINSTANCE.createComponentClassType();
    sb = new StringBuffer();
    sb.append("javax.faces.component.html."); //$NON-NLS-1$
    sb.append(name);
    componentClassType.setTextContent(sb.toString());
    componentType.setComponentClass(componentClassType);
    return componentType;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.facesconfig.emf.ComponentType

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.