add acknowledgment as required by NekoHTML license
[tika.git] / src / main / java / org / apache / tika / parser / mspowerpoint / TextBox.java
blob35ceeb668ed7a552bf619c5b16d0dbf2668d5750
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.apache.tika.parser.mspowerpoint;
19 /**
20 * Package protected class for the MS Powerpoint TextBox content
24 class TextBox {
26 /**
27 * Current id of a text box
29 protected transient final long currentID;
31 /**
32 * Content of text box
34 protected String content;
36 /**
37 * Instantiates the text box object
39 * @param textBoxId
40 * id of text box
42 public TextBox(final long textBoxId) {
43 this.currentID = textBoxId;
44 this.content = "";
47 /**
48 * Instantiates the text box object
50 * @param textBoxId
51 * id of text box
52 * @param content
53 * content of text box
55 public TextBox(final long textBoxId, final String content) {
56 this.currentID = textBoxId;
57 this.content = content;
60 /**
61 * Sets the content of the text box
63 * @param content
64 * content of text Box
66 public void setContent(final String content) {
67 this.content = content;
70 /**
71 * Returns the content of the text box
73 * @return content of text box
75 public String getContent() {
76 return this.content;
79 /**
80 * Returns the current text box id
82 * @return long
84 public long getCurrentId() {
85 return this.currentID;