분류 enum
This commit is contained in:
@@ -6,33 +6,29 @@ import lombok.Getter;
|
|||||||
@Getter
|
@Getter
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum DetectionClassification {
|
public enum DetectionClassification {
|
||||||
BUILDING("building", "건물", 10),
|
ROAD("road", "도로", 10),
|
||||||
CONTAINER("container", "컨테이너", 20),
|
BUILDING("building", "건물", 20),
|
||||||
FIELD("field", "경작지", 30),
|
GREENHOUSE("greenhouse", "비닐하우스", 30),
|
||||||
FOREST("forest", "숲", 40),
|
FIELD("field", "논/밭", 40),
|
||||||
GRASS("grass", "초지", 50),
|
ORCHARD("orchard", "과수원", 50),
|
||||||
GREENHOUSE("greenhouse", "비닐하우스", 60),
|
GRASS("grass", "초지", 60),
|
||||||
LAND("land", "일반토지", 70),
|
FOREST("forest", "숲", 70),
|
||||||
ORCHARD("orchard", "과수원", 80),
|
WATER("water", "물", 80),
|
||||||
ROAD("road", "도로", 90),
|
STONE("stone", "모래/자갈", 90),
|
||||||
STONE("stone", "모래/자갈", 100),
|
WASTE("waste", "적치물", 100),
|
||||||
TANK("tank", "물탱크", 110),
|
CONTAINER("container", "컨테이너", 110),
|
||||||
TUMULUS("tumulus", "토분(무덤)", 120),
|
LAND("land", "일반토지", 120),
|
||||||
WASTE("waste", "폐기물", 130),
|
SOLAR("solar", "태양광", 130),
|
||||||
WATER("water", "물", 140),
|
TANK("tank", "물탱크", 140),
|
||||||
CONSTRUCTION("construction", "건설", 150),
|
NDC("NDC", "미분류", 150),
|
||||||
NDC("NDC", "미분류", 160),
|
ETC("ETC", "기타", 160);
|
||||||
RICE("rice", "논", 170),
|
|
||||||
WOOD("wood", "산림", 180),
|
|
||||||
ETC("ETC", "기타", 200); // For 'etc' (miscellaneous/other)
|
|
||||||
|
|
||||||
private final String id;
|
private final String id;
|
||||||
private final String desc;
|
private final String desc;
|
||||||
private final int order;
|
private final int order;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optional: Helper method to get the enum from a String, case-insensitive, or return ETC if not
|
* Optional: Helper method to get the enum from a String, case-insensitive, or return ETC if not found.
|
||||||
* found.
|
|
||||||
*/
|
*/
|
||||||
public static DetectionClassification fromString(String text) {
|
public static DetectionClassification fromString(String text) {
|
||||||
if (text == null || text.trim().isEmpty()) {
|
if (text == null || text.trim().isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user