Class ZeebeElementValidator<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
java.lang.Object
io.camunda.zeebe.model.bpmn.validation.zeebe.ZeebeElementValidator<T>
- All Implemented Interfaces:
org.camunda.bpm.model.xml.validation.ModelElementValidator<T>
public final class ZeebeElementValidator<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
extends Object
implements org.camunda.bpm.model.xml.validation.ModelElementValidator<T>
-
Method Summary
Modifier and TypeMethodDescriptionhasNonEmptyAttribute(Function<T, String> attributeSupplier, String attributeName) hasNonEmptyEnumAttribute(Function<T, ? extends Enum<?>> enumAttributeSupplier, String attributeName) voidvalidate(T element, org.camunda.bpm.model.xml.validation.ValidationResultCollector validationResultCollector) static <T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
ZeebeElementValidator<T> verifyThat(Class<T> elementType)
-
Method Details
-
getElementType
- Specified by:
getElementTypein interfaceorg.camunda.bpm.model.xml.validation.ModelElementValidator<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
-
validate
public void validate(T element, org.camunda.bpm.model.xml.validation.ValidationResultCollector validationResultCollector) - Specified by:
validatein interfaceorg.camunda.bpm.model.xml.validation.ModelElementValidator<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
-
hasNonEmptyAttribute
-
hasNonEmptyEnumAttribute
-
hasOnlyOneAttributeInGroup
-
verifyThat
public static <T extends org.camunda.bpm.model.xml.instance.ModelElementInstance> ZeebeElementValidator<T> verifyThat(Class<T> elementType)
-