com.jurismarches.vradi.ui.email.helpers
Enum EmailBeanConstant

java.lang.Object
  extended by java.lang.Enum<EmailBeanConstant>
      extended by com.jurismarches.vradi.ui.email.helpers.EmailBeanConstant
All Implemented Interfaces:
Serializable, Comparable<EmailBeanConstant>

public enum EmailBeanConstant
extends Enum<EmailBeanConstant>

Version:
$Revision: 1807 $ Last update : $Date: 2010-11-24 16:11:33 +0100 (mer., 24 nov. 2010) $ By : $Author: sletellier $
Author:
sletellier

Enum Constant Summary
FORM
           
GROUP
           
SESSION
           
USER
           
 
Field Summary
protected  Class<? extends org.nuiton.wikitty.entities.BusinessEntity> beanClass
           
protected  Class<? extends EmailContentUI> uiClass
           
 
Method Summary
protected
<B extends org.nuiton.wikitty.entities.BusinessEntity>
B
cast(Class<B> toCast, org.nuiton.wikitty.entities.BusinessEntity bean)
           
 String decorate(Session currentSession, org.nuiton.wikitty.entities.BusinessEntity bean)
           
 org.nuiton.wikitty.entities.BusinessEntity getBean(VradiDataProvider provider, String id)
           
 Class<? extends org.nuiton.wikitty.entities.BusinessEntity> getBeanClass()
           
static EmailBeanConstant getConstantByBeanClass(Class<?> beanClass)
           
 String getToolTipText(org.nuiton.wikitty.entities.BusinessEntity bean)
           
 Class<? extends EmailContentUI> getUIClass()
           
static Class<? extends EmailContentUI> getUIClass(Class<?> beanClass)
           
static EmailBeanConstant valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EmailBeanConstant[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GROUP

public static final EmailBeanConstant GROUP

USER

public static final EmailBeanConstant USER

FORM

public static final EmailBeanConstant FORM

SESSION

public static final EmailBeanConstant SESSION
Field Detail

beanClass

protected Class<? extends org.nuiton.wikitty.entities.BusinessEntity> beanClass

uiClass

protected Class<? extends EmailContentUI> uiClass
Method Detail

values

public static EmailBeanConstant[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EmailBeanConstant c : EmailBeanConstant.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EmailBeanConstant valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getBeanClass

public Class<? extends org.nuiton.wikitty.entities.BusinessEntity> getBeanClass()

getUIClass

public Class<? extends EmailContentUI> getUIClass()

getConstantByBeanClass

public static EmailBeanConstant getConstantByBeanClass(Class<?> beanClass)

getBean

public org.nuiton.wikitty.entities.BusinessEntity getBean(VradiDataProvider provider,
                                                          String id)

getUIClass

public static Class<? extends EmailContentUI> getUIClass(Class<?> beanClass)

decorate

public String decorate(Session currentSession,
                       org.nuiton.wikitty.entities.BusinessEntity bean)

getToolTipText

public String getToolTipText(org.nuiton.wikitty.entities.BusinessEntity bean)

cast

protected <B extends org.nuiton.wikitty.entities.BusinessEntity> B cast(Class<B> toCast,
                                                                        org.nuiton.wikitty.entities.BusinessEntity bean)


Copyright © 2009-2011 JurisMarches. All Rights Reserved.