public class PropertyIDMap
extends java.lang.Object
implements java.util.Map<java.lang.Long,java.lang.String>
getSummaryInformationProperties()
and
getDocumentSummaryInformationProperties()
return singleton
PropertyIDMap
s. An application that wants to extend these maps should treat them as unmodifiable, copy them and modify the copies. Trying to modify the map directly will cause exceptions
UnsupportedOperationException
to be thrown.
(这是一个将属性 ID 值映射到属性 ID 字符串的字典。 getSummaryInformationProperties() 和 getDocumentSummaryInformationProperties() 方法返回单例 PropertyIDMaps。想要扩展这些映射的应用程序应该将它们视为不可修改,复制它们并修改副本。尝试直接修改地图会导致抛出异常 UnsupportedOperationException。)
Modifier and Type | Field and Description |
---|---|
static int |
PID_APPNAME
ID of the property that denotes the application that created the document
(表示创建文档的应用程序的属性 ID)
|
static int |
PID_AUTHOR
ID of the property that denotes the document's author
(表示文档作者的属性的 ID)
|
static int |
PID_BEHAVIOUR
The Behavior property, if present, MUST have the property identifier 0x80000003, MUST NOT have a property name, and MUST have type VT_UI4 (0x0013).
(Behavior 属性(如果存在)必须具有属性标识符 0x80000003,不得具有属性名称,并且必须具有类型 VT_UI4 (0x0013)。)
|
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_CCHWITHSPACES
The entry specifies an estimate of the number of characters in the document, including whitespace, as an integer
(该条目将文档中字符数(包括空格)的估计值指定为整数)
|
static int |
PID_CHARCOUNT
ID of the property that denotes the number of characters in the document
(表示文档中字符数的属性的 ID)
|
static int |
PID_CODEPAGE
The entry denotes a code page.
(该条目表示代码页。)
|
static int |
PID_COMMENTS
ID of the property that denotes the document's comments
(表示文档注释的属性的 ID)
|
static int |
PID_COMPANY
This entry contains the company name.
(此条目包含公司名称。)
|
static int |
PID_CONTENTSTATUS
This entry contains a string of the document status.
(此条目包含文档状态字符串。)
|
static int |
PID_CONTENTTYPE
This entry contains a string of the content type of the file.
(此条目包含文件内容类型的字符串。)
|
static int |
PID_CREATE_DTM
ID of the property that denotes the date and time the document was created.
(表示文档创建日期和时间的属性的 ID。)
|
static int |
PID_DICTIONARY
The entry is a dictionary.
(条目是字典。)
|
static int |
PID_DIGSIG
This entry contains the VBA digital signature for the VBA project embedded in the document.
(此条目包含嵌入在文档中的 VBA 项目的 VBA 数字签名。)
|
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).
(此条目包含文档部分的名称(word:主文档中的文档名称,excel:工作表名称,power point:幻灯片标题,活页夹:文档名称)。)
|
static int |
PID_DOCVERSION
This entry contains a string of the document version, but normally should be empty
(此条目包含文档版本的字符串,但通常应为空)
|
static int |
PID_EDITTIME
ID of the property that denotes the document's edit time
(表示文档编辑时间的属性 ID)
|
static int |
PID_HEADINGPAIR
This entry denotes an internally used property.
(此条目表示内部使用的属性。)
|
static int |
PID_HIDDENCOUNT
Number of hidden slides.
(隐藏幻灯片的数量。)
|
static int |
PID_HYPERLINKSCHANGED
This entry contains a boolean which marks if the User Defined Property Set has been updated outside of the Application, if so the hyperlinks should be updated on document load.
(此条目包含一个布尔值,它标记用户定义的属性集是否已在应用程序之外更新,如果是,则超链接应在文档加载时更新。)
|
static int |
PID_KEYWORDS
ID of the property that denotes the document's keywords
(表示文档关键字的属性的 ID)
|
static int |
PID_LANGUAGE
This entry contains a string of the document language, but normally should be empty.
(此条目包含文档语言的字符串,但通常应为空。)
|
static int |
PID_LASTAUTHOR
ID of the property that denotes the document's last author
(表示文档最后作者的属性的 ID)
|
static int |
PID_LASTPRINTED
ID of the property that denotes the date and time the document was last printed
(表示上次打印文档的日期和时间的属性 ID)
|
static int |
PID_LASTSAVE_DTM
ID of the property that denotes the date and time the document was saved
(表示文档保存日期和时间的属性 ID)
|
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.
(如果此条目为 -1,则链接是脏的,应该重新评估。)
|
static int |
PID_LOCALE
The Locale property, if present, MUST have the property identifier 0x80000000, MUST NOT have a property name, and MUST have type VT_UI4 (0x0013).
(Locale 属性(如果存在)必须具有属性标识符 0x80000000,不得具有属性名称,并且必须具有类型 VT_UI4 (0x0013)。)
|
static int |
PID_MANAGER
This entry contains the name of the project manager.
(此条目包含项目经理的姓名。)
|
static int |
PID_MAX
The highest well-known property ID.
(最高知名属性 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
(表示文档页数的属性 ID)
|
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
(表示文档修订号的属性 ID)
|
static int |
PID_SCALE
This entry is set to -1 when scaling of the thumbnail is desired.
(当需要缩放缩略图时,此条目设置为 -1。)
|
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.
(表示是否允许对文档进行读/写访问或是否应以只读方式打开的属性 ID。)
|
static int |
PID_SLIDECOUNT
Number of slides in a power point presentation.
(PowerPoint 演示文稿中的幻灯片数量。)
|
static int |
PID_SUBJECT
ID of the property that denotes the document's subject
(表示文档主题的属性的 ID)
|
static int |
PID_TEMPLATE
ID of the property that denotes the document's template
(表示文档模板的属性的 ID)
|
static int |
PID_THUMBNAIL
ID of the property that denotes the document's thumbnail
(表示文档缩略图的属性的 ID)
|
static int |
PID_TITLE
ID of the property that denotes the document's title
(表示文档标题的属性 ID)
|
static int |
PID_VERSION
This entry contains the version of the Application which wrote the Property set, stored with the two high order bytes having the major version number, and the two low order bytes the minor version number.
(该条目包含编写属性集的应用程序的版本,其中两个高位字节具有主版本号,两个低位字节是次要版本号。)
|
static int |
PID_WORDCOUNT
ID of the property that denotes the number of words in the document
(表示文档中字数的属性的 ID)
|
static java.lang.String |
UNDEFINED
A property without a known name is described by this string.
(此字符串描述了没有已知名称的属性。)
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<java.lang.Long,java.lang.String>> |
entrySet() |
java.lang.String |
get(java.lang.Object key) |
static PropertyIDMap |
getDocumentSummaryInformationProperties() |
static PropertyIDMap |
getFallbackProperties()
Returns a property map, which is only used as a fallback, i.e.
(返回一个property map,它只用作一个fallback,即)
|
static PropertyIDMap |
getSummaryInformationProperties() |
boolean |
isEmpty() |
java.util.Set<java.lang.Long> |
keySet() |
static void |
main(java.lang.String[] args)
For the most basic testing.
(用于最基本的测试。)
|
java.lang.String |
put(java.lang.Long key, java.lang.String value) |
void |
putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.String> m) |
java.lang.String |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection<java.lang.String> |
values() |
public static final int PID_TITLE
public static final int PID_SUBJECT
public static final int PID_AUTHOR
public static final int PID_KEYWORDS
public static final int PID_COMMENTS
public static final int PID_TEMPLATE
public static final int PID_LASTAUTHOR
public static final int PID_REVNUMBER
public static final int PID_EDITTIME
public static final int PID_LASTPRINTED
public static final int PID_CREATE_DTM
public static final int PID_LASTSAVE_DTM
public static final int PID_PAGECOUNT
public static final int PID_WORDCOUNT
public static final int PID_CHARCOUNT
public static final int PID_THUMBNAIL
public static final int PID_APPNAME
public static final int PID_SECURITY
Value | Description |
---|---|
0 | No restriction |
2 | Read-only recommended |
4 | Read-only enforced |
public static final int PID_DICTIONARY
public static final int PID_CODEPAGE
public static final int PID_CATEGORY
public static final int PID_PRESFORMAT
public static final int PID_BYTECOUNT
public static final int PID_LINECOUNT
public static final int PID_PARCOUNT
public static final int PID_SLIDECOUNT
public static final int PID_NOTECOUNT
public static final int PID_HIDDENCOUNT
public static final int PID_MMCLIPCOUNT
public static final int PID_SCALE
public static final int PID_HEADINGPAIR
public static final int PID_DOCPARTS
public static final int PID_MANAGER
public static final int PID_COMPANY
public static final int PID_LINKSDIRTY
public static final int PID_CCHWITHSPACES
public static final int PID_HYPERLINKSCHANGED
public static final int PID_VERSION
public static final int PID_DIGSIG
public static final int PID_CONTENTTYPE
public static final int PID_CONTENTSTATUS
public static final int PID_LANGUAGE
public static final int PID_DOCVERSION
public static final int PID_MAX
public static final int PID_LOCALE
public static final int PID_BEHAVIOUR
public static final java.lang.String UNDEFINED
public static PropertyIDMap getSummaryInformationProperties()
public static PropertyIDMap getDocumentSummaryInformationProperties()
public static PropertyIDMap getFallbackProperties()
DocumentSummaryInformation
or
SummaryInformation
should be used.
(返回一个属性映射,它仅用作后备,即,如果可用,则应使用 DocumentSummaryInformation 或 SummaryInformation 的正确映射。)
public int size()
size
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的大小
public boolean isEmpty()
isEmpty
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的 isEmpty
public boolean containsKey(java.lang.Object key)
containsKey
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的 containsKey
public boolean containsValue(java.lang.Object value)
containsValue
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的 containsValue
public java.lang.String get(java.lang.Object key)
get
in interface
java.util.Map<java.lang.Long,java.lang.String>
(进入接口 java.util.Map
public java.lang.String put(java.lang.Long key, java.lang.String value)
put
in interface
java.util.Map<java.lang.Long,java.lang.String>
(放入接口 java.util.Map
public java.lang.String remove(java.lang.Object key)
remove
in interface
java.util.Map<java.lang.Long,java.lang.String>
(在接口 java.util.Map 中删除
public void putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.String> m)
putAll
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的 putAll
public void clear()
clear
in interface
java.util.Map<java.lang.Long,java.lang.String>
(在接口 java.util.Map 中清除
public java.util.Set<java.lang.Long> keySet()
keySet
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的 keySet
public java.util.Collection<java.lang.String> values()
values
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的值
public java.util.Set<java.util.Map.Entry<java.lang.Long,java.lang.String>> entrySet()
entrySet
in interface
java.util.Map<java.lang.Long,java.lang.String>
(接口 java.util.Map 中的 entrySet
public static void main(java.lang.String[] args)
args
- The command-line arguments
(args - 命令行参数)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.