Class BeanValidatorHandler.CompiledBeanValidator
- java.lang.Object
-
- org.nuiton.jaxx.compiler.CompiledObject
-
- org.nuiton.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:
- Tony Chemit - dev@tchemit.fr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuiton.jaxx.compiler.CompiledObject
CompiledObject.ChildRef
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanautoFieldprotected Stringbeanprotected StringbeanClassprotected JAXXBeanInfobeanDescriptorprotected Stringcontextprotected StringerrorListprotected StringerrorListModelprotected StringerrorTableprotected StringerrorTableModelprotected static Set<String>EXCLUDE_SWING_PROPERTY_NAMESWill never add validator field on this.protected Map<String,String>excludeFieldsMap of field to exclude.protected com.google.common.collect.Multimap<String,String>fieldsMap of field to add into validator.protected StringparentValidatorprotected BooleanstrictModeprotected StringuiClass
-
Constructor Summary
Constructors Constructor Description CompiledBeanValidator(String id, JAXXCompiler compiler)
-
Method Summary
-
Methods inherited from class org.nuiton.jaxx.compiler.CompiledObject
addChild, addClientProperty, addEventHandler, appendAdditionCode, appendInitializationCode, finalizeCompiler, getAdditionCode, getAdditionMethodName, getBeanScope, getChilds, getClientProperties, getClientProperty, getConstructorParams, getCreationMethodName, getDecorator, getGenericTypes, getGenericTypesLength, getGetterName, getI18nProperty, getId, getInitializationCode, getInitializationCode, getInitializer, getJavaBeanInitCode, getJavaCode, getJavaCodeForProperty, getObjectClass, getOverrideType, getParent, getProperties, getSetterName, getSimpleType, getStyleClass, getStyleClasses, hasClientProperties, isAddToContainer, isForceOverride, isJavaBean, isOverride, isOverrideType, isUseComputeI18n, isValidID, matchStyleClass, newChildRef, setAddToContainer, setBeanScope, setConstructorParams, setDecorator, setForceOverride, setGenericTypes, setI18nProperty, setInitializer, setJavaBean, setJavaBeanInitCode, setOverride, setOverrideType, setParent, setSimpleType, setStyleClass, toString
-
-
-
-
Field Detail
-
fields
protected final com.google.common.collect.Multimap<String,String> fields
Map of field to add into validator.Keys are editors, Values are bean properties.
-
excludeFields
protected final Map<String,String> excludeFields
Map of field to exclude.Keys are bean properties, Values are editors.
-
EXCLUDE_SWING_PROPERTY_NAMES
protected static final Set<String> EXCLUDE_SWING_PROPERTY_NAMES
Will never add validator field on this.
-
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
-
-
Constructor Detail
-
CompiledBeanValidator
public CompiledBeanValidator(String id, JAXXCompiler compiler)
-
-
Method Detail
-
containsFieldEditor
public boolean containsFieldEditor(String editorName)
-
containsFieldPropertyName
public boolean containsFieldPropertyName(String propertyName)
-
containsExcludeFieldEditor
public boolean containsExcludeFieldEditor(String editorName)
-
containsExcludeFieldPropertyName
protected boolean containsExcludeFieldPropertyName(String editorName)
-
removeFieldPropertyName
protected void removeFieldPropertyName(String propertyName)
-
getFieldPropertyNames
public Collection<String> getFieldPropertyNames(String editor)
-
addProperty
public void addProperty(String property, String value)
Description copied from class:CompiledObjectStores a property for this object. The only effect of calling this method is that the property will be returned bygetProperties().- Overrides:
addPropertyin classCompiledObject- 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:CompiledObjectAdds a child component to this container. This variant allows the Java code for a layout constraints object to be specified.- Overrides:
addChildin classCompiledObject- Parameters:
child- the component to addconstraints- Java code for the layout constraints objectcompiler- the currentJAXXCompiler- Throws:
CompilerException- if this object is not a container
-
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)
-
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)
-
-