public static DataEntry getStringField ( String name , String expected , boolean matchCase ) { DataEntry de = new DataEntry ( ) ; DataEntryType det = DataEntryTypeServer . getType ( "type.string.name" ) ; de . setEntryName ( name ) ; de . setDataEntryPropertyList ( getDefaultProperties ( det ) ) ; de . setDataEntryType ( det ) ; if ( expected != null ) { getProperty ( de , "property.expected.result" ) . setPropertyValue ( expected ) ; getProperty ( de , "property.match.case" ) . setPropertyValue ( matchCase ? "true" : "false" ) ; } return de ; }
Create a default string field