X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FActions.java;fp=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FActions.java;h=0000000000000000000000000000000000000000;hb=42c32160bfd41de57189bb246fec5ffb48ed8e9e;hp=b3fa45bbc957322d3b0839ac86506d30359def7e;hpb=edf5bfcee83c750853253ccfd991ba7000f5f65b;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Actions.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Actions.java deleted file mode 100644 index b3fa45bbc9..0000000000 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Actions.java +++ /dev/null @@ -1,121 +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 Actions.java - * - * @brief Class representing actions - * - * Describes supported actions - * @Deprecated This class is OF 1.0 specific. Use SupportedFlowActions instead. - */ -@Deprecated -@XmlRootElement -@XmlAccessorType(XmlAccessType.NONE) -public class Actions extends Property { - private static final long serialVersionUID = 1L; - @XmlElement(name="value") - private int actionsValue; - - public enum ActionType { - OUTPUT_PORT_ACTION(1<<0), - VLAN_VID_ACTION(1<<1), - VLAN_PCP_ACTION(1<<2), - VLAN_STRIP_ACTION(1<<3), - DLSRC_ACTION(1<<4), - DLDST_ACTION(1<<5), - NWSRC_ACTION(1<<6), - NWDST_ACTION(1<<7), - NWTOS_ACTION(1<<8), - TPTSRC_ACTION(1<<9), - TPTDST_ACTION(1<<10), - ENQUEUE_ACTION(1<<11), - VENDOR_ACTION(0xffff); - private final int at; - ActionType(int val) { - this.at = val; - } - public int getValue() { - return at; - } - } - - public static final String ActionsPropName = "actions"; - /** - * Construct a actions property - * - * @param actions the actions value - * @return Constructed object - */ - public Actions(int actions) { - super(ActionsPropName); - this.actionsValue = actions; - } - - /* - * Private constructor used for JAXB mapping - */ - private Actions() { - super(ActionsPropName); - this.actionsValue = 0; - } - - @Override - public Actions clone() { - return new Actions(this.actionsValue); - } - - public int getValue() { - return this.actionsValue; - } - - - @Override - public int hashCode() { - final int prime = 31; - int result = super.hashCode(); - result = prime * result + actionsValue; - 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; - } - Actions other = (Actions) obj; - if (actionsValue != other.actionsValue) { - return false; - } - return true; - } - - @Override - public String toString() { - return "Actions[" + actionsValue + "]"; - } - - @Override - public String getStringValue() { - return Integer.toHexString(actionsValue); - } -}