package CosTrading;
abstract public class PropertyNameHelper {
  private static org.omg.CORBA.ORB _orb() {
    return org.omg.CORBA.ORB.init();
  }
  public static java.lang.String read(org.omg.CORBA.portable.InputStream _input) {
    java.lang.String result;
    result = _input.read_string();
    return result;
  }
  public static void write(org.omg.CORBA.portable.OutputStream _output, java.lang.String value) {
    _output.write_string(value);
  }
  public static void insert(org.omg.CORBA.Any any, java.lang.String value) {
    org.omg.CORBA.portable.OutputStream output = any.create_output_stream();
    write(output, value);
    any.read_value(output.create_input_stream(), type());
  }
  public static java.lang.String extract(org.omg.CORBA.Any any) {
    if(!any.type().equal(type())) {
      throw new org.omg.CORBA.BAD_TYPECODE();
    }
    return read(any.create_input_stream());
  }
  private static org.omg.CORBA.TypeCode _type;
  public static org.omg.CORBA.TypeCode type() {
    if(_type == null) {
      _type = _orb().create_alias_tc(id(), "PropertyName", _orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
    }
    return _type;
  }
  public static java.lang.String id() {
    return "IDL:omg.org/CosTrading/PropertyName:1.0";
  }
}
