public Field createFieldTextBarcode ( Field formFieldParam , String barcodeTypeParam ) { if ( formFieldParam != null && this . serviceTicket != null ) { formFieldParam . setServiceTicket ( this . serviceTicket ) ; } if ( barcodeTypeParam == null || barcodeTypeParam . trim ( ) . isEmpty ( ) ) { throw new FluidClientException ( "Barcode type cannot be empty." , FluidClientException . ErrorCode . FIELD_VALIDATE ) ; } if ( formFieldParam != null ) { formFieldParam . setTypeAsEnum ( Field . Type . Text ) ; formFieldParam . setTypeMetaData ( FieldMetaData . Text . BARCODE . concat ( barcodeTypeParam ) ) ; } return new Field ( this . putJson ( formFieldParam , WS . Path . FormField . Version1 . formFieldCreate ( ) ) ) ; }
Create a new Text Barcode field .