001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.atom;
016    
017    /**
018     * @author Igor Spasic
019     */
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    }