com.sun.electric.tool.user
Class ErrorLogger.MessageLog

java.lang.Object
  extended by 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
           
 
Constructor Summary
ErrorLogger.MessageLog(java.lang.String message, CellId logCellId, int sortKey, java.util.List<ErrorHighlight> highlights)
           
ErrorLogger.MessageLog(java.lang.String message, Cell cell, int sortKey, java.util.List<ErrorHighlight> highlights)
           
 
Method Summary
 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))
 boolean findGeometries(Geometric geo1, Cell cell1, Geometric geo2, Cell cell2)
           
 Cell getCell()
           
 java.util.Iterator<ErrorHighlight> getHighlights()
           
 java.lang.String getMessage()
          Method to describe error "elv".
 java.lang.String getMessageString()
           
 int getNumHighlights()
           
 int getSortKey()
           
 boolean isValid(EDatabase database)
          Returns true if this error log is still valid (In a linked Cell, and all highlights are still valid)
protected  void writeXmlDescription(java.io.PrintStream msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected int index
Constructor Detail

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)
Method Detail

getCell

public Cell getCell()

getMessageString

public java.lang.String getMessageString()

getNumHighlights

public int getNumHighlights()

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".


writeXmlDescription

protected void writeXmlDescription(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)