xref: /OpenGrok/opengrok-indexer/src/main/java/org/opengrok/indexer/web/PathDescription.java (revision a11b766ce6b75805c18251125b4aa32863325aa4)
1*a11b766cSVladimir Kotal /*
2*a11b766cSVladimir Kotal  * CDDL HEADER START
3*a11b766cSVladimir Kotal  *
4*a11b766cSVladimir Kotal  * The contents of this file are subject to the terms of the
5*a11b766cSVladimir Kotal  * Common Development and Distribution License (the "License").
6*a11b766cSVladimir Kotal  * You may not use this file except in compliance with the License.
7*a11b766cSVladimir Kotal  *
8*a11b766cSVladimir Kotal  * See LICENSE.txt included in this distribution for the specific
9*a11b766cSVladimir Kotal  * language governing permissions and limitations under the License.
10*a11b766cSVladimir Kotal  *
11*a11b766cSVladimir Kotal  * When distributing Covered Code, include this CDDL HEADER in each
12*a11b766cSVladimir Kotal  * file and include the License file at LICENSE.txt.
13*a11b766cSVladimir Kotal  * If applicable, add the following below this CDDL HEADER, with the
14*a11b766cSVladimir Kotal  * fields enclosed by brackets "[]" replaced with your own identifying
15*a11b766cSVladimir Kotal  * information: Portions Copyright [yyyy] [name of copyright owner]
16*a11b766cSVladimir Kotal  *
17*a11b766cSVladimir Kotal  * CDDL HEADER END
18*a11b766cSVladimir Kotal  */
19*a11b766cSVladimir Kotal 
20*a11b766cSVladimir Kotal /*
21*a11b766cSVladimir Kotal  * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
22*a11b766cSVladimir Kotal  */
23*a11b766cSVladimir Kotal package org.opengrok.indexer.web;
24*a11b766cSVladimir Kotal 
25*a11b766cSVladimir Kotal public class PathDescription {
26*a11b766cSVladimir Kotal     private String path;
27*a11b766cSVladimir Kotal     private String description;
28*a11b766cSVladimir Kotal 
PathDescription()29*a11b766cSVladimir Kotal     PathDescription() { // needed for deserialization
30*a11b766cSVladimir Kotal     }
31*a11b766cSVladimir Kotal 
PathDescription(String path, String description)32*a11b766cSVladimir Kotal     public PathDescription(String path, String description) {
33*a11b766cSVladimir Kotal         this.path = path;
34*a11b766cSVladimir Kotal         this.description = description;
35*a11b766cSVladimir Kotal     }
36*a11b766cSVladimir Kotal 
getDescription()37*a11b766cSVladimir Kotal     public String getDescription() {
38*a11b766cSVladimir Kotal         return description;
39*a11b766cSVladimir Kotal     }
40*a11b766cSVladimir Kotal 
setDescription(String description)41*a11b766cSVladimir Kotal     public void setDescription(String description) {
42*a11b766cSVladimir Kotal         this.description = description;
43*a11b766cSVladimir Kotal     }
44*a11b766cSVladimir Kotal 
getPath()45*a11b766cSVladimir Kotal     public String getPath() {
46*a11b766cSVladimir Kotal         return path;
47*a11b766cSVladimir Kotal     }
48*a11b766cSVladimir Kotal 
setPath(String path)49*a11b766cSVladimir Kotal     public void setPath(String path) {
50*a11b766cSVladimir Kotal         this.path = path;
51*a11b766cSVladimir Kotal     }
52*a11b766cSVladimir Kotal }
53