Java Doc for XmlConfigurationHelper.java in  » Search-Engine » compass-2.0 » org » compass » core » util » 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 » Search Engine » compass 2.0 » org.compass.core.util.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.compass.core.util.config.AbstractConfigurationHelper
      org.compass.core.util.config.XmlConfigurationHelper

XmlConfigurationHelper
public class XmlConfigurationHelper extends AbstractConfigurationHelper implements ConfigurationHelper,Serializable(Code)
This is the default ConfigurationHelper implementation.


Field Summary
final protected static  ConfigurationHelper[]EMPTY_ARRAY
     An empty (length zero) array of configuration objects.

Constructor Summary
public  XmlConfigurationHelper(ConfigurationHelper config)
     Shallow copy constructor, suitable for craeting a writable clone of a read-only configuration.
public  XmlConfigurationHelper(String name)
     Create a new DefaultConfiguration instance.
public  XmlConfigurationHelper(String name, String location)
     Create a new DefaultConfiguration instance.
public  XmlConfigurationHelper(String name, String location, String ns, String prefix)
     Create a new DefaultConfiguration instance.

Method Summary
public  voidaddAll(ConfigurationHelper other)
     Add all the attributes, children and value from specified configuration element to current configuration element.
public  voidaddAllAttributes(ConfigurationHelper other)
     Add all attributes from specified configuration element to current configuration element.
public  voidaddAllChildren(ConfigurationHelper other)
     Add all child Configuration objects from specified configuration element to current configuration element.
public  voidaddAllChildrenBefore(ConfigurationHelper other)
     Add all child Configuration objects from specified configuration element to current configuration element.
public  voidaddChild(ConfigurationHelper configuration)
     Add a child Configuration to this configuration element.
final protected  voidcheckWriteable()
     heck if this configuration is writeable.
public  booleanequals(Object other)
     Compare if this configuration is equal to another.
public  StringgetAttribute(String name)
     Returns the value of the attribute specified by its name as a String.
public  String[]getAttributeNames()
     Return an array of all attribute names.
public  ConfigurationHelpergetChild(String name, boolean createNew)
     Return the first Configuration object child of this associated with the given name.
public  intgetChildCount()
     Return count of children.
public  ConfigurationHelper[]getChildren()
     Return an array of Configuration elements containing all node children.
public  ConfigurationHelper[]getChildren(String name)
     Return an array of Configuration objects children of this associated with the given name.
public  StringgetLocation()
     Returns a description of location of element.
public  StringgetName()
     Returns the name of this configuration element.
public  StringgetNamespace()
    
protected  StringgetPrefix()
    
public  StringgetValue(String defaultValue)
     Returns the value of the configuration element as a String.
public  StringgetValue()
     Returns the value of the configuration element as a String.
public  inthashCode()
     Obtaine the hashcode for this configuration.
final protected  booleanisReadOnly()
     Returns true iff this DefaultConfiguration has been made read-only.
public  voidmakeReadOnly()
     Make this configuration read-only.
public  voidremoveChild(ConfigurationHelper configuration)
     Remove a child Configuration to this configuration element.
public  voidsetAttribute(String name, String value)
     Set the value of the specified attribute to the specified string.
public  voidsetAttribute(String name, int value)
     Set the value of the specified attribute to the specified int.
public  voidsetAttribute(String name, long value)
     Set the value of the specified attribute to the specified long.
public  voidsetAttribute(String name, boolean value)
     Set the value of the specified attribute to the specified boolean.
public  voidsetAttribute(String name, float value)
     Set the value of the specified attribute to the specified float.
public  voidsetValue(String value)
     Set the value of this Configuration object to the specified string.
public  voidsetValue(int value)
     Set the value of this Configuration object to the specified int.
public  voidsetValue(long value)
     Set the value of this Configuration object to the specified long.
public  voidsetValue(boolean value)
     Set the value of this Configuration object to the specified boolean.
public  voidsetValue(float value)
     Set the value of this Configuration object to the specified float.

Field Detail
EMPTY_ARRAY
final protected static ConfigurationHelper[] EMPTY_ARRAY(Code)
An empty (length zero) array of configuration objects.




Constructor Detail
XmlConfigurationHelper
public XmlConfigurationHelper(ConfigurationHelper config) throws ConfigurationException(Code)
Shallow copy constructor, suitable for craeting a writable clone of a read-only configuration. To modify children, use getChild(), removeChild() and addChild().



XmlConfigurationHelper
public XmlConfigurationHelper(String name)(Code)
Create a new DefaultConfiguration instance.



XmlConfigurationHelper
public XmlConfigurationHelper(String name, String location)(Code)
Create a new DefaultConfiguration instance.



XmlConfigurationHelper
public XmlConfigurationHelper(String name, String location, String ns, String prefix)(Code)
Create a new DefaultConfiguration instance.




Method Detail
addAll
public void addAll(ConfigurationHelper other)(Code)
Add all the attributes, children and value from specified configuration element to current configuration element.



addAllAttributes
public void addAllAttributes(ConfigurationHelper other)(Code)
Add all attributes from specified configuration element to current configuration element.



addAllChildren
public void addAllChildren(ConfigurationHelper other)(Code)
Add all child Configuration objects from specified configuration element to current configuration element.



addAllChildrenBefore
public void addAllChildrenBefore(ConfigurationHelper other)(Code)
Add all child Configuration objects from specified configuration element to current configuration element.



addChild
public void addChild(ConfigurationHelper configuration)(Code)
Add a child Configuration to this configuration element.



checkWriteable
final protected void checkWriteable() throws IllegalStateException(Code)
heck if this configuration is writeable.



equals
public boolean equals(Object other)(Code)
Compare if this configuration is equal to another.



getAttribute
public String getAttribute(String name) throws ConfigurationException(Code)
Returns the value of the attribute specified by its name as a String.



getAttributeNames
public String[] getAttributeNames()(Code)
Return an array of all attribute names.



getChild
public ConfigurationHelper getChild(String name, boolean createNew)(Code)
Return the first Configuration object child of this associated with the given name.



getChildCount
public int getChildCount()(Code)
Return count of children.



getChildren
public ConfigurationHelper[] getChildren()(Code)
Return an array of Configuration elements containing all node children.



getChildren
public ConfigurationHelper[] getChildren(String name)(Code)
Return an array of Configuration objects children of this associated with the given name.
The returned array may be empty but is never null.



getLocation
public String getLocation()(Code)
Returns a description of location of element.



getName
public String getName()(Code)
Returns the name of this configuration element.



getNamespace
public String getNamespace() throws ConfigurationException(Code)
Returns the namespace of this configuration element



getPrefix
protected String getPrefix() throws ConfigurationException(Code)
Returns the prefix of the namespace



getValue
public String getValue(String defaultValue)(Code)
Returns the value of the configuration element as a String.



getValue
public String getValue() throws ConfigurationException(Code)
Returns the value of the configuration element as a String.



hashCode
public int hashCode()(Code)
Obtaine the hashcode for this configuration.



isReadOnly
final protected boolean isReadOnly()(Code)
Returns true iff this DefaultConfiguration has been made read-only.



makeReadOnly
public void makeReadOnly()(Code)
Make this configuration read-only.



removeChild
public void removeChild(ConfigurationHelper configuration)(Code)
Remove a child Configuration to this configuration element.



setAttribute
public void setAttribute(String name, String value)(Code)
Set the value of the specified attribute to the specified string.



setAttribute
public void setAttribute(String name, int value)(Code)
Set the value of the specified attribute to the specified int.



setAttribute
public void setAttribute(String name, long value)(Code)
Set the value of the specified attribute to the specified long.



setAttribute
public void setAttribute(String name, boolean value)(Code)
Set the value of the specified attribute to the specified boolean.



setAttribute
public void setAttribute(String name, float value)(Code)
Set the value of the specified attribute to the specified float.



setValue
public void setValue(String value)(Code)
Set the value of this Configuration object to the specified string.



setValue
public void setValue(int value)(Code)
Set the value of this Configuration object to the specified int.



setValue
public void setValue(long value)(Code)
Set the value of this Configuration object to the specified long.



setValue
public void setValue(boolean value)(Code)
Set the value of this Configuration object to the specified boolean.



setValue
public void setValue(float value)(Code)
Set the value of this Configuration object to the specified float.



Methods inherited from org.compass.core.util.config.AbstractConfigurationHelper
public String getAttribute(String name, String defaultValue)(Code)(Java Doc)
public boolean getAttributeAsBoolean(String name) throws ConfigurationException(Code)(Java Doc)
public boolean getAttributeAsBoolean(String name, boolean defaultValue)(Code)(Java Doc)
public float getAttributeAsFloat(String name) throws ConfigurationException(Code)(Java Doc)
public float getAttributeAsFloat(String name, float defaultValue)(Code)(Java Doc)
public int getAttributeAsInteger(String name) throws ConfigurationException(Code)(Java Doc)
public int getAttributeAsInteger(String name, int defaultValue)(Code)(Java Doc)
public long getAttributeAsLong(String name) throws ConfigurationException(Code)(Java Doc)
public long getAttributeAsLong(String name, long defaultValue)(Code)(Java Doc)
public ConfigurationHelper getChild(String name)(Code)(Java Doc)
public ConfigurationHelper getChild(String name, boolean createNew)(Code)(Java Doc)
abstract protected String getPrefix() throws ConfigurationException(Code)(Java Doc)
public String getValue(String defaultValue)(Code)(Java Doc)
public boolean getValueAsBoolean() throws ConfigurationException(Code)(Java Doc)
public boolean getValueAsBoolean(boolean defaultValue)(Code)(Java Doc)
public float getValueAsFloat() throws ConfigurationException(Code)(Java Doc)
public float getValueAsFloat(float defaultValue)(Code)(Java Doc)
public int getValueAsInteger() throws ConfigurationException(Code)(Java Doc)
public int getValueAsInteger(int defaultValue)(Code)(Java Doc)
public long getValueAsLong() throws ConfigurationException(Code)(Java Doc)
public long getValueAsLong(long defaultValue)(Code)(Java Doc)
public String toString()(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.