Skip to content

Commit f5c6ea5

Browse files
committed
Add JavaDocs to AccessibilityProperties class
DEVSIX-6058
1 parent e060dce commit f5c6ea5

File tree

1 file changed

+189
-0
lines changed

1 file changed

+189
-0
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/tagutils/AccessibilityProperties.java

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,101 +42,290 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.kernel.pdf.tagutils;
4444

45+
import com.itextpdf.kernel.pdf.PdfName;
46+
import com.itextpdf.kernel.pdf.PdfString;
4547
import com.itextpdf.kernel.pdf.tagging.PdfNamespace;
48+
import com.itextpdf.kernel.pdf.tagging.PdfStructElem;
4649
import com.itextpdf.kernel.pdf.tagging.PdfStructureAttributes;
50+
import com.itextpdf.kernel.pdf.tagging.StandardRoles;
4751

4852
import java.util.Collections;
4953
import java.util.List;
5054

55+
/**
56+
* The accessibility properties are used to define properties of {@link PdfStructElem structure elements}
57+
* in Tagged PDF documents via {@link TagTreePointer} API.
58+
*/
5159
public abstract class AccessibilityProperties {
60+
/**
61+
* Gets the role of element.
62+
*
63+
* <p>
64+
* See also {@link StandardRoles}.
65+
*
66+
* @return the role
67+
*/
5268
public String getRole() {
5369
return null;
5470
}
5571

72+
/**
73+
* Sets the role of element.
74+
*
75+
* <p>
76+
* See also {@link StandardRoles}.
77+
*
78+
* @param role the role to be set
79+
*
80+
* @return this {@link AccessibilityProperties} instance
81+
*/
5682
public AccessibilityProperties setRole(String role) {
5783
return this;
5884
}
5985

86+
/**
87+
* Gets the language identifier of element. Should be in format xy-ZK (for example en-US).
88+
*
89+
* <p>
90+
* For more information see PDF Specification ISO 32000-1 section 14.9.2.
91+
*
92+
* @return the language
93+
*/
6094
public String getLanguage() {
6195
return null;
6296
}
6397

98+
/**
99+
* Sets the language identifier of element. Should be in format xy-ZK (for example en-US).
100+
*
101+
* <p>
102+
* For more information see PDF Specification ISO 32000-1 section 14.9.2.
103+
*
104+
* @param language the language to be set
105+
*
106+
* @return this {@link AccessibilityProperties} instance
107+
*/
64108
public AccessibilityProperties setLanguage(String language) {
65109
return this;
66110
}
67111

112+
/**
113+
* Gets the actual text of element.
114+
*
115+
* @return the actual text
116+
*/
68117
public String getActualText() {
69118
return null;
70119
}
71120

121+
/**
122+
* Sets the actual text of element.
123+
*
124+
* @param actualText the actual text to be set
125+
*
126+
* @return this {@link AccessibilityProperties} instance
127+
*/
72128
public AccessibilityProperties setActualText(String actualText) {
73129
return this;
74130
}
75131

132+
/**
133+
* Gets the alternate description of element.
134+
*
135+
* @return the alternate description
136+
*/
76137
public String getAlternateDescription() {
77138
return null;
78139
}
79140

141+
/**
142+
* Sets the alternate description of element.
143+
*
144+
* @param alternateDescription the alternation description to be set
145+
*
146+
* @return this {@link AccessibilityProperties} instance
147+
*/
80148
public AccessibilityProperties setAlternateDescription(String alternateDescription) {
81149
return this;
82150
}
83151

152+
/**
153+
* Gets the expansion of element.
154+
*
155+
* <p>
156+
* Expansion it is the expanded form of an abbreviation of structure element.
157+
*
158+
* @return the expansion
159+
*/
84160
public String getExpansion() {
85161
return null;
86162
}
87163

164+
/**
165+
* Sets the expansion of element.
166+
*
167+
* <p>
168+
* Expansion it is the expanded form of an abbreviation of structure element.
169+
*
170+
* @param expansion the expansion to be set
171+
*
172+
* @return this {@link AccessibilityProperties} instance
173+
*/
88174
public AccessibilityProperties setExpansion(String expansion) {
89175
return this;
90176
}
91177

178+
/**
179+
* Gets the phoneme of element.
180+
*
181+
* <p>
182+
* For more information see {@link PdfStructElem#setPhoneme(PdfString)}.
183+
*
184+
* @return the phoneme
185+
*/
92186
public String getPhoneme() {
93187
return null;
94188
}
95189

190+
/**
191+
* Sets the phoneme of element.
192+
*
193+
* <p>
194+
* For more information see {@link PdfStructElem#setPhoneme(PdfString)}.
195+
*
196+
* @param phoneme the phoneme to be set
197+
*
198+
* @return this {@link AccessibilityProperties} instance
199+
*/
96200
public AccessibilityProperties setPhoneme(String phoneme) {
97201
return this;
98202
}
99203

204+
/**
205+
* Gets the phonetic alphabet of element.
206+
*
207+
* <p>
208+
* For more information see {@link PdfStructElem#setPhoneticAlphabet(PdfName)}.
209+
*
210+
* @return the phonetic alphabet
211+
*/
100212
public String getPhoneticAlphabet() {
101213
return null;
102214
}
103215

216+
/**
217+
* Sets the phonetic alphabet of element.
218+
*
219+
* <p>
220+
* For more information see {@link PdfStructElem#setPhoneticAlphabet(PdfName)}.
221+
*
222+
* @param phoneticAlphabet the phonetic alphabet to be set
223+
*
224+
* @return this {@link AccessibilityProperties} instance
225+
*/
104226
public AccessibilityProperties setPhoneticAlphabet(String phoneticAlphabet) {
105227
return this;
106228
}
107229

230+
/**
231+
* Gets the namespace of element.
232+
*
233+
* @return the namespace
234+
*/
108235
public PdfNamespace getNamespace() {
109236
return null;
110237
}
111238

239+
/**
240+
* Sets the namespace of element.
241+
*
242+
* @param namespace the namespace to be set
243+
*
244+
* @return this {@link AccessibilityProperties} instance
245+
*/
112246
public AccessibilityProperties setNamespace(PdfNamespace namespace) {
113247
return this;
114248
}
115249

250+
/**
251+
* Adds the reference to other tagged element.
252+
*
253+
* <p>
254+
* For more information see {@link PdfStructElem#addRef(PdfStructElem)}.
255+
*
256+
* @param treePointer the reference to be set
257+
*
258+
* @return this {@link AccessibilityProperties} instance
259+
*/
116260
public AccessibilityProperties addRef(TagTreePointer treePointer) {
117261
return this;
118262
}
119263

264+
/**
265+
* Gets the list of references to other tagged elements.
266+
*
267+
* <p>
268+
* For more information see {@link PdfStructElem#addRef(PdfStructElem)}.
269+
*
270+
* @return the list of references
271+
*/
120272
public List<TagTreePointer> getRefsList() {
121273
return Collections.<TagTreePointer>emptyList();
122274
}
123275

276+
/**
277+
* Clears the list of references to other tagged elements.
278+
*
279+
* <p>
280+
* For more information see {@link PdfStructElem#addRef(PdfStructElem)}.
281+
*
282+
* @return this {@link AccessibilityProperties} instance
283+
*/
124284
public AccessibilityProperties clearRefs() {
125285
return this;
126286
}
127287

288+
/**
289+
* Adds the attributes to the element.
290+
*
291+
* @param attributes the attributes to be added
292+
*
293+
* @return this {@link AccessibilityProperties} instance
294+
*/
128295
public AccessibilityProperties addAttributes(PdfStructureAttributes attributes) {
129296
return this;
130297
}
131298

299+
/**
300+
* Adds the attributes to the element with specified index.
301+
*
302+
* <p>
303+
* If an attribute with the same O and NS entries is specified more than once, the later (in array order)
304+
* entry shall take precedence. For more information see PDF Specification ISO-32000 section 14.7.6.
305+
*
306+
* @param index the attributes index
307+
* @param attributes the attributes to be added
308+
*
309+
* @return this {@link AccessibilityProperties} instance
310+
*/
132311
public AccessibilityProperties addAttributes(int index, PdfStructureAttributes attributes) {
133312
return this;
134313
}
135314

315+
/**
316+
* Clears the list of attributes.
317+
*
318+
* @return this {@link AccessibilityProperties} instance
319+
*/
136320
public AccessibilityProperties clearAttributes() {
137321
return this;
138322
}
139323

324+
/**
325+
* Gets the attributes list.
326+
*
327+
* @return the attributes list
328+
*/
140329
public List<PdfStructureAttributes> getAttributesList() {
141330
return Collections.<PdfStructureAttributes>emptyList();
142331
}

0 commit comments

Comments
 (0)