|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.base.list.VectorList
byucc.jhdl.base.PropertyList
This class stores a list of properties that correspond to a Cell or Wire.
Constructor Summary | |
PropertyList()
|
Method Summary | |
boolean |
contains(java.lang.String name)
Returns true if the list contains a property with the given name. |
Property |
get(java.lang.String name)
Returns the Property corresponding to name in the list. |
Property |
getProperty()
Returns the property at the current list position |
void |
merge(PropertyList pl)
This merges two property lists, with the special case that two properties with the same name, type, and value show up only once in the final list, but two properties with the same name but differing types or values throws an exception. |
void |
putProperty(Property p)
Inserts a property into the list, if it is not already in the list. |
boolean |
remove(java.lang.String name)
Deletes the property for the given name, if it exists, otherwise does nothing. |
boolean |
removeProperty(Property p)
Removes the property if it exists, otherwise does nothing. |
Methods inherited from class byucc.jhdl.base.list.VectorList |
append, appendList, atEnd, delete, deleteAll, deleteCurrent, elementCount, empty, filter, getElt, init, inList, insert, insertAfterCurrent, insertBeforeCurrent, insertList, intersect, iterator, merge, next, prev, size, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PropertyList()
Method Detail |
public final Property getProperty()
public void putProperty(Property p)
p
- the Property to insert
BuildException
- if there is already a property by that name on the listpublic boolean removeProperty(Property p)
p
- the property to remove
public final Property get(java.lang.String name)
name
- the name to get from the list
public final boolean contains(java.lang.String name)
name
- the name to search for
public final boolean remove(java.lang.String name)
name
- the name to delete
public void merge(PropertyList pl)
pl
- the list to merge into the existing list
BuildException
- if two properties clash
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |