Record Class ResourceCollectionManifest
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.resourcecollection.ResourceCollectionManifest
- Record Components:
title
- Title of the resource collectiondescription
- Description of the resource collectionenabled
- Whether the resource collection is enabledinheritable
- Whether other resource collections can have this one as a parentparent
- Optional parent resource collection, null or empty meaning no parent.
public record ResourceCollectionManifest(String title, String description, boolean enabled, boolean inheritable, @Nullable String parent)
extends Record
Contains the metadata for an entire resource collection, including inheritance linkage information.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceCollectionManifest
(String title, String description, boolean enabled, boolean inheritable, String parent) Creates an instance of aResourceCollectionManifest
record class. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a copy of thisResourceCollectionManifest
.copy
(Consumer<ResourceCollectionManifest.Builder> consumer) Create a copy of thisResourceCollectionManifest
, allowing for modifications to take place prior via the consumedResourceCollectionManifest.Builder
.Returns the value of thedescription
record component.boolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theinheritable
record component.Create a newResourceCollectionManifest.Builder
.parent()
Returns the value of theparent
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
PROJECT_MANIFEST_FILE_NAME
- See Also:
-
CONFIG_MANIFEST_FILE_NAME
- See Also:
-
-
Constructor Details
-
ResourceCollectionManifest
public ResourceCollectionManifest(String title, String description, boolean enabled, boolean inheritable, @Nullable String parent) Creates an instance of aResourceCollectionManifest
record class.- Parameters:
title
- the value for thetitle
record componentdescription
- the value for thedescription
record componentenabled
- the value for theenabled
record componentinheritable
- the value for theinheritable
record componentparent
- the value for theparent
record component
-
-
Method Details
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
copy
Create a copy of thisResourceCollectionManifest
.- Returns:
- a copy of this
ResourceCollectionManifest
.
-
copy
Create a copy of thisResourceCollectionManifest
, allowing for modifications to take place prior via the consumedResourceCollectionManifest.Builder
.- Parameters:
consumer
- theResourceCollectionManifest.Builder
consumer.- Returns:
- a copy of this
ResourceCollectionManifest
.
-
toBuilder
- Returns:
- a new
ResourceCollectionManifest.Builder
pre-set with all the values from thisResourceCollectionManifest
.
-
newBuilder
Create a newResourceCollectionManifest.Builder
.- Returns:
- a new
ResourceCollectionManifest.Builder
.
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
enabled
public boolean enabled()Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-
inheritable
public boolean inheritable()Returns the value of theinheritable
record component.- Returns:
- the value of the
inheritable
record component
-