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.


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 getCreateTime()
          Returns the time when presentation was created.
 long getEditTime()
          Returns the edit time of a presentation.
 java.lang.String getKeywords()
          Returns the keywords property.
 java.lang.String getLastAuthor()
          Returns the last author property.
 java.util.Date getLastPrintTime()
          Returns the time when presentation was printed last time.
 java.util.Date getLastSaveTime()
          Returns the last time when presentation was saved.
 java.lang.String getManager()
          Returns the manager property.
 java.lang.String getPropertyName(int index)
          Gets a custom property name at the specified index of the collection.
 java.lang.String getSubject()
          Returns the subject property.
 java.lang.String getTitle()
          Returns the title property.
 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 setCreateTime(java.util.Date value)
          Sets the time when presentation was created.
 void setEditTime(long value)
          Sets the edit time of a presentation.
 void setKeywords(java.lang.String value)
          Sets the keywords property.
 void setLastAuthor(java.lang.String value)
          Sets the last author property.
 void setLastPrintTime(java.util.Date value)
          Sets the time when presentation was printed last time.
 void setLastSaveTime(java.util.Date value)
          Sets the last time when presentation was saved.
 void setManager(java.lang.String value)
          Sets the manager property.
 void setSubject(java.lang.String value)
          Sets the subject property.
 void setTitle(java.lang.String value)
          Sets the title property.
 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
 

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()
Returns the last author property.


setLastAuthor

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


getLastPrintTime

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


setLastPrintTime

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


getEditTime

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


setEditTime

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


getCreateTime

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


setCreateTime

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


getLastSaveTime

public java.util.Date getLastSaveTime()
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)
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.


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.