org.opengroup.arm40.tranreport
public interface ArmSystemAddress extends ArmToken
null.
The fields are set using the newArmSystemAddress() method
of ArmTranReportFactory or the
getArmSystemAddress() method of ArmSystem.
There are no setter methods for the individual fields. The object is
immutable.
Implementations of this interface should also override
equals() and hashCode() from
java.lang.Object.
equals(Object obj), a method inherited from
java.lang.Object, returns true if the internal
data is byte-for-byte identical in two objects. For example,
a.equals(b) returns true if and only if:
a and b implement ArmSystemAddress.
a.getBytes() and
b.getBytes() would return byte arrays of identical lengths
and contents.
a.getFormat() and b.getFormat() would return
identical values.
| Field Summary | |
|---|---|
| static short | FORMAT_HOSTNAME
a hostname (characters, not null-terminated).
|
| static short | FORMAT_IPV4
an IPv4 address.
|
| static short | FORMAT_IPV4PORT
an IPv4 address and port number.
|
| static short | FORMAT_IPV6
an IPv6 address.
|
| static short | FORMAT_IPV6PORT
an IPv6 address and port number.
|
| static short | FORMAT_SNA
an SNA address.
|
| static short | FORMAT_UUID
a Universally-unique ID.
|
| static short | FORMAT_X25
an X.25 address.
|
| Method Summary | |
|---|---|
| byte[] | getAddress() |
| short | getFormat() |
| ArmID | getID() |
Bytes 0:?? = hostname
Returns: a byte array containing the address. The returned value is the
same value passed to the newArmSystemAddress()
method of ArmTranReportFactory.
Returns: a short containing the format. The returned value is the
same value passed to the newArmSystemAddress()
method of ArmTranReportFactory.
Returns: the optional 16-byte ID associated with the format and address,
if any. The returned value, which could be null, is the
same value passed to the newArmSystemAddress()
method of ArmTranReportFactory.