com.sun.electric.tool.user
Class ErrorLogger.MessageLog
java.lang.Object
com.sun.electric.tool.user.ErrorLogger.MessageLog
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ErrorLogger.MessageLog>
- Direct Known Subclasses:
- ErrorLogger.WarningLog
- Enclosing class:
- ErrorLogger
public static class ErrorLogger.MessageLog
- extends java.lang.Object
- implements java.lang.Comparable<ErrorLogger.MessageLog>, java.io.Serializable
Create a Log of a single message.
- See Also:
- Serialized Form
Field Summary |
protected int |
index
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
protected int index
ErrorLogger.MessageLog
public ErrorLogger.MessageLog(java.lang.String message,
Cell cell,
int sortKey,
java.util.List<ErrorHighlight> highlights)
ErrorLogger.MessageLog
public ErrorLogger.MessageLog(java.lang.String message,
CellId logCellId,
int sortKey,
java.util.List<ErrorHighlight> highlights)
getCell
public Cell getCell()
getMessageString
public java.lang.String getMessageString()
getHighlights
public java.util.Iterator<ErrorHighlight> getHighlights()
getSortKey
public int getSortKey()
compareTo
public int compareTo(ErrorLogger.MessageLog log1)
- Compare objects lexicographically based on string comparator CASE_INSENSITIVE_ORDER
This method doesn't guarantee (compare(x, y)==0) == (x.equals(y))
- Specified by:
compareTo
in interface java.lang.Comparable<ErrorLogger.MessageLog>
- Parameters:
log1
-
- Returns:
- Returns a negative integer, zero, or a positive integer as the
first message has smaller than, equal to, or greater than the second lexicographically
findGeometries
public boolean findGeometries(Geometric geo1,
Cell cell1,
Geometric geo2,
Cell cell2)
getMessage
public java.lang.String getMessage()
- Method to describe error "elv".
xmlDescription
protected void xmlDescription(java.io.PrintStream msg)
isValid
public boolean isValid(EDatabase database)
- Returns true if this error log is still valid
(In a linked Cell, and all highlights are still valid)