Java Doc for ComponentConfig.java in  » J2EE » Expresso » com » jcorporate » expresso » kernel » digester » 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 » J2EE » Expresso » com.jcorporate.expresso.kernel.digester 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jcorporate.expresso.kernel.digester.ComponentConfig

ComponentConfig
public class ComponentConfig implements java.io.Serializable(Code)
This class represents the configuration of a component as parsed from the xxpresso-services.xml file. It is set by the Digester that fills it.

This is different from the ConfigurationBean used in the kernel package in that all data is string based. It is up to the system factory to convert the string data to the appropriate data type as specified by the component's metadata


author:
   Michael Rimov



Constructor Summary
public  ComponentConfig()
     Default initialization system.

Method Summary
public  voidaddChildComponent(ComponentConfig newComponent)
     Adds a nested ComponentConfig bean to represent nested components.
public  voidaddIndexedProperty(String name, int index, String value)
    
public  voidaddMappedProperty(String name, String key, String value)
     Add a mapped property.
public  voidaddProperty(String name, String value)
    
public  booleanequals(Object parm1)
     Determine if two component configuration beans are equal by checking all fields and all child component's configurations.
public  MapgetAllIndexedProperties()
     Retrieve a map of all indexed properties.
public  MapgetAllMappedProperties()
    

Retrieve a map of all mapped properties.

public  ComponentConfiggetChildComponent(String componentName)
    
public  java.util.ListgetChildComponents()
     Retrieves a list of child component configurations.
public  StringgetClassName()
     Retrieve the classname for this component.
public  MapgetIndexedProperties(String name)
     Retrieve a map of index properties.
public  StringgetIndexedProperty(String key, int index)
     Retrieve a particular indexed property.
public  MapgetMappedProperties(String name)
    
public  StringgetMappedProperty(String name, String key)
    
public  StringgetName()
    
public  MapgetProperties()
     Retrieve a read-only map of all 'normal' properties keyed by the property name.
public  StringgetProperty(String name)
    
public  inthashCode()
     Custom hashcode...
public  voidsetClassName(String className)
    
public  voidsetIndexedProperty(String key, int index, String value)
     Sets an indexed property value.
public  voidsetMappedProperty(String key, String name, String value)
     Sets an mapped property value.
public  voidsetName(String name)
    
public  voidsetProperty(String name, String value)
    
public  voidupdateConfig(ComponentConfig newConfiguration)
     A semi-copy constructor that allows you to update the configuration for this component only, not it's children.


Constructor Detail
ComponentConfig
public ComponentConfig()(Code)
Default initialization system.




Method Detail
addChildComponent
public void addChildComponent(ComponentConfig newComponent)(Code)
Adds a nested ComponentConfig bean to represent nested components.
Parameters:
  newComponent - the new ComponentConfig bean



addIndexedProperty
public void addIndexedProperty(String name, int index, String value)(Code)
Add an indexed property (often seen in the javabean world as arrays)
Parameters:
  name - the name of the property
Parameters:
  index - the index of the property
Parameters:
  value - the value of the property at the given index.



addMappedProperty
public void addMappedProperty(String name, String key, String value)(Code)
Add a mapped property.
Parameters:
  name - the name of the mapped property
Parameters:
  key - the property key
Parameters:
  value - the value of the key



addProperty
public void addProperty(String name, String value)(Code)
Add a property for the component
Parameters:
  name - the name of the property
Parameters:
  value - the value of the named property.



equals
public boolean equals(Object parm1)(Code)
Determine if two component configuration beans are equal by checking all fields and all child component's configurations.
Parameters:
  parm1 - the other object to check against true if this function determines that the two beans are equal.



getAllIndexedProperties
public Map getAllIndexedProperties()(Code)
Retrieve a map of all indexed properties. The map is keyed by strings which in turn point to maps that are keyed by Integers representing the array indexes for each property name. java.util.Map



getAllMappedProperties
public Map getAllMappedProperties()(Code)

Retrieve a map of all mapped properties. All objects in the map are Strings and are the format:

Map keyed by property names

  Map for each property name keyed by 'key'

    The actual property values

java.util.Map



getChildComponent
public ComponentConfig getChildComponent(String componentName)(Code)
Search for a child component by the given component name
Parameters:
  componentName - the name of the component to retrieve ComponentConfig if one is found or null if it couldn't be found
throws:
  IllegalArgumentException - if componentName is null or zero length



getChildComponents
public java.util.List getChildComponents()(Code)
Retrieves a list of child component configurations. an unmodifiable list of child components.



getClassName
public String getClassName()(Code)
Retrieve the classname for this component. java.lang.String



getIndexedProperties
public Map getIndexedProperties(String name)(Code)
Retrieve a map of index properties. The keys in the map correspond to the indexes in a typical array as they are used in a javabean.
Parameters:
  name - the name of the property to retrieve java.util.Map keyed by java.lang.Integer



getIndexedProperty
public String getIndexedProperty(String key, int index)(Code)
Retrieve a particular indexed property.
Parameters:
  key - the property name
Parameters:
  index - the index of the property who's value we wish to retrieve java.lang.String



getMappedProperties
public Map getMappedProperties(String name)(Code)
Retrieve all mapped property key/value pairs for a given property name
Parameters:
  name - the name of the property String:String Map that corresponds to all mapped values for thisgiven property



getMappedProperty
public String getMappedProperty(String name, String key)(Code)
Retrieve the value of a mapped property
Parameters:
  name - the property name
Parameters:
  key - the key in the mapped property java.lang.String the actual property value



getName
public String getName()(Code)
Retrieve the name of the component java.lang.String



getProperties
public Map getProperties()(Code)
Retrieve a read-only map of all 'normal' properties keyed by the property name. java.util.Map



getProperty
public String getProperty(String name)(Code)
Retrieve the value of a property
Parameters:
  name - the name of the property java.lang.String



hashCode
public int hashCode()(Code)
Custom hashcode... name and classname basically make a unique component config. integer



setClassName
public void setClassName(String className)(Code)
Sets the classname for this component
Parameters:
  className - java.lang.String (Should be a valid class)



setIndexedProperty
public void setIndexedProperty(String key, int index, String value)(Code)
Sets an indexed property value.
Parameters:
  key - The property name
Parameters:
  index - the index of the property
Parameters:
  value - the value for the property.



setMappedProperty
public void setMappedProperty(String key, String name, String value)(Code)
Sets an mapped property value.
Parameters:
  key - The property name
Parameters:
  name - the name of the property
Parameters:
  value - the value for the property.



setName
public void setName(String name)(Code)
Sets the name of the component
Parameters:
  name - java.lang.String



setProperty
public void setProperty(String name, String value)(Code)
Sets the value of a particular property
Parameters:
  name - the name of the property
Parameters:
  value - the value of the property.



updateConfig
public void updateConfig(ComponentConfig newConfiguration)(Code)
A semi-copy constructor that allows you to update the configuration for this component only, not it's children. Overrites the current properties, etc for everything except childComponents
Parameters:
  newConfiguration - the new configuration to update



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.