001    /**
002     * EmailDescription.java
003     * jCOLIBRI2 framework. 
004     * @author Juan A. Recio-García.
005     * GAIA - Group for Artificial Intelligence Applications
006     * http://gaia.fdi.ucm.es
007     * 01/08/2007
008     */
009    package jcolibri.test.test16;
010    
011    import jcolibri.cbrcore.Attribute;
012    import jcolibri.cbrcore.CaseComponent;
013    import jcolibri.extensions.textual.IE.representation.IEText;
014    
015    /**
016     * Email description.
017     * Contains the file name and its contents.
018     * @author Juan A. Recio-Garcia
019     * @version 1.0
020     *
021     */
022    public class EmailDescription implements CaseComponent
023    {
024        String id;
025        IEText content;
026        
027        /**
028         * Constructor
029         * @param id
030         * @param content
031         */
032        public EmailDescription(String id, IEText content)
033        {
034            super();
035            this.id = id;
036            this.content = content;
037        }
038        
039        public String toString()
040        {
041            return id+","+content;
042        }
043    
044        /**
045         * @return Returns the content.
046         */
047        public IEText getContent()
048        {
049            return content;
050        }
051    
052    
053        /**
054         * @param content The content to set.
055         */
056        public void setContent(IEText content)
057        {
058            this.content = content;
059        }
060    
061        /**
062         * @return Returns the id.
063         */
064        public String getId()
065        {
066            return id;
067        }
068    
069    
070        /**
071         * @param id The id to set.
072         */
073        public void setId(String id)
074        {
075            this.id = id;
076        }
077    
078        /* (non-Javadoc)
079         * @see jcolibri.cbrcore.CaseComponent#getIdAttribute()
080         */
081        public Attribute getIdAttribute()
082        {
083            return new Attribute("id", this.getClass());
084        }
085    
086        
087    }