jaxx.compiler.tags.validator
Class BeanValidatorHandler.CompiledBeanValidator

java.lang.Object
  extended by jaxx.compiler.CompiledObject
      extended by jaxx.compiler.tags.validator.BeanValidatorHandler.CompiledBeanValidator
Enclosing class:
BeanValidatorHandler

public static class BeanValidatorHandler.CompiledBeanValidator
extends CompiledObject

The compiled objet representing a BeanValidator to be generated in JAXXObject

Author:
tchemit

Nested Class Summary
 
Nested classes/interfaces inherited from class jaxx.compiler.CompiledObject
CompiledObject.ChildRef
 
Field Summary
protected  Boolean autoField
           
protected  String bean
           
protected  String beanClass
           
protected  JAXXBeanInfo beanDescriptor
           
protected  String contextName
           
protected  String errorList
           
protected  String errorListModel
           
protected  String errorTable
           
protected  String errorTableModel
           
protected  Map<String,String> excludeFields
           
protected  Map<String,String> fields
           
protected  String parentValidator
           
protected  Boolean strictMode
           
protected  String uiClass
           
 
Constructor Summary
BeanValidatorHandler.CompiledBeanValidator(String id, ClassDescriptor objectClass, JAXXCompiler compiler)
           
 
Method Summary
protected  boolean addBean(Element tag, BeanValidatorHandler handler, JAXXCompiler compiler)
           
 void addChild(CompiledObject child, String constraints, JAXXCompiler compiler)
          Adds a child component to this container.
protected  boolean addErrorList(Element tag, JAXXCompiler compiler)
           
protected  boolean addErrorListModel(Element tag, BeanValidatorHandler handler, JAXXCompiler compiler)
           
protected  boolean addErrorTable(Element tag, JAXXCompiler compiler)
           
protected  boolean addErrorTableModel(Element tag, BeanValidatorHandler handler, JAXXCompiler compiler)
           
protected  void addFieldRepresentations(Element tag, JAXXCompiler compiler)
          Deprecated. since 2.2.1, prefer use the methdo addFieldRepresentations(JAXXCompiler, StringBuilder)
 void addFieldRepresentations(JAXXCompiler compiler, StringBuilder buffer)
          Register in buffer all field representation to init (and to record in method JAXXValidator.registerValidatorFields()
protected  boolean addParentValidator(Element tag, BeanValidatorHandler handler, JAXXCompiler compiler)
           
 void addProperty(String property, String value)
          Stores a property for this object.
protected  boolean addUiClass(BeanValidatorHandler handler, JAXXCompiler compiler)
           
protected  boolean checkBeanProperty(JAXXCompiler compiler, String propertyName)
           
 boolean foundBean()
           
 boolean getAutoField()
           
 String getBean()
           
 String getBeanClass()
           
 JAXXBeanInfo getBeanDescriptor(JAXXCompiler compiler)
           
 String getContextName()
           
protected static ClassDescriptor getDescriptor(ClassDescriptor objectClass, JAXXCompiler compiler)
           
 String getErrorListModel()
           
 Map<String,String> getExcludeFields()
           
 Map<String,String> getFields()
           
 String getParentValidator()
           
 boolean getStrictMode()
           
 String getUiClass()
           
protected  void registerAutoFieldBean(Element tag, JAXXCompiler compiler, JAXXBeanInfo beanInfo)
           
 void registerExcludeField(String id, String component, JAXXCompiler compiler)
           
 void registerField(String id, String component, JAXXCompiler compiler)
           
 void setExcludeFields(Map<String,String> excludeFields)
           
 void setFields(Map<String,String> fields)
           
 
Methods inherited from class jaxx.compiler.CompiledObject
addChild, addClientProperty, addEventHandler, addEventHandler, appendAdditionCode, appendInitializationCode, finalizeCompiler, getAdditionCode, getAdditionMethodName, getChilds, getClientProperties, getClientProperty, getConstructorParams, getCreationMethodName, getDecorator, getGenericTypes, getGenericTypesLength, getGetterName, getId, getInitializationCode, getInitializationCode, getInitializer, getJavaBeanInitCode, getJavaCode, getJavaCodeForProperty, getObjectClass, getOverrideType, getParent, getProperties, getStyleClass, hasClientProperties, isJavaBean, isOverride, isOverrideType, isValidID, setConstructorParams, setDecorator, setGenericTypes, setInitializer, setJavaBean, setJavaBeanInitCode, setOverride, setOverrideType, setParent, setStyleClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fields

protected Map<String,String> fields

excludeFields

protected Map<String,String> excludeFields

bean

protected String bean

beanClass

protected String beanClass

contextName

protected String contextName

uiClass

protected String uiClass

errorListModel

protected String errorListModel

errorList

protected String errorList

autoField

protected Boolean autoField

strictMode

protected Boolean strictMode

beanDescriptor

protected JAXXBeanInfo beanDescriptor

errorTableModel

protected String errorTableModel

errorTable

protected String errorTable

parentValidator

protected String parentValidator
Constructor Detail

BeanValidatorHandler.CompiledBeanValidator

public BeanValidatorHandler.CompiledBeanValidator(String id,
                                                  ClassDescriptor objectClass,
                                                  JAXXCompiler compiler)
Method Detail

getDescriptor

protected static ClassDescriptor getDescriptor(ClassDescriptor objectClass,
                                               JAXXCompiler compiler)

getFields

public Map<String,String> getFields()

getExcludeFields

public Map<String,String> getExcludeFields()

setFields

public void setFields(Map<String,String> fields)

setExcludeFields

public void setExcludeFields(Map<String,String> excludeFields)

addProperty

public void addProperty(String property,
                        String value)
Description copied from class: CompiledObject
Stores a property for this object. The only effect of calling this method is that the property will be returned by getProperties().

Overrides:
addProperty in class CompiledObject
Parameters:
property - the name of the property
value - the property's value
See Also:
CompiledObject.getProperties()

getBean

public String getBean()

getErrorListModel

public String getErrorListModel()

getAutoField

public boolean getAutoField()

getStrictMode

public boolean getStrictMode()

getUiClass

public String getUiClass()

getBeanClass

public String getBeanClass()

getContextName

public String getContextName()

getParentValidator

public String getParentValidator()

getBeanDescriptor

public JAXXBeanInfo getBeanDescriptor(JAXXCompiler compiler)

addChild

public void addChild(CompiledObject child,
                     String constraints,
                     JAXXCompiler compiler)
              throws CompilerException
Description copied from class: CompiledObject
Adds a child component to this container. This variant allows the Java code for a layout constraints object to be specified.

Overrides:
addChild in class CompiledObject
Parameters:
child - the component to add
constraints - Java code for the layout constraints object
compiler - the current JAXXCompiler
Throws:
CompilerException - if this object is not a container
See Also:
CompiledObject.addChild(CompiledObject, JAXXCompiler)

foundBean

public boolean foundBean()

addUiClass

protected boolean addUiClass(BeanValidatorHandler handler,
                             JAXXCompiler compiler)

addErrorListModel

protected boolean addErrorListModel(Element tag,
                                    BeanValidatorHandler handler,
                                    JAXXCompiler compiler)

addErrorTableModel

protected boolean addErrorTableModel(Element tag,
                                     BeanValidatorHandler handler,
                                     JAXXCompiler compiler)

addParentValidator

protected boolean addParentValidator(Element tag,
                                     BeanValidatorHandler handler,
                                     JAXXCompiler compiler)

addErrorList

protected boolean addErrorList(Element tag,
                               JAXXCompiler compiler)

addErrorTable

protected boolean addErrorTable(Element tag,
                                JAXXCompiler compiler)

addBean

protected boolean addBean(Element tag,
                          BeanValidatorHandler handler,
                          JAXXCompiler compiler)

addFieldRepresentations

@Deprecated
protected void addFieldRepresentations(Element tag,
                                                  JAXXCompiler compiler)
Deprecated. since 2.2.1, prefer use the methdo addFieldRepresentations(JAXXCompiler, StringBuilder)

Parameters:
tag -
compiler -

addFieldRepresentations

public void addFieldRepresentations(JAXXCompiler compiler,
                                    StringBuilder buffer)
Register in buffer all field representation to init (and to record in method JAXXValidator.registerValidatorFields()

Parameters:
compiler - the compiler used
buffer - the buffer where to add code
Since:
2.2.1

registerAutoFieldBean

protected void registerAutoFieldBean(Element tag,
                                     JAXXCompiler compiler,
                                     JAXXBeanInfo beanInfo)

registerField

public void registerField(String id,
                          String component,
                          JAXXCompiler compiler)

registerExcludeField

public void registerExcludeField(String id,
                                 String component,
                                 JAXXCompiler compiler)

checkBeanProperty

protected boolean checkBeanProperty(JAXXCompiler compiler,
                                    String propertyName)


Copyright © 2008-2010 CodeLutin. All Rights Reserved.