1 package de.dlr.shepard.context.collection.endpoints;
2
3 import de.dlr.shepard.common.neo4j.endpoints.OrderByAttribute;
4 import java.util.List;
5
6 public enum DataObjectAttributes implements OrderByAttribute {
7 createdAt,
8 updatedAt,
9 name;
10
11 private static List<DataObjectAttributes> stringList = List.of(DataObjectAttributes.name);
12
13 private boolean isString(DataObjectAttributes dataObjectAttribute) {
14 return stringList.contains(dataObjectAttribute);
15 }
16
17 @Override
18 public boolean isString() {
19 return isString(this);
20 }
21 }