private List < Action > actionsOf ( JsonNode actionNodes ) { List < Action > actions = new LinkedList < Action > ( ) ; if ( actionNodes . isArray ( ) ) { for ( JsonNode action : actionNodes ) { actions . add ( new NamedAction ( action . asText ( ) ) ) ; } } else { actions . add ( new NamedAction ( actionNodes . asText ( ) ) ) ; } return actions ; }
Generates a list of actions from the Action Json Node .