|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.util.Address
public class Address
A generic SDP network address. There are three network address types:
Field Summary | |
---|---|
protected String |
address
The network address |
protected String |
addressType
The address type |
static String |
IN
The Internet network type |
static String |
IP4
The IP4 address type |
static String |
IP6
The IP6 address type |
Constructor Summary | |
---|---|
protected |
Address()
Creates a new Address. |
|
Address(String address)
Creates a new Address. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this address. |
boolean |
equals(Object object)
Compare for equality of hosts. |
String |
getAddress()
Returns the address value. |
String |
getAddressType()
Returns the address type. |
boolean |
isFQDN()
Indicate if the address is a Fully Qualified Domain Name (and not an IP4 or IP6 address). |
static boolean |
isFQDN(String address)
Indicate if an address is a Fully Qualified Domain Name (and not an IP4 or IP6 address) |
boolean |
isIPAddress()
Indicates if the address is an IP address (and not a Fully Qualified Domain name). |
void |
setAddress(String address)
Sets the address value |
String |
toString()
Returns a string representation of the address. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String IN
public static final String IP4
public static final String IP6
protected String address
protected String addressType
Constructor Detail |
---|
protected Address()
public Address(String address) throws SDPException
address
- the address value
SDPException
- if the address is not validMethod Detail |
---|
public static boolean isFQDN(String address)
address
- the address to check
public Object clone()
clone
in class Object
public boolean equals(Object object)
equals
in class Object
object
- object to compare
public String getAddress()
public String getAddressType()
public boolean isFQDN()
public boolean isIPAddress()
public void setAddress(String address) throws SDPException
address
- the address value to set
SDPException
- if the address is not validpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |