Class TagPropertyDirectory

java.lang.Object
com.inductiveautomation.ignition.common.tags.config.TagPropertyDirectory
All Implemented Interfaces:
PropertyResolver

public class TagPropertyDirectory extends Object implements PropertyResolver
  • Method Details

    • getInstance

      public static TagPropertyDirectory getInstance()
    • isInternedStringProp

      public boolean isInternedStringProp(Property<String> prop)
      This should be consulted when setting string property values- if true, the value should be interned.
    • registerInternedStringProp

      public void registerInternedStringProp(Property<String> prop)
      Indicates that the values of the property specified should have string.intern() called on them.
    • register

      public void register(Property<?>[] values)
    • registerAlias

      public void registerAlias(String legacyName, String newName)
    • registerRemapper

      public void registerRemapper(Property<?> legacy, Function<TagPath,TagPath> mapper)
      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

      public void registerRemapper(String legacyName, Function<TagPath,TagPath> mapper)
      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

      public Property<?> locate(String name)
    • locateNotNull

      public Property<?> locateNotNull(String name)
      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

      public Property<?> locateCached(Property<?> property)
      Returns the "official" version of a property, if it exists, otherwise registers this property.
    • locateRegistered

      public Property<?> locateRegistered(Property<?> property)
      Returns the "official" version of a property, if it exists, otherwise returns the provided value.
    • locate

      protected Property<?> locate(String name, boolean create)
    • resolve

      public Property<?> resolve(String id)
      Description copied from interface: PropertyResolver
      Returns the property represented by the id, or null if the property cannot be found.
      Specified by:
      resolve in interface PropertyResolver
    • isRemappedPath

      public boolean isRemappedPath(TagPath path)
    • remapPath

      public TagPath remapPath(TagPath path)
      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.