2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.lispflowmapping.implementation.inventory;
11 import java.net.InetAddress;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlRootElement;
18 import org.opendaylight.controller.sal.core.Property;
21 @XmlAccessorType(XmlAccessType.NONE)
22 public class IPAddressNodeProperty extends Property implements Cloneable {
23 private static final long serialVersionUID = 1L;
24 @XmlElement(name="value")
25 private final InetAddress address;
26 public static final String name = "IPAddress";
29 * Private constructor used for JAXB mapping
31 private IPAddressNodeProperty() {
36 public IPAddressNodeProperty(InetAddress address) {
38 this.address = address;
42 public String getStringValue() {
43 if (address == null) return null;
44 return this.address.getHostAddress();
48 public Property clone() {
49 return new IPAddressNodeProperty(this.address);
52 public InetAddress getAddress() {