com.geotab.model.entity.notification.DefaultExceptionRuleTextTemplate Maven / Gradle / Ivy
package com.geotab.model.entity.notification;
import com.geotab.model.Id;
import lombok.Getter;
import lombok.Setter;
/**
* Default exception rule text.
*/
@Getter @Setter
public final class DefaultExceptionRuleTextTemplate extends TextTemplate {
private static class InstanceHolder {
private static final DefaultExceptionRuleTextTemplate INSTANCE = new DefaultExceptionRuleTextTemplate();
}
public static final String TEXT_TEMPLATE_DEFAULT_EXCEPTION_RULE_ID = "TextTemplateDefaultExceptionRuleId";
private DefaultExceptionRuleTextTemplate() {
setId(new Id(TEXT_TEMPLATE_DEFAULT_EXCEPTION_RULE_ID));
setName("DefaultExceptionRuleTextTemplate");
setText("{rule}");
}
public static DefaultExceptionRuleTextTemplate getInstance() {
return DefaultExceptionRuleTextTemplate.InstanceHolder.INSTANCE;
}
@Override
public boolean isSystemEntity() {
return true;
}
}