return tableData;
}
private static Card convertValueToCard(String value) throws TransportException {
System.out.println("TableDataBuilder.convertValueToCard");
Card card = new Card();
if (value != null && !"".equals(value)
&& (value.length() == 2 || value.length() == 3)) {
String suit = value.substring(0, 1);
String rank = value.substring(1, value.length());
if (REQ_PARAM_SUIT_DIAMONDS.equals(suit)) {
card.setSuit(TransportUtils.DIAMONDS);
} else if (REQ_PARAM_SUIT_CLUBS.equals(suit)) {
card.setSuit(TransportUtils.CLUBS);
} else if (REQ_PARAM_SUIT_SPADES.equals(suit)) {
card.setSuit(TransportUtils.SPADES);
} else if (REQ_PARAM_SUIT_HEARTS.equals(suit)) {
card.setSuit(TransportUtils.HEARTS);
}
if (REQ_PARAM_RANK_TWO.equals(rank)) {
card.setRank(TransportUtils.TWO);
} else if (REQ_PARAM_RANK_THREE.equals(rank)) {
card.setRank(TransportUtils.THREE);
} else if (REQ_PARAM_RANK_FOUR.equals(rank)) {
card.setRank(TransportUtils.FOUR);
} else if (REQ_PARAM_RANK_FIVE.equals(rank)) {
card.setRank(TransportUtils.FIVE);
} else if (REQ_PARAM_RANK_SIX.equals(rank)) {
card.setRank(TransportUtils.SIX);
} else if (REQ_PARAM_RANK_SEVEN.equals(rank)) {
card.setRank(TransportUtils.SEVEN);
} else if (REQ_PARAM_RANK_EIGHT.equals(rank)) {
card.setRank(TransportUtils.EIGHT);
} else if (REQ_PARAM_RANK_NINE.equals(rank)) {
card.setRank(TransportUtils.NINE);
} else if (REQ_PARAM_RANK_TEN.equals(rank)) {
card.setRank(TransportUtils.TEN);
} else if (REQ_PARAM_RANK_JACK.equals(rank)) {
card.setRank(TransportUtils.JACK);
} else if (REQ_PARAM_RANK_QUEEN.equals(rank)) {
card.setRank(TransportUtils.QUEEN);
} else if (REQ_PARAM_RANK_KING.equals(rank)) {
card.setRank(TransportUtils.KING);
} else if (REQ_PARAM_RANK_ACE.equals(rank)) {
card.setRank(TransportUtils.ACE);
}
}
return card;
}