Interface IMarkerWrapper
-
- All Known Implementing Classes:
AbstractMarkerWrapper
,AbstractTextMarkerWrapper
,BmMarkerWrapper
,GraphicalSchemeMarkerWrapper
public interface IMarkerWrapper
Contract for validation marker wrappers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCheckId()
Returns check id.Marker
getMarker()
Gets wrapped marker.String
getMarkerId()
Gets marker id.String
getMessage()
Gets the marker's message.Object
getObject()
Gets the object the wrapped marker is associated with.org.eclipse.core.resources.IProject
getProject()
Gets corresponding to the markerIProject
.MarkerSeverity
getSeverity()
Gets the marker's severity.String
getStringPresentation()
Gets string representation of the wrapped marker for view.boolean
isCustom()
Indicates that the marker contains check IDboolean
isModelCheck()
Indicates that the marker belongs to model check
-
-
-
Method Detail
-
getObject
Object getObject()
Gets the object the wrapped marker is associated with.- Returns:
- the associated object, can be
null
when there is no linkedEObject
withMarker
.
-
getProject
org.eclipse.core.resources.IProject getProject()
Gets corresponding to the markerIProject
.- Returns:
- corresponding to the marker
IProject
, nevernull
.
-
getCheckId
String getCheckId()
Returns check id.- Returns:
- check id, not
null
-
getSeverity
MarkerSeverity getSeverity()
Gets the marker's severity.- Returns:
- the marker's severity, never
null
.
-
getMessage
String getMessage()
Gets the marker's message.- Returns:
- the marker's message, never
null
.
-
getMarker
Marker getMarker()
Gets wrapped marker.- Returns:
- wrapped marker, never
null
.
-
getMarkerId
String getMarkerId()
Gets marker id. Id should be unique for project- Returns:
- marker id, never
null
-
getStringPresentation
String getStringPresentation()
Gets string representation of the wrapped marker for view.- Returns:
- string representation of the wrapped marker for view,
never
null
.
-
isCustom
boolean isCustom()
Indicates that the marker contains check ID- Returns:
true
if the marker contains check ID
-
isModelCheck
boolean isModelCheck()
Indicates that the marker belongs to model check- Returns:
true
if the marker belongs to model check,false
if it's module check
-
-