001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019: package org.netbeans.modules.wsdlextensions.jms.impl;
020:
021: import java.util.List;
022:
023: import org.netbeans.modules.wsdlextensions.jms.JMSComponent;
024: import org.netbeans.modules.wsdlextensions.jms.JMSQName;
025: import org.netbeans.modules.wsdlextensions.jms.JMSMessage;
026: import org.netbeans.modules.wsdlextensions.jms.JMSProperties;
027: import org.netbeans.modules.wsdlextensions.jms.JMSMapMessage;
028:
029: import org.netbeans.modules.xml.wsdl.model.WSDLModel;
030: import org.w3c.dom.Element;
031:
032: /**
033: * JMSMessageImpl
034: */
035: public class JMSMessageImpl extends JMSComponentImpl implements
036: JMSMessage {
037:
038: public JMSMessageImpl(WSDLModel model, Element e) {
039: super (model, e);
040: }
041:
042: public JMSMessageImpl(WSDLModel model) {
043: this (model, createPrefixedElement(JMSQName.MESSAGE.getQName(),
044: model));
045: }
046:
047: public String getMessageType() {
048: return getAttribute(JMSAttribute.JMS_MESSAGE_MESSAGE_TYPE);
049: }
050:
051: public void setMessageType(String val) {
052: setAttribute(JMSMessage.ATTR_MESSAGE_TYPE,
053: JMSAttribute.JMS_MESSAGE_MESSAGE_TYPE, val);
054: }
055:
056: public String getUse() {
057: return getAttribute(JMSAttribute.JMS_MESSAGE_USE);
058: }
059:
060: public void setUse(String val) {
061: setAttribute(JMSMessage.ATTR_USE, JMSAttribute.JMS_MESSAGE_USE,
062: val);
063: }
064:
065: public String getTextPart() {
066: return getAttribute(JMSAttribute.JMS_MESSAGE_TEXTPART);
067: }
068:
069: public void setTextPart(String val) {
070: setAttribute(JMSMessage.ATTR_TEXTPART,
071: JMSAttribute.JMS_MESSAGE_TEXTPART, val);
072: }
073:
074: public String getCorrelationIdPart() {
075: return getAttribute(JMSAttribute.JMS_MESSAGE_CORRELATION_ID_PART);
076: }
077:
078: public void setCorrelationIdPart(String val) {
079: setAttribute(JMSMessage.ATTR_CORRELATION_ID_PART,
080: JMSAttribute.JMS_MESSAGE_CORRELATION_ID_PART, val);
081: }
082:
083: public String getDeliveryModePart() {
084: return getAttribute(JMSAttribute.JMS_MESSAGE_DELIVERY_MODE_PART);
085: }
086:
087: public void setDeliveryModePart(String val) {
088: setAttribute(JMSMessage.ATTR_DELIVERY_MODE_PART,
089: JMSAttribute.JMS_MESSAGE_DELIVERY_MODE_PART, val);
090: }
091:
092: public String getPriorityPart() {
093: return getAttribute(JMSAttribute.JMS_MESSAGE_PRIORITY_PART);
094: }
095:
096: public void setPriorityPart(String val) {
097: setAttribute(JMSMessage.ATTR_PRIORITY_PART,
098: JMSAttribute.JMS_MESSAGE_PRIORITY_PART, val);
099: }
100:
101: public String getTypePart() {
102: return getAttribute(JMSAttribute.JMS_MESSAGE_TYPE_PART);
103: }
104:
105: public void setTypePart(String val) {
106: setAttribute(JMSMessage.ATTR_TYPE_PART,
107: JMSAttribute.JMS_MESSAGE_TYPE_PART, val);
108: }
109:
110: public String getMessageIDPart() {
111: return getAttribute(JMSAttribute.JMS_MESSAGE_MESSAGE_ID_PART);
112: }
113:
114: public void setMessageIDPart(String val) {
115: setAttribute(JMSMessage.ATTR_MESSAGE_ID_PART,
116: JMSAttribute.JMS_MESSAGE_MESSAGE_ID_PART, val);
117: }
118:
119: public String getRedeliveredPart() {
120: return getAttribute(JMSAttribute.JMS_MESSAGE_REDELIVERED_PART);
121: }
122:
123: public void setRedeliveredPart(String val) {
124: setAttribute(JMSMessage.ATTR_REDELIVERED_PART,
125: JMSAttribute.JMS_MESSAGE_REDELIVERED_PART, val);
126: }
127:
128: public String getTimestampPart() {
129: return getAttribute(JMSAttribute.JMS_MESSAGE_TIMESTAMP_PART);
130: }
131:
132: public void setTimestampPart(String val) {
133: setAttribute(JMSMessage.ATTR_TIMESTAMP_PART,
134: JMSAttribute.JMS_MESSAGE_TIMESTAMP_PART, val);
135: }
136:
137: public void setJMSEncodingStyle(String val) {
138: setAttribute(JMSMessage.ATTR_ENCODING_STYLE,
139: JMSAttribute.JMS_MESSAGE_ENCODING_STYLE, val);
140: }
141:
142: public String getJMSEncodingStyle() {
143: return getAttribute(JMSAttribute.JMS_MESSAGE_ENCODING_STYLE);
144: }
145:
146: }
|