Skip to content

Commit 79db87b

Browse files
committed
2 parents 533b5c3 + 6f07b3b commit 79db87b

File tree

265 files changed

+4115
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+4115
-335
lines changed

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ subprojects {
5858
apply plugin: 'checkstyle'
5959

6060
check.dependsOn(editorconfigCheck)
61+
check.dependsOn(javadoc)
6162

6263
sourceCompatibility = 1.8
6364
targetCompatibility = 1.8
@@ -81,6 +82,12 @@ subprojects {
8182
group 'build'
8283
}
8384

85+
javadoc {
86+
options {
87+
addBooleanOption 'Xwerror', true
88+
}
89+
}
90+
8491
artifacts {
8592
archives sourceJar
8693
archives javadocJar

config/checkstyle/checkstyle.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
<module name="InterfaceIsType"/>
6969
<module name="InterfaceTypeParameterName"/>
7070
<module name="JavaNCSS"/>
71+
<module name="JavadocMethod"/>
7172
<module name="JavadocType"/>
7273
<module name="LambdaParameterName"/>
7374
<module name="LeftCurly"/>
@@ -81,6 +82,7 @@
8182
<module name="MethodTypeParameterName"/>
8283
<module name="MissingCtor"/>
8384
<module name="MissingDeprecated"/>
85+
<module name="MissingJavadocMethod"/>
8486
<module name="MissingOverride"/>
8587
<module name="MissingSwitchDefault"/>
8688
<module name="ModifiedControlVariable"/>
@@ -97,6 +99,7 @@
9799
<module name="NoClone"/>
98100
<module name="NoEnumTrailingComma"/>
99101
<module name="NoFinalizer"/>
102+
<module name="NonEmptyAtclauseDescription"/>
100103
<module name="NoWhitespaceAfter"/>
101104
<module name="NoWhitespaceBefore"/>
102105
<module name="OneStatementPerLine">

metafacture-biblio/src/main/java/org/metafacture/biblio/AlephMabXmlHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public final class AlephMabXmlHandler extends DefaultXmlPipe<StreamReceiver> {
5050
private String currentTag = "";
5151
private StringBuilder builder = new StringBuilder();
5252

53+
/**
54+
* Creates instance of {@link AlephMabXmlHandler}.
55+
*/
5356
public AlephMabXmlHandler() {
5457
}
5558

metafacture-biblio/src/main/java/org/metafacture/biblio/AseqDecoder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public final class AseqDecoder extends DefaultObjectPipe<String, StreamReceiver>
4242
private static final int RECORD_IDENTIFIER_BEGIN = 0;
4343
private static final int RECORD_IDENTIFIER_END = 9;
4444

45+
/**
46+
* Creates an instance of {@link AseqDecoder}.
47+
*/
4548
public AseqDecoder() {
4649
}
4750

metafacture-biblio/src/main/java/org/metafacture/biblio/ComarcXmlHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public class ComarcXmlHandler extends DefaultXmlPipe<StreamReceiver> {
6363
private String currentTag = "";
6464
private StringBuilder builder = new StringBuilder();
6565

66+
/**
67+
* Creates an instance of {@link ComarcXmlHandler}.
68+
*/
6669
public ComarcXmlHandler() {
6770
}
6871

metafacture-biblio/src/main/java/org/metafacture/biblio/MabDecoder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public final class MabDecoder extends DefaultObjectPipe<String, StreamReceiver>
5757
private static final String ID_TAG = "001 ";
5858
private static final int TAG_LENGTH = 4;
5959

60+
/**
61+
* Creates an instance of {@link MabDecoder}.
62+
*/
6063
public MabDecoder() {
6164
}
6265

metafacture-biblio/src/main/java/org/metafacture/biblio/iso2709/FieldHandler.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,42 @@
2424
*/
2525
public interface FieldHandler {
2626

27+
/**
28+
* Reference a field.
29+
*
30+
* @param tag the tag
31+
* @param implDefinedPart the impl defined part
32+
* @param value the value
33+
*/
2734
void referenceField(char[] tag, char[] implDefinedPart, String value);
2835

36+
/**
37+
* Starts a data field.
38+
*
39+
* @param tag the tag
40+
* @param implDefinedPart the impl defined part
41+
* @param indicators the indicators
42+
*/
2943
void startDataField(char[] tag, char[] implDefinedPart, char[] indicators);
3044

45+
/**
46+
* Ends the data field.
47+
*/
3148
void endDataField();
3249

50+
/**
51+
* Sets the impl defined part.
52+
*
53+
* @param implDefinedPart he impl defined part
54+
*/
3355
void additionalImplDefinedPart(char[] implDefinedPart);
3456

57+
/**
58+
* Sets the identifier to a value.
59+
*
60+
* @param identifier the identifier
61+
* @param value the value
62+
*/
3563
void data(char[] identifier, String value);
3664

3765
}

metafacture-biblio/src/main/java/org/metafacture/biblio/iso2709/Label.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package org.metafacture.biblio.iso2709;
1818

1919
/**
20-
* Provides read access to the record label of a ISO 2709:2008 formatted
20+
* Provides read access to the record label of an ISO 2709:2008 formatted
2121
* record. The record label consists of the first 24 octets of the record.
2222
* <p>
2323
* Use {@link LabelBuilder} if write access to the label is required.

metafacture-biblio/src/main/java/org/metafacture/biblio/iso2709/Record.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,47 @@ private int findRecordIdFieldStart() {
9191
return RECORD_ID_MISSING;
9292
}
9393

94+
/**
95+
* Gets the record format of the Label.
96+
*
97+
* @return the record format of the Label
98+
*/
9499
public RecordFormat getRecordFormat() {
95100
return label.getRecordFormat();
96101
}
97102

103+
/**
104+
* Gets the record status of the Label.
105+
*
106+
* @return the record status of the Label
107+
*/
98108
public char getRecordStatus() {
99109
return label.getRecordStatus();
100110
}
101111

112+
/**
113+
* Gets the impl codes.
114+
*
115+
* @return the impl codes
116+
*/
102117
public char[] getImplCodes() {
103118
return label.getImplCodes();
104119
}
105120

121+
/**
122+
* Gets the systems chars of the Label.
123+
*
124+
* @return the system chars
125+
*/
106126
public char[] getSystemChars() {
107127
return label.getSystemChars();
108128
}
109129

130+
/**
131+
* Gets the reserved char of the Label.
132+
*
133+
* @return the reserved char
134+
*/
110135
public char getReservedChar() {
111136
return label.getReservedChar();
112137
}

0 commit comments

Comments
 (0)