ApiViewItem.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.config.rs.server.model;

  21. public class ApiViewItem extends ApiItem {

  22.   @Override
  23.   public String toString() {
  24.     StringBuilder sb = new StringBuilder();
  25.     sb.append("class ApiViewItem {\n");
  26.     sb.append("    ").append(ApiViewItem.toIndentedString(super.toString())).append("\n");
  27.     sb.append("}");
  28.     return sb.toString();
  29.   }

  30.   /**
  31.    * Convert the given object to string with each line indented by 4 spaces
  32.    * (except the first line).
  33.    */
  34.   private static String toIndentedString(java.lang.Object o) {
  35.     if (o == null) {
  36.       return "null";
  37.     }
  38.     return o.toString().replace("\n", "\n    ");
  39.   }
  40. }