Bug 868: Remove AD-SAL components which were deprecated in Lithium
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / core / Capabilities.java
diff --git a/opendaylight/adsal/sal/api/src/main/java/org/opendaylight/controller/sal/core/Capabilities.java b/opendaylight/adsal/sal/api/src/main/java/org/opendaylight/controller/sal/core/Capabilities.java
deleted file mode 100644 (file)
index d6a9458..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * 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
- */
-
-package org.opendaylight.controller.sal.core;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-
-/**
- * @file   Capabilities.java
- *
- * @brief  Class representing capabilities
- *
- * Describes supported capabilities
- */
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.NONE)
-@Deprecated
-public class Capabilities extends Property {
-        private static final long serialVersionUID = 1L;
-    @XmlElement(name="value")
-    private int capabilitiesValue;
-
-    public enum CapabilitiesType {
-        FLOW_STATS_CAPABILITY(1<<0),
-        TABLE_STATS_CAPABILITY(1<<1),
-        PORT_STATS_CAPABILITY(1<<2),
-        STP_CAPABILITY(1<<3),
-        RSVD_CAPABILITY(1<<4),
-        IP_REASSEM_CAPABILITY(1<<5),
-        QUEUE_STATS_CAPABILITY(1<<6),
-        ARP_MATCH_IP_CAPABILITY(1<<7);
-        private final int ct;
-        CapabilitiesType(int val) {
-                this.ct = val;
-        }
-        public int getValue() {
-                return ct;
-        }
-    }
-
-    public static final String CapabilitiesPropName = "capabilities";
-    /**
-     * Construct a Capabilities property
-     *
-     * @param capabilities the Capabilities value
-     * @return Constructed object
-     */
-    public Capabilities(int capabilities) {
-        super(CapabilitiesPropName);
-        this.capabilitiesValue = capabilities;
-    }
-
-    /*
-     * Private constructor used for JAXB mapping
-     */
-    private Capabilities() {
-        super(CapabilitiesPropName);
-        this.capabilitiesValue = 0;
-    }
-
-    @Override
-    public Capabilities clone() {
-        return new Capabilities(this.capabilitiesValue);
-    }
-
-    public int getValue() {
-        return this.capabilitiesValue;
-    }
-
-    @Override
-    public int hashCode() {
-        final int prime = 31;
-        int result = super.hashCode();
-        result = prime * result + capabilitiesValue;
-        return result;
-    }
-
-    @Override
-    public boolean equals(Object obj) {
-        if (this == obj)
-            return true;
-        if (!super.equals(obj))
-            return false;
-        if (getClass() != obj.getClass())
-            return false;
-        Capabilities other = (Capabilities) obj;
-        if (capabilitiesValue != other.capabilitiesValue)
-            return false;
-        return true;
-    }
-
-    @Override
-    public String toString() {
-        return "Capabilities[" + capabilitiesValue + "]";
-    }
-
-    @Override
-    public String getStringValue() {
-        return Integer.toHexString(capabilitiesValue);
-    }
-}