001package com.plivo.api.xml;
002
003import javax.xml.bind.annotation.XmlAttribute;
004import javax.xml.bind.annotation.XmlRootElement;
005import javax.xml.bind.annotation.XmlValue;
006
007@XmlRootElement(name = "say-as")
008public class SayAs extends PlivoXml implements EmphasisNestable,
009                                               LangNestable,
010                                               PNestable,
011                                               ProsodyNestable,
012                                               SNestable,
013                                               SpeakNestable,
014                                               WNestable {
015
016  @XmlValue
017  private String content;
018
019  @XmlAttribute(name="interpret-as")
020  private String interpretAs;
021
022  @XmlAttribute
023  private String format;
024
025  public SayAs() {
026  }
027
028  public SayAs(String content) {
029    this.content = content;
030  }
031
032  public SayAs(String content, String interpretAs) {
033    this.content = content;
034    this.interpretAs = interpretAs;
035  }
036
037  public SayAs(String content, String interpretAs, String format) {
038    this.content = content;
039    this.interpretAs = interpretAs;
040    this.format = format;
041  }
042
043  public String getInterpretAs() {
044    return this.interpretAs;
045  }
046
047  public String getFormat() {
048    return this.format;
049  }
050}