Package com.sun.java.help.impl
Class TagProperties
- java.lang.Object
-
- com.sun.java.help.impl.TagProperties
-
- All Implemented Interfaces:
java.lang.Cloneable
public class TagProperties extends java.lang.Object implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Hashtablehashtableprotected intinitialSize
-
Constructor Summary
Constructors Constructor Description TagProperties()Creates an empty property list with no default values.TagProperties(int initialSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.lang.Objectclone()booleancontains(java.lang.Object value)booleancontainsKey(java.lang.Object key)java.util.Enumerationelements()java.lang.Objectget(java.lang.Object key)java.util.HashtablegetHashtable()HERE - we probably should use plain Hashtable instead of TagPropertiesjava.lang.StringgetProperty(java.lang.String key)Searches for the property with the specified key in this property list.java.lang.StringgetProperty(java.lang.String key, java.lang.String defaultValue)Searches for the property with the specified key in this property list.booleanisEmpty()java.util.Enumerationkeys()voidlist(java.io.PrintStream out)Prints this property list out to the specified output stream.voidlist(java.io.PrintWriter out)Prints this property list out to the specified output stream.java.util.EnumerationpropertyNames()Returns an enumeration of all the keys in this property listjava.lang.Objectput(java.lang.Object key, java.lang.Object value)java.lang.Objectremove(java.lang.Object key)protected voidsetHashtable(java.util.Hashtable t)intsize()Implementation of a deferred hashtablejava.lang.StringtoString()
-
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String key)
Searches for the property with the specified key in this property list. The method returnsnullif 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 java.lang.String getProperty(java.lang.String key, java.lang.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
-
propertyNames
public java.util.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:
Enumeration
-
list
public void list(java.io.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(java.io.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
-
size
public int size()
Implementation of a deferred hashtable
-
isEmpty
public boolean isEmpty()
-
keys
public java.util.Enumeration keys()
-
elements
public java.util.Enumeration elements()
-
contains
public boolean contains(java.lang.Object value)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
get
public java.lang.Object get(java.lang.Object key)
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
-
remove
public java.lang.Object remove(java.lang.Object key)
-
clear
public void clear()
-
setHashtable
protected void setHashtable(java.util.Hashtable t)
-
getHashtable
public java.util.Hashtable getHashtable()
HERE - we probably should use plain Hashtable instead of TagProperties
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-