aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/model/ExtendedModel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/model/ExtendedModel.java')
-rw-r--r--src/main/java/org/traccar/model/ExtendedModel.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/model/ExtendedModel.java b/src/main/java/org/traccar/model/ExtendedModel.java
index 8353d0e66..0fa1856d1 100644
--- a/src/main/java/org/traccar/model/ExtendedModel.java
+++ b/src/main/java/org/traccar/model/ExtendedModel.java
@@ -22,6 +22,10 @@ public class ExtendedModel extends BaseModel {
private Map<String, Object> attributes = new LinkedHashMap<>();
+ public boolean hasAttribute(String key) {
+ return attributes.containsKey(key);
+ }
+
public Map<String, Object> getAttributes() {
return attributes;
}