com.springsource.util.parser.manifest
Class ManifestProblem

java.lang.Object
  extended by com.springsource.util.parser.manifest.ManifestProblem

public class ManifestProblem
extends java.lang.Object

Encapsulates a problem discovered during manifest parsing. Concurrent Semantics
This class is thread safe.

Author:
Andy Clement

Field Summary
private  SourceContext context
           
private  int endoffset
           
private  java.lang.String[] inserts
           
private  ManifestProblemKind problemKind
           
private  int startoffset
           
 
Constructor Summary
ManifestProblem(ManifestProblemKind problem, SourceContext context, int startoffset, int endoffset, java.lang.String... inserts)
           
 
Method Summary
 int getEndColumn()
           
 int getEndLine()
           
 int getEndOffset()
           
 java.lang.String getInsert(int insertIndex)
           
 int getInsertCount()
           
 ManifestProblemKind getKind()
           
 int getStartColumn()
           
 int getStartLine()
           
 int getStartOffset()
           
 java.lang.String toString()
           
 java.lang.String toStringWithContext()
          Returns a multi line message that includes the manifest extract that gave rise to the problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

problemKind

private ManifestProblemKind problemKind

context

private SourceContext context

startoffset

private int startoffset

endoffset

private int endoffset

inserts

private java.lang.String[] inserts
Constructor Detail

ManifestProblem

public ManifestProblem(ManifestProblemKind problem,
                       SourceContext context,
                       int startoffset,
                       int endoffset,
                       java.lang.String... inserts)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringWithContext

public java.lang.String toStringWithContext()
Returns a multi line message that includes the manifest extract that gave rise to the problem.

Returns:
a multi line string

getKind

public ManifestProblemKind getKind()

getInsertCount

public int getInsertCount()

getInsert

public java.lang.String getInsert(int insertIndex)

getStartLine

public int getStartLine()

getEndLine

public int getEndLine()

getStartColumn

public int getStartColumn()

getEndColumn

public int getEndColumn()

getStartOffset

public int getStartOffset()

getEndOffset

public int getEndOffset()