byucc.edif
Class PropertyList

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byjava.util.LinkedHashMap
              extended bybyucc.edif.PropertyList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

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

Nested Class Summary
 
Nested classes inherited from class java.util.LinkedHashMap
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Field Summary
 
Fields inherited from class java.util.LinkedHashMap
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
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
equals, hashCode
 

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.

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.

Returns:
A String Object representing this PropertyList Object