All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.lang.reflect.EnumValuePlaceholder Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * Copyright 2014 Guidewire Software, Inc.
 */
package gw.lang.reflect;

public class EnumValuePlaceholder implements IEnumValue {

  private final String _code;

  public EnumValuePlaceholder(String code) {
    this._code = code;
  }

  @Override
  public String getCode() {
    return _code;
  }

  @Override
  public String getDisplayName() {
    return _code;
  }

  @Override
  public Object getValue() {
    return _code;
//    throw new UnsupportedOperationException();
  }

  @Override
  public int getOrdinal() {
    throw new UnsupportedOperationException();
  }

  public String toString() {
    return _code;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy