public class ConfIPv4AndPrefixLen extends ConfIPAndPrefixLen implements Cloneable, Serializable, Comparable<ConfIPv4AndPrefixLen>
type string { pattern '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}' + '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])' + '/(([0-9])|([1-2][0-9])|(3[0-2]))'; }The ipv4-address-and-prefix-length type represents a combination of an IPv4 address and a prefix length. The prefix length is given by the number following the slash character and must be less than or equal to 32.
J_BINARY, J_BIT32, J_BIT64, J_BITBIG, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLMOVEAFTER, J_XMLMOVEFIRST, J_XMLTAG
Constructor and Description |
---|
ConfIPv4AndPrefixLen(ConfEObject v) |
ConfIPv4AndPrefixLen(InetAddress addr,
int masklen) |
ConfIPv4AndPrefixLen(int[] addr,
int masklen) |
ConfIPv4AndPrefixLen(int a,
int b,
int c,
int d,
int masklen) |
ConfIPv4AndPrefixLen(String str) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConfIPv4AndPrefixLen o) |
ConfEObject |
encode()
encode value.
|
boolean |
equals(Object o)
Determine if two ConfValue are equal.
|
InetAddress |
getAddress() |
int |
getMaskLength() |
int[] |
getRawAddress() |
int |
hashCode() |
String |
toString() |
getStringByValue, getStringByValue, getValueByString, getValueByString
clone, decode
public ConfIPv4AndPrefixLen(ConfEObject v) throws ConfException
ConfException
public ConfIPv4AndPrefixLen(InetAddress addr, int masklen)
public ConfIPv4AndPrefixLen(int[] addr, int masklen)
public ConfIPv4AndPrefixLen(int a, int b, int c, int d, int masklen)
public ConfIPv4AndPrefixLen(String str)
public int[] getRawAddress()
getRawAddress
in class ConfIPAndPrefixLen
public boolean equals(Object o)
ConfValue
public InetAddress getAddress()
getAddress
in class ConfIPAndPrefixLen
public int getMaskLength()
getMaskLength
in class ConfIPAndPrefixLen
public String toString()
public ConfEObject encode()
ConfValue
encode
in class ConfIPAndPrefixLen
public int compareTo(ConfIPv4AndPrefixLen o)
compareTo
in interface Comparable<ConfIPv4AndPrefixLen>