2 * Copyright (c) 2013 Ericsson AB. All rights reserved.
5 package org.opendaylight.vpnservice.mdsalutil;
7 import java.io.Serializable;
8 import java.math.BigInteger;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder;
13 public class MatchInfo implements Serializable {
14 private static final long serialVersionUID = 1L;
16 private final MatchFieldType m_matchField;
17 private long[] m_alMatchValues;
18 private BigInteger[] m_aBigIntValues;
19 private String[] m_asMatchValues;
21 public MatchInfo(MatchFieldType matchField, long[] alMatchValues) {
22 m_matchField = matchField;
23 m_alMatchValues = alMatchValues;
26 public MatchInfo(MatchFieldType matchField, BigInteger[] alBigMatchValues) {
27 m_matchField = matchField;
28 m_aBigIntValues = alBigMatchValues;
31 public MatchInfo(MatchFieldType matchField, String[] alStringMatchValues) {
32 m_matchField = matchField;
33 m_asMatchValues = alStringMatchValues;
36 public void createInnerMatchBuilder(Map<Class<?>, Object> mapMatchBuilder) {
37 m_matchField.createInnerMatchBuilder(this, mapMatchBuilder);
40 public void setMatch(MatchBuilder matchBuilder, Map<Class<?>, Object> mapMatchBuilder) {
41 m_matchField.setMatch(matchBuilder, this, mapMatchBuilder);
44 public MatchFieldType getMatchField() {
48 public long[] getMatchValues() {
49 return m_alMatchValues;
52 public BigInteger[] getBigMatchValues() {
53 return m_aBigIntValues;
56 public String[] getStringMatchValues() {
57 return m_asMatchValues;