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.http.annotation; 014 015import java.lang.annotation.*; 016 017/** 018 * A concrete implementation of the {@link HasQuery} annotation. 019 */ 020public class HasQueryAnnotation implements HasQuery { 021 022 private String name="", n="", value=""; 023 024 @Override /* Annotation */ 025 public Class<? extends Annotation> annotationType() { 026 return HasQuery.class; 027 } 028 029 @Override /* HasQuery */ 030 public String name() { 031 return name; 032 } 033 034 /** 035 * Sets the <c>name</c> property on this annotation. 036 * 037 * @param value The new value for this property. 038 * @return This object (for method chaining). 039 */ 040 public HasQueryAnnotation name(String value) { 041 this.name = value; 042 return this; 043 } 044 045 @Override /* HasQuery */ 046 public String n() { 047 return n; 048 } 049 050 /** 051 * Sets the <c>n</c> property on this annotation. 052 * 053 * @param value The new value for this property. 054 * @return This object (for method chaining). 055 */ 056 public HasQueryAnnotation n(String value) { 057 this.n = value; 058 return this; 059 } 060 061 @Override /* HasQuery */ 062 public String value() { 063 return value; 064 } 065 066 /** 067 * Sets the <c>value</c> property on this annotation. 068 * 069 * @param value The new value for this property. 070 * @return This object (for method chaining). 071 */ 072 public HasQueryAnnotation value(String value) { 073 this.value = value; 074 return this; 075 } 076}