Package org.jetbrains.mps.openapi.model
Interface SModel.Problem
- 
- All Known Implementing Classes:
 PersistenceProblem
- Enclosing interface:
 - SModel
 
public static interface SModel.ProblemRepresents a problem with the persistence. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSModel.Problem.Kind 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default 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.default SNodegetNode()Deprecated.usegetAnchorNode()insteadStringgetText()booleanisError()Errors usually cause model to be partially loaded, so it cannot be saved back to the storage later. 
 - 
 
- 
- 
Method Detail
- 
getKind
SModel.Problem.Kind getKind()
Returns whether it was a save or load problem. Save problems can arise when an AST content doesn't fit into the persistence format. 
- 
getLocation
String getLocation()
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. 
- 
getColumn
int getColumn()
 
- 
getLine
int getLine()
 
- 
getText
String getText()
 
- 
isError
boolean isError()
Errors usually cause model to be partially loaded, so it cannot be saved back to the storage later. 
- 
getNode
@Deprecated default SNode getNode()
Deprecated.usegetAnchorNode()insteadThe incomplete node (when available) for load problems, or a node which caused troubles during save operation.- Returns:
 - always null
 
 
- 
getAnchorNode
@Nullable default SNodeReference getAnchorNode()
The incomplete node (when available) for load problems, or a node which caused troubles during save operation. 
 - 
 
 -