com.sun.java.help.impl
Class TagProperties
java.lang.Object
com.sun.java.help.impl.TagProperties
- Cloneable
public class TagProperties
extends java.lang.Object
implements Cloneable
The TagProperties
class represents a persistent set of
properties. Each key and its corresponding value in
the property list is a string.
void | clear()
|
Object | clone()
|
boolean | contains(Object value)
|
boolean | containsKey(Object key)
|
Enumeration | elements()
|
Object | get(Object key)
|
Hashtable | getHashtable() - HERE - we probably should use plain Hashtable instead of TagProperties
|
String | getProperty(String key) - Searches for the property with the specified key in this property list.
|
String | getProperty(String key, String defaultValue) - Searches for the property with the specified key in this property list.
|
boolean | isEmpty()
|
Enumeration | keys()
|
void | list(PrintStream out) - Prints this property list out to the specified output stream.
|
void | list(PrintWriter out) - Prints this property list out to the specified output stream.
|
Enumeration | propertyNames() - Returns an enumeration of all the keys in this property list
|
Object | put(Object key, Object value)
|
Object | remove(Object key)
|
protected void | setHashtable(Hashtable t)
|
int | size() - Implementation of a deferred hashtable ****
|
String | toString()
|
hashtable
protected Hashtable hashtable
initialSize
protected int initialSize
TagProperties
public TagProperties()
Creates an empty property list with no default values.
TagProperties
public TagProperties(int initialSize)
clone
public Object clone()
contains
public boolean contains(Object value)
containsKey
public boolean containsKey(Object key)
elements
public Enumeration elements()
get
public Object get(Object key)
getHashtable
public Hashtable getHashtable()
HERE - we probably should use plain Hashtable instead of TagProperties
getProperty
public String getProperty(String key)
Searches for the property with the specified key in this property list.
The method returns
null
if the property is not found.
- the value in this property list with the specified key value.
getProperty
public String getProperty(String key,
String defaultValue)
Searches for the property with the specified key in this property list.
The method returns the
default value argument if the property is not found.
key
- the hashtable key.defaultValue
- a default value.
- the value in this property list with the specified key value.
isEmpty
public boolean isEmpty()
keys
public Enumeration keys()
list
public void list(PrintStream out)
Prints this property list out to the specified output stream.
This method is useful for debugging.
list
public void list(PrintWriter out)
Prints this property list out to the specified output stream.
This method is useful for debugging.
propertyNames
public Enumeration propertyNames()
Returns an enumeration of all the keys in this property list
- an enumeration of all the keys in this property list
put
public Object put(Object key,
Object value)
remove
public Object remove(Object key)
setHashtable
protected void setHashtable(Hashtable t)
size
public int size()
Implementation of a deferred hashtable ****
toString
public String toString()