/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package org.apache.poi.openxml4j.opc.internal.unmarshallers;
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.openxml4j.opc.PackagePartName;
Context needed for the unmarshall process of a part. This class is immutable.
Author: Julien Chable Version: 1.0
/**
* Context needed for the unmarshall process of a part. This class is immutable.
*
* @author Julien Chable
* @version 1.0
*/
public final class UnmarshallContext {
private OPCPackage _package;
private PackagePartName partName;
private ZipArchiveEntry zipEntry;
Constructor.
Params: - targetPackage –
Container.
- partName –
Name of the part to unmarshall.
/**
* Constructor.
*
* @param targetPackage
* Container.
* @param partName
* Name of the part to unmarshall.
*/
public UnmarshallContext(OPCPackage targetPackage, PackagePartName partName) {
this._package = targetPackage;
this.partName = partName;
}
Returns: the container
/**
* @return the container
*/
OPCPackage getPackage() {
return _package;
}
Params: - container –
the container to set
/**
* @param container
* the container to set
*/
public void setPackage(OPCPackage container) {
this._package = container;
}
Returns: the partName
/**
* @return the partName
*/
PackagePartName getPartName() {
return partName;
}
Params: - partName –
the partName to set
/**
* @param partName
* the partName to set
*/
public void setPartName(PackagePartName partName) {
this.partName = partName;
}
Returns: the zipEntry
/**
* @return the zipEntry
*/
ZipArchiveEntry getZipEntry() {
return zipEntry;
}
Params: - zipEntry –
the zipEntry to set
/**
* @param zipEntry
* the zipEntry to set
*/
public void setZipEntry(ZipArchiveEntry zipEntry) {
this.zipEntry = zipEntry;
}
}