01: package com.sun.xml.ws.rm.protocol;
02:
03: import javax.xml.namespace.QName;
04: import java.math.BigInteger;
05: import java.util.List;
06: import java.util.Map;
07:
08: /**
09: * This is the base class for the implementations of <code> SequenceAcknowledgementElement </code> based on the
10: * two versions of the RM specification
11: *
12: * @author Bhakti Mehta
13: * @author Mike Grogan
14: */
15: public abstract class AbstractSequenceAcknowledgement {
16:
17: /**
18: * Gets the value of the nack property.
19: *
20: * @return The value of the property, which is a list of BigIntegers
21: *
22: *
23: */
24: protected abstract List<BigInteger> getNack();
25:
26: /**
27: * Gets the value of the any property representing extensibility elements
28: *
29: * @return The list of elements.
30: *
31: */
32: protected abstract List<Object> getAny();
33:
34: /**
35: * Gets a map that contains attributes that aren't bound to any typed property on this class.
36: *
37: * @return The value of the property
38: */
39: protected abstract Map<QName, String> getOtherAttributes();
40:
41: /**
42: * Sets the Identifier
43: * @param id
44: */
45: public abstract void setId(String id);
46:
47: /**
48: * Gets the identifier associated with the Sequence
49: * @return String
50: */
51: protected abstract String getId();
52:
53: /**
54: * Gets the BufferRemaining value
55: * @return int
56: */
57: protected abstract int getBufferRemaining();
58:
59: /**
60: * Sets the BufferRemaining value
61: * @return void
62: */
63:
64: public abstract void setBufferRemaining(int value);
65:
66: public abstract void addAckRange(long lower, long upper);
67:
68: public abstract void addNack(long index);
69:
70: }
|