byucc.edif
Class PropertyList

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap
              extended by byucc.edif.PropertyList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class PropertyList
extends java.util.LinkedHashMap
implements java.io.Serializable

Provides a LinkedHashMap of Property objects.

Version:
$Id: PropertyList.java,v 1.8 2004/08/27 19:16:42 tsa6 Exp $
Author:
Welson Sun, Tyler Anderson
See Also:
Property, Serialized Form

Constructor Summary
PropertyList()
          Constructs a PropertyList Object with an initial capacity of 1 and a load factor 0.95.
 
Method Summary
 void addProperty(Property p)
          Add a Property to the PropertyList, the key is the Property's name
 java.lang.Object clone()
          Returns a clone, or Object that is a clone of this one.
 boolean equals(PropertyList cmp)
          Returns true if this PropertyList equals or matches the passed-in one.
 Property getProperty(java.lang.String str)
          Get the Property according to the Property's name
 java.lang.String toString()
          Returns a String representation of this Object.
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

PropertyList

public PropertyList()
Constructs a PropertyList Object with an initial capacity of 1 and a load factor 0.95.

Method Detail

addProperty

public void addProperty(Property p)
Add a Property to the PropertyList, the key is the Property's name

Parameters:
p - a Property value representing the property to add to this PropertyList Object

clone

public java.lang.Object clone()
Returns a clone, or Object that is a clone of this one.

Overrides:
clone in class java.util.HashMap
Returns:
an Object that is a clone of this PropertyList Object

equals

public boolean equals(PropertyList cmp)
Returns true if this PropertyList equals or matches the passed-in one.

Parameters:
cmp - The PropertyList Object to compare this one to
Returns:
True if this Object matches the passed-in one

getProperty

public Property getProperty(java.lang.String str)
Get the Property according to the Property's name

Parameters:
str - a String value specifying the desired property
Returns:
a Property value representing the property

toString

public java.lang.String toString()
Returns a String representation of this Object.

Overrides:
toString in class java.util.AbstractMap
Returns:
A String Object representing this PropertyList Object