Record Class TemplateRequirements

java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.template.TemplateRequirements
Record Components:
variables - text placeholders and parameter map paths
flags - named boolean conditions
collections - repeated list paths
assets - named image references
styles - named style references
components - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • variables

      public List<TemplateRequirement> variables()
      Returns the value of the variables record component.
      Returns:
      the value of the variables record component
    • flags

      public List<TemplateRequirement> flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component
    • collections

      public List<TemplateRequirement> collections()
      Returns the value of the collections record component.
      Returns:
      the value of the collections record component
    • assets

      public List<TemplateRequirement> assets()
      Returns the value of the assets record component.
      Returns:
      the value of the assets record component
    • styles

      public List<TemplateRequirement> styles()
      Returns the value of the styles record component.
      Returns:
      the value of the styles record component
    • components

      public List<TemplateRequirement> components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component