Package writer2latex.office
Class EmbeddedObject
- java.lang.Object
-
- writer2latex.office.EmbeddedObject
-
- Direct Known Subclasses:
EmbeddedBinaryObject
,EmbeddedXMLObject
public abstract class EmbeddedObject extends java.lang.Object
This class represents and embedded object within an ODF package document
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EmbeddedObject(java.lang.String sName, java.lang.String sType, OfficeDocument doc)
Construct a new embedded object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose thisEmbeddedObject
.java.lang.String
getName()
Get the name of the embedded object represented by this instance.java.lang.String
getType()
Get the MIME type of the embedded object represented by this instance.
-
-
-
Constructor Detail
-
EmbeddedObject
protected EmbeddedObject(java.lang.String sName, java.lang.String sType, OfficeDocument doc)
Construct a new embedded object- Parameters:
sName
- The name of the object.sType
- The MIME-type of the object.doc
- The document to which the object belongs.
-
-
Method Detail
-
getName
public final java.lang.String getName()
Get the name of the embedded object represented by this instance. The name refers to the manifest.xml file- Returns:
- The name of the object.
-
getType
public final java.lang.String getType()
Get the MIME type of the embedded object represented by this instance. The MIME type refers to the manifest.xml file
-
dispose
public void dispose()
Dispose thisEmbeddedObject
. This implies that the content is nullified and the object is removed from the collection in theOfficeDocument
.
-
-