int function ( String arg0 ) { for ( int loc0 = 0 ; loc0 < actionText . length ; loc0 ++ ) { if ( actionText [ loc0 ] . equals ( arg0 ) ) { return loc0 ; } } return - 1 ; }
if you know the action string , look up the corresponding type id constant . concode_field_sep int BITSTREAM concode_elem_sep int DELETE concode_elem_sep int DEFAULT_ITEM_READ concode_elem_sep int NEWS_TOP concode_elem_sep String METADATA_BUNDLE_NAME concode_elem_sep int WRITE concode_elem_sep String DEFAULT_BUNDLE_NAME concode_elem_sep int WORKFLOW_STEP_2 concode_elem_sep String[] typeText concode_elem_sep int WORKFLOW_STEP_3 concode_elem_sep int WORKFLOW_STEP_1 concode_elem_sep int RBITSTREAM concode_elem_sep int REMOVE concode_elem_sep int SITE concode_elem_sep int WORKFLOW_ABORT concode_elem_sep int COLLECTION concode_elem_sep String CONTENT_BUNDLE_NAME concode_elem_sep int RCOMMUNITY concode_elem_sep int RITEM concode_elem_sep int RCOLLECTION concode_elem_sep int RBUNDLE concode_elem_sep int NEWS_SIDE concode_elem_sep int ADD concode_elem_sep int COLLECTION_ADMIN concode_elem_sep int COMMUNITY concode_elem_sep int ADMIN concode_elem_sep int BUNDLE concode_elem_sep String LICENSE_BITSTREAM_NAME concode_elem_sep String LICENSE_BUNDLE_NAME concode_elem_sep String[] actionText concode_elem_sep int[] actionTypeRelevance concode_elem_sep int GROUP concode_elem_sep int READ concode_elem_sep int DEFAULT_BITSTREAM_READ concode_elem_sep int EPERSON concode_elem_sep int ITEM concode_elem_sep String DEFAULT_ENCODING concode_field_sep int getTypeID