001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    HTML,
072                    MEDIA,
073                    TEXT,
074                    XHTML,
075                    XML
076            }
077    
078            private String _mimeType;
079            private String _srcLink;
080            private String _text;
081            private Type _type = Type.HTML;
082    
083    }