Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 1 | /* |
Ray Milkey | 34c9590 | 2015-04-15 09:47:53 -0700 | [diff] [blame] | 2 | * Copyright 2014-2015 Open Networking Laboratory |
Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 3 | * |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 7 | * |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 15 | */ |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 16 | package org.onosproject.net.flow.criteria; |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 17 | |
alshabib | 7b79549 | 2014-09-16 14:38:39 -0700 | [diff] [blame] | 18 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 19 | /** |
| 20 | * Representation of a single header field selection. |
| 21 | */ |
| 22 | public interface Criterion { |
| 23 | |
| 24 | /** |
| 25 | * Types of fields to which the selection criterion may apply. |
| 26 | */ |
Pavlin Radoslavov | 320e6c9 | 2015-02-02 16:51:58 -0800 | [diff] [blame] | 27 | // From page 75 of OpenFlow 1.5.0 spec |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 28 | enum Type { |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 29 | /** Switch input port. */ |
| 30 | IN_PORT, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 31 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 32 | /** Switch physical input port. */ |
| 33 | IN_PHY_PORT, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 34 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 35 | /** Metadata passed between tables. */ |
| 36 | METADATA, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 37 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 38 | /** Ethernet destination address. */ |
| 39 | ETH_DST, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 40 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 41 | /** Ethernet source address. */ |
| 42 | ETH_SRC, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 43 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 44 | /** Ethernet frame type. */ |
| 45 | ETH_TYPE, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 46 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 47 | /** VLAN id. */ |
| 48 | VLAN_VID, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 49 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 50 | /** VLAN priority. */ |
| 51 | VLAN_PCP, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 52 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 53 | /** IP DSCP (6 bits in ToS field). */ |
| 54 | IP_DSCP, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 55 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 56 | /** IP ECN (2 bits in ToS field). */ |
| 57 | IP_ECN, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 58 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 59 | /** IP protocol. */ |
| 60 | IP_PROTO, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 61 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 62 | /** IPv4 source address. */ |
| 63 | IPV4_SRC, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 64 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 65 | /** IPv4 destination address. */ |
| 66 | IPV4_DST, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 67 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 68 | /** TCP source port. */ |
| 69 | TCP_SRC, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 70 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 71 | /** TCP destination port. */ |
| 72 | TCP_DST, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 73 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 74 | /** UDP source port. */ |
| 75 | UDP_SRC, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 76 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 77 | /** UDP destination port. */ |
| 78 | UDP_DST, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 79 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 80 | /** SCTP source port. */ |
| 81 | SCTP_SRC, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 82 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 83 | /** SCTP destination port. */ |
| 84 | SCTP_DST, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 85 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 86 | /** ICMP type. */ |
| 87 | ICMPV4_TYPE, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 88 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 89 | /** ICMP code. */ |
| 90 | ICMPV4_CODE, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 91 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 92 | /** ARP opcode. */ |
| 93 | ARP_OP, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 94 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 95 | /** ARP source IPv4 address. */ |
| 96 | ARP_SPA, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 97 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 98 | /** ARP target IPv4 address. */ |
| 99 | ARP_TPA, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 100 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 101 | /** ARP source hardware address. */ |
| 102 | ARP_SHA, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 103 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 104 | /** ARP target hardware address. */ |
| 105 | ARP_THA, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 106 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 107 | /** IPv6 source address. */ |
| 108 | IPV6_SRC, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 109 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 110 | /** IPv6 destination address. */ |
| 111 | IPV6_DST, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 112 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 113 | /** IPv6 Flow Label. */ |
| 114 | IPV6_FLABEL, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 115 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 116 | /** ICMPv6 type. */ |
| 117 | ICMPV6_TYPE, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 118 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 119 | /** ICMPv6 code. */ |
| 120 | ICMPV6_CODE, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 121 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 122 | /** Target address for ND. */ |
| 123 | IPV6_ND_TARGET, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 124 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 125 | /** Source link-layer for ND. */ |
| 126 | IPV6_ND_SLL, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 127 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 128 | /** Target link-layer for ND. */ |
| 129 | IPV6_ND_TLL, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 130 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 131 | /** MPLS label. */ |
| 132 | MPLS_LABEL, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 133 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 134 | /** MPLS TC. */ |
| 135 | MPLS_TC, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 136 | |
| 137 | /** MPLS BoS bit. */ |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 138 | MPLS_BOS, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 139 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 140 | /** PBB I-SID. */ |
| 141 | PBB_ISID, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 142 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 143 | /** Logical Port Metadata. */ |
| 144 | TUNNEL_ID, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 145 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 146 | /** IPv6 Extension Header pseudo-field. */ |
Marc De Leenheer | 4908775 | 2014-10-23 13:54:09 -0700 | [diff] [blame] | 147 | IPV6_EXTHDR, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 148 | |
Pavlin Radoslavov | 320e6c9 | 2015-02-02 16:51:58 -0800 | [diff] [blame] | 149 | /** Unassigned value: 40. */ |
| 150 | UNASSIGNED_40, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 151 | |
Pavlin Radoslavov | 320e6c9 | 2015-02-02 16:51:58 -0800 | [diff] [blame] | 152 | /** PBB UCA header field. */ |
| 153 | PBB_UCA, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 154 | |
Pavlin Radoslavov | 320e6c9 | 2015-02-02 16:51:58 -0800 | [diff] [blame] | 155 | /** TCP flags. */ |
| 156 | TCP_FLAGS, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 157 | |
Pavlin Radoslavov | 320e6c9 | 2015-02-02 16:51:58 -0800 | [diff] [blame] | 158 | /** Output port from action set metadata. */ |
| 159 | ACTSET_OUTPUT, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 160 | |
Pavlin Radoslavov | 320e6c9 | 2015-02-02 16:51:58 -0800 | [diff] [blame] | 161 | /** Packet type value. */ |
| 162 | PACKET_TYPE, |
| 163 | |
| 164 | // |
| 165 | // NOTE: Everything below is defined elsewhere: ONOS-specific, |
| 166 | // extensions, etc. |
| 167 | // |
Marc De Leenheer | 4908775 | 2014-10-23 13:54:09 -0700 | [diff] [blame] | 168 | /** Optical channel signal ID (lambda). */ |
| 169 | OCH_SIGID, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 170 | |
Marc De Leenheer | 4908775 | 2014-10-23 13:54:09 -0700 | [diff] [blame] | 171 | /** Optical channel signal type (fixed or flexible). */ |
alshabib | a3a476d | 2015-04-10 14:35:38 -0700 | [diff] [blame] | 172 | OCH_SIGTYPE, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 173 | |
Yafit Hadar | 52d8155 | 2015-10-07 12:26:52 +0300 | [diff] [blame] | 174 | /** ODU (Optical channel Data Unit) signal ID. */ |
| 175 | ODU_SIGID, |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 176 | |
Yafit Hadar | 52d8155 | 2015-10-07 12:26:52 +0300 | [diff] [blame] | 177 | /** ODU (Optical channel Data Unit) signal type. */ |
| 178 | ODU_SIGTYPE, |
alshabib | a3a476d | 2015-04-10 14:35:38 -0700 | [diff] [blame] | 179 | |
Jonathan Hart | 26a8d95 | 2015-12-02 15:16:35 -0800 | [diff] [blame^] | 180 | /** Extension criterion. */ |
| 181 | EXTENSION, |
| 182 | |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 183 | /** An empty criterion. */ |
alshabib | a3a476d | 2015-04-10 14:35:38 -0700 | [diff] [blame] | 184 | DUMMY |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 185 | } |
| 186 | |
alshabib | 7b79549 | 2014-09-16 14:38:39 -0700 | [diff] [blame] | 187 | /** |
| 188 | * Returns the type of criterion. |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 189 | * |
alshabib | 7b79549 | 2014-09-16 14:38:39 -0700 | [diff] [blame] | 190 | * @return type of criterion |
| 191 | */ |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 192 | Type type(); |
alshabib | 7b79549 | 2014-09-16 14:38:39 -0700 | [diff] [blame] | 193 | |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 194 | /** |
| 195 | * Bit definitions for IPv6 Extension Header pseudo-field. |
| 196 | * From page 79 of OpenFlow 1.5.0 spec. |
| 197 | */ |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 198 | enum IPv6ExthdrFlags { |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 199 | /** "No next header" encountered. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 200 | NONEXT((short) (1 << 0)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 201 | /** Encrypted Sec Payload header present. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 202 | ESP((short) (1 << 1)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 203 | /** Authentication header present. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 204 | AUTH((short) (1 << 2)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 205 | /** 1 or 2 dest headers present. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 206 | DEST((short) (1 << 3)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 207 | /** Fragment header present. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 208 | FRAG((short) (1 << 4)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 209 | /** Router header present. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 210 | ROUTER((short) (1 << 5)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 211 | /** Hop-by-hop header present. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 212 | HOP((short) (1 << 6)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 213 | /** Unexpected repeats encountered. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 214 | UNREP((short) (1 << 7)), |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 215 | /** Unexpected sequencing encountered. */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 216 | UNSEQ((short) (1 << 8)); |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 217 | |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 218 | private short value; |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 219 | |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 220 | IPv6ExthdrFlags(short value) { |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 221 | this.value = value; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Gets the value as an integer. |
| 226 | * |
| 227 | * @return the value as an integer |
| 228 | */ |
Charles M.C. Chan | 2184de1 | 2015-04-26 02:24:53 +0800 | [diff] [blame] | 229 | public short getValue() { |
Pavlin Radoslavov | 5e4f754 | 2015-02-06 18:18:21 -0800 | [diff] [blame] | 230 | return this.value; |
| 231 | } |
| 232 | } |
Jian Li | 79bdf3c | 2015-11-30 14:54:54 -0800 | [diff] [blame] | 233 | |
| 234 | enum TCPFlags { |
| 235 | |
| 236 | /** ECN-nonce concealment protection. */ |
| 237 | NS((short) (1 << 0)), |
| 238 | /** Congestion Window Reduced. */ |
| 239 | CWR((short) (1 << 1)), |
| 240 | /** ECN-Echo. **/ |
| 241 | ECE((short) (1 << 2)), |
| 242 | /** Urgent pointer field is significant. */ |
| 243 | URG((short) (1 << 3)), |
| 244 | /** Acknowledgment field is significant. */ |
| 245 | ACK((short) (1 << 4)), |
| 246 | /** Push the buffered data to the receiving application. */ |
| 247 | PSH((short) (1 << 5)), |
| 248 | /** Reset the connection. */ |
| 249 | RST((short) (1 << 6)), |
| 250 | /** Synchronize sequence numbers. */ |
| 251 | SYN((short) (1 << 7)), |
| 252 | /** No more data from sender. */ |
| 253 | FIN((short) (1 << 8)); |
| 254 | |
| 255 | private short value; |
| 256 | |
| 257 | TCPFlags(short value) { |
| 258 | this.value = value; |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * Gets the value as an integer. |
| 263 | * |
| 264 | * @return the value as an integer |
| 265 | */ |
| 266 | public short getValue() { |
| 267 | return this.value; |
| 268 | } |
| 269 | } |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 270 | } |