java.lang.Object
com.zeroc.Ice.Identity
- All Implemented Interfaces:
Serializable,Cloneable
Represents the identity of an Ice object. It is comparable to the path of a URI. Its string representation is
name when the category is empty, and category/name when the category is not empty.
Remarks:
The Slice compiler generated this class from Slice struct ::Ice::Identity.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleaninthashCode()static Identityice_read(InputStream istr) Unmarshals anIdentityfrom an input stream.ice_read(InputStream istr, int tag) Unmarshals an optionalIdentityfrom an input stream.voidice_readMembers(InputStream istr) Unmarshals and sets this object's fields from an input stream.static voidice_write(OutputStream ostr, int tag, Identity v) Marshals an optionalIdentityinto an output stream.static voidice_write(OutputStream ostr, int tag, Optional<Identity> v) Marshals an optionalIdentityinto an output stream.static voidice_write(OutputStream ostr, Identity v) Marshals anIdentityinto an output stream.voidice_writeMembers(OutputStream ostr) Marshals this object's fields into an output stream.
-
Field Details
-
name
The name of the Ice object. An empty name is not valid. -
category
The category of the object.
-
-
Constructor Details
-
Identity
public Identity()Constructs aIdentity. -
Identity
Constructs aIdentitywith values for all its fields.- Parameters:
name- The name of the Ice object.category- The category of the object.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
clone
-
ice_writeMembers
Marshals this object's fields into an output stream.- Parameters:
ostr- the output stream
-
ice_readMembers
Unmarshals and sets this object's fields from an input stream.- Parameters:
istr- the input stream
-
ice_write
Marshals anIdentityinto an output stream.- Parameters:
ostr- the output streamv- theIdentityto marshal
-
ice_read
Unmarshals anIdentityfrom an input stream.- Parameters:
istr- the input stream- Returns:
- the unmarshaled
Identity
-
ice_write
Marshals an optionalIdentityinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_write
Marshals an optionalIdentityinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_read
Unmarshals an optionalIdentityfrom an input stream.- Parameters:
istr- the input streamtag- the tag- Returns:
- the unmarshaled value
-