bookpoatie.java

来自「分布式CORBA的一些简答例程」· Java 代码 · 共 103 行

JAVA
103
字号

package BookStore;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "BookStore.idl"
 * <li> <b>IDL Name</b>      ::BookStore::Book
 * <li> <b>Repository Id</b> IDL:BookStore/Book:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * interface Book {
  ...
};
 * </pre>
 */
public class BookPOATie extends BookPOA {
  private BookStore.BookOperations _delegate;
  private org.omg.PortableServer.POA _poa;

  public BookPOATie (final BookStore.BookOperations _delegate) {
    this._delegate = _delegate;
  }

  public BookPOATie (final BookStore.BookOperations _delegate, 
                              final org.omg.PortableServer.POA _poa) {
    this._delegate = _delegate;
    this._poa = _poa;
  }

  public BookStore.BookOperations _delegate () {
    return this._delegate;
  }

  public void _delegate (final BookStore.BookOperations delegate) {
    this._delegate = delegate;
  }

  public org.omg.PortableServer.POA _default_POA () {
    if (_poa != null) {
      return _poa;
    } 
    else {
      return super._default_POA();
    }
  }

  /**
   * <pre>
   *   attribute string name;
   * </pre>
   */
  public java.lang.String name () {
    return this._delegate.name();
  }

  /**
   * <pre>
   *   attribute string name;
   * </pre>
   */
  public void name (java.lang.String name) {
    this._delegate.name(name);
  }

  /**
   * <pre>
   *   attribute string author;
   * </pre>
   */
  public java.lang.String author () {
    return this._delegate.author();
  }

  /**
   * <pre>
   *   attribute string author;
   * </pre>
   */
  public void author (java.lang.String author) {
    this._delegate.author(author);
  }

  /**
   * <pre>
   *   attribute string isbn;
   * </pre>
   */
  public java.lang.String isbn () {
    return this._delegate.isbn();
  }

  /**
   * <pre>
   *   attribute string isbn;
   * </pre>
   */
  public void isbn (java.lang.String isbn) {
    this._delegate.isbn(isbn);
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?