5.2.4.3 Javaマッピング

名前ライブラリの擬似OMG IDLインタフェースは、次のコード・スニペットに示す、com.beasys.Tobjパッケージに含まれているJavaクラスにマップします。例外はすべて、同じパッケージ内に包含されています。

ライブラリ名クラスの詳細は、『CORBAservices: Common Object Services Specification』の第3章を参照してください。

public class LNameComponent {
    public static LNameComponent create_lname_component();
    public static final short MAX_LNAME_STRING = 128;
    public void destroy();
    public String get_id() throws NotSet;
    public void set_id(String i) throws OverFlow;
    public String get_kind() throws NotSet;
    public void set_kind(String k) throws OverFlow;
};
    public class LName {
    public static LName create_lname();
    public void destroy();
    public LName insert_component(long i, LNameComponent n)
       throws NoComponent, OverFlow;
    public LNameComponent get_component(long i)
       throws NoComponent;
    public LNameComponent delete_component(long i)
       throws NoComponent;
    public long num_components();
    public boolean equal(LName ln);
    public boolean less_than(LName ln);// not implemented
    public org.omg.CosNaming.NameComponent[] to_idl_form()
       throws InvalidName;
    public void from_idl_form(org.omg.CosNaming.NameComponent[] nr);
};