@Override
  public Object getField(String fieldName) {
    if ("name".equals(fieldName)) {
      return enumName;
    } else if ("ordinal".equals(fieldName)) {
      return enumOrdinal;
    }
    return null;
  }
Used to represent an enum value as a PdxInstance

@since GemFire 6.6.2
geode-core/src/main/java/org/apache/geode/pdx/internal/PdxInstanceEnum.java