Record Class TagPathValidator.ValidatedTagPath
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.tags.paths.TagPathValidator.ValidatedTagPath
- Enclosing class:
- TagPathValidator
public static record TagPathValidator.ValidatedTagPath(String rawPath, TagPath tagPath, TagPathValidator.Quality quality, String message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValidatedTagPath
(String rawPath, TagPath tagPath, TagPathValidator.Quality quality, String message) Creates an instance of aValidatedTagPath
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.invalid
(String path, TagPathValidator.Quality quality, String error) message()
Returns the value of themessage
record component.quality()
Returns the value of thequality
record component.rawPath()
Returns the value of therawPath
record component.tagPath()
Returns the value of thetagPath
record component.final String
toString()
Returns a string representation of this record class.unvalidated
(String path)
-
Constructor Details
-
ValidatedTagPath
public ValidatedTagPath(String rawPath, TagPath tagPath, TagPathValidator.Quality quality, String message) Creates an instance of aValidatedTagPath
record class.- Parameters:
rawPath
- the value for therawPath
record componenttagPath
- the value for thetagPath
record componentquality
- the value for thequality
record componentmessage
- the value for themessage
record component
-
-
Method Details
-
valid
-
invalid
public static TagPathValidator.ValidatedTagPath invalid(String path, TagPathValidator.Quality quality, String error) -
unvalidated
-
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)
. -
rawPath
Returns the value of therawPath
record component.- Returns:
- the value of the
rawPath
record component
-
tagPath
Returns the value of thetagPath
record component.- Returns:
- the value of the
tagPath
record component
-
quality
Returns the value of thequality
record component.- Returns:
- the value of the
quality
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-