@Override protected String ipv6AddressString(final Ipv6Address addr) { return addr.getValue(); }
public IpAddress(Ipv6Address _ipv6Address) { super(); this._ipv6Address = _ipv6Address; this._ipv4Address = null; this._value = _ipv6Address.getValue().toString().toCharArray(); }
public char[] getValue() { if (_value == null) { if (_ipv4Address != null) { _value = _ipv4Address.getValue().toString().toCharArray(); } else if (_ipv6Address != null) { _value = _ipv6Address.getValue().toString().toCharArray(); } } return _value == null ? null : _value.clone(); }
public static String getStringIpAddress(IpAddress ipAddress) { if (ipAddress.getIpv4Address() != null) { return ipAddress.getIpv4Address().getValue(); } return ipAddress.getIpv6Address().getValue(); }
private InetSocketAddress getInetAddress() { try { final InetAddress inetAd = InetAddress.getByName(getBindingAddress().getIpv4Address() == null ? getBindingAddress().getIpv6Address().getValue() : getBindingAddress().getIpv4Address().getValue()); return new InetSocketAddress(inetAd, getPort().getValue()); } catch (final UnknownHostException e) { throw new IllegalArgumentException("Unable to bind netconf endpoint to address " + getBindingAddress(), e); } }
String propVal = retValue.getValue();
private InetSocketAddress getSocketAddress() { if(getAddress().getDomainName() != null) { return new InetSocketAddress(getAddress().getDomainName().getValue(), getPort().getValue()); } else { final IpAddress ipAddress = getAddress().getIpAddress(); final String ip = ipAddress.getIpv4Address() != null ? ipAddress.getIpv4Address().getValue() : ipAddress.getIpv6Address().getValue(); return new InetSocketAddress(ip, getPort().getValue()); } }
org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.LispIpv6Address lispIpv6Address; lispIpv6Address = (org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.LispIpv6Address) address; legacyAddress = new LispIpv6Address(lispIpv6Address.getIpv6Address().getValue()); break; case AS:
result.setPoolMemberAddress(memberIpAddress.getIpv4Address().getValue()); } else if (memberIpAddress.getIpv6Address() != null) { result.setPoolMemberAddress(memberIpAddress.getIpv6Address().getValue());