001/**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.camel.model;
018
019import javax.xml.bind.annotation.XmlAccessType;
020import javax.xml.bind.annotation.XmlAccessorType;
021import javax.xml.bind.annotation.XmlAttribute;
022import javax.xml.bind.annotation.XmlRootElement;
023import javax.xml.bind.annotation.XmlValue;
024
025import org.apache.camel.spi.Metadata;
026
027/**
028 * To provide comments about the node.
029 *
030 * @version 
031 */
032@Metadata(label = "configuration")
033@XmlRootElement(name = "description")
034@XmlAccessorType(XmlAccessType.FIELD)
035public class DescriptionDefinition {
036    @XmlAttribute
037    private String lang;
038    @XmlAttribute
039    @Deprecated
040    private Double layoutX;
041    @XmlAttribute
042    @Deprecated
043    private Double layoutY;
044    @XmlAttribute
045    @Deprecated
046    private Double layoutWidth;
047    @XmlAttribute
048    @Deprecated
049    private Double layoutHeight;
050    @XmlValue
051    private String text;
052
053    public String getLang() {
054        return lang;
055    }
056
057    /**
058     * Language, such as en for english.
059     */
060    public void setLang(String lang) {
061        this.lang = lang;
062    }
063
064    public String getText() {
065        return text;
066    }
067
068    /**
069     * The description as human readable text
070     */
071    public void setText(String text) {
072        this.text = text;
073    }
074
075    public Double getLayoutHeight() {
076        return layoutHeight;
077    }
078
079    /**
080     * Layout height
081     */
082    @Deprecated
083    public void setLayoutHeight(Double layoutHeight) {
084        this.layoutHeight = layoutHeight;
085    }
086
087    public Double getLayoutWidth() {
088        return layoutWidth;
089    }
090
091    /**
092     * Layout width
093     */
094    @Deprecated
095    public void setLayoutWidth(Double layoutWidth) {
096        this.layoutWidth = layoutWidth;
097    }
098
099    public Double getLayoutX() {
100        return layoutX;
101    }
102
103    /**
104     * Layout position X
105     */
106    @Deprecated
107    public void setLayoutX(Double layoutX) {
108        this.layoutX = layoutX;
109    }
110
111    public Double getLayoutY() {
112        return layoutY;
113    }
114
115    /**
116     * Layout position Y
117     */
118    @Deprecated
119    public void setLayoutY(Double layoutY) {
120        this.layoutY = layoutY;
121    }
122}