writer2latex.xmerge

Class EmbeddedObject

public abstract class EmbeddedObject extends Object

The Contents of this file are made available subject to the terms of - GNU Lesser General Public License Version 2.1 Sun Microsystems Inc., October, 2000 GNU Lesser General Public License Version 2.1 ============================================= Copyright 2000 by Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303, USA This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1, as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA The Initial Developer of the Original Code is: Sun Microsystems, Inc. Copyright: 2000 by Sun Microsystems, Inc. All Rights Reserved. Contributor(s): _______________________________________
Field Summary
protected booleanhasChanged
Flag indicating if this document has changed since reading or is new.
protected StringobjName
protected StringobjType
protected OfficeZipzipFile
Representation of the file from which this object was read.
Constructor Summary
EmbeddedObject(String name, String type)
Constructor for an embedded object stored using an XML representation.
Method Summary
StringgetName()
Retrieves the name of the embedded object represented by an instance of this class.
StringgetType()
Retrieves the type of the embedded object represented by an instance of this class.

Field Detail

hasChanged

protected boolean hasChanged
Flag indicating if this document has changed since reading or is new.

objName

protected String objName

objType

protected String objType

zipFile

protected OfficeZip zipFile
Representation of the file from which this object was read.

Constructor Detail

EmbeddedObject

public EmbeddedObject(String name, String type)
Constructor for an embedded object stored using an XML representation.

Parameters: name The name of the object. type The mime-type of the object. See the class summary.

Method Detail

getName

public final String getName()
Retrieves the name of the embedded object represented by an instance of this class. N.B.The name referes to the name as found in the META-INF/manifest.xml file.

Returns: The name of the object.

getType

public final String getType()
Retrieves the type of the embedded object represented by an instance of this class. The META-INF/manifest.xml file currently represents the type of an object using MIME types.