001    // Copyright 2008 Waterken Inc. under the terms of the MIT X license
002    // found at http://www.opensource.org/licenses/mit-license.html
003    package org.ref_send.log;
004    
005    import org.ref_send.deserializer;
006    import org.ref_send.name;
007    
008    /**
009     * Logs a comment.
010     */
011    public class
012    Comment extends Event {
013        static private final long serialVersionUID = 1L;
014    
015        /**
016         * comment text
017         */
018        public final String text;
019        
020        /**
021         * Constructs an instance.
022         * @param anchor    {@link #anchor}
023         * @param timestamp {@link #timestamp}
024         * @param trace     {@link #trace}
025         * @param text      {@link #text}
026         */
027        public @deserializer
028        Comment(@name("anchor") final Anchor anchor,
029                @name("timestamp") final Long timestamp,
030                @name("trace") final Trace trace,
031                @name("text") final String text) {
032            super(anchor, timestamp, trace);
033            this.text = text;
034        }
035    }