Record Class TemplateRequirements
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.template.TemplateRequirements
- Record Components:
variables- text placeholders and parameter map pathsflags- named boolean conditionscollections- repeated list pathsassets- named image referencesstyles- named style referencescomponents- reusable component references
public record TemplateRequirements(List<TemplateRequirement> variables, List<TemplateRequirement> flags, List<TemplateRequirement> collections, List<TemplateRequirement> assets, List<TemplateRequirement> styles, List<TemplateRequirement> components)
extends Record
Immutable syntactic requirements, including conditional branches and scoped aliases. Dynamic
asset/style/component references retain their literal placeholder text. This manifest describes
source occurrences; binding decides which conditional requirements are actually needed.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateRequirements(List<TemplateRequirement> variables, List<TemplateRequirement> flags, List<TemplateRequirement> collections, List<TemplateRequirement> assets, List<TemplateRequirement> styles, List<TemplateRequirement> components) Owns all occurrence lists. -
Method Summary
Modifier and TypeMethodDescriptionassets()Returns the value of theassetsrecord component.Returns the value of thecollectionsrecord component.Returns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.styles()Returns the value of thestylesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesrecord component.
-
Constructor Details
-
TemplateRequirements
public TemplateRequirements(List<TemplateRequirement> variables, List<TemplateRequirement> flags, List<TemplateRequirement> collections, List<TemplateRequirement> assets, List<TemplateRequirement> styles, List<TemplateRequirement> components) Owns all occurrence lists.- Parameters:
variables- text/parameter occurrencesflags- boolean occurrencescollections- list occurrencesassets- image referencesstyles- style referencescomponents- component references
-
-
Method Details
-
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). -
variables
Returns the value of thevariablesrecord component.- Returns:
- the value of the
variablesrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
collections
Returns the value of thecollectionsrecord component.- Returns:
- the value of the
collectionsrecord component
-
assets
Returns the value of theassetsrecord component.- Returns:
- the value of the
assetsrecord component
-
styles
Returns the value of thestylesrecord component.- Returns:
- the value of the
stylesrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-