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 java.util.Collection;
023: import org.netbeans.modules.xml.xam.dom.Attribute;
024:
025: import org.netbeans.modules.wsdlextensions.jms.JMSAddress;
026: import org.netbeans.modules.wsdlextensions.jms.JMSMessage;
027: import org.netbeans.modules.wsdlextensions.jms.JMSOperation;
028: import org.netbeans.modules.wsdlextensions.jms.JMSOption;
029: import org.netbeans.modules.wsdlextensions.jms.JMSMapMessagePart;
030: import org.netbeans.modules.wsdlextensions.jms.JMSProperty;
031: import org.netbeans.modules.wsdlextensions.jms.JMSJNDIEnvEntry;
032:
033: /**
034: *
035: * JMSAttribute
036: */
037: public enum JMSAttribute implements Attribute {
038: JMS_ADDRESS_CONNECTION_URL(JMSAddress.ATTR_CONNECTION_URL), JMS_ADDRESS_USERNAME(
039: JMSAddress.ATTR_USERNAME), JMS_ADDRESS_PASSWORD(
040: JMSAddress.ATTR_PASSWORD), JMS_ADDRESS_JNDI_CONNECTIONFACTORY_NAME(
041: JMSAddress.ATTR_JNDI_CONNECTION_FACTORY_NAME), JMS_ADDRESS_JNDI_INITIAL_CONTEXT_FACTORY(
042: JMSAddress.ATTR_JNDI_INITIAL_CONTEXT_FACTORY), JMS_ADDRESS_JNDI_PROVIDER_URL(
043: JMSAddress.ATTR_JNDI_PROVIDER_URL), JMS_ADDRESS_JNDI_SECURITY_PRINCIPAL(
044: JMSAddress.ATTR_JNDI_SECURITY_PRINCIPAL), JMS_ADDRESS_JNDI_SECURITY_CREDENTIALS(
045: JMSAddress.ATTR_JNDI_SECURITY_CRDENTIALS),
046:
047: JMS_OPERATION_DESTINATION(JMSOperation.ATTR_DESTINATION), JMS_OPERATION_DESTINATION_TYPE(
048: JMSOperation.ATTR_DESTINATION_TYPE), JMS_OPERATION_TRANSACTION(
049: JMSOperation.ATTR_TRANSACTION), JMS_OPERATION_TIME_TO_LIVE(
050: JMSOperation.ATTR_TIME_TO_LIVE), JMS_OPERATION_DELIVERY_MODE(
051: JMSOperation.ATTR_DELIVERY_MODE), JMS_OPERATION_PRIORITY(
052: JMSOperation.ATTR_PRIORITY), JMS_OPERATION_DISABLE_MESSAGE_ID(
053: JMSOperation.ATTR_DISABLE_MESSAGE_ID), JMS_OPERATION_DISABLE_MESSAGE_TIMESTAMP(
054: JMSOperation.ATTR_DISABLE_MESSAGE_TIMESTAMP), JMS_OPERATION_TIMEOUT(
055: JMSOperation.ATTR_TIMEOUT), JMS_OPERATION_CLIENT_ID(
056: JMSOperation.ATTR_CLIENT_ID), JMS_OPERATION_MESSAGE_SELECTOR(
057: JMSOperation.ATTR_MESSAGE_SELECTOR), JMS_OPERATION_SUBSCRIPTION_DURABILITY(
058: JMSOperation.ATTR_SUBSCRIPTION_DURABILITY), JMS_OPERATION_SUBSCRIPTION_NAME(
059: JMSOperation.ATTR_SUBSCRIPTION_NAME), JMS_OPERATION_MAX_CONCURRENT_CONSUMERS(
060: JMSOperation.ATTR_MAX_CONCURRENT_CONSUMERS), JMS_OPERATION_CONCURRENCY_MODE(
061: JMSOperation.ATTR_CONCURRENCY_MODE), JMS_OPERATION_BATCH_SIZE(
062: JMSOperation.ATTR_BATCH_SZIE), JMS_OPERATION_REDELIVERY_HANDLING(
063: JMSOperation.ATTR_REDELIVERY_HANDLING), JMS_OPERATION_OPTIONS(
064: JMSOperation.ELEMENT_OPTIONS),
065:
066: JMS_MESSAGE_MESSAGE_TYPE(JMSMessage.ATTR_MESSAGE_TYPE), JMS_MESSAGE_TEXTPART(
067: JMSMessage.ATTR_TEXTPART), JMS_MESSAGE_CORRELATION_ID_PART(
068: JMSMessage.ATTR_MESSAGE_ID_PART), JMS_MESSAGE_DELIVERY_MODE_PART(
069: JMSMessage.ATTR_DELIVERY_MODE_PART), JMS_MESSAGE_PRIORITY_PART(
070: JMSMessage.ATTR_PRIORITY_PART), JMS_MESSAGE_TYPE_PART(
071: JMSMessage.ATTR_TYPE_PART), JMS_MESSAGE_MESSAGE_ID_PART(
072: JMSMessage.ATTR_MESSAGE_ID_PART), JMS_MESSAGE_REDELIVERED_PART(
073: JMSMessage.ATTR_REDELIVERED_PART), JMS_MESSAGE_TIMESTAMP_PART(
074: JMSMessage.ATTR_TIMESTAMP_PART), JMS_MESSAGE_USE(
075: JMSMessage.ATTR_USE), JMS_MESSAGE_ENCODING_STYLE(
076: JMSMessage.ATTR_ENCODING_STYLE),
077:
078: JMS_OPTION_NAME(JMSOption.ATTR_NAME), JMS_OPTION_VALUE(
079: JMSOption.ATTR_VALUE),
080:
081: JMS_JNDIENVENTRY_NAME(JMSJNDIEnvEntry.ATTR_NAME), JMS_JNDIENVENTRY_VALUE(
082: JMSJNDIEnvEntry.ATTR_VALUE),
083:
084: JMS_MAPPART_NAME(JMSMapMessagePart.ATTR_NAME), JMS_MAPPART_TYPE(
085: JMSMapMessagePart.ATTR_TYPE), JMS_MAPPART_PART(
086: JMSMapMessagePart.ATTR_PART),
087:
088: JMS_PROPERTY_NAME(JMSProperty.ATTR_NAME), JMS_PROPERTY_TYPE(
089: JMSProperty.ATTR_TYPE), JMS_PROPERTY_PART(
090: JMSProperty.ATTR_PART);
091:
092: private String name;
093:
094: public JMSAttribute getJMS_ADDRESS_CONNECTION_URL() {
095: return JMS_ADDRESS_CONNECTION_URL;
096: }
097:
098: private Class type;
099: private Class subtype;
100:
101: JMSAttribute(String name) {
102: this (name, String.class);
103: }
104:
105: JMSAttribute(String name, Class type) {
106: this (name, type, null);
107: }
108:
109: JMSAttribute(String name, Class type, Class subtype) {
110: this .name = name;
111: this .type = type;
112: this .subtype = subtype;
113: }
114:
115: public String toString() {
116: return name;
117: }
118:
119: public Class getType() {
120: return type;
121: }
122:
123: public String getName() {
124: return name;
125: }
126:
127: public Class getMemberType() {
128: return subtype;
129: }
130: }
|