Java Doc for FormPropertyConfig.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » config » 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 » struts 1.3.8 » org.apache.struts.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.struts.config.BaseConfig
      org.apache.struts.config.FormPropertyConfig

FormPropertyConfig
public class FormPropertyConfig extends BaseConfig (Code)

A JavaBean representing the configuration information of a <form-property> element in a Struts configuration file.


version:
   $Rev: 471754 $ $Date: 2005-11-12 11:52:08 -0500 (Sat, 12 Nov 2005)$
since:
   Struts 1.1



Field Summary
protected  Stringinitial
     String representation of the initial value for this property.
protected  Stringname
     The JavaBean property name of the property described by this element.
protected  Stringreset
    
protected  intsize
    

The size of the array to be created if this property is an array type and there is no specified initial value.

protected  Stringtype
     The fully qualified Java class name of the implementation class of this bean property, optionally followed by [] to indicate that the property is indexed.

Constructor Summary
public  FormPropertyConfig()
     Standard no-arguments constructor for dynamic instantiation.
public  FormPropertyConfig(String name, String type, String initial)
     Constructor that preconfigures the relevant properties.
public  FormPropertyConfig(String name, String type, String initial, String reset)
     Constructor that preconfigures the relevant properties.
public  FormPropertyConfig(String name, String type, String initial, int size)
     Constructor that preconfigures the relevant properties.
public  FormPropertyConfig(String name, String type, String initial, String reset, int size)
     Constructor that preconfigures the relevant properties.

Method Summary
public  StringgetInitial()
    
public  StringgetName()
    
public  StringgetReset()
    
public  intgetSize()
    
public  StringgetType()
    
public  ClassgetTypeClass()
     Return a Class corresponds to the value specified for the type property, taking into account the trailing "[]" for arrays (as well as the ability to specify primitive Java types).
public  voidinheritFrom(FormPropertyConfig config)
    

Inherit values that have not been overridden from the provided config object.

public  Objectinitial()
    

Return an object representing the initial value of this property. This is calculated according to the following algorithm:

  • If the value you have specified for the type property represents an array (i.e.
public  voidsetInitial(String initial)
    
public  voidsetName(String name)
    
public  voidsetReset(String reset)
    
public  voidsetSize(int size)
    
public  voidsetType(String type)
    
public  StringtoString()
     Return a String representation of this object.

Field Detail
initial
protected String initial(Code)
String representation of the initial value for this property.



name
protected String name(Code)
The JavaBean property name of the property described by this element.



reset
protected String reset(Code)

The conditions under which the property described by this element should be reset to its initial value when the form's reset method is called.

This may be set to true (to always reset the property) or a comma-separated list of HTTP request methods.


since:
   Struts 1.3



size
protected int size(Code)

The size of the array to be created if this property is an array type and there is no specified initial value. This value must be non-negative.


since:
   Struts 1.1



type
protected String type(Code)
The fully qualified Java class name of the implementation class of this bean property, optionally followed by [] to indicate that the property is indexed.




Constructor Detail
FormPropertyConfig
public FormPropertyConfig()(Code)
Standard no-arguments constructor for dynamic instantiation.



FormPropertyConfig
public FormPropertyConfig(String name, String type, String initial)(Code)
Constructor that preconfigures the relevant properties.
Parameters:
  name - Name of this property
Parameters:
  type - Fully qualified class name of this property
Parameters:
  initial - Initial value of this property (if any)



FormPropertyConfig
public FormPropertyConfig(String name, String type, String initial, String reset)(Code)
Constructor that preconfigures the relevant properties.
Parameters:
  name - Name of this property
Parameters:
  type - Fully qualified class name of this property
Parameters:
  initial - Initial value of this property (if any)
Parameters:
  reset - The conditions under which this property will be resetto its initial value.



FormPropertyConfig
public FormPropertyConfig(String name, String type, String initial, int size)(Code)
Constructor that preconfigures the relevant properties.
Parameters:
  name - Name of this property
Parameters:
  type - Fully qualified class name of this property
Parameters:
  initial - Initial value of this property (if any)
Parameters:
  size - Size of the array to be created if this property is anarray with no defined initial value



FormPropertyConfig
public FormPropertyConfig(String name, String type, String initial, String reset, int size)(Code)
Constructor that preconfigures the relevant properties.
Parameters:
  name - Name of this property
Parameters:
  type - Fully qualified class name of this property
Parameters:
  initial - Initial value of this property (if any)
Parameters:
  size - Size of the array to be created if this property is anarray with no defined initial value
Parameters:
  reset - The conditions under which this property will be resetto its initial value.




Method Detail
getInitial
public String getInitial()(Code)



getName
public String getName()(Code)



getReset
public String getReset()(Code)



getSize
public int getSize()(Code)



getType
public String getType()(Code)



getTypeClass
public Class getTypeClass()(Code)
Return a Class corresponds to the value specified for the type property, taking into account the trailing "[]" for arrays (as well as the ability to specify primitive Java types).



inheritFrom
public void inheritFrom(FormPropertyConfig config) throws IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException(Code)

Inherit values that have not been overridden from the provided config object. Subclasses overriding this method should verify that the given parameter is of a class that contains a property it is trying to inherit:

 if (config instanceof MyCustomFormPropertyConfig) {
 MyCustomFormPropertyConfig myConfig =
 (MyCustomFormPropertyConfig) config;
 if (getMyCustomProp() == null) {
 setMyCustomProp(myConfig.getMyCustomProp());
 }
 }
 

Parameters:
  config - The object that this instance will be inheriting itsvalues from.



initial
public Object initial()(Code)

Return an object representing the initial value of this property. This is calculated according to the following algorithm:

  • If the value you have specified for the type property represents an array (i.e. it ends with "[]"):
    • If you have specified a value for the initial property, ConvertUtils.convert will be called to convert it into an instance of the specified array type.
    • If you have not specified a value for the initial property, an array of the length specified by the size property will be created. Each element of the array will be instantiated via the zero-args constructor on the specified class (if any). Otherwise, null will be returned.
  • If the value you have specified for the type property does not represent an array:
    • If you have specified a value for the initial property, ConvertUtils.convert will be called to convert it into an object instance.
    • If you have not specified a value for the initial attribute, Struts will instantiate an instance via the zero-args constructor on the specified class (if any). Otherwise, null will be returned.



setInitial
public void setInitial(String initial)(Code)



setName
public void setName(String name)(Code)



setReset
public void setReset(String reset)(Code)



setSize
public void setSize(int size)(Code)



setType
public void setType(String type)(Code)



toString
public String toString()(Code)
Return a String representation of this object.



Fields inherited from org.apache.struts.config.BaseConfig
protected boolean configured(Code)(Java Doc)

Methods inherited from org.apache.struts.config.BaseConfig
protected Properties copyProperties()(Code)(Java Doc)
public void freeze()(Code)(Java Doc)
protected Properties getProperties()(Code)(Java Doc)
public String getProperty(String key)(Code)(Java Doc)
protected void inheritProperties(BaseConfig baseConfig)(Code)(Java Doc)
protected void setProperties(Properties properties)(Code)(Java Doc)
public void setProperty(String key, String value)(Code)(Java Doc)
public void throwIfConfigured()(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.