View Javadoc
1   package org.oxerr.okcoin.fix.fix44;
2   
3   import org.oxerr.okcoin.fix.field.ExceptionMessage;
4   
5   import quickfix.FieldNotFound;
6   import quickfix.field.MsgType;
7   import quickfix.field.Text;
8   import quickfix.fix44.Message;
9   
10  /**
11   * Used for OKCoin to return exceptions.
12   */
13  public class ExceptionResponseMessage extends Message {
14  
15  	private static final long serialVersionUID = 20160303L;
16  
17  	public static final String MSGTYPE = "E1000";
18  
19  	public ExceptionResponseMessage() {
20  		getHeader().setField(new MsgType(MSGTYPE));
21  	}
22  
23  	public void set(Text value) {
24  		setField(value);
25  	}
26  
27  	public Text get(Text value) throws FieldNotFound {
28  		getField(value);
29  		return value;
30  	}
31  
32  	public Text getText() throws FieldNotFound {
33  		Text value = new Text();
34  		getField(value);
35  		return value;
36  	}
37  
38  	public boolean isSet(Text field) {
39  		return isSetField(field);
40  	}
41  
42  	public boolean isSetText() {
43  		return isSetField(Text.FIELD);
44  	}
45  
46  	public void set(ExceptionMessage value) {
47  		setField(value);
48  	}
49  
50  	public ExceptionMessage get(ExceptionMessage value) throws FieldNotFound {
51  		getField(value);
52  		return value;
53  	}
54  
55  	public ExceptionMessage getExceptionMessage() throws FieldNotFound {
56  		ExceptionMessage value = new ExceptionMessage();
57  		getField(value);
58  		return value;
59  	}
60  
61  	public boolean isSet(ExceptionMessage field) {
62  		return isSetField(field);
63  	}
64  
65  	public boolean isSetExceptionMessage() {
66  		return isSetField(ExceptionMessage.FIELD);
67  	}
68  
69  }