Class TylerCodesParser
java.lang.Object
edu.suffolk.litlab.efsp.server.ecf4.tyler.TylerCodesParser
- All Implemented Interfaces:
CodesParser
All of the Tyler code specific conversions and logic checks from our objects (really light
wrappers over the JSON objects).
The `vetXYZ` functions here check that the given inputs work with Tyler's expectations. They return Results; ok for this is good, and an error (with the specific typed-reason) when it will be rejected.
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.suffolk.litlab.efsp.server.ecf4.CodesParser
CodesParser.BadCode, CodesParser.CodeError, CodesParser.CrossReferenceError, CodesParser.MissingRequiredRefs, CodesParser.MissingVar, CodesParser.NoMatchingCode, CodesParser.NoMatchingRef, CodesParser.RequiredCodeNotPresent, CodesParser.TextVarError, CodesParser.TooLongVar, CodesParser.WrongRefVal, CodesParser.WrongVar -
Constructor Summary
ConstructorsConstructorDescriptionTylerCodesParser(CodeDatabase cd, CourtLocationInfo court) TylerCodesParser(CodeDatabase cd, CourtLocationInfo court, DataFields allDataFields) -
Method Summary
Modifier and TypeMethodDescriptioncom.hubspot.algebra.Result<Map<String, String>, CodesParser.CrossReferenceError> getCrossRefIds(Map<String, String> crossRefs, CaseType caseType) makeParser(CodeDatabase cd, String courtId) com.hubspot.algebra.Result<List<FilingCode>, CodesParser.BadCode> retrieveFilingOptions(CaseCategory caseCategory, CaseType type, boolean isInitialFiling) com.hubspot.algebra.Result<CaseCategory, CodesParser.CodeError> vetCaseCat(String caseCategoryCode) com.hubspot.algebra.Result<CaseType, CodesParser.CodeError> vetCaseType(String caseTypeCode, CaseCategory caseCategory, boolean isInitialFiling) com.hubspot.algebra.Result<Optional<FilingCode>, CodesParser.CodeError> vetFilingType(Optional<String> filingStr, List<FilingCode> filingOptions) com.hubspot.algebra.Result<String, CodesParser.TextVarError> vetFirstName(Optional<String> name) com.hubspot.algebra.Result<Optional<String>, CodesParser.CodeError> vetLangCode(Optional<String> lang) com.hubspot.algebra.Result<String, CodesParser.TextVarError> vetLastName(Optional<String> name) com.hubspot.algebra.Result<String, CodesParser.TextVarError> vetMiddleName(Optional<String> name) com.hubspot.algebra.Result<Optional<NameAndCode>, CodesParser.CodeError> vetMotionCode(Optional<String> motionCode, Optional<FilingCode> filing) com.hubspot.algebra.Result<Optional<NameAndCode>, CodesParser.NoMatchingCode> vetSubType(String subtypeCode, CaseType caseType) com.hubspot.algebra.Result<String, CodesParser.CodeError>
-
Constructor Details
-
TylerCodesParser
-
TylerCodesParser
-
-
Method Details
-
makeParser
-
vetCaseCat
public com.hubspot.algebra.Result<CaseCategory,CodesParser.CodeError> vetCaseCat(String caseCategoryCode) - Specified by:
vetCaseCatin interfaceCodesParser
-
vetCaseType
public com.hubspot.algebra.Result<CaseType,CodesParser.CodeError> vetCaseType(String caseTypeCode, CaseCategory caseCategory, boolean isInitialFiling) - Specified by:
vetCaseTypein interfaceCodesParser
-
vetSubType
public com.hubspot.algebra.Result<Optional<NameAndCode>,CodesParser.NoMatchingCode> vetSubType(String subtypeCode, CaseType caseType) - Specified by:
vetSubTypein interfaceCodesParser
-
retrieveFilingOptions
public com.hubspot.algebra.Result<List<FilingCode>,CodesParser.BadCode> retrieveFilingOptions(CaseCategory caseCategory, CaseType type, boolean isInitialFiling) - Specified by:
retrieveFilingOptionsin interfaceCodesParser
-
vetFilingType
public com.hubspot.algebra.Result<Optional<FilingCode>,CodesParser.CodeError> vetFilingType(Optional<String> filingStr, List<FilingCode> filingOptions) - Specified by:
vetFilingTypein interfaceCodesParser
-
vetSuffix
public com.hubspot.algebra.Result<String,CodesParser.CodeError> vetSuffix(Optional<String> maybeSuffix) - Specified by:
vetSuffixin interfaceCodesParser
-
vetLangCode
public com.hubspot.algebra.Result<Optional<String>,CodesParser.CodeError> vetLangCode(Optional<String> lang) - Specified by:
vetLangCodein interfaceCodesParser
-
getCrossRefIds
public com.hubspot.algebra.Result<Map<String,String>, getCrossRefIdsCodesParser.CrossReferenceError> (Map<String, String> crossRefs, CaseType caseType) - Specified by:
getCrossRefIdsin interfaceCodesParser
-
vetMotionCode
public com.hubspot.algebra.Result<Optional<NameAndCode>,CodesParser.CodeError> vetMotionCode(Optional<String> motionCode, Optional<FilingCode> filing) - Specified by:
vetMotionCodein interfaceCodesParser
-
vetFirstName
public com.hubspot.algebra.Result<String,CodesParser.TextVarError> vetFirstName(Optional<String> name) - Specified by:
vetFirstNamein interfaceCodesParser
-
vetMiddleName
public com.hubspot.algebra.Result<String,CodesParser.TextVarError> vetMiddleName(Optional<String> name) - Specified by:
vetMiddleNamein interfaceCodesParser
-
vetLastName
public com.hubspot.algebra.Result<String,CodesParser.TextVarError> vetLastName(Optional<String> name) - Specified by:
vetLastNamein interfaceCodesParser
-