|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opencloud.slee.resources.mm7.MM7Address
public class MM7Address
Represents MM7 addresses. Consists of a Address
plus a
'display-only' flag that indicates whether an address is display-only or
routable.
The address plan of the Address determines the mapping to MM7 address types:
Nested Class Summary | |
---|---|
static class |
MM7Address.AddressCoding
Typesafe enum for Address Coding |
Constructor Summary | |
---|---|
MM7Address(javax.slee.Address address)
Construct a new MM7 address from a SLEE address. |
|
MM7Address(javax.slee.Address address,
boolean displayOnly)
Construct a new MM7 address from a SLEE address. |
|
MM7Address(javax.slee.Address address,
boolean displayOnly,
MM7Address.AddressCoding addressCoding)
Construct a new MM7 address from a SLEE address. |
|
MM7Address(javax.slee.Address address,
boolean displayOnly,
MM7Address.AddressCoding addressCoding,
java.lang.String id)
Construct a new MM7 address from a SLEE address. |
|
MM7Address(java.io.DataInput in)
Construct a MM7 address from a stream. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
void |
fromStream(java.io.DataInput in)
|
javax.slee.Address |
getAddress()
Get the underlying SLEE address of this address. |
MM7Address.AddressCoding |
getAddressCoding()
Get the AddressCoding of this address. |
java.lang.String |
getID()
Get the id of this address. |
int |
hashCode()
|
boolean |
isDisplayOnly()
Get the display-only flag of this address. |
void |
toStream(java.io.DataOutput out)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MM7Address(javax.slee.Address address) throws java.lang.IllegalArgumentException
address
- the underlying SLEE address
java.lang.IllegalArgumentException
- if the address plan of address
is not a supported plan for MM7 addressespublic MM7Address(javax.slee.Address address, boolean displayOnly) throws java.lang.IllegalArgumentException
address
- the underlying SLEE addressdisplayOnly
- the value of the display-only flag
java.lang.IllegalArgumentException
- if the address plan of address
is not a supported plan for MM7 addressespublic MM7Address(javax.slee.Address address, boolean displayOnly, MM7Address.AddressCoding addressCoding) throws java.lang.IllegalArgumentException
address
- the underlying SLEE addressdisplayOnly
- the value of the display-only flagaddressCoding
- the value of the address coding, or null
if inapplicable
java.lang.IllegalArgumentException
- if the address plan of address
is not a supported plan for MM7 addressespublic MM7Address(javax.slee.Address address, boolean displayOnly, MM7Address.AddressCoding addressCoding, java.lang.String id) throws java.lang.IllegalArgumentException
address
- the underlying SLEE addressdisplayOnly
- the value of the display-only flagaddressCoding
- the value of the address coding, or null
if inapplicableid
- the value of id of the address, or null if inapplicable
- Throws:
java.lang.IllegalArgumentException
- if the address plan of address
is not a supported plan for MM7 addresses
public MM7Address(java.io.DataInput in) throws java.io.IOException
in
- the stream to read from
java.io.IOException
- if the stream is badly formattedMethod Detail |
---|
public final javax.slee.Address getAddress()
public final boolean isDisplayOnly()
public final MM7Address.AddressCoding getAddressCoding()
null
if not setpublic final java.lang.String getID()
null
if not setpublic void toStream(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void fromStream(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |