Record Class Location
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.location.Location
public record Location(ProjectResourceId projectResourceId, Map<String,String> valueMap)
extends Record
A Location uniquely identifies a resource in the project (by
ProjectResourceId), plus some additional
context in the form of simple string key/value pairs. Individual module/resource workspaces can indicate they support
being 'located' by implementing the Locatable interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectResourceIdrecord component.toString()Returns a string representation of this record class.valueMap()Returns the value of thevalueMaprecord component.
-
Constructor Details
-
Location
public Location(com.inductiveautomation.ignition.common.tags.config.model.TagReferenceLocation tagReferenceLocation) -
Location
Creates an instance of aLocationrecord class.- Parameters:
projectResourceId- the value for theprojectResourceIdrecord componentvalueMap- the value for thevalueMaprecord component
-
-
Method Details
-
getResourcePath
-
getResourceType
-
containsKey
-
get
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
projectResourceId
Returns the value of theprojectResourceIdrecord component.- Returns:
- the value of the
projectResourceIdrecord component
-
valueMap
Returns the value of thevalueMaprecord component.- Returns:
- the value of the
valueMaprecord component
-