Class Marker
- java.lang.Object
-
- com._1c.g5.v8.dt.validation.marker.Marker
-
- Direct Known Subclasses:
BmObjectMarker
,PlainEObjectMarker
public abstract class Marker extends Object
Abstract representation of Bm model markers
-
-
Field Summary
Fields Modifier and Type Field Description static int
EMPTY_FEATURE_ID
The empty feature id constant.
-
Constructor Summary
Constructors Constructor Description Marker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCheckId()
Returns check id.long
getCreatedAt()
Gets created at.Map<String,String>
getExtraInfo()
Gets extra info.int
getFeatureId()
Gets the feature identifier.abstract String
getMarkerId()
Gets marker id.String
getMessage()
Gets message.MarkerSeverity
getSeverity()
Object
getSourceObjectId()
Gets the context object id that was used during the generation of the marker.String
getSourceType()
Returns source type.int
hashCode()
void
setCheckId(String checkId)
Sets check id.void
setCreatedAt(long createdAt)
Sets created at.void
setExtraInfo(Map<String,String> extraInfo)
Sets extra info.void
setFeatureId(int featureId)
Sets the feature identifier.void
setMessage(String message)
Sets message.void
setSeverity(MarkerSeverity severity)
void
setSourceObjectId(Object sourceObjectId)
Sets the source object identifiervoid
setSourceType(String sourceType)
Sets source type.
-
-
-
Field Detail
-
EMPTY_FEATURE_ID
public static final int EMPTY_FEATURE_ID
The empty feature id constant.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCreatedAt
public long getCreatedAt()
Gets created at.- Returns:
- the createdAt
-
getExtraInfo
public Map<String,String> getExtraInfo()
Gets extra info. Please note that some values are stored in the compressed format, so useor Map#getOrDefault(Object, Object)
to access decompressed values. Direct access to map entries may give you compressed values so use with caution- Returns:
- the extraInfo
-
getMessage
public String getMessage()
Gets message.- Returns:
- the message
-
getCheckId
public String getCheckId()
Returns check id.- Returns:
- check id, not
null
-
setCheckId
public void setCheckId(String checkId)
Sets check id.- Parameters:
check
- id, notnull
-
getSourceType
public String getSourceType()
Returns source type.- Returns:
- the source type, not
-
setCreatedAt
public void setCreatedAt(long createdAt)
Sets created at.- Parameters:
createdAt
- the createdAt to set
-
setExtraInfo
public void setExtraInfo(Map<String,String> extraInfo)
Sets extra info.- Parameters:
extraInfo
- the extraInfo to set
-
setMessage
public void setMessage(String message)
Sets message.- Parameters:
message
- the message to set
-
setSourceType
public void setSourceType(String sourceType)
Sets source type.- Parameters:
sourceType
- the source type to set
-
getFeatureId
public int getFeatureId()
Gets the feature identifier.- Returns:
- the feature identifier.
-
setFeatureId
public void setFeatureId(int featureId)
Sets the feature identifier.- Parameters:
featureId
- the feature identifier to set.
-
getSeverity
public MarkerSeverity getSeverity()
- Returns:
- the severity
-
setSeverity
public void setSeverity(MarkerSeverity severity)
- Parameters:
severity
- the severity to set
-
getMarkerId
public abstract String getMarkerId()
Gets marker id. Id should be unique for bm model- Returns:
- marker id, never
null
-
getSourceObjectId
public Object getSourceObjectId()
Gets the context object id that was used during the generation of the marker. This identifier is used to clear all markers related to the source object during the next validation ( each validation performs full replacement of check-related markers for a particular source)- Returns:
- the sourceObjectId The identifier of the source object, can be
null
-
setSourceObjectId
public void setSourceObjectId(Object sourceObjectId)
Sets the source object identifier- Parameters:
sourceObjectId
- The sourceObjectId to set, can benull
-
-