Class TagPropertyDirectory
java.lang.Object
com.inductiveautomation.ignition.common.tags.config.TagPropertyDirectory
- All Implemented Interfaces:
PropertyResolver
-
Method Summary
Modifier and TypeMethodDescriptionstatic TagPropertyDirectory
boolean
isInternedStringProp
(Property<String> prop) This should be consulted when setting string property values- if true, the value should be interned.boolean
isRemappedPath
(TagPath path) Property<?>
protected Property<?>
Property<?>
locateCached
(Property<?> property) Returns the "official" version of a property, if it exists, otherwise registers this property.Property<?>
locateNotNull
(String name) Use when you need a non-null property to be returned, even if it doesn't exist in the directory.Property<?>
locateRegistered
(Property<?> property) Returns the "official" version of a property, if it exists, otherwise returns the provided value.void
void
registerAlias
(String legacyName, String newName) void
Indicates that the values of the property specified should have string.intern() called on them.void
registerRemapper
(Property<?> legacy, Function<TagPath, TagPath> mapper) These manage upgrading properties that have more complicated re-mappings.void
registerRemapper
(String legacyName, Function<TagPath, TagPath> mapper) These manage upgrading properties that have more complicated re-mappings.If the path conforms to a remapped/upgraded scheme (isRemappedPath returns true), this will return the new equivilent path.Property<?>
Returns the property represented by the id, or null if the property cannot be found.
-
Method Details
-
getInstance
-
isInternedStringProp
This should be consulted when setting string property values- if true, the value should be interned. -
registerInternedStringProp
Indicates that the values of the property specified should have string.intern() called on them. -
register
-
registerAlias
-
registerRemapper
These manage upgrading properties that have more complicated re-mappings. These are typically runtime properties that used to be directly under a tag, but are now under an actor. -
registerRemapper
These manage upgrading properties that have more complicated re-mappings. These are typically runtime properties that used to be directly under a tag, but are now under an actor. -
locate
-
locateNotNull
Use when you need a non-null property to be returned, even if it doesn't exist in the directory. If the property does not exist, a new BasicProperty of type Object is returned. It will be cached for the next lookup, but replaced if properly registered. -
locateCached
Returns the "official" version of a property, if it exists, otherwise registers this property. -
locateRegistered
Returns the "official" version of a property, if it exists, otherwise returns the provided value. -
locate
-
resolve
Description copied from interface:PropertyResolver
Returns the property represented by the id, or null if the property cannot be found.- Specified by:
resolve
in interfacePropertyResolver
-
isRemappedPath
-
remapPath
If the path conforms to a remapped/upgraded scheme (isRemappedPath returns true), this will return the new equivilent path. If not, it will return the parameter unchanged.
-