Java Doc for DefaultMaskFactory.java in  » Development » ivatamasks » com » ivata » mask » 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 » ivatamasks » com.ivata.mask 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ivata.mask.DefaultMaskFactory

DefaultMaskFactory
final public class DefaultMaskFactory implements MaskFactory,Serializable(Code)

This factory class is at the heart of ivata masks. Use it to read in a configuration file (in XML), and then access groups of fields via their unique identifiers.

It is called DefaultMaskFactory because the ivata masks system actually never refers to this class directly - it uses the interface MaskFactory , meaning you could create your own factory implementation, if you want to.


author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
since:
   ivata masks 0.1 (2004-02-26)



Constructor Summary
public  DefaultMaskFactory(FieldValueConvertorFactory fieldValueConvertorFactoryParam)
    

Default constructor.

public  DefaultMaskFactory(String defaultInputMaskParam, String defaultListMaskParam, FieldValueConvertorFactory fieldValueConvertorFactoryParam)
    

Construct an instance of the factory with the default mask/screens provided.


Method Summary
public  StringgetDefaultInputMask()
    

Get the name of the default mask/screen used for user input.

public  StringgetDefaultListMask()
    

Get the name of the default mask/screen used for lists.

public  GroupgetGroup(String id)
    

Get a group definition referenced by its id.


Parameters:
  id - unique identifier of the group.
public  MaskgetMask(Class valueObjectClassParam)
     This will return the default input mask for the class provided.
public  MaskgetMask(Class valueObjectClass, String name)
    

Get a mask, identified by its class and name.


Parameters:
  valueObjectClass - class of value object for the mask to be returned.
Parameters:
  name - optional parameter defining multiple masks for the same valueobject.
public  MaskgetMask(Field parentField, Class valueObjectClassParam)
    

This will return the default input mask for the class provided of the sub-classed field.

public  MaskgetMask(Field parentField, Class valueObjectClass, String nameParam)
    

Get a mask, identified by its class and name.


Parameters:
  parentField - If this mask applies to a field within another mask, (known asa submask) this is the field to which it applies, otherwiseuse the other getMask method.
Parameters:
  valueObjectClass - class of value object for the mask to be returned.
Parameters:
  nameParam - describes this mask uniquely within the value object.
public  booleanisConfigured()
    

Discover whether or not this object has been configured.

public  voidreadConfiguration(InputStream inputStream)
     Get the configuration represented by the dom4j document provided.


Constructor Detail
DefaultMaskFactory
public DefaultMaskFactory(FieldValueConvertorFactory fieldValueConvertorFactoryParam)(Code)

Default constructor. Initializes the mask factory with "inputMask" as the default input mask, and "inputMask" as the default list mask.


Parameters:
  fieldValueConvertorFactoryParam - creates convertors to convertfield values in the filters.



DefaultMaskFactory
public DefaultMaskFactory(String defaultInputMaskParam, String defaultListMaskParam, FieldValueConvertorFactory fieldValueConvertorFactoryParam)(Code)

Construct an instance of the factory with the default mask/screens provided.


Parameters:
  defaultInputMaskParam - The name of the default mask/screen used for user input.
Parameters:
  defaultListMaskParam - The name of the default mask/screen used to list.
Parameters:
  fieldValueConvertorFactoryParam - creates convertors to convertfield values in the filters.




Method Detail
getDefaultInputMask
public String getDefaultInputMask()(Code)

Get the name of the default mask/screen used for user input.

name of the default mask/screen used for user input.
See Also:   com.ivata.mask.MaskFactory.getDefaultInputMask



getDefaultListMask
public String getDefaultListMask()(Code)

Get the name of the default mask/screen used for lists.

name of the default mask/screen used for lists.
See Also:   com.ivata.mask.MaskFactory.getDefaultListMask



getGroup
public Group getGroup(String id)(Code)

Get a group definition referenced by its id.


Parameters:
  id - unique identifier of the group. Group definition with the id provided, or null ifthere is no such group.



getMask
public Mask getMask(Class valueObjectClassParam)(Code)
This will return the default input mask for the class provided. Refer to MaskFactory.getMask .
Parameters:
  valueObjectClassParam - Refer to MaskFactory.getMask. Refer to MaskFactory.getMask.



getMask
public Mask getMask(Class valueObjectClass, String name)(Code)

Get a mask, identified by its class and name.


Parameters:
  valueObjectClass - class of value object for the mask to be returned.
Parameters:
  name - optional parameter defining multiple masks for the same valueobject. May be null. Mask definition with the id provided, or null ifthere is no such mask.



getMask
public Mask getMask(Field parentField, Class valueObjectClassParam)(Code)

This will return the default input mask for the class provided of the sub-classed field.


Parameters:
  parentField -
Parameters:
  valueObjectClassParam -



getMask
public Mask getMask(Field parentField, Class valueObjectClass, String nameParam)(Code)

Get a mask, identified by its class and name.


Parameters:
  parentField - If this mask applies to a field within another mask, (known asa submask) this is the field to which it applies, otherwiseuse the other getMask method.
Parameters:
  valueObjectClass - class of value object for the mask to be returned.
Parameters:
  nameParam - describes this mask uniquely within the value object. (Youcan have more than one mask for each value object.) Mask definition with the id provided, or null ifthere is no such mask.TODO: replace NullPointerException thrown here with a mask configurationexception.



isConfigured
public boolean isConfigured()(Code)

Discover whether or not this object has been configured.

true if the object has been configured, otherwisefalse.
See Also:   com.ivata.mask.MaskFactory.isConfigured



readConfiguration
public void readConfiguration(InputStream inputStream) throws IOException(Code)
Get the configuration represented by the dom4j document provided.
Parameters:
  inputStream - The input stream to read the XML from.
throws:
  IOException - If there is any problem reading from the stream provided.



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.