~ubuntu-branches/ubuntu/utopic/eclipse-eclox/utopic

« back to all changes in this revision

Viewing changes to eclox.core/src/eclox/core/doxyfiles/RawText.java

  • Committer: Package Import Robot
  • Author(s): Graham Inggs
  • Date: 2013-07-07 20:33:10 UTC
  • Revision ID: package-import@ubuntu.com-20130707203310-a44yw80gqtc2s9ob
Tags: upstream-0.10.0
ImportĀ upstreamĀ versionĀ 0.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (C) 2003-2004, 2013, Guillaume Brocker
 
3
 * 
 
4
 * All rights reserved. This program and the accompanying materials
 
5
 * are made available under the terms of the Eclipse Public License v1.0
 
6
 * which accompanies this distribution, and is available at
 
7
 * http://www.eclipse.org/legal/epl-v10.html
 
8
 *
 
9
 * Contributors:
 
10
 *     Guillaume Brocker - Initial API and implementation
 
11
 *
 
12
 ******************************************************************************/ 
 
13
 
 
14
package eclox.core.doxyfiles;
 
15
 
 
16
import eclox.core.doxyfiles.Chunk;
 
17
 
 
18
 
 
19
 
 
20
/**
 
21
 * Implements a raw text chunk.
 
22
 * 
 
23
 * @author willy
 
24
 */
 
25
public class RawText extends Chunk {
 
26
 
 
27
        /**
 
28
         * a string containing the raw text piece
 
29
         */
 
30
        private String content = new String();
 
31
        
 
32
        /**
 
33
         * Appends a new piece of text to the raw text chunk.
 
34
         * 
 
35
         * @param       text    a string containing a piece of text to append
 
36
         */
 
37
        public void append( String text ) {
 
38
                content += text;
 
39
        }
 
40
        
 
41
        /**
 
42
         * Retrieves the raw text content as a string.
 
43
         * 
 
44
         * @return      a string containing the raw text content
 
45
         */
 
46
        public String toString() {
 
47
                return new String( content );
 
48
        }
 
49
        
 
50
}