Beispiel #1
0
  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    if (!isSetStatus()) {
      throw new org.apache.thrift.protocol.TProtocolException(
          "Required field 'status' is unset! Struct:" + toString());
    }

    // check for sub-struct validity
    if (status != null) {
      status.validate();
    }
    if (operationHandle != null) {
      operationHandle.validate();
    }
  }
 public void validate() throws org.apache.thrift.TException {
   // check for required fields
   if (operationHandle == null) {
     throw new org.apache.thrift.protocol.TProtocolException(
         "Required field 'operationHandle' was not present! Struct: " + toString());
   }
   if (orientation == null) {
     throw new org.apache.thrift.protocol.TProtocolException(
         "Required field 'orientation' was not present! Struct: " + toString());
   }
   // alas, we cannot check 'maxRows' because it's a primitive and you chose the non-beans
   // generator.
   // check for sub-struct validity
   if (operationHandle != null) {
     operationHandle.validate();
   }
 }