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.bean.html5;
018
019import org.apache.juneau.marshall.*;
020
021/**
022 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/text-level-semantics.html#the-i-element">&lt;i&gt;</a>
023 * element.
024 *
025 * <p>
026 * The i element represents a span of text in an alternate voice or mood, or otherwise offset
027 * from the normal prose in a manner indicating a different quality of text, such as a taxonomic
028 * designation, a technical term, an idiomatic phrase from another language, a thought, or a
029 * ship name in Western texts. It is typically rendered in italic text and is used to mark up
030 * text that should be distinguished from the surrounding content.
031 *
032 * <h5 class='section'>Examples:</h5>
033 * <p class='bcode w800'>
034 *    <jk>import static</jk> org.apache.juneau.bean.html5.HtmlBuilder.*;
035 *
036 *    <jc>// Simple italic text</jc>
037 *    I <jv>simple</jv> = <jsm>i</jsm>(<js>"This is italic text"</js>);
038 *
039 *    <jc>// I with styling</jc>
040 *    I <jv>styled</jv> = <jsm>i</jsm>(<js>"Styled italic text"</js>)
041 *       .class_(<js>"emphasis"</js>);
042 *
043 *    <jc>// I with complex content</jc>
044 *    I <jv>complex</jv> = <jsm>i</jsm>(
045 *       <js>"The "</js>,
046 *       <jsm>strong</jsm>(<js>"HMS Victory"</js>),
047 *       <js>" was a famous ship."</js>
048 *    );
049 *
050 *    <jc>// I with ID</jc>
051 *    I <jv>withId</jv> = <jsm>i</jsm>(<js>"Text with ID"</js>)
052 *       .id(<js>"italic-text"</js>);
053 *
054 *    <jc>// I with styling</jc>
055 *    I <jv>styled2</jv> = <jsm>i</jsm>(<js>"Custom styled italic text"</js>)
056 *       .style(<js>"color: #666; font-style: italic;"</js>);
057 *
058 *    <jc>// I with multiple elements</jc>
059 *    I <jv>multiple</jv> = <jsm>i</jsm>(
060 *       <js>"The "</js>,
061 *       <jsm>i</jsm>(<js>"HMS Victory"</js>),
062 *       <js>" was a "</js>,
063 *       <jsm>i</jsm>(<js>"first-rate"</js>),
064 *       <js>" ship of the line."</js>
065 *    );
066 *
067 *    <jc>// I with links</jc>
068 *    I <jv>withLinks</jv> = <jsm>i</jsm>(
069 *       <js>"See "</js>,
070 *       <jsm>a</jsm>(<js>"/ships"</js>).children(<js>"ship database"</js>),
071 *       <js>" for more information."</js>
072 *    );
073 * </p>
074 *
075 * <p>
076 * The following convenience methods are provided for constructing instances of this bean:
077 * <ul class='javatree'>
078 *    <li class='jc'>{@link HtmlBuilder}
079 *    <ul class='javatree'>
080 *       <li class='jm'>{@link HtmlBuilder#i() i()}
081 *       <li class='jm'>{@link HtmlBuilder#i(Object...) i(Object...)}
082 *    </ul>
083 * </ul>
084 * </p>
085 *
086 * <h5 class='section'>See Also:</h5><ul>
087 *    <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauBeanHtml5">juneau-bean-html5</a>
088 * </ul>
089 */
090@Marshalled(typeName = "i")
091public class I extends HtmlElementMixed<I> {
092
093   /**
094    * Creates an empty {@link I} element.
095    */
096   public I() {}
097
098   /**
099    * Creates an {@link I} element with the specified child nodes.
100    *
101    * @param children The child nodes.
102    */
103   public I(Object...children) {
104      children(children);
105   }
106
107}