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.XmlID;
023import javax.xml.bind.annotation.XmlType;
024
025import org.apache.camel.spi.Metadata;
026
027/**
028 * The unique identifier for a bean. The scope of the identifier is the
029 * enclosing bean factory.
030 * <p>
031 * The following schema fragment specifies the expected content contained within
032 * this class.
033 * 
034 * <pre>
035 * &lt;complexType name="identifiedType">
036 *   &lt;complexContent>
037 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038 *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
039 *     &lt;/restriction>
040 *   &lt;/complexContent>
041 * &lt;/complexType>
042 * </pre>
043 */
044@XmlType(name = "identifiedType")
045@XmlAccessorType(XmlAccessType.FIELD)
046public abstract class IdentifiedType {
047    @XmlAttribute
048    @XmlID
049    @Metadata(description = "The id of this node")
050    private String id;
051
052    /**
053     * Gets the value of the id property.
054     */
055    public String getId() {
056        return id;
057    }
058
059    /**
060     * Sets the value of the id property.
061     */
062    public void setId(String value) {
063        this.id = value;
064    }
065}