001: package com.sun.xml.ws.rm.protocol;
002:
003: import com.sun.xml.ws.rm.v200502.Expires;
004: import com.sun.xml.ws.rm.v200502.OfferType;
005: import com.sun.xml.ws.security.secext10.SecurityTokenReferenceType;
006:
007: import javax.xml.namespace.QName;
008: import javax.xml.ws.wsaddressing.W3CEndpointReference;
009: import java.util.List;
010: import java.util.Map;
011:
012: /**
013: * This is the base class for the implementations of <code> CreateSequence </code> based on the
014: * two versions of the RM specification
015: *
016: * @author Bhakti Mehta
017: * @author Mike Grogan
018: *
019: */
020: public abstract class AbstractCreateSequence {
021:
022: /*protected W3CEndpointReference acksTo;
023: protected List<Object> any = new ArrayList<Object>();
024:
025: protected AbstractExpires expires;
026:
027: protected AbstractOfferType offer;
028:
029:
030: protected SecurityTokenReferenceType securityTokenReference;
031:
032:
033: private Map<QName, String> otherAttributes = new HashMap<QName, String>();*/
034:
035: /**
036: * Gets the value of the acksTo property.
037: *
038: * @return
039: * possible object is
040: * {@link com.sun.xml.ws.api.addressing.WSEndpointReference }
041: *
042: */
043:
044: protected abstract W3CEndpointReference getAcksTo();
045:
046: /**
047: * Sets the value of the acksTo property.
048: *
049: * @param value
050: * allowed object is
051: * {@link javax.xml.ws.EndpointReference }
052: *
053: */
054:
055: public abstract void setAcksTo(W3CEndpointReference value);
056:
057: // /**
058: // * Gets the value of the expires property.
059: // *
060: // * @return
061: // * possible object is
062: // * {@link com.sun.xml.ws.rm.v200502.Expires } or
063: // * {@link com.sun.xml.ws.rm.v200702.Expires }
064: // *
065: // */
066: // protected abstract AbstractExpires getExpires() ;
067:
068: /* *//**
069: * Sets the value of the expires property.
070: *
071: * @param value
072: * allowed object is
073: * {@link Expires }
074: *
075: */
076: /*
077: protected abstract void setExpires(AbstractExpires value) ;*/
078:
079: /* *//**
080: * Gets the value of the offer property.
081: *
082: * @return
083: * possible object is
084: * {@link com.sun.xml.ws.rm.v200502.OfferType }
085: * {@link com.sun.xml.ws.rm.v200702.OfferType }
086: *
087: */
088: /*
089: protected abstract AbstractOfferType getOffer() ;
090:
091: *//**
092: * Sets the value of the offer property.
093: *
094: * @param value
095: * allowed object is
096: * {@link OfferType }
097: *
098: */
099: /*
100: public abstract void setOffer(AbstractOfferType value);*/
101:
102: /**
103: * Gets the value of the any property.
104: *
105: * <p>
106: * This accessor method returns a reference to the live list,
107: * not a snapshot. Therefore any modification you make to the
108: * returned list will be present inside the JAXB object.
109: * This is why there is not a <CODE>set</CODE> method for the any property.
110: *
111: * <p>
112: * For example, to add a new item, do as follows:
113: * <pre>
114: * getAny().add(newItem);
115: * </pre>
116: *
117: *
118: * <p>
119: * Objects of the following type(s) are allowed in the list
120: * {@link Object }
121: * {@link org.w3c.dom.Element }
122: *
123: *
124: */
125: protected abstract List<Object> getAny();
126:
127: /**
128: * Gets a map that contains attributes that aren't bound to any typed property on this class.
129: *
130: * <p>
131: * the map is keyed by the name of the attribute and
132: * the value is the string value of the attribute.
133: *
134: * the map returned by this method is live, and you can add new attribute
135: * by updating the map directly. Because of this design, there's no setter.
136: *
137: *
138: * @return
139: * always non-null
140: */
141: protected abstract Map<QName, String> getOtherAttributes();
142:
143: protected abstract SecurityTokenReferenceType getSecurityTokenReference();
144:
145: public abstract void setSecurityTokenReference(
146: SecurityTokenReferenceType s);
147:
148: }
|