|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap
byucc.edif.PropertyList
public class PropertyList
Provides a LinkedHashMap of Property objects.
The key of this Map is a lower-case String object (EDIF is case
insensitive) and the value is a Property object. The key for all
objects in this Map is property.getName().toLowerCase().
Property,
Serialized Form| Constructor Summary | |
|---|---|
PropertyList()
Construct 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. |
void |
addPropertyList(PropertyList list)
Add a list of properties to the PropertyList |
java.lang.Object |
clone()
Return an Object that is a clone of this one. |
boolean |
equals(PropertyList cmp)
Return 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 |
void |
toEdif(EdifPrintWriter epw)
Generate the EDIF text for this list of properties. |
java.lang.String |
toString()
Return 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 |
|---|
public PropertyList()
| Method Detail |
|---|
public void addProperty(Property p)
p - a Property value representing the
property to add to this PropertyList Objectpublic void addPropertyList(PropertyList list)
list - The PropertyList object that contains
the list of properties to add to this list.public java.lang.Object clone()
clone in class java.util.HashMappublic boolean equals(PropertyList cmp)
cmp - The PropertyList Object to compare this one to
public Property getProperty(java.lang.String str)
str - a String value specifying the desired
property. This String will be converted to lower case as the
key in this Map are Strings in lower case.
Property value representing the propertypublic void toEdif(EdifPrintWriter epw)
toEdif in interface EdifOutepw - The EdifPrintWriter object used for writing the Edif.public java.lang.String toString()
toString in class java.util.AbstractMap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||