public class BeanValidatorHandler extends DefaultObjectHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
BeanValidatorHandler.CompiledBeanValidator
The compiled objet representing a BeanValidator to be generated in
JAXXObject
|
DefaultObjectHandler.ProxyEventInfo| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOFIELD_ATTRIBUTE |
static String |
BEAN_ATTRIBUTE |
static String |
BEAN_CLASS_ATTRIBUTE |
static String |
BEAN_INITIALIZER_ATTRIBUTE |
static String |
CONTEXT_ATTRIBUTE |
static String |
ERROR_LIST_ATTRIBUTE |
static String |
ERROR_LIST_DEFAULT |
static String |
ERROR_LIST_MODEL_ATTRIBUTE |
static String |
ERROR_LIST_MODEL_DEFAULT |
static String |
ERROR_TABLE_ATTRIBUTE |
static String |
ERROR_TABLE_DEFAULT |
static String |
ERROR_TABLE_MODEL_ATTRIBUTE |
static String |
ERROR_TABLE_MODEL_DEFAULT |
static String |
PARENT_VALIDATOR_ATTRIBUTE |
static String |
STRICT_MODE_ATTRIBUTE |
static String |
TAG |
static String |
UI_CLASS_ATTRIBUTE |
protected static Map<JAXXCompiler,List<String>> |
validatedComponents |
protected static Map<JAXXCompiler,List<BeanValidatorHandler.CompiledBeanValidator>> |
validators |
ABSTRACT_ATTRIBUTE, BORDER_LAYOUT_PREFIX, CONSTRAINTS_ATTRIBUTE, CONSTRUCTOR_PARAMS_ATTRIBUTE, DECORATOR_ATTRIBUTE, DISPLAYED_MNEMONIC_ATTRIBUTE, DISPLAYED_MNEMONIC_INDEX_ATTRIBUTE, GENERIC_TYPE_ATTRIBUTE, GRID_LAYOUT_PREFIX, HANDLER_ATTRIBUTE, I18N_ATTRIBUTE, I18N_PROPERTY_ATTRIBUTE, ID_ATTRIBUTE, IMPLEMENTS_ATTRIBUTE, INITIALIZER_ATTRIBUTE, JAVA_BEAN_ATTRIBUTE, jaxxBeanInfo, LAYOUT_ATTRIBUTE, MNEMONIC_ATTRIBUTE, objectMap, STYLE_CLASS_ATTRIBUTE, SUPER_GENERIC_TYPE_ATTRIBUTEXMLNS_ATTRIBUTE| Constructor and Description |
|---|
BeanValidatorHandler(ClassDescriptor beanClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compileChildTagFirstPass(Element tag,
JAXXCompiler compiler)
Compiles a child of the current tag.
|
void |
compileSecondPass(Element tag,
JAXXCompiler compiler)
Performs the second pass of compilation on an XML tag from a JAXX source file.
|
protected CompiledObject |
createCompiledObject(String id,
JAXXCompiler compiler)
Creates the
CompiledObject which will represent the object
created by this TagHandler. |
static List<BeanValidatorHandler.CompiledBeanValidator> |
getValidators(JAXXCompiler compiler) |
static boolean |
hasValidator(JAXXCompiler compiler) |
static boolean |
isBeanUsedByValidator(JAXXCompiler compiler,
String beanId)
Test if a given bean is attached to a validator.
|
static boolean |
isComponentUsedByValidator(JAXXCompiler compiler,
String componentId)
Test if a given CompiledObject is attached to a validator.
|
void |
setAttribute(CompiledObject object,
String propertyName,
String stringValue,
boolean inline,
JAXXCompiler compiler)
Set a single property on an object.
|
protected void |
setDefaults(CompiledObject object,
Element tag,
JAXXCompiler compiler)
Initializes the default settings of the object, prior to setting its
attribute values.
|
addEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagSecondPass, compileFirstPass, configureProxyEventInfo, constantValue, convertFromString, getAttributeComparator, getAttributeOrdering, getBeanClass, getEventClass, getEventInfo, getGetPropertyCode, getJAXXBeanInfo, getJAXXBeanInfo, getPropertyType, getSetPropertyCode, init, isEventHandlerName, isMemberBound, isPropertyInherited, registerCompiledObject, safeInit, scanAttributesForDependencies, setAttributeFromCss, setAttributes, setProperty, toStringpublic static final String TAG
public static final String BEAN_ATTRIBUTE
public static final String BEAN_CLASS_ATTRIBUTE
public static final String BEAN_INITIALIZER_ATTRIBUTE
public static final String ERROR_LIST_MODEL_ATTRIBUTE
public static final String ERROR_TABLE_MODEL_ATTRIBUTE
public static final String ERROR_LIST_ATTRIBUTE
public static final String ERROR_TABLE_ATTRIBUTE
public static final String ERROR_LIST_MODEL_DEFAULT
public static final String ERROR_TABLE_MODEL_DEFAULT
public static final String ERROR_LIST_DEFAULT
public static final String ERROR_TABLE_DEFAULT
public static final String AUTOFIELD_ATTRIBUTE
public static final String UI_CLASS_ATTRIBUTE
public static final String STRICT_MODE_ATTRIBUTE
public static final String CONTEXT_ATTRIBUTE
public static final String PARENT_VALIDATOR_ATTRIBUTE
protected static final Map<JAXXCompiler,List<BeanValidatorHandler.CompiledBeanValidator>> validators
protected static final Map<JAXXCompiler,List<String>> validatedComponents
public BeanValidatorHandler(ClassDescriptor beanClass)
protected CompiledObject createCompiledObject(String id, JAXXCompiler compiler)
DefaultObjectHandlerCompiledObject which will represent the object
created by this TagHandler.createCompiledObject in class DefaultObjectHandlerid - the CompiledObject's ID.compiler - compiler to useCompiledObject to useprotected void compileChildTagFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
DefaultObjectHandlerJAXXCompiler.compileFirstPass.compileChildTagFirstPass in class DefaultObjectHandlertag - the child tag to runcompiler - the current JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occurspublic void compileSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
TagHandlerTagHandler implementations affect the generated .java
file by calling methods in the JAXXCompiler.compileSecondPass in interface TagHandlercompileSecondPass in class DefaultObjectHandlertag - the XML tag to compilecompiler - the active JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occursprotected void setDefaults(CompiledObject object, Element tag, JAXXCompiler compiler)
DefaultObjectHandlersetDefaults in class DefaultObjectHandlerobject - the object to initializetag - the tag being compiledcompiler - the current JAXXCompilerpublic void setAttribute(CompiledObject object, String propertyName, String stringValue, boolean inline, JAXXCompiler compiler)
DefaultObjectHandlerDefaultObjectHandler.convertFromString(String, String, Class).setAttribute in class DefaultObjectHandlerobject - the object on which to set the propertypropertyName - the name of the property to setstringValue - the raw string value of the property from the XMLinline - true if the value was directly specified as an inline class tag attribute, false otherwise (a default value, specified in CSS, etc.)compiler - the current JAXXCompilerpublic static boolean isBeanUsedByValidator(JAXXCompiler compiler, String beanId)
compiler - current compiler to usebeanId - the bean to testtrue if the given bean is attached to a validator,
false otherwisepublic static boolean hasValidator(JAXXCompiler compiler)
compiler - compiler to usetrue if some validators were detected,
false otherwisepublic static boolean isComponentUsedByValidator(JAXXCompiler compiler, String componentId)
compiler - compiler to usecomponentId - the compiled object to testtrue if the given compiled object is attached to
a validator, false otherwisepublic static List<BeanValidatorHandler.CompiledBeanValidator> getValidators(JAXXCompiler compiler)
Copyright © 2008–2018 Ultreia.io. All rights reserved.