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:
020: package org.netbeans.modules.wsdlextensions.jms.impl;
021:
022: import org.netbeans.modules.wsdlextensions.jms.JMSAddress;
023: import org.netbeans.modules.wsdlextensions.jms.JMSConstants;
024: import org.netbeans.modules.wsdlextensions.jms.JMSQName;
025:
026: import org.netbeans.modules.xml.wsdl.model.WSDLModel;
027: import org.w3c.dom.Element;
028:
029: /**
030: *
031: * JMSAddressImpl
032: */
033: public class JMSAddressImpl extends JMSComponentImpl implements
034: JMSAddress {
035:
036: public JMSAddressImpl(WSDLModel model, Element e) {
037: super (model, e);
038: }
039:
040: public JMSAddressImpl(WSDLModel model) {
041: this (model, createPrefixedElement(JMSQName.ADDRESS.getQName(),
042: model));
043: }
044:
045: public void setConnectionURL(String val) {
046: setAttribute(JMSAddress.ATTR_CONNECTION_URL,
047: JMSAttribute.JMS_ADDRESS_CONNECTION_URL, val);
048: }
049:
050: public String getConnectionURL() {
051: return getAttribute(JMSAttribute.JMS_ADDRESS_CONNECTION_URL);
052: }
053:
054: public String getUsername() {
055: return getAttribute(JMSAttribute.JMS_ADDRESS_USERNAME);
056: }
057:
058: public void setUsername(String val) {
059: setAttribute(JMSAddress.ATTR_USERNAME,
060: JMSAttribute.JMS_ADDRESS_USERNAME, val);
061: }
062:
063: public String getPassword() {
064: return getAttribute(JMSAttribute.JMS_ADDRESS_PASSWORD);
065: }
066:
067: public void setPassword(String val) {
068: setAttribute(JMSAddress.ATTR_PASSWORD,
069: JMSAttribute.JMS_ADDRESS_PASSWORD, val);
070: }
071:
072: public String getConnectionFactoryName() {
073: return getAttribute(JMSAttribute.JMS_ADDRESS_JNDI_CONNECTIONFACTORY_NAME);
074: }
075:
076: public void setConnectionFactoryName(String val) {
077: setAttribute(JMSAddress.ATTR_JNDI_CONNECTION_FACTORY_NAME,
078: JMSAttribute.JMS_ADDRESS_JNDI_CONNECTIONFACTORY_NAME,
079: val);
080: }
081:
082: public String getInitialContextFactory() {
083: return getAttribute(JMSAttribute.JMS_ADDRESS_JNDI_INITIAL_CONTEXT_FACTORY);
084: }
085:
086: public void setInitialContextFactory(String val) {
087: setAttribute(JMSAddress.ATTR_JNDI_INITIAL_CONTEXT_FACTORY,
088: JMSAttribute.JMS_ADDRESS_JNDI_INITIAL_CONTEXT_FACTORY,
089: val);
090: }
091:
092: public String getProviderURL() {
093: return getAttribute(JMSAttribute.JMS_ADDRESS_JNDI_PROVIDER_URL);
094: }
095:
096: public void setProviderURL(String val) {
097: setAttribute(JMSAddress.ATTR_JNDI_PROVIDER_URL,
098: JMSAttribute.JMS_ADDRESS_JNDI_PROVIDER_URL, val);
099: }
100:
101: public String getSecurityPrincial() {
102: return getAttribute(JMSAttribute.JMS_ADDRESS_JNDI_SECURITY_PRINCIPAL);
103: }
104:
105: public void setSecurityPrincipal(String val) {
106: setAttribute(JMSAddress.ATTR_JNDI_SECURITY_PRINCIPAL,
107: JMSAttribute.JMS_ADDRESS_JNDI_SECURITY_PRINCIPAL, val);
108: }
109:
110: public String getSecurityCredentials() {
111: return getAttribute(JMSAttribute.JMS_ADDRESS_JNDI_SECURITY_CREDENTIALS);
112: }
113:
114: public void setSecurityCredentials(String val) {
115: setAttribute(JMSAddress.ATTR_JNDI_SECURITY_CRDENTIALS,
116: JMSAttribute.JMS_ADDRESS_JNDI_SECURITY_CREDENTIALS, val);
117: }
118: }
|