blob: 6d832090cd3e47a117613f84d0453f4731464be2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
|
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package org.apache.poi.openxml4j.opc;
import java.util.Date;
import java.util.Optional;
/**
* Represents the core properties of an OPC package.
*
* @author Julien Chable
* @version 1.0
* @see org.apache.poi.openxml4j.opc.OPCPackage
*/
public interface PackageProperties {
/**
* Dublin Core Terms URI.
*/
String NAMESPACE_DCTERMS = "http://purl.org/dc/terms/";
/**
* Dublin Core namespace URI.
*/
String NAMESPACE_DC = "http://purl.org/dc/elements/1.1/";
/* Getters and setters */
/**
* Set the category of the content of this package.
* @return property value
*/
Optional<String> getCategoryProperty();
/**
* Set the category of the content of this package.
*/
void setCategoryProperty(String category);
/**
* Set the category of the content of this package.
* @since 4.0.0
*/
void setCategoryProperty(Optional<String> category);
/**
* Set the status of the content.
* @return property value
*/
Optional<String> getContentStatusProperty();
/**
* Get the status of the content.
*/
void setContentStatusProperty(String contentStatus);
/**
* Get the status of the content.
* @since 4.0.0
*/
void setContentStatusProperty(Optional<String> contentStatus);
/**
* Get the type of content represented, generally defined by a specific use
* and intended audience.
* @return property value
*/
Optional<String> getContentTypeProperty();
/**
* Set the type of content represented, generally defined by a specific use
* and intended audience.
*/
void setContentTypeProperty(String contentType);
/**
* Set the type of content represented, generally defined by a specific use
* and intended audience.
* @since 4.0.0
*/
void setContentTypeProperty(Optional<String> contentType);
/**
* Get the date of creation of the resource.
* @return property value
*/
Optional<Date> getCreatedProperty();
/**
* Set the date of creation of the resource.
*/
void setCreatedProperty(String created);
/**
* Set the date of creation of the resource.
*/
void setCreatedProperty(Optional<Date> created);
/**
* Get the entity primarily responsible for making the content of the
* resource.
* @return property value
*/
Optional<String> getCreatorProperty();
/**
* Set the entity primarily responsible for making the content of the
* resource.
*/
void setCreatorProperty(String creator);
/**
* Set the entity primarily responsible for making the content of the
* resource.
* @since 4.0.0
*/
void setCreatorProperty(Optional<String> creator);
/**
* Get the explanation of the content of the resource.
*/
Optional<String> getDescriptionProperty();
/**
* Set the explanation of the content of the resource.
*/
void setDescriptionProperty(String description);
/**
* Set the explanation of the content of the resource.
* @since 4.0.0
*/
void setDescriptionProperty(Optional<String> description);
/**
* Get an unambiguous reference to the resource within a given context.
* @return property value
*/
Optional<String> getIdentifierProperty();
/**
* Set an unambiguous reference to the resource within a given context.
*/
void setIdentifierProperty(String identifier);
/**
* Set an unambiguous reference to the resource within a given context.
* @since 4.0.0
*/
void setIdentifierProperty(Optional<String> identifier);
/**
* Get a delimited set of keywords to support searching and indexing. This
* is typically a list of terms that are not available elsewhere in the
* properties
* @return property value
*/
Optional<String> getKeywordsProperty();
/**
* Set a delimited set of keywords to support searching and indexing. This
* is typically a list of terms that are not available elsewhere in the
* properties
*/
void setKeywordsProperty(String keywords);
/**
* Set a delimited set of keywords to support searching and indexing. This
* is typically a list of terms that are not available elsewhere in the
* properties
* @since 4.0.0
*/
void setKeywordsProperty(Optional<String> keywords);
/**
* Get the language of the intellectual content of the resource.
* @return property value
*/
Optional<String> getLanguageProperty();
/**
* Set the language of the intellectual content of the resource.
*/
void setLanguageProperty(String language);
/**
* Set the language of the intellectual content of the resource.
* @since 4.0.0
*/
void setLanguageProperty(Optional<String> language);
/**
* Get the user who performed the last modification.
*/
Optional<String> getLastModifiedByProperty();
/**
* Set the user who performed the last modification.
*/
void setLastModifiedByProperty(String lastModifiedBy);
/**
* Set the user who performed the last modification.
* @since 4.0.0
*/
void setLastModifiedByProperty(Optional<String> lastModifiedBy);
/**
* Get the date and time of the last printing.
* @return property value
*/
Optional<Date> getLastPrintedProperty();
/**
* Set the date and time of the last printing.
*/
void setLastPrintedProperty(String lastPrinted);
/**
* Set the date and time of the last printing.
*/
void setLastPrintedProperty(Optional<Date> lastPrinted);
/**
* Get the date on which the resource was changed.
* @return property value
*/
Optional<Date> getModifiedProperty();
/**
* Set the date on which the resource was changed.
*/
void setModifiedProperty(String modified);
/**
* Set the date on which the resource was changed.
*/
void setModifiedProperty(Optional<Date> modified);
/**
* Get the revision number.
* @return property value
*/
Optional<String> getRevisionProperty();
/**
* Set the revision number.
*/
void setRevisionProperty(String revision);
/**
* Set the revision number.
* @since 4.0.0
*/
void setRevisionProperty(Optional<String> revision);
/**
* Get the topic of the content of the resource.
* @return property value
*/
Optional<String> getSubjectProperty();
/**
* Set the topic of the content of the resource.
*/
void setSubjectProperty(String subject);
/**
* Set the topic of the content of the resource.
* @since 4.0.0
*/
void setSubjectProperty(Optional<String> subject);
/**
* Get the name given to the resource.
* @return property value
*/
Optional<String> getTitleProperty();
/**
* Set the name given to the resource.
*/
void setTitleProperty(String title);
/**
* Set the name given to the resource.
* @since 4.0.0
*/
void setTitleProperty(Optional<String> title);
/**
* Get the version number.
* @return property value
*/
Optional<String> getVersionProperty();
/**
* Set the version number.
*/
void setVersionProperty(String version);
/**
* Set the version number.
* @since 4.0.0
*/
void setVersionProperty(Optional<String> version);
}
|