Java Doc for Constrained.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » site » 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 » Web Framework » rife 1.6.1 » com.uwyn.rife.site 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.uwyn.rife.site.Constrained

Constrained
public interface Constrained (Code)
This interface defines methods for bean-centric constraining of data entities.

A constraint describes additional information about a data entity. Its main purpose is to alter the default behaviour of a data type and to clearly set the accepted limits. The meta-data that's provided through constraints can be used elsewhere to gather more information about how to correctly integrate the indicated data limits.

For example, a constraint specifies that a certain text's length is limited to 30 characters, parts of the system can query this information and act accordingly:

  • a HTML form builder can create a field that doesn't allow the entry of longer text,
  • a SQL query builder can limit the size of the column in which the text will stored when the table creation SQL is generated,
  • a validation system can check if the text isn't longer than 30 characters and provide appropriate information when the length is exceeded.

There are two types of constraints:

  • those that are related to the entire bean (ConstrainedBean constraints)
  • those that only apply to a single property (ConstrainedProperty constraints)

author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
See Also:   ConstrainedBean
See Also:   ConstrainedProperty
version:
   $Revision: 3717 $
since:
   1.0




Method Summary
public  voidaddConstraint(B constrainedBean)
     Add a new constrained bean.

When several constrained beans are added, they are merged at constraint-level.

public  voidaddConstraint(P constrainedProperty)
     Add a new constrained property.

When several of the same constrained properties are added, they are merged at constraint-level.

public  BgetConstrainedBean()
     Retrieves the constrained bean that has been set for this Constrained instance.
public  Collection<P>getConstrainedProperties()
     Returns a collection with all the constrained properties that have been registered. A Collection with all theConstrainedProperty objects that are registered.
public  PgetConstrainedProperty(String propertyName)
     Retrieve a registered ConstrainedProperty according to its name.
public  booleanhasPropertyConstraint(String name)
     Indicates whether this constrained bean contains a particular constraint on at least one of its properties.



Method Detail
addConstraint
public void addConstraint(B constrainedBean)(Code)
Add a new constrained bean.

When several constrained beans are added, they are merged at constraint-level. This means for instance that all previous unique constraints will be replaced by those of the new constrained bean, they will not be combined.
Parameters:
  constrainedBean - the ConstrainedBean instancethat has to be added
See Also:   ConstrainedBean
since:
   1.0




addConstraint
public void addConstraint(P constrainedProperty)(Code)
Add a new constrained property.

When several of the same constrained properties are added, they are merged at constraint-level. This means for instance that a previous inList constraint will be replaced by the one of the new constrained bean, they will not be combined.
Parameters:
  constrainedProperty - the ConstrainedPropertyinstance that has to be added
See Also:   ConstrainedProperty
since:
   1.0




getConstrainedBean
public B getConstrainedBean()(Code)
Retrieves the constrained bean that has been set for this Constrained instance. the requested ConstrainedBean; or

null if no ConstrainedBean isavailable.
See Also:   ConstrainedProperty
since:
   1.0




getConstrainedProperties
public Collection<P> getConstrainedProperties()(Code)
Returns a collection with all the constrained properties that have been registered. A Collection with all theConstrainedProperty objects that are registered. If noconstrained properties are available, an empty collection will bereturned, not null.
See Also:   ConstrainedProperty
since:
   1.0



getConstrainedProperty
public P getConstrainedProperty(String propertyName)(Code)
Retrieve a registered ConstrainedProperty according to its name.
Parameters:
  propertyName - the name of theConstrainedProperty that has to be retrieved the requested ConstrainedProperty; or

null if no such ConstrainedProperty isavailable.
See Also:   ConstrainedProperty
since:
   1.0




hasPropertyConstraint
public boolean hasPropertyConstraint(String name)(Code)
Indicates whether this constrained bean contains a particular constraint on at least one of its properties. true if this constraint is present on at least oneof the properties; or

false otherwise
See Also:   ConstrainedProperty
since:
   1.6




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