com.aspose.slides
Class DocumentProperties

java.lang.Object
  extended by com.aspose.slides.DocumentProperties

public class DocumentProperties
extends java.lang.Object

Represents document properties of a presentation.


Constructor Summary
DocumentProperties(com.aspose.slides.oleps.PropertySetStream docProps, com.aspose.slides.oleps.PropertySetStream sumProps)
           
 
Method Summary
 boolean contains(java.lang.String name)
          Determines whether the collection contains a custom property with the specified name.
 java.lang.Object get(java.lang.String name)
          Returns the property associated with a specific name.
 java.lang.String getAuthor()
          Returns the author property.
 java.lang.String getCategory()
          Returns the category property.
 java.lang.String getComments()
          Returns the comments property.
 java.lang.String getCompany()
          Returns the company name where presentation was created.
 java.util.Date getCreatedTime()
          Returns the time when presentation was created.
 java.util.Date getCreateTime()
          Deprecated. Use getCreatedTime() instead.
 long getEditTime()
          Deprecated. Use getTotalEditingTime() instead.
 java.lang.String getKeywords()
          Returns the keywords property.
 java.lang.String getLastAuthor()
          Deprecated. Use getLastSavedBy() instead.
 java.util.Date getLastPrinted()
          Returns the time when presentation was printed last time.
 java.util.Date getLastPrintTime()
          Deprecated. Use getLastPrinted() instead.
 java.lang.String getLastSavedBy()
          Returns the last author property.
 java.util.Date getLastSavedTime()
          Returns the last time when presentation was saved.
 java.util.Date getLastSaveTime()
          Deprecated. Use getLastSavedTime() instead.
 java.lang.String getManager()
          Returns the manager property.
 java.lang.String getNameOfApplication()
          Returns the name of the application.
 java.lang.String getPropertyName(int index)
          Gets a custom property name at the specified index of the collection.
 int getRevisionNumber()
          Returns the presentation revision number.
 java.lang.String getSubject()
          Returns the subject property.
 java.lang.String getTemplate()
          Returns the name of a template.
 java.lang.String getTitle()
          Returns the title property.
 long getTotalEditingTime()
          Returns the edit time of a presentation.
 void remove(java.lang.String name)
          Removes a custom property with the specified name from the collection.
 void set(java.lang.String name, java.lang.Object value)
          Sets the property and associate it with a name.
 void setAuthor(java.lang.String value)
          Sets the author property.
 void setCategory(java.lang.String value)
          Sets the category property.
 void setComments(java.lang.String value)
          Sets the comments property.
 void setCompany(java.lang.String value)
          Sets the company name where presentation was created.
 void setCreatedTime(java.util.Date value)
          Sets the time when presentation was created.
 void setCreateTime(java.util.Date value)
          Deprecated. Use setCreatedTime(Date) instead.
 void setEditTime(long value)
          Deprecated. Use setTotalEditingTime(long) instead.
 void setKeywords(java.lang.String value)
          Sets the keywords property.
 void setLastAuthor(java.lang.String value)
          Deprecated. Use setLastSavedBy(String) instead.
 void setLastPrinted(java.util.Date value)
          Sets the time when presentation was printed last time.
 void setLastPrintTime(java.util.Date value)
          Deprecated. Use setLastPrinted(Date) instead.
 void setLastSavedBy(java.lang.String value)
          Sets the last author property.
 void setLastSavedTime(java.util.Date value)
          Sets the last time when presentation was saved.
 void setLastSaveTime(java.util.Date value)
          Deprecated. Use setLastSavedTime(Date) instead.
 void setManager(java.lang.String value)
          Sets the manager property.
 void setNameOfApplication(java.lang.String value)
          Sets the name of the application.
 void setRevisionNumber(int value)
          Sets the presentation revision number.
 void setSubject(java.lang.String value)
          Sets the subject property.
 void setTemplate(java.lang.String value)
          Sets the name of a template.
 void setTitle(java.lang.String value)
          Sets the title property.
 void setTotalEditingTime(long value)
          Sets the edit time of a presentation.
 int size()
          Returns the number of custom properties actually contained in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentProperties

public DocumentProperties(com.aspose.slides.oleps.PropertySetStream docProps,
                          com.aspose.slides.oleps.PropertySetStream sumProps)
Method Detail

getTitle

public java.lang.String getTitle()
Returns the title property.


setTitle

public void setTitle(java.lang.String value)
Sets the title property.


getSubject

public java.lang.String getSubject()
Returns the subject property.


setSubject

public void setSubject(java.lang.String value)
Sets the subject property.


getAuthor

public java.lang.String getAuthor()
Returns the author property.


setAuthor

public void setAuthor(java.lang.String value)
Sets the author property.


getKeywords

public java.lang.String getKeywords()
Returns the keywords property.


setKeywords

public void setKeywords(java.lang.String value)
Sets the keywords property.


getComments

public java.lang.String getComments()
Returns the comments property.


setComments

public void setComments(java.lang.String value)
Sets the comments property.


getLastAuthor

public java.lang.String getLastAuthor()
Deprecated. Use getLastSavedBy() instead.

Returns the last author property.


setLastAuthor

public void setLastAuthor(java.lang.String value)
Deprecated. Use setLastSavedBy(String) instead.

Sets the last author property.


getLastSavedBy

public java.lang.String getLastSavedBy()
Returns the last author property.


setLastSavedBy

public void setLastSavedBy(java.lang.String value)
Sets the last author property.


getLastPrintTime

public java.util.Date getLastPrintTime()
Deprecated. Use getLastPrinted() instead.

Returns the time when presentation was printed last time. Returns null if print time is unknown.


setLastPrintTime

public void setLastPrintTime(java.util.Date value)
Deprecated. Use setLastPrinted(Date) instead.

Sets the time when presentation was printed last time.


getLastPrinted

public java.util.Date getLastPrinted()
Returns the time when presentation was printed last time. Returns null if print time is unknown.


setLastPrinted

public void setLastPrinted(java.util.Date value)
Sets the time when presentation was printed last time.


getEditTime

public long getEditTime()
Deprecated. Use getTotalEditingTime() instead.

Returns the edit time of a presentation. Returns Long.MIN_VALUE in case time of creation is unknown.


setEditTime

public void setEditTime(long value)
Deprecated. Use setTotalEditingTime(long) instead.

Sets the edit time of a presentation.


getTotalEditingTime

public long getTotalEditingTime()
Returns the edit time of a presentation. Returns Long.MIN_VALUE in case time of creation is unknown.


setTotalEditingTime

public void setTotalEditingTime(long value)
Sets the edit time of a presentation.


getCreateTime

public java.util.Date getCreateTime()
Deprecated. Use getCreatedTime() instead.

Returns the time when presentation was created. Returns null in case time of creation is unknown.


setCreateTime

public void setCreateTime(java.util.Date value)
Deprecated. Use setCreatedTime(Date) instead.

Sets the time when presentation was created.


getCreatedTime

public java.util.Date getCreatedTime()
Returns the time when presentation was created. Returns null in case time of creation is unknown.


setCreatedTime

public void setCreatedTime(java.util.Date value)
Sets the time when presentation was created.


getLastSaveTime

public java.util.Date getLastSaveTime()
Deprecated. Use getLastSavedTime() instead.

Returns the last time when presentation was saved. Returns null in case time of creation is unknown.


setLastSaveTime

public void setLastSaveTime(java.util.Date value)
Deprecated. Use setLastSavedTime(Date) instead.

Sets the last time when presentation was saved.


getLastSavedTime

public java.util.Date getLastSavedTime()
Returns the last time when presentation was saved. Returns null in case time of creation is unknown.


setLastSavedTime

public void setLastSavedTime(java.util.Date value)
Sets the last time when presentation was saved.


getManager

public java.lang.String getManager()
Returns the manager property.


setManager

public void setManager(java.lang.String value)
Sets the manager property.


getCompany

public java.lang.String getCompany()
Returns the company name where presentation was created.


setCompany

public void setCompany(java.lang.String value)
Sets the company name where presentation was created.


getCategory

public java.lang.String getCategory()
Returns the category property.


setCategory

public void setCategory(java.lang.String value)
Sets the category property.


getNameOfApplication

public java.lang.String getNameOfApplication()
Returns the name of the application.


setNameOfApplication

public void setNameOfApplication(java.lang.String value)
Sets the name of the application.


getTemplate

public java.lang.String getTemplate()
Returns the name of a template.


setTemplate

public void setTemplate(java.lang.String value)
Sets the name of a template.


getRevisionNumber

public int getRevisionNumber()
Returns the presentation revision number.


setRevisionNumber

public void setRevisionNumber(int value)
Sets the presentation revision number.


size

public int size()
Returns the number of custom properties actually contained in the collection.


get

public java.lang.Object get(java.lang.String name)
Returns the property associated with a specific name.

Returns:
Returned value can be Short, Integer, String, Boolean and Date.

set

public void set(java.lang.String name,
                java.lang.Object value)
Sets the property and associate it with a name.

Parameters:
name - property name.
value - property value.

remove

public void remove(java.lang.String name)
Removes a custom property with the specified name from the collection.

Parameters:
name - The name of a custom property to delete from the collection.

contains

public boolean contains(java.lang.String name)
Determines whether the collection contains a custom property with the specified name.

Parameters:
name - The name of a custom property to locate in the collection.
Returns:
True if the collection contains a custom property with the specified name.

getPropertyName

public java.lang.String getPropertyName(int index)
Gets a custom property name at the specified index of the collection.

Parameters:
index - The zero-based index of a custom property to get.
Returns:
Custom property name at the specified index of the collection.
Throws:
java.lang.IndexOutOfBoundsException - Index is less than zero. Index is equal to or greater than Count.