Class 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.Hashtable hashtable  
      protected int initialSize  
    • 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
      void clear()  
      java.lang.Object clone()  
      boolean contains​(java.lang.Object value)  
      boolean containsKey​(java.lang.Object key)  
      java.util.Enumeration elements()  
      java.lang.Object get​(java.lang.Object key)  
      java.util.Hashtable getHashtable()
      HERE - we probably should use plain Hashtable instead of TagProperties
      java.lang.String getProperty​(java.lang.String key)
      Searches for the property with the specified key in this property list.
      java.lang.String getProperty​(java.lang.String key, java.lang.String defaultValue)
      Searches for the property with the specified key in this property list.
      boolean isEmpty()  
      java.util.Enumeration keys()  
      void list​(java.io.PrintStream out)
      Prints this property list out to the specified output stream.
      void list​(java.io.PrintWriter out)
      Prints this property list out to the specified output stream.
      java.util.Enumeration propertyNames()
      Returns an enumeration of all the keys in this property list
      java.lang.Object put​(java.lang.Object key, java.lang.Object value)  
      java.lang.Object remove​(java.lang.Object key)  
      protected void setHashtable​(java.util.Hashtable t)  
      int size()
      Implementation of a deferred hashtable
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • hashtable

        protected java.util.Hashtable hashtable
      • initialSize

        protected int initialSize
    • Constructor Detail

      • TagProperties

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

        public TagProperties​(int initialSize)
    • 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 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 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:
        clone in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object