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