Package jetbrains.mps.extapi.model
Class PersistenceProblem
- java.lang.Object
 - 
- jetbrains.mps.extapi.model.PersistenceProblem
 
 
- 
- All Implemented Interfaces:
 SModel.Problem
public class PersistenceProblem extends Object implements SModel.Problem
evgeny, 2/26/13 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.jetbrains.mps.openapi.model.SModel.Problem
SModel.Problem.Kind 
 - 
 
- 
Constructor Summary
Constructors Constructor Description PersistenceProblem(SModel.Problem.Kind kind, String text, String location, boolean error)PersistenceProblem(SModel.Problem.Kind kind, String text, String location, boolean error, int line, int column, SNode anchor)Deprecated.use alternative withnode referencefor anchorPersistenceProblem(SModel.Problem.Kind kind, String text, String location, boolean error, int line, int column, SNodeReference anchor) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SModel.ProblemfromIMessage(SModelData model, SModel.Problem.Kind kind, IMessage message)Deprecated.not in use, is it worth to keep?SNodeReferencegetAnchorNode()The incomplete node (when available) for load problems, or a node which caused troubles during save operation.intgetColumn()SModel.Problem.KindgetKind()Returns whether it was a save or load problem.intgetLine()StringgetLocation()When line and column are available, returns the location of the stream, where the problem occurred, or just plain text description of the location otherwise.StringgetText()booleanisError()Errors usually cause model to be partially loaded, so it cannot be saved back to the storage later.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.jetbrains.mps.openapi.model.SModel.Problem
getNode 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
PersistenceProblem
@Deprecated public PersistenceProblem(SModel.Problem.Kind kind, String text, String location, boolean error, int line, int column, SNode anchor)
Deprecated.use alternative withnode referencefor anchor 
- 
PersistenceProblem
public PersistenceProblem(SModel.Problem.Kind kind, String text, String location, boolean error, int line, int column, @Nullable SNodeReference anchor)
 
- 
PersistenceProblem
public PersistenceProblem(SModel.Problem.Kind kind, String text, String location, boolean error)
 
 - 
 
- 
Method Detail
- 
getColumn
public int getColumn()
- Specified by:
 getColumnin interfaceSModel.Problem
 
- 
getLine
public int getLine()
- Specified by:
 getLinein interfaceSModel.Problem
 
- 
getKind
public SModel.Problem.Kind getKind()
Description copied from interface:SModel.ProblemReturns whether it was a save or load problem. Save problems can arise when an AST content doesn't fit into the persistence format.- Specified by:
 getKindin interfaceSModel.Problem
 
- 
getLocation
public String getLocation()
Description copied from interface:SModel.ProblemWhen line and column are available, returns the location of the stream, where the problem occurred, or just plain text description of the location otherwise.- Specified by:
 getLocationin interfaceSModel.Problem
 
- 
getText
public String getText()
- Specified by:
 getTextin interfaceSModel.Problem
 
- 
isError
public boolean isError()
Description copied from interface:SModel.ProblemErrors usually cause model to be partially loaded, so it cannot be saved back to the storage later.- Specified by:
 isErrorin interfaceSModel.Problem
 
- 
getAnchorNode
@Nullable public SNodeReference getAnchorNode()
Description copied from interface:SModel.ProblemThe incomplete node (when available) for load problems, or a node which caused troubles during save operation.- Specified by:
 getAnchorNodein interfaceSModel.Problem
 
- 
fromIMessage
@Deprecated public static SModel.Problem fromIMessage(SModelData model, SModel.Problem.Kind kind, IMessage message)
Deprecated.not in use, is it worth to keep? 
 - 
 
 -