From 709487015208e34829ce21f347c5571a8d375896 Mon Sep 17 00:00:00 2001 From: CarstenHollmann Date: Fri, 3 Jul 2020 11:31:24 +0200 Subject: [PATCH] add isSetObservation... --- .../org/n52/series/db/beans/ResultTemplateEntity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entities/src/main/java/org/n52/series/db/beans/ResultTemplateEntity.java b/entities/src/main/java/org/n52/series/db/beans/ResultTemplateEntity.java index 516cfbab..203e1085 100644 --- a/entities/src/main/java/org/n52/series/db/beans/ResultTemplateEntity.java +++ b/entities/src/main/java/org/n52/series/db/beans/ResultTemplateEntity.java @@ -165,6 +165,10 @@ public String getObservationStructure() { return observationStructure; } + public boolean isSetObservationStructure() { + return (getObservationStructure() != null) && !getObservationStructure().isEmpty(); + } + public void setObservationStructure(String observationStructure) { this.observationStructure = observationStructure; } @@ -177,6 +181,10 @@ public void setObservationEncoding(String observationsEncoding) { this.observationsEncoding = observationsEncoding; } + public boolean isSetObservationEncoding() { + return (getObservationEncoding() != null) && !getObservationEncoding().isEmpty(); + } + public boolean isSetProcedure() { return getProcedure() != null; }