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.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
static Identity
ice_read
(InputStream istr) Unmarshals anIdentity
from an input stream.ice_read
(InputStream istr, int tag) Unmarshals an optionalIdentity
from an input stream.void
ice_readMembers
(InputStream istr) Unmarshals and sets this object's fields from an input stream.static void
ice_write
(OutputStream ostr, int tag, Identity v) Marshals an optionalIdentity
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<Identity> v) Marshals an optionalIdentity
into an output stream.static void
ice_write
(OutputStream ostr, Identity v) Marshals anIdentity
into an output stream.void
ice_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 aIdentity
with 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 anIdentity
into an output stream.- Parameters:
ostr
- the output streamv
- theIdentity
to marshal; can be null
-
ice_read
Unmarshals anIdentity
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
Identity
-
ice_write
Marshals an optionalIdentity
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalIdentity
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalIdentity
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-