Java Doc for MvelConfiguredValidator.java in  » Development » iScreen » org » iscreen » mvel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » iScreen » org.iscreen.mvel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.iscreen.impl.BaseConfiguredValidator
      org.iscreen.mvel.MvelConfiguredValidator

MvelConfiguredValidator
public class MvelConfiguredValidator extends BaseConfiguredValidator (Code)
This ValidatorWrapper represents validators for MVEL-based XML configurations.
author:
   Shellman, Dan


Field Summary
final public static  StringDEFAULT_FROM
    
final public static  StringDEFAULT_TO
    

Constructor Summary
public  MvelConfiguredValidator()
     Default constructor.

Method Summary
public  voidaddMapping(String from, String to)
     Adds a mapping for mapping the object being validated to the beanToValidate object (that the Validator created).
public  voidaddStaticProperty(String property, Object obj)
     Adds a "static" property to set on the underlying Validator.
protected  StringconvertDoc(Object obj, String unconvertedDoc)
    
protected  voidexecuteMappings(Object from, Object to)
     Maps the appropriate properties from one object to another.
public  ValidatorgetConfiguredValidator()
     Creates the Validator and configures it.
protected static  MvelObjectMappinggetDefaultMapping()
     Create a default mapping so that if no mapping is defined in configuration, a default mapping can be used.
protected  CollectiongetFields()
     Retrieves the Collection of fields (the 'getter' OGNL expressions) that are used in mapping properties from the JavaBean/Object being validated to the validation bean.

Field Detail
DEFAULT_FROM
final public static String DEFAULT_FROM(Code)



DEFAULT_TO
final public static String DEFAULT_TO(Code)




Constructor Detail
MvelConfiguredValidator
public MvelConfiguredValidator()(Code)
Default constructor.




Method Detail
addMapping
public void addMapping(String from, String to)(Code)
Adds a mapping for mapping the object being validated to the beanToValidate object (that the Validator created).
Parameters:
  from - The OGNL from expression (getter)
Parameters:
  to - The OGNL to expression (setter)



addStaticProperty
public void addStaticProperty(String property, Object obj)(Code)
Adds a "static" property to set on the underlying Validator. A "static" property is really an MVEL expression that will set some value on the Validator once (such as a constraint, service, or failure message).

For failures, the object type should be an MvelMessage. For a constraint or service, any object type is fine (as long as it maps to the underlying Validator property).
Parameters:
  property - The MVEL expression to set a value
Parameters:
  obj - The value to set, once, on the Validator to configure it.



convertDoc
protected String convertDoc(Object obj, String unconvertedDoc)(Code)



executeMappings
protected void executeMappings(Object from, Object to)(Code)
Maps the appropriate properties from one object to another.
Parameters:
  from - The object to map from.
Parameters:
  to - The object to map to.



getConfiguredValidator
public Validator getConfiguredValidator()(Code)
Creates the Validator and configures it. Multiple calls will NOT construct a new Validator each call, but will return the same instance created the first time. Returns a created and configured Validator.



getDefaultMapping
protected static MvelObjectMapping getDefaultMapping()(Code)
Create a default mapping so that if no mapping is defined in configuration, a default mapping can be used. Returns a default configured mapping.



getFields
protected Collection getFields()(Code)
Retrieves the Collection of fields (the 'getter' OGNL expressions) that are used in mapping properties from the JavaBean/Object being validated to the validation bean. Returns the Collection of fields (the 'getter' OGNL expressions).



Fields inherited from org.iscreen.impl.BaseConfiguredValidator
protected ValidationService containingService(Code)(Java Doc)
protected String doc(Code)(Java Doc)
protected boolean failFastFlag(Code)(Java Doc)
protected String id(Code)(Java Doc)
protected ResourceValue label(Code)(Java Doc)
protected Set mappings(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected String parsedDoc(Code)(Java Doc)
protected BaseConfiguredValidator ref(Code)(Java Doc)
protected Set staticProperties(Code)(Java Doc)
protected Validator validator(Code)(Java Doc)
protected Class validatorClass(Code)(Java Doc)

Methods inherited from org.iscreen.impl.BaseConfiguredValidator
abstract public void addMapping(String from, String to)(Code)(Java Doc)
abstract public void addStaticProperty(String property, Object obj)(Code)(Java Doc)
abstract protected String convertDoc(Object contextBean, String unconvertedDoc)(Code)(Java Doc)
abstract protected void executeMappings(Object from, Object to)(Code)(Java Doc)
abstract public Validator getConfiguredValidator()(Code)(Java Doc)
public DocumentationIterator getDoc()(Code)(Java Doc)
abstract protected Collection getFields()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public String getLabel(Locale locale)(Code)(Java Doc)
public Set getMappings()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected String getRawDoc()(Code)(Java Doc)
protected String getServiceId()(Code)(Java Doc)
public Set getStaticProperties()(Code)(Java Doc)
public Class getValidatorClass()(Code)(Java Doc)
public boolean isFailFast()(Code)(Java Doc)
public void setClassName(String className)(Code)(Java Doc)
public void setDoc(String documentation)(Code)(Java Doc)
public void setFailFast(boolean flag)(Code)(Java Doc)
public void setId(String theId)(Code)(Java Doc)
public void setLabel(Resource resource, String key)(Code)(Java Doc)
public void setLabel(String labelValue)(Code)(Java Doc)
public void setName(String theName)(Code)(Java Doc)
public void setRef(BaseConfiguredValidator configuredValidatorRef)(Code)(Java Doc)
public void setValidationService(ValidationService service)(Code)(Java Doc)
public boolean validate(InternalValidatorContext context, ContextBean contextBean, Object obj)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.