private boolean validateEndIp(Set ipSet) throws PolicyException {
  if (startIp == Long.MAX_VALUE) {
    String args[]={END_IP,START_IP};
    throw new PolicyException(ResBundleUtils.rbName,"pair_property_not_defined",args,null);
  }
  if (ipSet.size() != 1) {
    String args[]={END_IP};
    throw new PolicyException(ResBundleUtils.rbName,"multiple_values_not_allowed_for",args,null);
  }
  Iterator endIpIter=ipSet.iterator();
  try {
    String endIpString=(String)endIpIter.next();
    endIp=stringToIp(endIpString);
  }
 catch (  ClassCastException ce) {
    String args[]={END_IP};
    throw new PolicyException(ResBundleUtils.rbName,"property_is_not_a_String",args,ce);
  }
  if (endIp < startIp) {
    throw new PolicyException(ResBundleUtils.rbName,"start_ip_can_not_be_greater_than_end_ip",null,null);
  }
  return true;
}

private boolean validateEndIp ( Set ipSet ) throws PolicyException { if ( startIp == Long . MAX_VALUE ) { String args [ ] = { END_IP , START_IP } ; throw new PolicyException ( ResBundleUtils . rbName , "pair_property_not_defined" , args , null ) ; } if ( ipSet . size ( ) != 1 ) { String args [ ] = { END_IP } ; throw new PolicyException ( ResBundleUtils . rbName , "multiple_values_not_allowed_for" , args , null ) ; } Iterator endIpIter = ipSet . iterator ( ) ; try { String endIpString = ( String ) endIpIter . next ( ) ; endIp = stringToIp ( endIpString ) ; } catch ( ClassCastException ce ) { String args [ ] = { END_IP } ; throw new PolicyException ( ResBundleUtils . rbName , "property_is_not_a_String" , args , ce ) ; } if ( endIp < startIp ) { throw new PolicyException ( ResBundleUtils . rbName , "start_ip_can_not_be_greater_than_end_ip" , null , null ) ; } return true ; }
validates if the value of property end_ip is correct and adheres to the expected format
