private boolean validateIpRangeSet(Set ipSet) throws PolicyException {
  Iterator ipRanges=ipSet.iterator();
  while (ipRanges.hasNext()) {
    String ipRange=(String)ipRanges.next();
    StringTokenizer st=new StringTokenizer(ipRange,"-");
    int tokenCount=st.countTokens();
    if (tokenCount > 2) {
      String args[]={IP_RANGE,ipRange};
      throw new PolicyException(ResBundleUtils.rbName,"invalid_property_value",args,null);
    }
    String startIp=st.nextToken();
    String endIp=startIp;
    if (tokenCount == 2) {
      endIp=st.nextToken();
    }
    ipList.add(new Long(stringToIp(startIp)));
    ipList.add(new Long(stringToIp(endIp)));
  }
  return true;
}

private boolean validateIpRangeSet ( Set ipSet ) throws PolicyException { Iterator ipRanges = ipSet . iterator ( ) ; while ( ipRanges . hasNext ( ) ) { String ipRange = ( String ) ipRanges . next ( ) ; StringTokenizer st = new StringTokenizer ( ipRange , "-" ) ; int tokenCount = st . countTokens ( ) ; if ( tokenCount > 2 ) { String args [ ] = { IP_RANGE , ipRange } ; throw new PolicyException ( ResBundleUtils . rbName , "invalid_property_value" , args , null ) ; } String startIp = st . nextToken ( ) ; String endIp = startIp ; if ( tokenCount == 2 ) { endIp = st . nextToken ( ) ; } ipList . add ( new Long ( stringToIp ( startIp ) ) ) ; ipList . add ( new Long ( stringToIp ( endIp ) ) ) ; } return true ; }
validates if the value of property ip_range is correct and adheres to the expected format
