byucc.edif.libraries.xilinx
Class MultiNamedObject

java.lang.Object
  extended bybyucc.edif.NamedObject
      extended bybyucc.edif.libraries.xilinx.MultiNamedObject
All Implemented Interfaces:
java.lang.Cloneable, EdifNameable, EdifOut, Nameable, java.io.Serializable

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,v 1.5 2004/06/24 21:12:49 tsa6 Exp $
Author:
Mike Wirthlin, Tyler Anderson
See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList _additionalNames
          A list of additional names for this Object.
 
Fields inherited from class byucc.edif.NamedObject
 
Constructor Summary
MultiNamedObject(java.lang.String[] names)
          Constructs a MultiNamedObject with the specified names as its names.
 
Method Summary
 java.lang.Object clone()
          Perform a "deep" clone of the object.
 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 byucc.edif.NamedObject
createValidEdifNameable, createValidEdifString, getName, 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 _additionalNames
A list of additional names for this Object.

Constructor Detail

MultiNamedObject

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

Parameters:
names - The names of this object
Method Detail

clone

public java.lang.Object clone()
Description copied from class: NamedObject
Perform a "deep" clone of the object. Specifically, create a new String with the same name as the name in this object.

Specified by:
clone in interface EdifNameable
Overrides:
clone in class NamedObject
Returns:
An Object that is a copy of clone of this NamedObject

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