Code ReOrganization and Re-Architecture changes
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / plugin / IPAddressProperty.java
diff --git a/ovsdb/src/main/java/org/opendaylight/ovsdb/plugin/IPAddressProperty.java b/ovsdb/src/main/java/org/opendaylight/ovsdb/plugin/IPAddressProperty.java
deleted file mode 100644 (file)
index 3caa2a1..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2013 Red Hat, Inc.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Authors : Madhu Venugopal, Brent Salisbury
- */
-
-package org.opendaylight.ovsdb.plugin;
-import java.net.InetAddress;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-
-import org.opendaylight.controller.sal.core.Property;
-
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.NONE)
-public class IPAddressProperty extends Property implements Cloneable {
-    private static final long serialVersionUID = 1L;
-    @XmlElement(name="value")
-    private final InetAddress address;
-    public static final String name = "IPAddress";
-
-    /*
-     * Private constructor used for JAXB mapping
-     */
-    private IPAddressProperty() {
-        super(name);
-        this.address = null;
-    }
-
-    public IPAddressProperty(InetAddress address) {
-        super(name);
-        this.address = address;
-    }
-
-    @Override
-    public String getStringValue() {
-        if (address == null) return null;
-        return this.address.getHostAddress();
-    }
-
-    @Override
-    public Property clone() {
-        return new IPAddressProperty(this.address);
-    }
-
-    public InetAddress getAddress() {
-        return address;
-    }
-}