jaxx.compiler.tags.validator
Class BeanValidatorHandler.CompiledBeanValidator
java.lang.Object
jaxx.compiler.CompiledObject
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
|
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)
|
void |
addFieldRepresentations(JAXXCompiler compiler,
JavaFile javaFile,
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)
|
boolean |
checkBeanProperty(JAXXCompiler compiler,
String propertyName)
|
boolean |
foundBean()
|
boolean |
getAutoField()
|
String |
getBean()
|
String |
getBeanClass()
|
JAXXBeanInfo |
getBeanDescriptor(JAXXCompiler compiler)
|
String |
getContext()
|
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, 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, getSimpleType, getStyleClass, hasClientProperties, isJavaBean, isOverride, isOverrideType, isValidID, newChildRef, setConstructorParams, setDecorator, setGenericTypes, setInitializer, setJavaBean, setJavaBeanInitCode, setOverride, setOverrideType, setParent, setSimpleType, setStyleClass, toString |
fields
protected Map<String,String> fields
excludeFields
protected Map<String,String> excludeFields
bean
protected String bean
beanClass
protected String beanClass
context
protected String context
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
BeanValidatorHandler.CompiledBeanValidator
public BeanValidatorHandler.CompiledBeanValidator(String id,
ClassDescriptor objectClass,
JAXXCompiler compiler)
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 propertyvalue - 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()
getContext
public String getContext()
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 addconstraints - Java code for the layout constraints objectcompiler - 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
public void addFieldRepresentations(JAXXCompiler compiler,
JavaFile javaFile,
StringBuilder buffer)
- Register in buffer all field representation to init (and to record in method
JAXXValidator.registerValidatorFields()
- Parameters:
compiler - the compiler usedjavaFile - generated filebuffer - 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
public boolean checkBeanProperty(JAXXCompiler compiler,
String propertyName)
Copyright © 2008-2011 CodeLutin. All Rights Reserved.