byucc.edif
Class MultiNamedObject
java.lang.Object
byucc.edif.NamedObject
byucc.edif.MultiNamedObject
- All Implemented Interfaces:
- EdifNameable, EdifOut, Nameable, 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,v 1.1 2006/06/20 21:59:13 wirthlin Exp $
|
Field Summary |
protected java.util.ArrayList |
_additionalNames
A list of additional names for this Object. |
|
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 java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_additionalNames
protected java.util.ArrayList _additionalNames
- A list of additional names for this Object.
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
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