edu.byu.ece.edif.core
Class MultiNamedObject

java.lang.Object
  extended by edu.byu.ece.edif.core.NamedObject
      extended by edu.byu.ece.edif.core.MultiNamedObject
All Implemented Interfaces:
EdifNameable, EdifOut, Nameable, java.io.Serializable, java.lang.Cloneable

public class MultiNamedObject
extends NamedObject
implements java.lang.Cloneable

When doing a compare on this object, it has multiple names, so the String passed-in for comparison will be compared against all of its names.

Version:
$Id:MultiNamedObject.java 198 2008-04-16 21:14:21Z jamesfcarroll $
Author:
Mike Wirthlin, Tyler Anderson
See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<java.lang.String> _additionalNames
          A list of additional names for this Object.
 
Fields inherited from class edu.byu.ece.edif.core.NamedObject
_name
 
Constructor Summary
MultiNamedObject(java.lang.String[] names)
          Constructs a MultiNamedObject with the specified names as its names.
 
Method Summary
 boolean equals(java.lang.Object cmp)
          Returns true if the passed-in String matches one of the names in this MultiNamedObject.
 boolean startsWith(java.lang.Object cmp)
          Returns true if the passed-in String matches one of the names in this MultiNamedObject.
 
Methods inherited from class edu.byu.ece.edif.core.NamedObject
clone, createValidEdifNameable, createValidEdifString, getName, getOldName, isValidEdifName, toEdif, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_additionalNames

protected java.util.ArrayList<java.lang.String> _additionalNames
A list of additional names for this Object.

Constructor Detail

MultiNamedObject

public MultiNamedObject(java.lang.String[] names)
                 throws InvalidEdifNameException
Constructs a MultiNamedObject with the specified names as its names.

Parameters:
names - The names of this object
Throws:
InvalidEdifNameException
Method Detail

equals

public boolean equals(java.lang.Object cmp)
Returns true if the passed-in String matches one of the names in this MultiNamedObject.

Overrides:
equals in class NamedObject
Parameters:
cmp - A String Object to compare against the names in this Object
Returns:
True if the passed-in String matches one of the names in this object

startsWith

public boolean startsWith(java.lang.Object cmp)
Returns true if the passed-in String matches one of the names in this MultiNamedObject.

Parameters:
cmp - A String Object to compare against the names in this Object
Returns:
True if the passed-in String matches one of the names in this object