| 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 |
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 void | clear() | public Object | clone() | public boolean | contains(Object value) | public boolean | containsKey(Object key) | public boolean | containsValue(Object value) | public Enumeration<Object> | elements() | public Set<Map.Entry<Object, Object>> | entrySet() Returns an unmodifiable view of the entries. | public boolean | equals(Object o) | public Object | get(Object key) | public Map<String, String> | getAttributes(String name) Searches for the attributes associated with the specified property. | public String | getComment(String name) Searches for the comment associated with the specified property. | public int | getCommentIndent() Gets the number of spaces to indent comment after '#' character. | public int | getIndent() Gets the number of spaces to indent each line of the properties file. | public String | getKeyValueSeparator() Gets the text that separates keys and values. | public String | getLineSeparator() Gets the text that separates lines while storing. | public String | getProperty(String name) | public String | getProperty(String name, String defaultValue) | public int | hashCode() | public boolean | isCaseInsensitive() | public boolean | isEmpty() | public boolean | isSpaceAfterComment() | public boolean | isSpaceBetweenProperties() | public Set<Object> | keySet() Returns an unmodifiable view of the keys. | public Enumeration<Object> | keys() | public void | list(PrintStream out) | public void | list(PrintWriter writer) | public synchronized void | load(InputStream in) | public synchronized void | loadFromXML(InputStream in) | public Enumeration> | propertyNames() | public Object | put(Object key, Object value) | public void | putAll(Map, ?> t) | protected void | rehash() | public Object | remove(Object key) | public void | save(OutputStream out, String comment) | public void | setCaseInsensitive(boolean caseInsensitive) Sets the sensitive of lookups. | public void | setComment(String name, String comment) Sets the comment associated with a property. | public void | setCommentIndent(int commentIndent) Sets the number of spaces to indent comment after '#' character. | public void | setIndent(int indent) Sets the number of spaces to indent each line of the properties file. | public void | setKeyValueSeparator(String keyValueSeparator) Sets the text that separates keys and values. | public void | setLineSeparator(String lineSeparator) | public synchronized Object | setProperty(String name, String value) | public void | setSpaceAfterComment(boolean spaceAfterComment) If true a blank line will be added between a comment and the property. | public void | setSpaceBetweenProperties(boolean spaceBetweenProperties) If true a blank line will be added between properties. | public int | size() | public synchronized void | store(OutputStream out, String headComment) | public void | storeToXML(OutputStream os, String comment) | public synchronized void | storeToXML(OutputStream os, String headComment, String encoding) | public String | toString() | public Collection<Object> | values() Returns an unmodifiable view of the values. |
caseInsensitive | protected boolean caseInsensitive(Code) | | Are lookups case insensitive?
|
commentIndent | protected String commentIndent(Code) | | Number of spaces to indent comment after '#' character.
|
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.
|
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.
|
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 |
clear | public void clear()(Code) | | |
containsValue | public boolean containsValue(Object value)(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 |
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 |
rehash | protected void rehash()(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 |
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 |
values | public Collection<Object> values()(Code) | | Returns an unmodifiable view of the values.
an unmodifiable view of the values |
|
|