public int getOrdinalByString(String stringValue) {
		for (int i = 0; i < valueNames.length; i++) {
			if (valueNames[i].equals(stringValue)) {
				return i;
			}
		}
		return -1;
	}
returns the Enum's ordinal using the Enum's string representation.

@param stringValue Enum's string rep
@return integer index of the Enum
Ghidra/Framework/Docking/src/main/java/ghidra/docking/settings/JavaEnumSettingsDefinition.java