Class ReferencePropertyBuilder<C>
java.lang.Object
com.inductiveautomation.ignition.gateway.config.ReferencePropertyBuilder<C>
- Type Parameters:
C- The type of the configuration object. This may be the config type "R" that matches aResourceTypeMeta, or it may be the profile type "P" (profile) of an extension point or the type "S" (settings) of anExtensionPoint, depending on the context of where this reference property is used.
Helps build a
ReferenceProperty, which represents a property on a config resource that references another
resource by name.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseSensitive(boolean caseSensitiveMatch) Sets case sensitivity for the reference match.onUpdate(BiFunction<C, String, C> updateConfig) targetType(ResourceType targetResourceType)
-
Constructor Details
-
ReferencePropertyBuilder
-
-
Method Details
-
targetType
- Parameters:
targetResourceType- The resource type of the target resource that this reference finder is looking for.
-
value
- Parameters:
getValueFn- A function that extracts the value of the reference. In other words, the name of the resource that this reference property references on the given resource config object. May return null.
-
onUpdate
- Parameters:
updateConfig- A callback that returns a new copy of the configuration object with the reference updated.
-
caseSensitive
Sets case sensitivity for the reference match. If not called, will default to case-insensitive match.
-