Record Class DataFieldRow
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.tyler.ecfcodes.DataFieldRow
-
Constructor Summary
ConstructorsConstructorDescriptionDataFieldRow(String code, String name, boolean isvisible, boolean isrequired, String location) 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(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 aDataFieldRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.Returns the value of thecontextualhelpdatarecord component.Returns the value of thedefaultvalueexpressionrecord component.final booleanIndicates whether some other object is "equal to" this one.static Stringstatic Stringstatic StringGets all columns from datafieldconfig table Need to provide the location (1) and the code (2) of the field.Returns the value of theghosttextrecord component.final inthashCode()Returns a hash code value for this object.helptext()Returns the value of thehelptextrecord component.booleanReturns the value of theisreadonlyrecord component.booleanReturns the value of theisrequiredrecord component.booleanReturns the value of theisvisiblerecord component.location()Returns the value of thelocationrecord component.booleanmatchRegex(String value) static DataFieldRowMissingDataField(String name) According to the Tyler docs, if some data field is not defined, it defaults to isVisible=False, and isRequired=False.name()Returns the value of thenamerecord component.Returns the value of theregularexpressionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationmessagerecord component.
-
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
-
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 aDataFieldRowrecord class.- Parameters:
code- the value for thecoderecord componentname- the value for thenamerecord componentisvisible- the value for theisvisiblerecord componentisrequired- the value for theisrequiredrecord componenthelptext- the value for thehelptextrecord componentghosttext- the value for theghosttextrecord componentcontextualhelpdata- the value for thecontextualhelpdatarecord componentvalidationmessage- the value for thevalidationmessagerecord componentregularexpression- the value for theregularexpressionrecord componentdefaultvalueexpression- the value for thedefaultvalueexpressionrecord componentisreadonly- the value for theisreadonlyrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
MissingDataField
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
-
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
-
getAllDataFieldNames
-
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 '=='. -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
isvisible
public boolean isvisible()Returns the value of theisvisiblerecord component.- Returns:
- the value of the
isvisiblerecord component
-
isrequired
public boolean isrequired()Returns the value of theisrequiredrecord component.- Returns:
- the value of the
isrequiredrecord component
-
helptext
Returns the value of thehelptextrecord component.- Returns:
- the value of the
helptextrecord component
-
ghosttext
Returns the value of theghosttextrecord component.- Returns:
- the value of the
ghosttextrecord component
-
contextualhelpdata
Returns the value of thecontextualhelpdatarecord component.- Returns:
- the value of the
contextualhelpdatarecord component
-
validationmessage
Returns the value of thevalidationmessagerecord component.- Returns:
- the value of the
validationmessagerecord component
-
regularexpression
Returns the value of theregularexpressionrecord component.- Returns:
- the value of the
regularexpressionrecord component
-
defaultvalueexpression
Returns the value of thedefaultvalueexpressionrecord component.- Returns:
- the value of the
defaultvalueexpressionrecord component
-
isreadonly
public boolean isreadonly()Returns the value of theisreadonlyrecord component.- Returns:
- the value of the
isreadonlyrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-