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