1 /**
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 package org.apache.tika.parser.microsoft;
18
19 /**
20 * Package protected class for the MS Powerpoint TextBox content
21 *
22 *
23 */
24 class TextBox {
25
26 /**
27 * Current id of a text box
28 */
29 protected transient final long currentID;
30
31 /**
32 * Content of text box
33 */
34 protected String content;
35
36 /**
37 * Instantiates the text box object
38 *
39 * @param textBoxId
40 * id of text box
41 */
42 public TextBox(final long textBoxId) {
43 this.currentID = textBoxId;
44 this.content = "";
45 }
46
47 /**
48 * Instantiates the text box object
49 *
50 * @param textBoxId
51 * id of text box
52 * @param content
53 * content of text box
54 */
55 public TextBox(final long textBoxId, final String content) {
56 this.currentID = textBoxId;
57 this.content = content;
58 }
59
60 /**
61 * Sets the content of the text box
62 *
63 * @param content
64 * content of text Box
65 */
66 public void setContent(final String content) {
67 this.content = content;
68 }
69
70 /**
71 * Returns the content of the text box
72 *
73 * @return content of text box
74 */
75 public String getContent() {
76 return this.content;
77 }
78
79 /**
80 * Returns the current text box id
81 *
82 * @return long
83 */
84 public long getCurrentId() {
85 return this.currentID;
86 }
87 }