Class 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
    • 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.
      • 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
      • errorTableModel

        protected String errorTableModel
      • errorTable

        protected String errorTable
      • parentValidator

        protected String parentValidator
    • Constructor Detail

      • CompiledBeanValidator

        public CompiledBeanValidator​(String id,
                                     JAXXCompiler compiler)
    • Method Detail

      • getFields

        public com.google.common.collect.Multimap<String,​String> getFields()
      • containsFieldEditor

        public boolean containsFieldEditor​(String editorName)
      • containsFieldPropertyName

        public boolean containsFieldPropertyName​(String propertyName)
      • getFieldEditors

        public Set<String> getFieldEditors()
      • containsExcludeFieldEditor

        public boolean containsExcludeFieldEditor​(String editorName)
      • containsExcludeFieldPropertyName

        protected boolean containsExcludeFieldPropertyName​(String editorName)
      • getExcludeFieldPropertyNames

        public Set<String> getExcludeFieldPropertyNames()
      • removeFieldPropertyName

        protected void removeFieldPropertyName​(String propertyName)
      • addField

        public void addField​(String propertyName,
                             String editor)
      • addExcludeField

        public void addExcludeField​(String propertyName,
                                    String editor)
      • 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()
      • getContext

        public String getContext()
      • getParentValidator

        public String getParentValidator()
      • 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
      • foundBean

        public boolean foundBean()
      • checkBeanProperty

        public boolean checkBeanProperty​(JAXXCompiler compiler,
                                         String propertyName)