Skip to content

Commit 2f8155e

Browse files
committed
clean up javadoc
1 parent e182457 commit 2f8155e

File tree

5 files changed

+49
-14
lines changed

5 files changed

+49
-14
lines changed

io-interfaces/src/main/java/io/openapiprocessor/interfaces/Writer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ public interface Writer {
1818
* @param document the document
1919
* @throws IOException if writing fails.
2020
*/
21-
2221
void write(Object document) throws IOException;
2322
}

json-schema-validator/src/main/java/io/openapiprocessor/jsonschema/ouput/OutputUnit.java

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,30 @@
1212
public interface OutputUnit {
1313

1414
/**
15-
* validation result
15+
* The validation result.
16+
*
17+
* @return the validation result.
1618
*/
1719
boolean isValid ();
1820

1921
/**
20-
* relative location of the validating keyword
22+
* The relative location of the validating keyword.
23+
*
24+
* @return the relative location of the validating keyword.
2125
*/
2226
String getKeywordLocation ();
2327

2428
/**
25-
* The location of the validated JSON value within the instance
29+
* The location of the validated JSON value within the instance.
30+
*
31+
* @return the location of the validated JSON value within the instance.
2632
*/
2733
String getInstanceLocation ();
2834

2935
/**
30-
* The absolute, dereferenced location of the validating keyword
36+
* The absolute, dereferenced location of the validating keyword.
37+
*
38+
* @return the absolute, dereferenced location of the validating keyword.
3139
*/
3240
String getAbsoluteKeywordLocation ();
3341

@@ -36,12 +44,16 @@ public interface OutputUnit {
3644
@Nullable Object getAnnotation ();
3745

3846
/**
39-
* errors or annotation produced by a failed validation
47+
* The errors or annotation produced by a failed validation.
48+
*
49+
* @return the errors or annotation produced by a failed validation.
4050
*/
4151
@Nullable Collection<OutputUnit> getErrors ();
4252

4353
/**
44-
* errors or annotation produced by a successful validation
54+
* The errors or annotation produced by a successful validation.
55+
*
56+
* @return the errors or annotation produced by a successful validation.
4557
*/
4658
@Nullable Collection<OutputUnit> getAnnotations ();
4759
}

json-schema-validator/src/main/java/io/openapiprocessor/jsonschema/ouput/OutputUnitWrite.java

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,58 @@
1010
public interface OutputUnitWrite {
1111

1212
/**
13-
* set validation result
13+
* Set the validation result.
14+
*
15+
* @param valid the validation result.
1416
*/
1517
void setValid (boolean valid);
1618

1719
/**
18-
* relative location of the validating keyword
20+
* Set the relative location of the validating keyword.
21+
*
22+
* @param location the relative location of the validating keyword.
1923
*/
2024
void setKeywordLocation (String location);
2125

2226
/**
23-
* The location of the validated JSON value within the instance
27+
* The location of the validated JSON value within the instance.
28+
*
29+
* @param location the location of the validated JSON value within the instance.
2430
*/
2531
void setInstanceLocation (String location);
2632

2733
/**
28-
* The absolute, dereferenced location of the validating keyword
34+
* The absolute, dereferenced location of the validating keyword.
35+
*
36+
* @param location the absolute, dereferenced location of the validating keyword.
2937
*/
3038
void setAbsoluteKeywordLocation (String location);
3139

40+
/**
41+
* Set error or annotation produced by a failed validation.
42+
*
43+
* @param error the error or annotation produced by a failed validation.
44+
*/
3245
void setError (String error);
3346

47+
/**
48+
* Set the error or annotation produced by a successful validation.
49+
*
50+
* @param annotation the error or annotation produced by a successful validation.
51+
*/
3452
void setAnnotation (Object annotation);
3553

3654
/**
37-
* errors or annotation produced by a failed validation
55+
* Set errors or annotation produced by a failed validation.
56+
*
57+
* @param errors the errors or annotation produced by a failed validation.
3858
*/
3959
void setErrors (Collection<OutputUnit> errors);
4060

4161
/**
42-
* errors or annotation produced by a successful validation
62+
* Set the errors or annotation produced by a successful validation.
63+
*
64+
* @param annotations the errors or annotations produced by a successful validation.
4365
*/
4466
void setAnnotations (Collection<OutputUnit> annotations);
4567
}
46-

json-schema-validator/src/main/java/io/openapiprocessor/jsonschema/validator/steps/ValidationStep.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public interface ValidationStep {
3535
/**
3636
* If true this step is used to calculate the final validation result. 'if' is the only keyword that is not
3737
* validatable.
38+
*
39+
* @return true if validatable, else false
3840
*/
3941
default boolean isValidatable () {
4042
return true;

openapi-parser/src/main/java/io/openapiparser/OpenApiResult.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ enum Version { V30, V31 }
5656
* can be used to create a single file document.
5757
*
5858
* @param writer the target writer
59+
* @throws IOException if writing failed
5960
*/
6061
@Experimental
6162
void write(Writer writer) throws IOException;

0 commit comments

Comments
 (0)