001
014
015 package com.liferay.portal.kernel.atom;
016
017
020 public class AtomEntryContent {
021
022 public AtomEntryContent() {
023 }
024
025 public AtomEntryContent(String text) {
026 _text = text;
027 }
028
029 public AtomEntryContent(String text, Type type) {
030 _text = text;
031 _type = type;
032 }
033
034 public AtomEntryContent(Type type) {
035 _type = type;
036 }
037
038 public String getMimeType() {
039 return _mimeType;
040 }
041
042 public String getSrcLink() {
043 return _srcLink;
044 }
045
046 public String getText() {
047 return _text;
048 }
049
050 public Type getType() {
051 return _type;
052 }
053
054 public void setMimeType(String mimeType) {
055 _mimeType = mimeType;
056 }
057
058 public void setSrcLink(String srcLink) {
059 _srcLink = srcLink;
060 }
061
062 public void setText(String text) {
063 _text = text;
064 }
065
066 public void setType(Type type) {
067 _type = type;
068 }
069
070 public enum Type {
071
072 HTML, MEDIA, TEXT, XHTML, XML
073
074 }
075
076 private String _mimeType;
077 private String _srcLink;
078 private String _text;
079 private Type _type = Type.HTML;
080
081 }