Module inet.ipaddr
Package inet.ipaddr

Class AddressStringParameters.AddressStringFormatParameters

java.lang.Object
inet.ipaddr.AddressStringParameters.AddressStringFormatParameters
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
IPAddressStringParameters.IPAddressStringFormatParameters, MACAddressStringParameters.MACAddressStringFormatParameters
Enclosing class:
AddressStringParameters

public static class AddressStringParameters.AddressStringFormatParameters extends Object implements Cloneable, Serializable
See Also:
  • Field Details

    • DEFAULT_ALLOW_LEADING_ZEROS

      public static final boolean DEFAULT_ALLOW_LEADING_ZEROS
      See Also:
    • DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS

      public static final boolean DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
      See Also:
    • DEFAULT_ALLOW_WILDCARDED_SEPARATOR

      public static final boolean DEFAULT_ALLOW_WILDCARDED_SEPARATOR
      See Also:
    • DEFAULT_RANGE_OPTIONS

      public static final AddressStringParameters.RangeParameters DEFAULT_RANGE_OPTIONS
    • rangeOptions

      public final AddressStringParameters.RangeParameters rangeOptions
      controls whether wildcards like '*', '_' or ranges with '-' are allowed
    • allowWildcardedSeparator

      public final boolean allowWildcardedSeparator
      controls whether the wildcard '*' or '%' can replace the segment separators '.' and ':'. If so, then you can write addresses like *.* or *:*
      See Also:
    • allowLeadingZeros

      public final boolean allowLeadingZeros
      whether you allow addresses with segments that have leasing zeros like 001.2.3.004 or 1:000a:: For IPV4, this option overrides inet_aton octal. Single segment addresses that must have the requisite length to be parsed are not affected by this flag.
      See Also:
    • allowUnlimitedLeadingZeros

      public final boolean allowUnlimitedLeadingZeros
      if allowLeadingZeros or the address is IPv4 and IPv4AddressStringParameters.inet_aton_octal is true, this determines if you allow leading zeros that extend segments beyond the usual segment length, which is 3 for IPv4 dotted-decimal and 4 for IPv6. For example, this determines whether you allow 0001.0002.0003.0004
      See Also:
  • Constructor Details

    • AddressStringFormatParameters

      public AddressStringFormatParameters(boolean allowLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator)
  • Method Details