001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.maven.doxia.module.fml;
020
021import javax.swing.text.html.HTML.Tag;
022
023import org.apache.maven.doxia.markup.HtmlMarkup;
024
025/**
026 * List of <code>FML</code> markups.
027 * <br>
028 * FML uses several  {@link javax.swing.text.html.HTML.Tag} and {@link javax.swing.text.html.HTML.Attribute}
029 * as markups and custom tags.
030 *
031 * @author ltheussl
032 * @since 1.0
033 */
034@SuppressWarnings("checkstyle:interfaceistype")
035public interface FmlMarkup extends HtmlMarkup {
036    /** FML namespace: "http://maven.apache.org/FML/1.0.1" */
037    String FML_NAMESPACE = "http://maven.apache.org/FML/1.0.1";
038
039    /** FML system id: "https://maven.apache.org/xsd/fml-1.0.1.xsd" */
040    String FML_SYSTEM_ID = "https://maven.apache.org/xsd/fml-1.0.1.xsd";
041
042    // ----------------------------------------------------------------------
043    // Specific Fml tags
044    // ----------------------------------------------------------------------
045
046    /** Fml tag for <code>faqs</code> */
047    Tag FAQS_TAG = new Tag() {
048        /** {@inheritDoc} */
049        public String toString() {
050            return "faqs";
051        }
052    };
053
054    /** Fml tag for <code>part</code> */
055    Tag PART_TAG = new Tag() {
056        /** {@inheritDoc} */
057        public String toString() {
058            return "part";
059        }
060    };
061
062    /** Fml tag for <code>faq</code> */
063    Tag FAQ_TAG = new Tag() {
064        /** {@inheritDoc} */
065        public String toString() {
066            return "faq";
067        }
068    };
069
070    /** Fml tag for <code>question</code> */
071    Tag QUESTION_TAG = new Tag() {
072        /** {@inheritDoc} */
073        public String toString() {
074            return "question";
075        }
076    };
077
078    /** Fml tag for <code>answer</code> */
079    Tag ANSWER_TAG = new Tag() {
080        /** {@inheritDoc} */
081        public String toString() {
082            return "answer";
083        }
084    };
085
086    /** Fml tag for <code>source</code> */
087    Tag SOURCE_TAG = new Tag() {
088        /** {@inheritDoc} */
089        public String toString() {
090            return "source";
091        }
092    };
093
094    /**
095     * Fml tag for <code>macro</code>
096     * @since 1.1.1
097     */
098    Tag MACRO_TAG = new Tag() {
099        /** {@inheritDoc} */
100        public String toString() {
101            return "macro";
102        }
103    };
104}