示例#1
0
文件: CmdPpl.java 项目: jwoehr/ublu
  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
文件: CmdPpl.java 项目: jwoehr/ublu
  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;
  }