Пример #1
0
  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);
    }
  }
Пример #2
0
  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;
  }