|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.database.text.CellName
public class CellName
A CellName is a text-parsing object for Cell names.
Cell names have the form:
Only the name is necessary. If the ";Version" is omitted, then the most recent version is assumed. If the "{View}" is omitted, then the "unknown" view is assumed.
| Method Summary | |
|---|---|
void |
check()
Checks invariant of this CellName. |
int |
compareTo(CellName that)
Compares two CellName objects. |
boolean |
equals(java.lang.Object obj)
Compares this CellName object to the specified object. |
boolean |
equalsIgnoreVersion(java.lang.Object obj)
Compares this CellName object to the specified object. |
java.lang.String |
getName()
Method to return the name part of a parsed Cell name. |
int |
getVersion()
Method to return the version part of a parsed Cell name. |
View |
getView()
Method to return the view part of a parsed Cell name. |
int |
hashCode()
Returns a hash code for this Version. |
boolean |
isIcon()
Method to determine whether this CellName is a name of an icon Cell. |
boolean |
isSchematic()
Method to determine whether this CellName is a name of an schematic Cell. |
static CellName |
newName(java.lang.String name,
View view,
int version)
Create a CellName from the given name, view, and version. |
static CellName |
parseName(java.lang.String name)
Method to parse the specified Cell name and return a CellName object. |
java.lang.String |
toString()
Method to build the full cell name. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
public View getView()
public boolean isIcon()
public boolean isSchematic()
public int getVersion()
public int hashCode()
Version.
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
true if and only if the argument is not
null and is an CellName object that
contains the same version, view and case-insensitive name as this CellName.
equals in class java.lang.Objectobj - the object to compare with.
true if the objects are the same;
false otherwise.public boolean equalsIgnoreVersion(java.lang.Object obj)
true if and only if the argument is not
null and is an CellName object that
contains the same view and case-insensitive name as this CellName.
obj - the object to compare with.
true if the objects are the same;
false otherwise.public int compareTo(CellName that)
CellName objects.
compareTo in interface java.lang.Comparable<CellName>that - the CellName to be compared.
public java.lang.String toString()
toString in class java.lang.Objectpublic static CellName parseName(java.lang.String name)
name - the name of the Cell.
public static CellName newName(java.lang.String name,
View view,
int version)
name - the name of the cellview - the viewversion - the version
public void check()
java.lang.AssertionError - if invariant is broken.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||