1 package org.apache.archiva.rest.api.model.v2;/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing,
12 * software distributed under the License is distributed on an
13 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 * KIND, either express or implied. See the License for the
15 * specific language governing permissions and limitations
19 import io.swagger.v3.oas.annotations.media.Schema;
21 import javax.xml.bind.annotation.XmlRootElement;
22 import java.io.Serializable;
25 * @author Martin Stockhammer <martin_s@apache.org>
27 @XmlRootElement(name="beanInformation")
28 public class BeanInformation implements Serializable
30 private static final long serialVersionUID = -432385743277355987L;
33 String descriptionKey;
34 String defaultDescription;
37 @Schema(description = "The identifier")
38 public String getId( )
43 public void setId( String id )
48 @Schema(description = "The display name")
49 public String getDisplayName( )
54 public void setDisplayName( String displayName )
56 this.displayName = displayName;
59 @Schema(description = "The translation key for the description")
60 public String getDescriptionKey( )
62 return descriptionKey;
65 public void setDescriptionKey( String descriptionKey )
67 this.descriptionKey = descriptionKey;
70 @Schema(description = "The description translated in the default language")
71 public String getDefaultDescription( )
73 return defaultDescription;
76 public void setDefaultDescription( String defaultDescription )
78 this.defaultDescription = defaultDescription;
81 @Schema(description = "True, if this bean cannot be removed")
82 public boolean isReadonly( )
87 public void setReadonly( boolean readonly )
89 this.readonly = readonly;