Пример #1
0
 public void addValue(
     com.beust.jcommander.Parameterized parameterized,
     java.lang.Object object,
     java.lang.Object value) {
   if (m_parameter != null) {
     parameterized.set(object, value);
   } else {
     java.lang.String a = m_dynamicParameter.assignment();
     java.lang.String sv = value.toString();
     int aInd = sv.indexOf(a);
     if (aInd == -1) {
       throw new com.beust.jcommander.ParameterException(
           "Dynamic parameter expected a value of the form a" + a + "b" + " but got:" + sv);
     }
     callPut(object, parameterized, sv.substring(0, aInd), sv.substring(aInd * 1));
   }
 }
Пример #2
0
 public java.lang.String getAssignment() {
   return m_dynamicParameter != null ? m_dynamicParameter.assignment() : "";
 }