Class TransitionValidator
- java.lang.Object
-
- com.netgrif.application.engine.importer.service.TransitionValidator
-
- All Implemented Interfaces:
IModelValidator
,ITransitionValidator
@Component public class TransitionValidator extends java.lang.Object implements ITransitionValidator
-
-
Constructor Summary
Constructors Constructor Description TransitionValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkConflictingAttributes(Transition transition, java.lang.Object attr1, java.lang.Object attr2, java.lang.String attr1Name, java.lang.String attr2Name)
Self-beating attributes are two attributes, that should not be present inside their parent at the same time.void
checkDeprecatedAttributes(Transition transition)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netgrif.application.engine.importer.service.IModelValidator
validateAttribute
-
-
-
-
Method Detail
-
checkDeprecatedAttributes
public void checkDeprecatedAttributes(Transition transition)
- Specified by:
checkDeprecatedAttributes
in interfaceITransitionValidator
-
checkConflictingAttributes
public void checkConflictingAttributes(Transition transition, java.lang.Object attr1, java.lang.Object attr2, java.lang.String attr1Name, java.lang.String attr2Name) throws BeatingAttributesException
Description copied from interface:ITransitionValidator
Self-beating attributes are two attributes, that should not be present inside their parent at the same time. E.g.: if user definesin transition, the tag will be disabled, however, additional tags can be still added. - Specified by:
checkConflictingAttributes
in interfaceITransitionValidator
- Parameters:
transition
- the model of Transitionattr1
- first element to be comparedattr2
- second element to be comparedattr1Name
- the name of first elementattr2Name
- the name of second element- Throws:
BeatingAttributesException
- is thrown when there are two attributes with different type but same goal
-
-