Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit 68e4aaf

Browse files
committed
Version bump and pre-release fixes.
1 parent 3a4c179 commit 68e4aaf

File tree

13 files changed

+191
-520
lines changed

13 files changed

+191
-520
lines changed

biomedicus-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>biomedicus</artifactId>
2121
<groupId>edu.umn.biomedicus</groupId>
22-
<version>1.6.0-SNAPSHOT</version>
22+
<version>1.6.0</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525

biomedicus-core/src/main/java/edu/umn/biomedicus/common/types/text/Sentence.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@
2222
* @since 1.5.0
2323
*/
2424
public final class Sentence {
25+
26+
public static Sentence create() {
27+
return new Sentence();
28+
}
2529
}

biomedicus-core/src/main/java/edu/umn/biomedicus/framework/DefaultDocument.java

Lines changed: 0 additions & 110 deletions
This file was deleted.

biomedicus-core/src/main/java/edu/umn/biomedicus/framework/EagerLoadable.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
import edu.umn.biomedicus.exc.BiomedicusException;
2020

2121
public interface EagerLoadable {
22-
void eagerLoad() throws BiomedicusException;
22+
23+
void eagerLoad() throws BiomedicusException;
2324
}

biomedicus-core/src/main/java/edu/umn/biomedicus/framework/store/DefaultTextView.java

Lines changed: 0 additions & 79 deletions
This file was deleted.

biomedicus-core/src/main/java/edu/umn/biomedicus/framework/store/Document.java

Lines changed: 47 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,58 @@
2525
* @since 1.6.0
2626
*/
2727
public interface Document {
28-
/**
29-
*
30-
*
31-
* @return
32-
*/
33-
String getDocumentId();
3428

29+
/**
30+
* Returns the document identifier.
31+
*
32+
* @return string document identifier
33+
*/
34+
String getDocumentId();
3535

36-
/**
37-
*
38-
* @param key
39-
* @return
40-
*/
41-
Optional<String> getMetadata(String key);
36+
/**
37+
* Returns an Optional of the metadata with the specified key.
38+
*
39+
* @param key the string identifier key for the metadata value
40+
* @return an optional of the value associated with the key, it will be empty if there is no value
41+
* associated with the specified key
42+
*/
43+
Optional<String> getMetadata(String key);
4244

43-
Map<String, String> getAllMetadata();
45+
/**
46+
* Returns a map of all the metadata for this document.
47+
*
48+
* @return unmodifiable map of all the metadata for this document.
49+
*/
50+
Map<String, String> getAllMetadata();
4451

45-
/**
46-
* @param key
47-
* @param value
48-
*/
49-
void putMetadata(String key, String value);
52+
/**
53+
* Adds the following metadata to the document.
54+
*
55+
* @param key the key for the metadata
56+
* @param value the value for the metadata.
57+
*/
58+
void putMetadata(String key, String value);
5059

51-
void putAllMetadata(Map<String, String> metadata);
60+
/**
61+
* Puts all the entries from the map into the document
62+
*
63+
* @param metadata a metadata map
64+
*/
65+
void putAllMetadata(Map<String, String> metadata);
5266

53-
/**
54-
*
55-
* @param name
56-
* @return
57-
*/
58-
Optional<TextView> getTextView(String name);
67+
/**
68+
* Gets an optional of the text view specified by the name.
69+
*
70+
* @param name the name identifier of the text view
71+
* @return an optional of the text view, it will be empty if there is no text view associated for
72+
* the specific text view.
73+
*/
74+
Optional<TextView> getTextView(String name);
5975

60-
61-
TextView.Builder newTextView();
76+
/**
77+
* Returns a builder for a new text view.
78+
*
79+
* @return builder for a new text view
80+
*/
81+
TextView.Builder newTextView();
6282
}

0 commit comments

Comments
 (0)