package mil.nga.giat.geowave.format.stanag4676.parser.model; //STANAG 4676 /** * Enumeration Provides the lineage relationship between two entities. */ public enum LineageRelationType { /** * a parent relationship with another specified entity */ PARENT( "PARENT"), /** * a child relationship with another specified entity. */ CHILD( "CHILD"), /** * no relationship between tracks. Used when an update is required to * terminate an existing relationship */ NONE( "NONE"); private String value; LineageRelationType() { this.value = LineageRelationType.values()[0].toString(); } LineageRelationType( final String value ) { this.value = value; } public static LineageRelationType fromString( String value ) { for (final LineageRelationType item : LineageRelationType.values()) { if (item.toString().equals( value)) { return item; } } return null; } @Override public String toString() { return value; } }