Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2013 Red Hat, Inc. and/or its affiliates.
   *
   * Licensed under the Eclipse Public License version 1.0, available at
   * http://www.eclipse.org/legal/epl-v10.html
   */
  
  package org.jboss.forge.addon.javaee.faces;
  
 
 import  javax.faces.validator.Validator;
 
 import  org.jboss.forge.addon.parser.java.resources.JavaResource;
 import  org.jboss.forge.addon.projects.Project;
 import  org.jboss.forge.addon.resource.DirectoryResource;
 import  org.jboss.forge.roaster.model.source.JavaClassSource;
 import  org.jboss.forge.roaster.model.source.MethodSource;

This class contains Faces specific operations

Author(s):
George Gastaldi
 
 public interface FacesOperations
 {
   
Creates a new JavaResource in the specified project. If no project is available, use FacesOperations.newBackingBean(DirectoryResource, String, String)

Parameters:
project the current project to create the backing bean. Must not be null
backingBeanName the name of the backing bean
backingBeanPackage the package of the backing bean to be created
Returns:
the created JavaResource
 
    public JavaResource newBackingBean(Project projectString backingBeanNameString backingBeanPackage)
             throws FileNotFoundException;

   
Creates a new JavaResource in the specified target. If a project is available, use FacesOperations.newBackingBean(Project, String, String)

Parameters:
target the target directory resource to create the backing bean
backingBeanName the name of the backing bean
backingBeanPackage the package of the backing bean to be created
Returns:
the created JavaResource
 
    public JavaResource newBackingBean(DirectoryResource targetString backingBeanNameString backingBeanPackage);

   
Creates a new JavaResource in the specified project. If no project is available, use FacesOperations.newConverter(DirectoryResource, String, String)

Parameters:
project the current project to create the converter. Must not be null
converterName the name of the converter
converterPackage the package of the converter to be created
Returns:
the created JavaResource
 
    public JavaResource newConverter(Project projectString converterNameString converterPackage)
             throws FileNotFoundException;

   
Creates a new JavaResource in the specified target. If a project is available, use FacesOperations.newConverter(Project, String, String)

Parameters:
target the target directory resource to create this class
converterName the name of the converter
converterPackage the package of the converter to be created
Returns:
the created JavaResource
 
    public JavaResource newConverter(DirectoryResource targetString converterNameString converterPackage);

   
Creates a new JavaResource in the specified project. If no project is available, use FacesOperations.newValidator(DirectoryResource, String, String)

Parameters:
project the current project to create the validator. Must not be null
validatorName the name of the validator
validatorPackage the package of the validator to be created
Returns:
the created JavaResource
 
    public JavaResource newValidator(Project projectString validatorNameString validatorPackage)
             throws FileNotFoundException;

   
Creates a new JavaResource in the specified target. If a project is available, use FacesOperations.newConverter(Project, String, String)

Parameters:
target the target directory resource to create the validator. Must not be null
validatorName the name of the validator
validatorPackage the package of the validator to be created
Returns:
the created JavaResource
 
    public JavaResource newValidator(DirectoryResource targetString validatorNameString validatorPackage);

   
Adds a Validator method to the given JavaResource.
 
   public MethodSource<JavaClassSource> addValidatorMethod(JavaResource targetString name)
            throws FileNotFoundException;
New to GrepCode? Check out our FAQ X