Skip to content

Commit

Permalink
tokenLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning authored Sep 5, 2023
2 parents 887e155 + 21e28ad commit fda1f56
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 105 deletions.
101 changes: 0 additions & 101 deletions build - Kopie.gradle

This file was deleted.

5 changes: 4 additions & 1 deletion src/main/java/tla/domain/command/SentenceSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public class SentenceSearch extends MultiLingSearchCommand<SentenceDto> {
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public static class TokenSpec {

public String id;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private String id;

/**
* looking for usages of a specific lemma entry.
*/
Expand Down Expand Up @@ -66,6 +68,7 @@ public static class TokenSpec {
@JsonIgnore
public boolean isEmpty() {
return (
(this.id==null) &&
(this.lemma == null || this.lemma.isEmpty()) &&
(this.glyphs == null || this.glyphs.isBlank()) &&
(this.transcription == null || this.transcription.isEmpty()) &&
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/tla/domain/dto/tla-common-master.uml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_w-efABZ3Ee6AY_TChlC22A" name="tla_common_master"/>
4 changes: 4 additions & 0 deletions src/main/java/tla/domain/dto/tla-common-master.umlcd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<com.yattasolutions.uml.diagrams.classifier:ClassDiagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.yattasolutions.uml.diagrams.classifier="http://ns.yatta-solutions.com/umllab/diagrams/classifier/1.1.0" xmi:id="_zUpsMBZ3Ee6AY_TChlC22A">
<modelElement href="platform:/resource/tla-common-master/src/main/java/tla/domain/dto/tla-common-master.uml#_w-efABZ3Ee6AY_TChlC22A"/>
</com.yattasolutions.uml.diagrams.classifier:ClassDiagram>
5 changes: 2 additions & 3 deletions src/main/java/tla/domain/model/EditorInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class EditorInfo {

public static SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd");
static {
dateFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
Expand Down Expand Up @@ -90,7 +90,7 @@ public void setDate(String key, String date) {
);
}
}

public boolean wasCreatedBeforeBTS3() {
try {
Date dateBTS3 = dateFormatter.parse("2015-06-26");
Expand All @@ -101,5 +101,4 @@ public boolean wasCreatedBeforeBTS3() {
return false;
}


}

0 comments on commit fda1f56

Please sign in to comment.