Record Class ElementDefinitionMetadata
java.lang.Object
java.lang.Record
dev.getelements.elements.sdk.model.system.ElementDefinitionMetadata
- Record Components:
name- the name of theElementrecursive- true if recursiveadditionalPackages- additional packages to be includedloader- the name of the laoder type
public record ElementDefinitionMetadata(String name, boolean recursive, List<ElementPackageRecord> additionalPackages, String loader)
extends Record
Record type for the
ElementDefinitionRecord. This contains a summary of
all the metadata in an ElementRecord but only types which can be serialized (no ClassLoaders, etc).-
Constructor Summary
ConstructorsConstructorDescriptionElementDefinitionMetadata(String name, boolean recursive, List<ElementPackageRecord> additionalPackages, String loader) Creates an instance of aElementDefinitionMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalPackagesrecord component.final booleanIndicates whether some other object is "equal to" this one.static ElementDefinitionMetadatafrom(ElementDefinitionRecord elementDefinition) Convenience method to construct an ElementDefinitionMetadata from anElementDefinitionRecord.final inthashCode()Returns a hash code value for this object.loader()Returns the value of theloaderrecord component.name()Returns the value of thenamerecord component.booleanReturns the value of therecursiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementDefinitionMetadata
public ElementDefinitionMetadata(String name, boolean recursive, List<ElementPackageRecord> additionalPackages, String loader) Creates an instance of aElementDefinitionMetadatarecord class.- Parameters:
name- the value for thenamerecord componentrecursive- the value for therecursiverecord componentadditionalPackages- the value for theadditionalPackagesrecord componentloader- the value for theloaderrecord component
-
-
Method Details
-
from
Convenience method to construct an ElementDefinitionMetadata from anElementDefinitionRecord.- Parameters:
elementDefinition- theElementDefinitionRecord- Returns:
- the newly created
ElementDefinitionMetadata
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
recursive
public boolean recursive()Returns the value of therecursiverecord component.- Returns:
- the value of the
recursiverecord component
-
additionalPackages
Returns the value of theadditionalPackagesrecord component.- Returns:
- the value of the
additionalPackagesrecord component
-
loader
Returns the value of theloaderrecord component.- Returns:
- the value of the
loaderrecord component
-