WorkbookMetadata

Inheritance: java.lang.Object

public class WorkbookMetadata

Represents the meta data.

Example

The following example creates a WorkbookMetadata.

           MetadataOptions options = new MetadataOptions(MetadataType.DOCUMENT_PROPERTIES);
           WorkbookMetadata meta = new WorkbookMetadata("book1.xlsx", options);
           meta.getCustomDocumentProperties().add("test", "test");
           meta.save("book2.xlsx");

Constructors

ConstructorDescription
WorkbookMetadata(String fileName, MetadataOptions options)Create the meta data object.

Methods

MethodDescription
equals(Object arg0)
getBuiltInDocumentProperties()Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.
getClass()
getCustomDocumentProperties()Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.
getOptions()Gets the options of the metadata.
hashCode()
notify()
notifyAll()
save(String fileName)Save the modified metadata to the file.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

WorkbookMetadata(String fileName, MetadataOptions options)

public WorkbookMetadata(String fileName, MetadataOptions options)

Create the meta data object.

Parameters:

ParameterTypeDescription
fileNamejava.lang.String
optionsMetadataOptions

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBuiltInDocumentProperties()

public BuiltInDocumentPropertyCollection getBuiltInDocumentProperties()

Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.

Returns: BuiltInDocumentPropertyCollection

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCustomDocumentProperties()

public CustomDocumentPropertyCollection getCustomDocumentProperties()

Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.

Returns: CustomDocumentPropertyCollection

getOptions()

public MetadataOptions getOptions()

Gets the options of the metadata.

Returns: MetadataOptions

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save(String fileName)

public void save(String fileName)

Save the modified metadata to the file.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe file name.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int