@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof AdjustmentType == false) return false;
    AdjustmentType other = (AdjustmentType) obj;
    if (other.getAdjustmentType() == null ^ this.getAdjustmentType() == null) return false;
    if (other.getAdjustmentType() != null
        && other.getAdjustmentType().equals(this.getAdjustmentType()) == false) return false;
    return true;
  }
  public AdjustmentType unmarshall(StaxUnmarshallerContext context) throws Exception {
    AdjustmentType adjustmentType = new AdjustmentType();
    int originalDepth = context.getCurrentDepth();
    int targetDepth = originalDepth + 1;

    if (context.isStartOfDocument()) targetDepth += 2;

    while (true) {
      int xmlEvent = context.nextEvent();
      if (xmlEvent == XmlPullParser.END_DOCUMENT) return adjustmentType;

      if (xmlEvent == XmlPullParser.START_TAG) {
        if (context.testExpression("AdjustmentType", targetDepth)) {
          adjustmentType.setAdjustmentType(
              StringStaxUnmarshaller.getInstance().unmarshall(context));
          continue;
        }
      } else if (xmlEvent == XmlPullParser.END_TAG) {
        if (context.getCurrentDepth() < originalDepth) {
          return adjustmentType;
        }
      }
    }
  }