Java Doc for SuperProperties.java in  » J2EE » openejb3 » org » apache » openejb » util » 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 » openejb3 » org.apache.openejb.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.Properties
   org.apache.openejb.util.SuperProperties

SuperProperties
public class SuperProperties extends Properties (Code)
Properties is a Hashtable where the keys and values must be Strings. Each Properties can have a default Properties which specifies the default values which are used if the key is not in this Properties.
See Also:   Hashtable
See Also:   java.lang.System.getProperties


Field Summary
protected  LinkedHashMap<String, LinkedHashMap<String, String>>attributes
     Attributes for the properties.
protected  booleancaseInsensitive
    
protected  StringcommentIndent
     Number of spaces to indent comment after '#' character.
protected  LinkedHashMap<String, String>comments
     Comments for the properties.
protected  Propertiesdefaults
     The default property values.
protected  Stringindent
     Number of spaces to indent each line of the properties file.
protected  StringkeyValueSeparator
     The text between a key and the value.
protected  StringlineSeparator
     The line separator to use when storing.
protected  LinkedHashMap<Object, Object>properties
     Actual property values.
protected  booleanspaceAfterComment
     Should there be a blank line between a comment and the property.
protected  booleanspaceBetweenProperties
     Should there be a blank line between properties.

Constructor Summary
public  SuperProperties()
     Constructs a new Properties object.
public  SuperProperties(Properties properties)
     Constructs a new Properties object using the specified default properties.

Method Summary
public  voidclear()
    
public  Objectclone()
    
public  booleancontains(Object value)
    
public  booleancontainsKey(Object key)
    
public  booleancontainsValue(Object value)
    
public  Enumeration<Object>elements()
    
public  Set<Map.Entry<Object, Object>>entrySet()
     Returns an unmodifiable view of the entries.
public  booleanequals(Object o)
    
public  Objectget(Object key)
    
public  Map<String, String>getAttributes(String name)
     Searches for the attributes associated with the specified property.
public  StringgetComment(String name)
     Searches for the comment associated with the specified property.
public  intgetCommentIndent()
     Gets the number of spaces to indent comment after '#' character.
public  intgetIndent()
     Gets the number of spaces to indent each line of the properties file.
public  StringgetKeyValueSeparator()
     Gets the text that separates keys and values.
public  StringgetLineSeparator()
     Gets the text that separates lines while storing.
public  StringgetProperty(String name)
    
public  StringgetProperty(String name, String defaultValue)
    
public  inthashCode()
    
public  booleanisCaseInsensitive()
    
public  booleanisEmpty()
    
public  booleanisSpaceAfterComment()
    
public  booleanisSpaceBetweenProperties()
    
public  Set<Object>keySet()
     Returns an unmodifiable view of the keys.
public  Enumeration<Object>keys()
    
public  voidlist(PrintStream out)
    
public  voidlist(PrintWriter writer)
    
public synchronized  voidload(InputStream in)
    
public synchronized  voidloadFromXML(InputStream in)
    
public  EnumerationpropertyNames()
    
public  Objectput(Object key, Object value)
    
public  voidputAll(Map t)
    
protected  voidrehash()
    
public  Objectremove(Object key)
    
public  voidsave(OutputStream out, String comment)
    
public  voidsetCaseInsensitive(boolean caseInsensitive)
     Sets the sensitive of lookups.
public  voidsetComment(String name, String comment)
     Sets the comment associated with a property.
public  voidsetCommentIndent(int commentIndent)
     Sets the number of spaces to indent comment after '#' character.
public  voidsetIndent(int indent)
     Sets the number of spaces to indent each line of the properties file.
public  voidsetKeyValueSeparator(String keyValueSeparator)
     Sets the text that separates keys and values.
public  voidsetLineSeparator(String lineSeparator)
    
public synchronized  ObjectsetProperty(String name, String value)
    
public  voidsetSpaceAfterComment(boolean spaceAfterComment)
     If true a blank line will be added between a comment and the property.
public  voidsetSpaceBetweenProperties(boolean spaceBetweenProperties)
     If true a blank line will be added between properties.
public  intsize()
    
public synchronized  voidstore(OutputStream out, String headComment)
    
public  voidstoreToXML(OutputStream os, String comment)
    
public synchronized  voidstoreToXML(OutputStream os, String headComment, String encoding)
    
public  StringtoString()
    
public  Collection<Object>values()
     Returns an unmodifiable view of the values.

Field Detail
attributes
protected LinkedHashMap<String, LinkedHashMap<String, String>> attributes(Code)
Attributes for the properties.



caseInsensitive
protected boolean caseInsensitive(Code)
Are lookups case insensitive?



commentIndent
protected String commentIndent(Code)
Number of spaces to indent comment after '#' character.



comments
protected LinkedHashMap<String, String> comments(Code)
Comments for the properties.



defaults
protected Properties defaults(Code)
The default property values.



indent
protected String indent(Code)
Number of spaces to indent each line of the properties file.



keyValueSeparator
protected String keyValueSeparator(Code)
The text between a key and the value.



lineSeparator
protected String lineSeparator(Code)
The line separator to use when storing. Defaults to system line separator.



properties
protected LinkedHashMap<Object, Object> properties(Code)
Actual property values.



spaceAfterComment
protected boolean spaceAfterComment(Code)
Should there be a blank line between a comment and the property.



spaceBetweenProperties
protected boolean spaceBetweenProperties(Code)
Should there be a blank line between properties.




Constructor Detail
SuperProperties
public SuperProperties()(Code)
Constructs a new Properties object.



SuperProperties
public SuperProperties(Properties properties)(Code)
Constructs a new Properties object using the specified default properties.
Parameters:
  properties - the default properties




Method Detail
clear
public void clear()(Code)



clone
public Object clone()(Code)



contains
public boolean contains(Object value)(Code)



containsKey
public boolean containsKey(Object key)(Code)



containsValue
public boolean containsValue(Object value)(Code)



elements
public Enumeration<Object> elements()(Code)



entrySet
public Set<Map.Entry<Object, Object>> entrySet()(Code)
Returns an unmodifiable view of the entries. an unmodifiable view of the entries



equals
public boolean equals(Object o)(Code)



get
public Object get(Object key)(Code)



getAttributes
public Map<String, String> getAttributes(String name)(Code)
Searches for the attributes associated with the specified property. If the property is not found, look in the default properties. If the property is not found in the default properties, answer null.
Parameters:
  name - the name of the property to find the attributes for an existing property (not null); null for non-existant properties



getComment
public String getComment(String name)(Code)
Searches for the comment associated with the specified property. If the property is not found, look in the default properties. If the property is not found in the default properties, answer null.
Parameters:
  name - the name of the property to find the named property value



getCommentIndent
public int getCommentIndent()(Code)
Gets the number of spaces to indent comment after '#' character. the number of spaces to indent comment after '#' character



getIndent
public int getIndent()(Code)
Gets the number of spaces to indent each line of the properties file. the number of spaces to indent each line of the properties file



getKeyValueSeparator
public String getKeyValueSeparator()(Code)
Gets the text that separates keys and values. The default is "=". the text that separates keys and values



getLineSeparator
public String getLineSeparator()(Code)
Gets the text that separates lines while storing. The default is the system line.separator. the text that separates keys and values



getProperty
public String getProperty(String name)(Code)



getProperty
public String getProperty(String name, String defaultValue)(Code)



hashCode
public int hashCode()(Code)



isCaseInsensitive
public boolean isCaseInsensitive()(Code)
Are lookups case insensitive? true if lookups are insensitive



isEmpty
public boolean isEmpty()(Code)



isSpaceAfterComment
public boolean isSpaceAfterComment()(Code)
Should there be a blank line between a comment and the property? true if a blank line should be added between a comment and the property



isSpaceBetweenProperties
public boolean isSpaceBetweenProperties()(Code)
Should a blank line be added between properties? true if a blank line should be added between properties; false otherwise



keySet
public Set<Object> keySet()(Code)
Returns an unmodifiable view of the keys. an unmodifiable view of the keys



keys
public Enumeration<Object> keys()(Code)



list
public void list(PrintStream out)(Code)



list
public void list(PrintWriter writer)(Code)



load
public synchronized void load(InputStream in) throws IOException(Code)



loadFromXML
public synchronized void loadFromXML(InputStream in) throws IOException(Code)



propertyNames
public Enumeration propertyNames()(Code)



put
public Object put(Object key, Object value)(Code)



putAll
public void putAll(Map t)(Code)



rehash
protected void rehash()(Code)



remove
public Object remove(Object key)(Code)



save
public void save(OutputStream out, String comment)(Code)



setCaseInsensitive
public void setCaseInsensitive(boolean caseInsensitive)(Code)
Sets the sensitive of lookups.
Parameters:
  caseInsensitive - if looks are insensitive



setComment
public void setComment(String name, String comment)(Code)
Sets the comment associated with a property.
Parameters:
  name - the property name; not null
Parameters:
  comment - the comment; not null



setCommentIndent
public void setCommentIndent(int commentIndent)(Code)
Sets the number of spaces to indent comment after '#' character.
Parameters:
  commentIndent - the number of spaces to indent comment after '#' character



setIndent
public void setIndent(int indent)(Code)
Sets the number of spaces to indent each line of the properties file.
Parameters:
  indent - the number of spaces to indent each line of the properties file



setKeyValueSeparator
public void setKeyValueSeparator(String keyValueSeparator)(Code)
Sets the text that separates keys and values.
Parameters:
  keyValueSeparator - the text that separates keys and values



setLineSeparator
public void setLineSeparator(String lineSeparator)(Code)
Sets the text that separates lines while storing
Parameters:
  lineSeparator - the text that separates lines



setProperty
public synchronized Object setProperty(String name, String value)(Code)



setSpaceAfterComment
public void setSpaceAfterComment(boolean spaceAfterComment)(Code)
If true a blank line will be added between a comment and the property.
Parameters:
  spaceAfterComment - if true a blank line will be added between a comment and the property



setSpaceBetweenProperties
public void setSpaceBetweenProperties(boolean spaceBetweenProperties)(Code)
If true a blank line will be added between properties.
Parameters:
  spaceBetweenProperties - if true a blank line will be added between properties



size
public int size()(Code)



store
public synchronized void store(OutputStream out, String headComment) throws IOException(Code)



storeToXML
public void storeToXML(OutputStream os, String comment) throws IOException(Code)



storeToXML
public synchronized void storeToXML(OutputStream os, String headComment, String encoding) throws IOException(Code)



toString
public String toString()(Code)



values
public Collection<Object> values()(Code)
Returns an unmodifiable view of the values. an unmodifiable view of the values



Fields inherited from java.util.Properties
protected Properties defaults(Code)(Java Doc)

Methods inherited from java.util.Properties
public String getProperty(String key)(Code)(Java Doc)
public String getProperty(String key, String defaultValue)(Code)(Java Doc)
public void list(PrintStream out)(Code)(Java Doc)
public void list(PrintWriter out)(Code)(Java Doc)
public synchronized void load(Reader reader) throws IOException(Code)(Java Doc)
public synchronized void load(InputStream inStream) throws IOException(Code)(Java Doc)
public synchronized void loadFromXML(InputStream in) throws IOException, InvalidPropertiesFormatException(Code)(Java Doc)
public Enumeration propertyNames()(Code)(Java Doc)
public synchronized void save(OutputStream out, String comments)(Code)(Java Doc)
public synchronized Object setProperty(String key, String value)(Code)(Java Doc)
public void store(Writer writer, String comments) throws IOException(Code)(Java Doc)
public void store(OutputStream out, String comments) throws IOException(Code)(Java Doc)
public synchronized void storeToXML(OutputStream os, String comment) throws IOException(Code)(Java Doc)
public synchronized void storeToXML(OutputStream os, String comment, String encoding) throws IOException(Code)(Java Doc)
public Set<String> stringPropertyNames()(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.