com.sun.java.help.impl

Class TagProperties

Implemented Interfaces:
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.
See Also:
java.help.Tag

Field Summary

protected Hashtable
hashtable
protected int
initialSize

Constructor Summary

TagProperties()
Creates an empty property list with no default values.
TagProperties(int initialSize)

Method Summary

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()

Field Details

hashtable

protected Hashtable hashtable

initialSize

protected int initialSize

Constructor Details

TagProperties

public TagProperties()
Creates an empty property list with no default values.
Since:
JDK1.0

TagProperties

public TagProperties(int initialSize)

Method Details

clear

public void clear()

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.
Parameters:
key - the property key.
Returns:
the value in this property list with the specified key value.
Since:
JDK1.0

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.
Parameters:
key - the hashtable key.
defaultValue - a default value.
Returns:
the value in this property list with the specified key value.
Since:
JDK1.0

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.
Parameters:
out - an output stream.
Since:
JDK1.0

list

public void list(PrintWriter out)
Prints this property list out to the specified output stream. This method is useful for debugging.
Parameters:
out - an output stream.
Since:
JDK1.1

propertyNames

public Enumeration propertyNames()
Returns an enumeration of all the keys in this property list
Returns:
an enumeration of all the keys in this property list
Since:
JDK1.0
See Also:
java.util.Enumeration

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()