001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.rest.labels; 014 015import org.apache.juneau.annotation.*; 016 017/** 018 * @deprecated No replacement. 019 */ 020@Deprecated 021@Bean(properties="name,description") 022public class NameDescription { 023 024 private Object name; 025 private Object description; 026 027 /** No-arg constructor. Used for JUnit testing of OPTIONS pages. */ 028 public NameDescription() {} 029 030 /** 031 * Constructor. 032 * 033 * @param name A name. 034 * @param description A description. 035 */ 036 public NameDescription(Object name, Object description) { 037 this.name = name; 038 this.description = description; 039 } 040 041 /** 042 * Returns the name field on this label. 043 * 044 * @return The name. 045 */ 046 public Object getName() { 047 return name; 048 } 049 050 /** 051 * Sets the name field on this label to a new value. 052 * 053 * @param name The new name. 054 * @return This object (for method chaining). 055 */ 056 @BeanProperty 057 public NameDescription name(Object name) { 058 this.name = name; 059 return this; 060 } 061 062 /** 063 * Returns the description field on this label. 064 * 065 * @return The description. 066 */ 067 public Object getDescription() { 068 return description; 069 } 070 071 /** 072 * Sets the description field on this label to a new value. 073 * 074 * @param description The new description. 075 * @return This object (for method chaining). 076 */ 077 @BeanProperty 078 public NameDescription description(Object description) { 079 this.description = description; 080 return this; 081 } 082}