Class NameUtil
java.lang.Object
com.inductiveautomation.ignition.common.util.NameUtil
This class provides helper functions for naming objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The basic name factory generates sequential names with simple pattern detection.static interface
static interface
For a given object, provides its name.static interface
The implementor will return whether the provided name exists or not.static class
This NameValidator wrapper is used for generating many names, when the underlying name validator won't be updated on the fly. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
nextName
(NameUtil.NameFactory factory, NameUtil.NameValidator validator) static String
nextName
(String baseName, NameUtil.NameValidator validator) Returns the next name generated off of the given base name.
-
Constructor Details
-
NameUtil
public NameUtil()
-
-
Method Details
-
nextName
Returns the next name generated off of the given base name. Uses simple pattern detection for "name 0" or "name (0)". -
nextName
-