Class ObjectInfo

java.lang.Object
com.zeroc.IceGrid.ObjectInfo
All Implemented Interfaces:
Serializable, Cloneable

public final class ObjectInfo extends Object implements Cloneable, Serializable
Information about an Ice well-known object.
See Also:
  • Field Details

    • proxy

      public ObjectPrx proxy
      The proxy of the object.
    • type

      public String type
      The type of the object.
  • Constructor Details

    • ObjectInfo

      public ObjectInfo()
      Constructs a ObjectInfo.
    • ObjectInfo

      public ObjectInfo(ObjectPrx proxy, String type)
      Constructs a ObjectInfo with values for all its fields.
      Parameters:
      proxy - The proxy of the object.
      type - The type of the object.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ObjectInfo clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

      public static void ice_write(OutputStream ostr, ObjectInfo v)
      Marshals an ObjectInfo into an output stream.
      Parameters:
      ostr - the output stream
      v - the ObjectInfo to marshal; can be null
    • ice_read

      public static ObjectInfo ice_read(InputStream istr)
      Unmarshals an ObjectInfo from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled ObjectInfo
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<ObjectInfo> v)
      Marshals an optional ObjectInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, ObjectInfo v)
      Marshals an optional ObjectInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<ObjectInfo> ice_read(InputStream istr, int tag)
      Unmarshals an optional ObjectInfo from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value