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 TypeMethodDescriptionboolean
containsKey
(String key) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theprojectResourceId
record component.toString()
Returns a string representation of this record class.valueMap()
Returns the value of thevalueMap
record component.
-
Constructor Details
-
Location
public Location(com.inductiveautomation.ignition.common.tags.config.model.TagReferenceLocation tagReferenceLocation) -
Location
Creates an instance of aLocation
record class.- Parameters:
projectResourceId
- the value for theprojectResourceId
record componentvalueMap
- the value for thevalueMap
record 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 theprojectResourceId
record component.- Returns:
- the value of the
projectResourceId
record component
-
valueMap
Returns the value of thevalueMap
record component.- Returns:
- the value of the
valueMap
record component
-