Class PropertyDescriptor

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

public final class PropertyDescriptor extends Object implements Cloneable, Serializable
Describes an Ice property.
See Also:
  • Field Details

    • name

      public String name
      The name of the property.
    • value

      public String value
      The value of the property.
  • Constructor Details

    • PropertyDescriptor

      public PropertyDescriptor()
      Constructs a PropertyDescriptor.
    • PropertyDescriptor

      public PropertyDescriptor(String name, String value)
      Constructs a PropertyDescriptor with values for all its fields.
      Parameters:
      name - The name of the property.
      value - The value of the property.
  • Method Details

    • equals

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

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

      public PropertyDescriptor 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, PropertyDescriptor v)
      Marshals a PropertyDescriptor into an output stream.
      Parameters:
      ostr - the output stream
      v - the PropertyDescriptor to marshal; can be null
    • ice_read

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

      public static void ice_write(OutputStream ostr, int tag, Optional<PropertyDescriptor> v)
      Marshals an optional PropertyDescriptor 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, PropertyDescriptor v)
      Marshals an optional PropertyDescriptor into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

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