private void setString(Tuple pplTuple, int attributeId, String stringVal) { pplTuple = validatePPLTuple(pplTuple); if (getCommandResult() != COMMANDRESULT.FAILURE) { PrintParameterList p = PrintParameterList.class.cast(pplTuple.getValue()); p.setParameter(attributeId, stringVal); } }
private String getString(Tuple pplTuple, int attributeId) { String result = null; pplTuple = validatePPLTuple(pplTuple); if (getCommandResult() != COMMANDRESULT.FAILURE) { PrintParameterList p = PrintParameterList.class.cast(pplTuple.getValue()); result = p.getStringParameter(attributeId); } return result; }