Class NameUtil.TrackingNameValidatorWrapper
java.lang.Object
com.inductiveautomation.ignition.common.util.NameUtil.TrackingNameValidatorWrapper
- All Implemented Interfaces:
NameUtil.NameValidator
- Enclosing class:
- NameUtil
public static class NameUtil.TrackingNameValidatorWrapper
extends Object
implements NameUtil.NameValidator
This NameValidator wrapper is used for generating many names, when the underlying name
validator won't be updated on the fly. Any values that return false for nameExists are stored
in a set, and will return true for subsequent checks. This handles the case, for example, where
the caller needs to add "Tag 1, Tag 2" to a system that already has "Tag 1". Tag 1 would be
renamed to Tag 2, but the underlying system wouldn't have been updated, and the new Tag 2 would
collide.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrackingNameValidatorWrapper
-
-
Method Details
-
nameExists
- Specified by:
nameExistsin interfaceNameUtil.NameValidator
-