Package com.sun.java.help.impl
Class TagProperties
java.lang.Object
com.sun.java.help.impl.TagProperties
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty property list with no default values.TagProperties
(int initialSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
boolean
boolean
containsKey
(Object key) elements()
HERE - we probably should use plain Hashtable instead of TagPropertiesgetProperty
(String key) Searches for the property with the specified key in this property list.getProperty
(String key, String defaultValue) Searches for the property with the specified key in this property list.boolean
isEmpty()
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.Returns an enumeration of all the keys in this property listprotected void
int
size()
Implementation of a deferred hashtabletoString()
-
Field Details
-
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
-
getProperty
Searches for the property with the specified key in this property list. The method returnsnull
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
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
-
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:
-
list
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
Prints this property list out to the specified output stream. This method is useful for debugging.- Parameters:
out
- an output stream.- Since:
- JDK1.1
-
size
public int size()Implementation of a deferred hashtable -
isEmpty
public boolean isEmpty() -
keys
-
elements
-
contains
-
containsKey
-
get
-
put
-
remove
-
clear
public void clear() -
setHashtable
-
getHashtable
HERE - we probably should use plain Hashtable instead of TagProperties -
clone
-
toString
-