| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
|---|
| 3 | *
|
|---|
| 4 | * Copyright 2008 jOpenDocument, by ILM Informatique. All rights reserved.
|
|---|
| 5 | *
|
|---|
| 6 | * The contents of this file are subject to the terms of the GNU
|
|---|
| 7 | * General Public License Version 3 only ("GPL").
|
|---|
| 8 | * You may not use this file except in compliance with the License.
|
|---|
| 9 | * You can obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.html
|
|---|
| 10 | * See the License for the specific language governing permissions and limitations under the License.
|
|---|
| 11 | *
|
|---|
| 12 | * When distributing the software, include this License Header Notice in each file.
|
|---|
| 13 | *
|
|---|
| 14 | */
|
|---|
| 15 |
|
|---|
| 16 | package org.jopendocument.model;
|
|---|
| 17 |
|
|---|
| 18 | import org.jopendocument.model.office.OfficeBody;
|
|---|
| 19 |
|
|---|
| 20 | public class OpenDocument {
|
|---|
| 21 |
|
|---|
| 22 | private OfficeBody body;
|
|---|
| 23 |
|
|---|
| 24 | // split
|
|---|
| 25 |
|
|---|
| 26 | /**
|
|---|
| 27 | * Creates an empty document You may use a loadFrom method on it
|
|---|
| 28 | */
|
|---|
| 29 | public OpenDocument() {
|
|---|
| 30 |
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | public OfficeBody getBody() {
|
|---|
| 34 | return this.body;
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | public void init(final OfficeBody aBody) {
|
|---|
| 38 | if (aBody == null) {
|
|---|
| 39 | throw new IllegalArgumentException("OfficeBody cannot be null");
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | this.body = aBody;
|
|---|
| 43 | }
|
|---|
| 44 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.