001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.xml.ws.tx.webservice.member.coord;
038:
039: import com.sun.xml.ws.developer.MemberSubmissionEndpointReference;
040: import org.w3c.dom.Element;
041:
042: import javax.xml.bind.annotation.XmlAccessType;
043: import javax.xml.bind.annotation.XmlAccessorType;
044: import javax.xml.bind.annotation.XmlAnyAttribute;
045: import javax.xml.bind.annotation.XmlAnyElement;
046: import javax.xml.bind.annotation.XmlElement;
047: import javax.xml.bind.annotation.XmlType;
048: import javax.xml.namespace.QName;
049: import java.util.ArrayList;
050: import java.util.HashMap;
051: import java.util.List;
052: import java.util.Map;
053:
054: /**
055: * <p>Java class for RegisterType complex type.
056: * <p/>
057: * <p>The following schema fragment specifies the expected content contained within this class.
058: * <p/>
059: * <pre>
060: * <complexType name="RegisterType">
061: * <complexContent>
062: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
063: * <sequence>
064: * <element name="ProtocolIdentifier" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
065: * <element name="ParticipantProtocolService" type="{http://schemas.xmlsoap.org/ws/2004/08/addressing}EndpointReferenceType"/>
066: * <any/>
067: * </sequence>
068: * </restriction>
069: * </complexContent>
070: * </complexType>
071: * </pre>
072: * <p/>
073: */
074: @XmlAccessorType(XmlAccessType.FIELD)
075: @XmlType(name="RegisterType",propOrder={"protocolIdentifier","participantProtocolService","any"})
076: public class RegisterType {
077:
078: @XmlElement(name="ProtocolIdentifier",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor",required=true)
079: protected String protocolIdentifier;
080: @XmlElement(name="ParticipantProtocolService",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor",required=true)
081: protected MemberSubmissionEndpointReference participantProtocolService;
082: @XmlAnyElement(lax=true)
083: protected List<Object> any;
084: @XmlAnyAttribute
085: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
086:
087: /**
088: * Gets the value of the protocolIdentifier property.
089: *
090: * @return possible object is
091: * {@link String }
092: */
093: public String getProtocolIdentifier() {
094: return protocolIdentifier;
095: }
096:
097: /**
098: * Sets the value of the protocolIdentifier property.
099: *
100: * @param value allowed object is
101: * {@link String }
102: */
103: public void setProtocolIdentifier(String value) {
104: this .protocolIdentifier = value;
105: }
106:
107: /**
108: * Gets the value of the participantProtocolService property.
109: *
110: * @return possible object is
111: * {@link com.sun.xml.ws.developer.MemberSubmissionEndpointReference }
112: */
113: public MemberSubmissionEndpointReference getParticipantProtocolService() {
114: return participantProtocolService;
115: }
116:
117: /**
118: * Sets the value of the participantProtocolService property.
119: *
120: * @param value allowed object is
121: * {@link com.sun.xml.ws.developer.MemberSubmissionEndpointReference }
122: */
123: public void setParticipantProtocolService(
124: MemberSubmissionEndpointReference value) {
125: this .participantProtocolService = value;
126: }
127:
128: /**
129: * Gets the value of the any property.
130: * <p/>
131: * <p/>
132: * This accessor method returns a reference to the live list,
133: * not a snapshot. Therefore any modification you make to the
134: * returned list will be present inside the JAXB object.
135: * This is why there is not a <CODE>set</CODE> method for the any property.
136: * <p/>
137: * <p/>
138: * For example, to add a new item, do as follows:
139: * <pre>
140: * getAny().add(newItem);
141: * </pre>
142: * <p/>
143: * <p/>
144: * <p/>
145: * Objects of the following type(s) are allowed in the list
146: * {@link Object }
147: * {@link Element }
148: */
149: public List<Object> getAny() {
150: if (any == null) {
151: any = new ArrayList<Object>();
152: }
153: return this .any;
154: }
155:
156: /**
157: * Gets a map that contains attributes that aren't bound to any typed property on this class.
158: * <p/>
159: * <p/>
160: * the map is keyed by the name of the attribute and
161: * the value is the string value of the attribute.
162: * <p/>
163: * the map returned by this method is live, and you can add new attribute
164: * by updating the map directly. Because of this design, there's no setter.
165: *
166: * @return always non-null
167: */
168: public Map<QName, String> getOtherAttributes() {
169: return otherAttributes;
170: }
171:
172: }
|