|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.common.filter.util.BBIPAddress
This class is responsible for parsing out an ip octet string into ranges and comma lists.
Field Summary | |
private BBIPOctet[] |
octets
Array to of BBIPOctet objects to hold the octet data. |
Constructor Summary | |
BBIPAddress(String ipLikeString)
Constructor to build a BBIPAddress from an octet string mask from an IPLIKE operation. |
Method Summary | |
static int |
getIpAsInteger(String octetString)
This method returns the octet string as an integer. |
static String |
getIpAsOctetString(int ipAddr)
This method returns an integer ip address as an octet string. |
static String |
getIpAsOctetString(Integer ipAddr)
This method returns an integer ip address as an octet string. |
Range |
getOctetRange(int octetIndex,
int rangeIndex)
This method returns a particular range in a particular octet. |
int |
numOctetElements(int octetIndex)
This method calls a method from BBIPOctet to get the number of ranges that occured in the octet. |
int |
numOctets()
This method returns the number of octets parse from the original string. |
static String[] |
parseOctets(String octetString)
This method parses the octetString into distinct octet pieces. |
String |
toString()
This method returns the original octet string. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private BBIPOctet[] octets
Constructor Detail |
public BBIPAddress(String ipLikeString)
String
- ipLikeString, octet string from IPLIKE operationMethod Detail |
public static String[] parseOctets(String octetString)
String
- octetString, original string from IPLIKE operationpublic int numOctets()
public int numOctetElements(int octetIndex)
int
- octetIndex, the index of the octet in questionpublic Range getOctetRange(int octetIndex, int rangeIndex)
int
- octetIndex, the index of the octet in questionint
- rangeIndex, the index of the range in questionpublic String toString()
toString
in class Object
public static int getIpAsInteger(String octetString)
String
- octetString, the string representation of the ip addresspublic static String getIpAsOctetString(int ipAddr)
int
- ipAddr, the integer representation of the ip addresspublic static String getIpAsOctetString(Integer ipAddr)
Integer
- ipAddr, the integer representation of the ip address
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |