org.apache.poi.hpsf.wellknown
Class PropertyIDMap
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--org.apache.poi.hpsf.wellknown.PropertyIDMap
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class PropertyIDMap
- extends java.util.HashMap
This is a dictionary mapping property IDs to property ID
strings.
The methods getSummaryInformationProperties()
and getDocumentSummaryInformationProperties()
return singleton PropertyIDMap
s. An application that wants to extend these maps
should treat them as unmodifiable, copy them and modifiy the
copies.
FIXME: Make the singletons
unmodifiable. However, since this requires use a HashMap
delegate instead of extending HashMap
and would require a
lot of stupid typing, I won't do it for the time being.
- Since:
- 2002-02-09
- Version:
- $Id: PropertyIDMap.java,v 1.1 2002/02/14 04:00:59 mjohnson Exp $
- Author:
- Rainer Klute (klute@rainer-klute.de)
- See Also:
- Serialized Form
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Constructor Summary |
PropertyIDMap(int initialCapacity,
float loadFactor)
|
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
PID_TITLE
public static final int PID_TITLE
PID_SUBJECT
public static final int PID_SUBJECT
PID_AUTHOR
public static final int PID_AUTHOR
PID_KEYWORDS
public static final int PID_KEYWORDS
PID_COMMENTS
public static final int PID_COMMENTS
PID_TEMPLATE
public static final int PID_TEMPLATE
PID_LASTAUTHOR
public static final int PID_LASTAUTHOR
PID_REVNUMBER
public static final int PID_REVNUMBER
PID_EDITTIME
public static final int PID_EDITTIME
PID_LASTPRINTED
public static final int PID_LASTPRINTED
PID_CREATE_DTM
public static final int PID_CREATE_DTM
PID_LASTSAVE_DTM
public static final int PID_LASTSAVE_DTM
PID_PAGECOUNT
public static final int PID_PAGECOUNT
PID_WORDCOUNT
public static final int PID_WORDCOUNT
PID_CHARCOUNT
public static final int PID_CHARCOUNT
PID_THUMBNAIL
public static final int PID_THUMBNAIL
PID_APPNAME
public static final int PID_APPNAME
PID_SECURITY
public static final int PID_SECURITY
PID_CATEGORY
public static final int PID_CATEGORY
PID_PRESFORMAT
public static final int PID_PRESFORMAT
PID_BYTECOUNT
public static final int PID_BYTECOUNT
PID_LINECOUNT
public static final int PID_LINECOUNT
PID_PARCOUNT
public static final int PID_PARCOUNT
PID_SLIDECOUNT
public static final int PID_SLIDECOUNT
PID_NOTECOUNT
public static final int PID_NOTECOUNT
PID_HIDDENCOUNT
public static final int PID_HIDDENCOUNT
PID_MMCLIPCOUNT
public static final int PID_MMCLIPCOUNT
PID_SCALE
public static final int PID_SCALE
PID_HEADINGPAIR
public static final int PID_HEADINGPAIR
PID_DOCPARTS
public static final int PID_DOCPARTS
PID_MANAGER
public static final int PID_MANAGER
PID_COMPANY
public static final int PID_COMPANY
PID_LINKSDIRTY
public static final int PID_LINKSDIRTY
PropertyIDMap
public PropertyIDMap(int initialCapacity,
float loadFactor)
put
public java.lang.Object put(int id,
java.lang.String idString)
Puts a ID string for an ID into the PropertyIDMap
.
- Parameters:
id
- The ID.idString
- The ID string.
get
public java.lang.Object get(int id)
Gets the ID string for an ID from the PropertyIDMap
.
- Parameters:
id
- The ID.
getSummaryInformationProperties
public static PropertyIDMap getSummaryInformationProperties()
Returns the Summary Information properties singleton.
getDocumentSummaryInformationProperties
public static PropertyIDMap getDocumentSummaryInformationProperties()
Returns the Summary Information properties singleton.
main
public static void main(java.lang.String[] args)
Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.