001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.juneau.marshall.markdown;
018
019import org.apache.juneau.commons.*;
020
021/**
022 * Utility classes and methods for the {@link Markdown @Markdown} annotation.
023 *
024 */
025public class MarkdownAnnotation {
026
027   private MarkdownAnnotation() {}
028
029   @SuppressWarnings({
030      "java:S2160" // equals() inherited from AnnotationObject compares all annotation interface methods; subclass fields are accessed via those methods
031   })
032   private static class Object extends AnnotationObject implements Markdown {
033      Object() {
034         super(new AnnotationObject.Builder(Markdown.class));
035      }
036
037      @Override
038      public String[] description() { return new String[0]; }
039
040      @Override
041      public MarkdownFormat format() { return MarkdownFormat.DEFAULT; }
042
043      @Override
044      public String heading() { return ""; }
045
046      @Override
047      public boolean noTables() { return false; }
048
049      @Override
050      public boolean noHeaders() { return false; }
051
052      @Override
053      public boolean code() { return false; }
054
055      @Override
056      public String link() { return ""; }
057   }
058
059   /** Default value */
060   public static final Markdown DEFAULT = new Object();
061}