Package org.faktorips.runtime
Interface IMarker
-
public interface IMarkerThe implementation of this interface is used to provide additional information for anMessage.Currently there are two standard situations markers are expected to be used in (see
isRequiredInformationMissing()andisTechnicalConstraintViolated()). Implementers are free to use markers for other purposes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRequiredInformationMissing()Returns whether the markedMessageis stating that required information is missing.booleanisTechnicalConstraintViolated()Returns whether the markedMessageis stating that a technical constraint (like for example a database column length) is violated.
-
-
-
Method Detail
-
isRequiredInformationMissing
boolean isRequiredInformationMissing()
Returns whether the markedMessageis stating that required information is missing. In most cases the missing information is a value for an attribute or an association's target and should be discernible from theMessage's InvalidObjectProperties.- Returns:
trueif the marked message indicates that required information is missing, otherwisefalse
-
isTechnicalConstraintViolated
boolean isTechnicalConstraintViolated()
Returns whether the markedMessageis stating that a technical constraint (like for example a database column length) is violated. The property the constraint applies to should be discernible from theMessage's InvalidObjectProperties.- Returns:
trueif the marked message indicates that some technical constraints are violated, otherwisefalse
-
-