com.amazon.speech.speechlet.interfaces.display.element.RichText Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alexa-skills-kit Show documentation
Show all versions of alexa-skills-kit Show documentation
Contains classes used by the Alexa Skills Kit.
/*
Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the License.
*/
package com.amazon.speech.speechlet.interfaces.display.element;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
*
* This class represents a rich text field that can be embedded within a display template.
*
*
* Supported markup includes:
*
*
* Name
* Element
* Example Markup
* Output
*
*
* Line Break
* {@code
}
* {@code First line
* Second line}
*
* First line
* Second line
*
*
* Bold
* {@code }
* {@code This is a ladybird beetle}
* This is a ladybird beetle
*
*
* Italics
* {@code }
* {@code Scientific name Coccienellidae}
* Scientific name Coccienellidae
*
*
* Underline
* {@code }
* {@code Always feed your ladybird tasty aphids.}
* Always feed your ladybird tasty aphids.
*
*
* Font
* {@code }
*
* {@code Font size 1 }
* {@code Font size 2 }
* {@code Font size 3 }
* {@code Font size 4 }
* {@code Font size 5 }
* {@code Font size 6 }
* {@code Font size 7 }
*
*
* Font size 1
* Font size 2
*
*
* Font size 3
* Font size 4
* Font size 5
* Font size 6
*
*
* Font size 7
*
*
*
*
*
* Action
* {@code }
* {@code Learn the history of ladybirds.}
* Learn the history of ladybirds.
*
*
*/
@JsonTypeName("RichText")
public class RichText implements TextField {
private String richText;
@Override
public String getText() {
return richText;
}
/**
* Sets the rich text on this field.
*
* @param richText
* the rich text on this field
*/
public void setText(String richText) {
this.richText = richText;
}
}