Class PropertyIDMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.Long,java.lang.String>
-
- org.apache.poi.hpsf.wellknown.PropertyIDMap
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Long,java.lang.String>
public class PropertyIDMap extends java.util.HashMap<java.lang.Long,java.lang.String>This is a dictionary which maps property ID values to property ID strings.
The methods
getSummaryInformationProperties()andgetDocumentSummaryInformationProperties()return singletonPropertyIDMaps. An application that wants to extend these maps should treat them as unmodifiable, copy them and modifiy the copies.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field and Description static intPID_APPNAMEID of the property that denotes the application that created the documentstatic intPID_AUTHORID of the property that denotes the document's authorstatic intPID_BYTECOUNTNumber of bytes.static intPID_CATEGORYThe entry is a string denoting the category the file belongs to, e.g.static intPID_CHARCOUNTID of the property that denotes the number of characters in the documentstatic intPID_CODEPAGEThe entry denotes a code page.static intPID_COMMENTSID of the property that denotes the document's commentsstatic intPID_COMPANYThis entry contains the company name.static intPID_CREATE_DTMID of the property that denotes the date and time the document was created.static intPID_DICTIONARYThe entry is a dictionary.static intPID_DOCPARTSThis entry contains the names of document parts (word: names of the documents in the master document, excel: sheet names, power point: slide titles, binder: document names).static intPID_EDITTIMEID of the property that denotes the document's edit timestatic intPID_HEADINGPAIRThis entry denotes an internally used property.static intPID_HIDDENCOUNTNumber of hidden slides.static intPID_KEYWORDSID of the property that denotes the document's keywordsstatic intPID_LASTAUTHORID of the property that denotes the document's last authorstatic intPID_LASTPRINTEDID of the property that denotes the date and time the document was last printedstatic intPID_LASTSAVE_DTMID of the property that denotes the date and time the document was savedstatic intPID_LINECOUNTNumber of lines.static intPID_LINKSDIRTYIf this entry is -1 the links are dirty and should be re-evaluated.static intPID_MANAGERThis entry contains the name of the project manager.static intPID_MAXThe highest well-known property ID.static intPID_MMCLIPCOUNTNumber of multimedia clips, e.g.static intPID_NOTECOUNTNumber of slides with notes.static intPID_PAGECOUNTID of the property that denotes the number of pages in the documentstatic intPID_PARCOUNTNumber of paragraphs.static intPID_PRESFORMATTarget format for power point presentation, e.g.static intPID_REVNUMBERID of the property that denotes the document's revision numberstatic intPID_SCALEThis entry is set to -1 when scaling of the thumbnail is desired.static intPID_SECURITYID of the property that denotes whether read/write access to the document is allowed or whether is should be opened as read-only.static intPID_SLIDECOUNTNumber of slides in a power point presentation.static intPID_SUBJECTID of the property that denotes the document's subjectstatic intPID_TEMPLATEID of the property that denotes the document's templatestatic intPID_THUMBNAILID of the property that denotes the document's thumbnailstatic intPID_TITLEID of the property that denotes the document's titlestatic intPID_WORDCOUNTID of the property that denotes the number of words in the document
-
Constructor Summary
Constructors Constructor and Description PropertyIDMap(int initialCapacity, float loadFactor)Creates aPropertyIDMap.PropertyIDMap(java.util.Map<java.lang.Long,java.lang.String> map)Creates aPropertyIDMapbacked by another map.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectget(long id)Gets the ID string for an ID from thePropertyIDMap.static PropertyIDMapgetDocumentSummaryInformationProperties()Returns the Document Summary Information properties singleton.static PropertyIDMapgetSummaryInformationProperties()static voidmain(java.lang.String[] args)For the most basic testing.java.lang.Objectput(long id, java.lang.String idString)Puts a ID string for an ID into thePropertyIDMap.
-
-
-
Field Detail
-
PID_TITLE
public static final int PID_TITLE
ID of the property that denotes the document's title
- See Also:
- Constant Field Values
-
PID_SUBJECT
public static final int PID_SUBJECT
ID of the property that denotes the document's subject
- See Also:
- Constant Field Values
-
PID_AUTHOR
public static final int PID_AUTHOR
ID of the property that denotes the document's author
- See Also:
- Constant Field Values
-
PID_KEYWORDS
public static final int PID_KEYWORDS
ID of the property that denotes the document's keywords
- See Also:
- Constant Field Values
-
PID_COMMENTS
public static final int PID_COMMENTS
ID of the property that denotes the document's comments
- See Also:
- Constant Field Values
-
PID_TEMPLATE
public static final int PID_TEMPLATE
ID of the property that denotes the document's template
- See Also:
- Constant Field Values
-
PID_LASTAUTHOR
public static final int PID_LASTAUTHOR
ID of the property that denotes the document's last author
- See Also:
- Constant Field Values
-
PID_REVNUMBER
public static final int PID_REVNUMBER
ID of the property that denotes the document's revision number
- See Also:
- Constant Field Values
-
PID_EDITTIME
public static final int PID_EDITTIME
ID of the property that denotes the document's edit time
- See Also:
- Constant Field Values
-
PID_LASTPRINTED
public static final int PID_LASTPRINTED
ID of the property that denotes the date and time the document was last printed
- See Also:
- Constant Field Values
-
PID_CREATE_DTM
public static final int PID_CREATE_DTM
ID of the property that denotes the date and time the document was created.
- See Also:
- Constant Field Values
-
PID_LASTSAVE_DTM
public static final int PID_LASTSAVE_DTM
ID of the property that denotes the date and time the document was saved
- See Also:
- Constant Field Values
-
PID_PAGECOUNT
public static final int PID_PAGECOUNT
ID of the property that denotes the number of pages in the document
- See Also:
- Constant Field Values
-
PID_WORDCOUNT
public static final int PID_WORDCOUNT
ID of the property that denotes the number of words in the document
- See Also:
- Constant Field Values
-
PID_CHARCOUNT
public static final int PID_CHARCOUNT
ID of the property that denotes the number of characters in the document
- See Also:
- Constant Field Values
-
PID_THUMBNAIL
public static final int PID_THUMBNAIL
ID of the property that denotes the document's thumbnail
- See Also:
- Constant Field Values
-
PID_APPNAME
public static final int PID_APPNAME
ID of the property that denotes the application that created the document
- See Also:
- Constant Field Values
-
PID_SECURITY
public static final int PID_SECURITY
ID of the property that denotes whether read/write access to the document is allowed or whether is should be opened as read-only. It can have the following values:
Value
Description
0
No restriction
2
Read-only recommended
4
Read-only enforced
- See Also:
- Constant Field Values
-
PID_DICTIONARY
public static final int PID_DICTIONARY
The entry is a dictionary.
- See Also:
- Constant Field Values
-
PID_CODEPAGE
public static final int PID_CODEPAGE
The entry denotes a code page.
- See Also:
- Constant Field Values
-
PID_CATEGORY
public static final int PID_CATEGORY
The entry is a string denoting the category the file belongs to, e.g. review, memo, etc. This is useful to find documents of same type.
- See Also:
- Constant Field Values
-
PID_PRESFORMAT
public static final int PID_PRESFORMAT
Target format for power point presentation, e.g. 35mm, printer, video etc.
- See Also:
- Constant Field Values
-
PID_BYTECOUNT
public static final int PID_BYTECOUNT
Number of bytes.
- See Also:
- Constant Field Values
-
PID_LINECOUNT
public static final int PID_LINECOUNT
Number of lines.
- See Also:
- Constant Field Values
-
PID_PARCOUNT
public static final int PID_PARCOUNT
Number of paragraphs.
- See Also:
- Constant Field Values
-
PID_SLIDECOUNT
public static final int PID_SLIDECOUNT
Number of slides in a power point presentation.
- See Also:
- Constant Field Values
-
PID_NOTECOUNT
public static final int PID_NOTECOUNT
Number of slides with notes.
- See Also:
- Constant Field Values
-
PID_HIDDENCOUNT
public static final int PID_HIDDENCOUNT
Number of hidden slides.
- See Also:
- Constant Field Values
-
PID_MMCLIPCOUNT
public static final int PID_MMCLIPCOUNT
Number of multimedia clips, e.g. sound or video.
- See Also:
- Constant Field Values
-
PID_SCALE
public static final int PID_SCALE
This entry is set to -1 when scaling of the thumbnail is desired. Otherwise the thumbnail should be cropped.
- See Also:
- Constant Field Values
-
PID_HEADINGPAIR
public static final int PID_HEADINGPAIR
This entry denotes an internally used property. It is a vector of variants consisting of pairs of a string (VT_LPSTR) and a number (VT_I4). The string is a heading name, and the number tells how many document parts are under that heading.
- See Also:
- Constant Field Values
-
PID_DOCPARTS
public static final int PID_DOCPARTS
This entry contains the names of document parts (word: names of the documents in the master document, excel: sheet names, power point: slide titles, binder: document names).
- See Also:
- Constant Field Values
-
PID_MANAGER
public static final int PID_MANAGER
This entry contains the name of the project manager.
- See Also:
- Constant Field Values
-
PID_COMPANY
public static final int PID_COMPANY
This entry contains the company name.
- See Also:
- Constant Field Values
-
PID_LINKSDIRTY
public static final int PID_LINKSDIRTY
If this entry is -1 the links are dirty and should be re-evaluated.
- See Also:
- Constant Field Values
-
PID_MAX
public static final int PID_MAX
The highest well-known property ID. Applications are free to use higher values for custom purposes.
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyIDMap
public PropertyIDMap(int initialCapacity, float loadFactor)Creates a
PropertyIDMap.- Parameters:
initialCapacity- The initial capacity as defined forHashMaploadFactor- The load factor as defined forHashMap
-
PropertyIDMap
public PropertyIDMap(java.util.Map<java.lang.Long,java.lang.String> map)
Creates a
PropertyIDMapbacked by another map.- Parameters:
map- The instance to be created is backed by this map.
-
-
Method Detail
-
put
public java.lang.Object put(long id, java.lang.String idString)Puts a ID string for an ID into the
PropertyIDMap.- Parameters:
id- The ID.idString- The ID string.- Returns:
- As specified by the
Mapinterface, this method returns the previous value associated with the specified id, ornullif there was no mapping for key.
-
get
public java.lang.Object get(long id)
Gets the ID string for an ID from the
PropertyIDMap.- Parameters:
id- The ID.- Returns:
- The ID string associated with id.
-
getSummaryInformationProperties
public static PropertyIDMap getSummaryInformationProperties()
- Returns:
- the Summary Information properties singleton
-
getDocumentSummaryInformationProperties
public static PropertyIDMap getDocumentSummaryInformationProperties()
Returns the Document Summary Information properties singleton.
- Returns:
- The Document Summary Information properties singleton.
-
main
public static void main(java.lang.String[] args)
For the most basic testing.
- Parameters:
args- The command-line arguments
-
-
DataMelt 3.0 © DataMelt by jWork.ORG