org.apache.openejb.jee.MessageDestination Maven / Gradle / Ivy
The newest version!
/**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.jee;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;
/**
* The message-destinationType specifies a message
* destination. The logical destination described by this
* element is mapped to a physical destination by the Deployer.
*
* The message destination element contains:
*
* - an optional description
* - an optional display-name
* - an optional icon
* - a message destination name which must be unique
* among message destination names within the same
* Deployment File.
* - an optional mapped name
*
* Example:
*
*
* CorporateStocks
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "message-destinationType", propOrder = {
"description",
"displayName",
"icon",
"messageDestinationName",
"mappedName"
})
public class MessageDestination implements Keyable {
@XmlElement(required = true)
protected List description;
@XmlElement(name = "display-name", required = true)
protected List displayName;
@XmlElement(required = true)
protected List icon;
@XmlElement(name = "message-destination-name", required = true)
protected String messageDestinationName;
@XmlElement(name = "mapped-name")
protected String mappedName;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
protected String id;
public List getDescription() {
if (description == null) {
description = new ArrayList();
}
return this.description;
}
public List getDisplayName() {
if (displayName == null) {
displayName = new ArrayList();
}
return this.displayName;
}
public List getIcon() {
if (icon == null) {
icon = new ArrayList();
}
return this.icon;
}
public String getMessageDestinationName() {
return messageDestinationName;
}
public void setMessageDestinationName(String value) {
this.messageDestinationName = value;
}
public String getKey() {
return getMessageDestinationName();
}
public String getMappedName() {
return mappedName;
}
public void setMappedName(String value) {
this.mappedName = value;
}
public String getId() {
return id;
}
public void setId(String value) {
this.id = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy