Class PropertyIDMap

java.lang.Object
java.util.AbstractMap<K,​V>
java.util.HashMap<java.lang.Long,​java.lang.String>
org.docx4j.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() and getDocumentSummaryInformationProperties() return singleton PropertyIDMaps. An application that wants to extend these maps should treat them as unmodifiable, copy them and modifiy the copies.

Author:
Rainer Klute <klute@rainer-klute.de>
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.util.AbstractMap

    java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>

    Nested classes/interfaces inherited from interface java.util.Map

    java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int PID_APPNAME
    ID of the property that denotes the application that created the document
    static int PID_AUTHOR
    ID of the property that denotes the document's author
    static int PID_BYTECOUNT
    Number of bytes.
    static int PID_CATEGORY
    The entry is a string denoting the category the file belongs to, e.g.
    static int PID_CHARCOUNT
    ID of the property that denotes the number of characters in the document
    static int PID_CODEPAGE
    The entry denotes a code page.
    static int PID_COMMENTS
    ID of the property that denotes the document's comments
    static int PID_COMPANY
    This entry contains the company name.
    static int PID_CREATE_DTM
    ID of the property that denotes the date and time the document was created.
    static int PID_DICTIONARY
    The entry is a dictionary.
    static 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).
    static int PID_EDITTIME
    ID of the property that denotes the document's edit time
    static int PID_HEADINGPAIR
    This entry denotes an internally used property.
    static int PID_HIDDENCOUNT
    Number of hidden slides.
    static int PID_KEYWORDS
    ID of the property that denotes the document's keywords
    static int PID_LASTAUTHOR
    ID of the property that denotes the document's last author
    static int PID_LASTPRINTED
    ID of the property that denotes the date and time the document was last printed
    static int PID_LASTSAVE_DTM
    ID of the property that denotes the date and time the document was saved
    static int PID_LINECOUNT
    Number of lines.
    static int PID_LINKSDIRTY
    If this entry is -1 the links are dirty and should be re-evaluated.
    static int PID_MANAGER
    This entry contains the name of the project manager.
    static int PID_MAX
    The highest well-known property ID.
    static int PID_MMCLIPCOUNT
    Number of multimedia clips, e.g.
    static int PID_NOTECOUNT
    Number of slides with notes.
    static int PID_PAGECOUNT
    ID of the property that denotes the number of pages in the document
    static int PID_PARCOUNT
    Number of paragraphs.
    static int PID_PRESFORMAT
    Target format for power point presentation, e.g.
    static int PID_REVNUMBER
    ID of the property that denotes the document's revision number
    static int PID_SCALE
    This entry is set to -1 when scaling of the thumbnail is desired.
    static 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.
    static int PID_SLIDECOUNT
    Number of slides in a power point presentation.
    static int PID_SUBJECT
    ID of the property that denotes the document's subject
    static int PID_TEMPLATE
    ID of the property that denotes the document's template
    static int PID_THUMBNAIL
    ID of the property that denotes the document's thumbnail
    static int PID_TITLE
    ID of the property that denotes the document's title
    static int PID_WORDCOUNT
    ID of the property that denotes the number of words in the document
  • Constructor Summary

    Constructors 
    Constructor Description
    PropertyIDMap​(int initialCapacity, float loadFactor)
    Creates a PropertyIDMap.
    PropertyIDMap​(java.util.Map<java.lang.Long,​java.lang.String> map)
    Creates a PropertyIDMap backed by another map.
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object get​(long id)
    Gets the ID string for an ID from the PropertyIDMap.
    static PropertyIDMap getDocumentSummaryInformationProperties()
    Returns the Document Summary Information properties singleton.
    static PropertyIDMap getSummaryInformationProperties()  
    static void main​(java.lang.String[] args)
    For the most basic testing.
    java.lang.Object put​(long id, java.lang.String idString)
    Puts a ID string for an ID into the PropertyIDMap.

    Methods inherited from class java.util.HashMap

    clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, 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
  • Field Details

  • Constructor Details

    • PropertyIDMap

      public PropertyIDMap​(int initialCapacity, float loadFactor)

      Creates a PropertyIDMap.

      Parameters:
      initialCapacity - The initial capacity as defined for HashMap
      loadFactor - The load factor as defined for HashMap
    • PropertyIDMap

      public PropertyIDMap​(java.util.Map<java.lang.Long,​java.lang.String> map)

      Creates a PropertyIDMap backed by another map.

      Parameters:
      map - The instance to be created is backed by this map.
  • Method Details

    • 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 Map interface, this method returns the previous value associated with the specified id, or null if 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