Record Class DataFieldRow

java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.tyler.ecfcodes.DataFieldRow

public record DataFieldRow(String code, String name, boolean isvisible, boolean isrequired, String helptext, String ghosttext, String contextualhelpdata, String validationmessage, Pattern regularexpression, String defaultvalueexpression, boolean isreadonly, String location) extends Record
  • Constructor Details

    • DataFieldRow

      public DataFieldRow(String code, String name, boolean isvisible, boolean isrequired, String helptext, String ghosttext, String contextualhelpdata, String validationmessage, String regularexpression, String defaultvalueexpression, boolean isreadonly, String location)
      Constructor directly from Database.
    • DataFieldRow

      public DataFieldRow(String code, String name, boolean isvisible, boolean isrequired, String location)
    • DataFieldRow

      public DataFieldRow(String code, String name, boolean isvisible, boolean isrequired, String helptext, String ghosttext, String contextualhelpdata, String validationmessage, Pattern regularexpression, String defaultvalueexpression, boolean isreadonly, String location)
      Creates an instance of a DataFieldRow record class.
      Parameters:
      code - the value for the code record component
      name - the value for the name record component
      isvisible - the value for the isvisible record component
      isrequired - the value for the isrequired record component
      helptext - the value for the helptext record component
      ghosttext - the value for the ghosttext record component
      contextualhelpdata - the value for the contextualhelpdata record component
      validationmessage - the value for the validationmessage record component
      regularexpression - the value for the regularexpression record component
      defaultvalueexpression - the value for the defaultvalueexpression record component
      isreadonly - the value for the isreadonly record component
      location - the value for the location record component
  • Method Details

    • MissingDataField

      public static DataFieldRow MissingDataField(String name)
      According to the Tyler docs, if some data field is not defined, it defaults to isVisible=False, and isRequired=False. Everything else will be empty
      Returns:
    • matchRegex

      public boolean matchRegex(String value)
    • getAllFromDataFieldConfigForLoc

      public static String getAllFromDataFieldConfigForLoc()
      Gets all columns from datafieldconfig table Need to provide the location (1) and the code (2) of the field. For example, 'adams' and 'FilingEventCaseParties'
      Returns:
      the String to make a SQL PreparedStatement from
    • getAllDataFieldConfigsForLoc

      public static String getAllDataFieldConfigsForLoc()
    • getAllDataFieldNames

      public static String getAllDataFieldNames()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • isvisible

      public boolean isvisible()
      Returns the value of the isvisible record component.
      Returns:
      the value of the isvisible record component
    • isrequired

      public boolean isrequired()
      Returns the value of the isrequired record component.
      Returns:
      the value of the isrequired record component
    • helptext

      public String helptext()
      Returns the value of the helptext record component.
      Returns:
      the value of the helptext record component
    • ghosttext

      public String ghosttext()
      Returns the value of the ghosttext record component.
      Returns:
      the value of the ghosttext record component
    • contextualhelpdata

      public String contextualhelpdata()
      Returns the value of the contextualhelpdata record component.
      Returns:
      the value of the contextualhelpdata record component
    • validationmessage

      public String validationmessage()
      Returns the value of the validationmessage record component.
      Returns:
      the value of the validationmessage record component
    • regularexpression

      public Pattern regularexpression()
      Returns the value of the regularexpression record component.
      Returns:
      the value of the regularexpression record component
    • defaultvalueexpression

      public String defaultvalueexpression()
      Returns the value of the defaultvalueexpression record component.
      Returns:
      the value of the defaultvalueexpression record component
    • isreadonly

      public boolean isreadonly()
      Returns the value of the isreadonly record component.
      Returns:
      the value of the isreadonly record component
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component