| Revision 895,
1.1 KB
checked in by jharrop, 3 years ago
(diff) |
|
Parts which aren't JAXB XML parts now extend XmlPart?, which uses JAXP instead of dom4j, the use of which is deprecated.
CustomXmlDataStorageImpl? extends XmlPart?, rather than duplicating that code.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * Copyright 2007-2008, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | You may obtain a copy of the License at |
|---|
| 10 | |
|---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 | |
|---|
| 13 | Unless required by applicable law or agreed to in writing, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | package org.docx4j.openpackaging.parts; |
|---|
| 22 | |
|---|
| 23 | import org.docx4j.openpackaging.exceptions.Docx4JException; |
|---|
| 24 | import org.docx4j.openpackaging.exceptions.InvalidFormatException; |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | /** Part to use if no specialised Part exists */ |
|---|
| 28 | public final class DefaultXmlPart extends XmlPart { |
|---|
| 29 | |
|---|
| 30 | public DefaultXmlPart(PartName partName) throws InvalidFormatException { |
|---|
| 31 | super(partName); |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | @Override |
|---|
| 35 | public org.w3c.dom.Document getDocument() throws Docx4JException { |
|---|
| 36 | // Used when saving to JCR |
|---|
| 37 | return doc; |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.