@Test public void testGetSupportedParameterValues() { List<SupportedParameterValues> valuesList = Classifier.IP_PROTO_CL.getSupportedParameterValues(); assertEquals(1, valuesList.size()); SupportedParameterValues values = valuesList.get(0); assertNotNull(values); assertEquals(IpProtoClassifierDefinition.PROTO_PARAM, values.getParameterName().getValue()); ParameterType pt = values.getParameterType(); assertTrue(pt instanceof Int); }
@Override public List<SupportedParameterValues> getSupportedParameterValues() { List<SupportedIntValue> values = ImmutableList.of( new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.ICMP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.SCTP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.TCP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.UDP_VALUE).build()); SupportedParameterValuesBuilder b = new SupportedParameterValuesBuilder(); b.setParameterName(new ParameterName(IpProtoClassifierDefinition.PROTO_PARAM)); b.setParameterType(new IntBuilder().setSupportedIntValue(values).build()); return ImmutableList.of(b.build()); }
IpProtoClassifier extends Classifier { @Override public List<SupportedParameterValues> getSupportedParameterValues() { List<SupportedIntValue> values = ImmutableList.of( new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.ICMP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.SCTP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.TCP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.UDP_VALUE).build()); SupportedParameterValuesBuilder b = new SupportedParameterValuesBuilder(); b.setParameterName(new ParameterName(IpProtoClassifierDefinition.PROTO_PARAM)); b.setParameterType(new IntBuilder().setSupportedIntValue(values).build()); return ImmutableList.of(b.build()); } }
IpProtoClassifier extends Classifier { @Override public List<SupportedParameterValues> getSupportedParameterValues() { List<SupportedIntValue> values = ImmutableList.of( new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.ICMP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.SCTP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.TCP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.UDP_VALUE).build()); SupportedParameterValuesBuilder b = new SupportedParameterValuesBuilder(); b.setParameterName(new ParameterName(IpProtoClassifierDefinition.PROTO_PARAM)); b.setParameterType(new IntBuilder().setSupportedIntValue(values).build()); return ImmutableList.of(b.build()); } protected  IpProtoClassifier(Classifier parent); }
IpProtoClassifier extends Classifier { @Override public List<SupportedParameterValues> getSupportedParameterValues() { List<SupportedIntValue> values = ImmutableList.of( new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.ICMP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.SCTP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.TCP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.UDP_VALUE).build()); SupportedParameterValuesBuilder b = new SupportedParameterValuesBuilder(); b.setParameterName(new ParameterName(IpProtoClassifierDefinition.PROTO_PARAM)); b.setParameterType(new IntBuilder().setSupportedIntValue(values).build()); return ImmutableList.of(b.build()); } protected  IpProtoClassifier(Classifier parent); @Override ClassifierDefinitionId getId(); @Override ClassifierDefinition getClassifierDefinition(); @Override List<SupportedParameterValues> getSupportedParameterValues(); static Long getIpProtoValue(Map<String, ParameterValue> params); }
IpProtoClassifier extends Classifier { @Override public List<SupportedParameterValues> getSupportedParameterValues() { List<SupportedIntValue> values = ImmutableList.of( new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.ICMP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.SCTP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.TCP_VALUE).build(), new SupportedIntValueBuilder().setValue(IpProtoClassifierDefinition.UDP_VALUE).build()); SupportedParameterValuesBuilder b = new SupportedParameterValuesBuilder(); b.setParameterName(new ParameterName(IpProtoClassifierDefinition.PROTO_PARAM)); b.setParameterType(new IntBuilder().setSupportedIntValue(values).build()); return ImmutableList.of(b.build()); } protected  IpProtoClassifier(Classifier parent); @Override ClassifierDefinitionId getId(); @Override ClassifierDefinition getClassifierDefinition(); @Override List<SupportedParameterValues> getSupportedParameterValues(); static Long getIpProtoValue(Map<String, ParameterValue> params);  }