01: package com.sun.xml.ws.rm.protocol;
02:
03: import javax.xml.namespace.QName;
04: import java.util.List;
05: import java.util.Map;
06:
07: /**
08: * This is the base class for the implementations of <code> SequenceElement </code> based on the
09: * two versions of the RM specification
10: *
11: * @author Bhakti Mehta
12: * @author Mike Grogan
13: */
14: public abstract class AbstractSequence {
15:
16: public String getLocalPart() {
17: return new String("Sequence");
18: }
19:
20: /**
21: * Mutator for the Id property. Maps to the Identifier property in the underlying
22: * JAXB class.
23: *
24: * @param id The new value.
25: */
26: public abstract void setId(String id);
27:
28: /**
29: * Accessor for the Id property. Maps to the Identifier property in the underlying
30: * JAXB class
31: * @return The sequence id
32: */
33: protected abstract String getId();
34:
35: /**
36: * Mutator for the Number property which maps to the MessageNumber property in
37: * the underlying JAXB class.
38: *
39: * @param l The Message number.
40: */
41: public void setNumber(int l) {
42: setMessageNumber(l);
43: }
44:
45: /**
46: * Accessor for the Number property which maps to the MessageNumber property in
47: * the underlying JAXB class.
48: *
49: * @return The Message number.
50: */
51: protected int getNumber() {
52: return getMessageNumber();
53: }
54:
55: /**
56: * Gets the value of the messageNumber property.
57: *
58: * @return The value of the property.
59: *
60: */
61: protected abstract Integer getMessageNumber();
62:
63: /**
64: * Sets the value of the messageNumber property.
65: *
66: * @param value The new value.
67: *
68: */
69: public abstract void setMessageNumber(Integer value);
70:
71: /**
72: * Gets the value of the any property.
73: *
74: * @return The value of the property.
75: *
76: *
77: */
78: public abstract List<Object> getAny();
79:
80: /**
81: * Gets a map that contains attributes that aren't bound to any typed property on this class.
82: *
83: * @return The map of attributes.
84: */
85: public abstract Map<QName, String> getOtherAttributes();
86:
87: }
|