Migrate openflow-protocol-impl isFoo() users 15/94315/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 30 Dec 2020 20:11:05 +0000 (21:11 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 30 Dec 2020 20:11:05 +0000 (21:11 +0100)
Mass-migrate boolean getter users, which have changed from isFoo()
to getFoo().

Change-Id: I931fb7542a88870d017bb8ad8bc23568e73a9df0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
72 files changed:
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderFactoryImpl.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueEntry.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmArpShaDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmArpSpaDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmArpThaDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmArpTpaDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmEthDstDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmEthSrcDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv4DstDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv4SrcDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv6DstDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv6ExtHdrDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv6FlabelDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv6SrcDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmMetadataDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmPbbIsidDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmTunnelIdDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmVlanVidDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/ext/OnfOxmTcpFlagsDeserializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/FlowModInputMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/GetFeaturesOutputFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/MeterModInputMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/MultipartReplyMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/MultipartRequestInputFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/OF10FeaturesReplyMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/OF10FlowModInputMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/OF10PortModInputMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/OF10PortStatusMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/OF10StatsReplyMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/OF10StatsRequestInputFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PortModInputMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PortStatusMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/TableModInputMessageFactory.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/AbstractOxmMatchEntrySerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpShaSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpSpaSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpThaSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpTpaSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmEthDstSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmEthSrcSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv4DstSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv4SrcSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6DstSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6ExtHdrSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6FlabelSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6SrcSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmMetadataSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmMplsBosSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmPbbIsidSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmTunnelIdSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmVlanVidSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/ext/AbstractOxmExperimenterMatchEntrySerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/ext/OnfOxmTcpFlagsSerializer.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/util/OF10MatchSerializer.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/MultipartReplyMessageFactoryTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/OF10StatsReplyMessageFactoryTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/multipart/MultipartReplyExperimenterTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/multipart/MultipartReplyFlowTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/multipart/MultipartReplyGroupFeaturesTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/multipart/MultipartReplyMeterFeaturesTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/multipart/MultipartReplyPortDescTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/multipart/MultipartReplyTableFeaturesTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/multipart/OF10StatsReplyExperimenterTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv6ExtHdrDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmIpv6FlabelDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmMetadataDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmMplsBosDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmPacketTypeDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmPbbIsidDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/match/OxmVlanVidDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/util/ActionsDeserializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/util/MatchDeserializerTest.java

index 54385cd88363086a418b5a7b8d2d295689fc04d4..584bef3a87b981be6111bfd0f2dbad97ec13fcb6 100644 (file)
@@ -34,8 +34,8 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow
 public class SwitchConnectionProviderFactoryImpl implements SwitchConnectionProviderFactory {
 
     @Override
-    public SwitchConnectionProvider newInstance(SwitchConnectionConfig config,
-                                                OpenflowDiagStatusProvider openflowPluginDiagStatusProvider) {
+    public SwitchConnectionProvider newInstance(final SwitchConnectionConfig config,
+                                                final OpenflowDiagStatusProvider openflowPluginDiagStatusProvider) {
         return new SwitchConnectionProviderImpl(new ConnectionConfigurationImpl(config),
                 openflowPluginDiagStatusProvider);
     }
@@ -44,7 +44,7 @@ public class SwitchConnectionProviderFactoryImpl implements SwitchConnectionProv
         private final SwitchConnectionConfig config;
         private InetAddress address;
 
-        ConnectionConfigurationImpl(SwitchConnectionConfig config) {
+        ConnectionConfigurationImpl(final SwitchConnectionConfig config) {
             this.config = config;
 
             try {
@@ -168,12 +168,12 @@ public class SwitchConnectionProviderFactoryImpl implements SwitchConnectionProv
 
         @Override
         public boolean useBarrier() {
-            return config.isUseBarrier();
+            return config.getUseBarrier();
         }
 
         @Override
         public boolean isGroupAddModEnabled() {
-            return config.isGroupAddModEnabled();
+            return config.getGroupAddModEnabled();
         }
 
         private static InetAddress getInetAddress(final IpAddress address) throws UnknownHostException {
index 33861c7c37872ebf2745d26e5fb14f327119215c..ebd72f01a2e680863d81c883d959201b89a41d98 100644 (file)
@@ -24,7 +24,7 @@ final class OutboundQueueEntry {
     private static final Logger LOG = LoggerFactory.getLogger(OutboundQueueEntry.class);
     public static final Function<OfHeader, Boolean> DEFAULT_IS_COMPLETE = message -> {
         if (message instanceof MultipartReplyMessage) {
-            return !((MultipartReplyMessage) message).getFlags().isOFPMPFREQMORE();
+            return !((MultipartReplyMessage) message).getFlags().getOFPMPFREQMORE();
         }
 
         return true;
index 0750fd5eab461b93a7c93b419ee1f206a5c95e3d..9a549725969a5fe0209208b63b9f38951caeff42 100644 (file)
@@ -28,7 +28,7 @@ public class OxmArpShaDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final ArpShaBuilder shaBuilder = new ArpShaBuilder()
                 .setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             shaBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.MAC_ADDRESS_LENGTH));
         }
         builder.setMatchEntryValue(new ArpShaCaseBuilder().setArpSha(shaBuilder.build()).build());
index b334c92c6d006d2e9e98a9d9c41ba611997995fb..cd866b23b872334bc9adce08a3cfb871c049ae46 100644 (file)
@@ -30,7 +30,7 @@ public class OxmArpSpaDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final ArpSpaBuilder arpBuilder = new ArpSpaBuilder()
                 .setIpv4Address(ByteBufUtils.readIetfIpv4Address(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             arpBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.GROUPS_IN_IPV4_ADDRESS));
         }
         builder.setMatchEntryValue(new ArpSpaCaseBuilder().setArpSpa(arpBuilder.build()).build());
index 722b1460bfe64ddc22f23d0a16a5d33fde4f8eeb..4290e9f16e56cabcc956066e00471ccad96cc90c 100644 (file)
@@ -28,7 +28,7 @@ public class OxmArpThaDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final ArpThaBuilder thaBuilder = new ArpThaBuilder()
                 .setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             thaBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.MAC_ADDRESS_LENGTH));
         }
         builder.setMatchEntryValue(new ArpThaCaseBuilder().setArpTha(thaBuilder.build()).build());
index 3f92e102d5f72433036271e56cb01a467af7c3c0..2de98f20391efeaffa3d27434cacfa5ab89f5493 100644 (file)
@@ -29,7 +29,7 @@ public class OxmArpTpaDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final ArpTpaBuilder arpBuilder = new ArpTpaBuilder()
                 .setIpv4Address(ByteBufUtils.readIetfIpv4Address(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             arpBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.GROUPS_IN_IPV4_ADDRESS));
         }
         builder.setMatchEntryValue(new ArpTpaCaseBuilder().setArpTpa(arpBuilder.build()).build());
index be46c2348d57987b7e5f8fc2d3183524a0b63ba0..f16ae42c2b05baa1c3e261085826b50e43a113f9 100644 (file)
@@ -28,7 +28,7 @@ public class OxmEthDstDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final EthDstBuilder ethBuilder = new EthDstBuilder()
                 .setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             ethBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.MAC_ADDRESS_LENGTH));
         }
         builder.setMatchEntryValue(new EthDstCaseBuilder().setEthDst(ethBuilder.build()).build());
index a3ff974c672d72925963265a9d26af2e0e1d21b8..600118b1e03ff3bc6c0d5ea8d1503beb145f7e1f 100644 (file)
@@ -28,7 +28,7 @@ public class OxmEthSrcDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final EthSrcBuilder ethBuilder = new EthSrcBuilder()
                 .setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             ethBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.MAC_ADDRESS_LENGTH));
         }
         builder.setMatchEntryValue(new EthSrcCaseBuilder().setEthSrc(ethBuilder.build()).build());
index 48c433cc01427a21ee103bc349ea01169d2b8fc2..daf07d2d95af17a2f4216d3234514d3aa1a57dcc 100644 (file)
@@ -29,7 +29,7 @@ public class OxmIpv4DstDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final Ipv4DstBuilder ipv4Builder = new Ipv4DstBuilder()
                 .setIpv4Address(ByteBufUtils.readIetfIpv4Address(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             ipv4Builder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.GROUPS_IN_IPV4_ADDRESS));
         }
         builder.setMatchEntryValue(new Ipv4DstCaseBuilder().setIpv4Dst(ipv4Builder.build()).build());
index 55fe2c86ae22e0fd7de687f9f5d568b4d24fe8fd..044c095162998946f96153cf4464a37c94c0b1fb 100644 (file)
@@ -29,7 +29,7 @@ public class OxmIpv4SrcDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final Ipv4SrcBuilder ipv4Builder = new Ipv4SrcBuilder()
                 .setIpv4Address(ByteBufUtils.readIetfIpv4Address(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             ipv4Builder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.GROUPS_IN_IPV4_ADDRESS));
         }
         builder.setMatchEntryValue(new Ipv4SrcCaseBuilder().setIpv4Src(ipv4Builder.build()).build());
index 95cc3e1813124dd596c663ec328f33476f382b96..581ccebb78b22484a3330a0a98c9dc6d1ea86b8a 100644 (file)
@@ -29,7 +29,7 @@ public class OxmIpv6DstDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final Ipv6DstBuilder ipv6Builder = new Ipv6DstBuilder()
                 .setIpv6Address(ByteBufUtils.readIetfIpv6Address(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             ipv6Builder.setMask(OxmDeserializerHelper.convertMask(input,
                 EncodeConstants.SIZE_OF_IPV6_ADDRESS_IN_BYTES));
         }
index 22e6c99f23493e22e46b6c1ab4a8f893cd95e46a..1fbe87c92e959da26b7ac9ba38c0455df19a92a0 100644 (file)
@@ -28,7 +28,7 @@ public class OxmIpv6ExtHdrDeserializer extends AbstractOxmMatchEntryDeserializer
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final Ipv6ExthdrBuilder extHdrBuilder = new Ipv6ExthdrBuilder()
                 .setPseudoField(convertPseudofields(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             extHdrBuilder.setMask(OxmDeserializerHelper.convertMask(input, Short.BYTES));
         }
         builder.setMatchEntryValue(new Ipv6ExthdrCaseBuilder().setIpv6Exthdr(extHdrBuilder.build()).build());
index 1001339324f42b3cca226f96feca1d92affd3fd6..95cc99b9404ba1b6c4966633c07fd62800e7dc01 100644 (file)
@@ -30,7 +30,7 @@ public class OxmIpv6FlabelDeserializer extends AbstractOxmMatchEntryDeserializer
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final Ipv6FlabelBuilder labelBuilder = new Ipv6FlabelBuilder()
                 .setIpv6Flabel(new Ipv6FlowLabel(readUint32(input)));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             labelBuilder.setMask(OxmDeserializerHelper.convertMask(input, Integer.BYTES));
         }
         builder.setMatchEntryValue(new Ipv6FlabelCaseBuilder().setIpv6Flabel(labelBuilder.build()).build());
index 302a83026798852ba08d567cbedb02501d11d6e8..f04cd6f161c64725c4352ac2d4183b1ff55d4ff3 100644 (file)
@@ -29,7 +29,7 @@ public class OxmIpv6SrcDeserializer extends AbstractOxmMatchEntryDeserializer {
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         final Ipv6SrcBuilder ipv6Builder = new Ipv6SrcBuilder()
                 .setIpv6Address(ByteBufUtils.readIetfIpv6Address(input));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             ipv6Builder.setMask(OxmDeserializerHelper.convertMask(input,
                 EncodeConstants.SIZE_OF_IPV6_ADDRESS_IN_BYTES));
         }
index 120f483b55b1c5bf77d4ae87004faa910af16a2f..44d014790373042eaf378c8874e607693a1c704d 100644 (file)
@@ -29,7 +29,7 @@ public class OxmMetadataDeserializer extends AbstractOxmMatchEntryDeserializer {
         input.readBytes(metadataBytes);
 
         final MetadataBuilder metadataBuilder = new MetadataBuilder().setMetadata(metadataBytes);
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             metadataBuilder.setMask(OxmDeserializerHelper.convertMask(input, Long.BYTES));
         }
         builder.setMatchEntryValue(new MetadataCaseBuilder().setMetadata(metadataBuilder.build()).build());
index 135b636eb2ff6df9fbae57f0d43dfa5d50e4125f..8c2ad5d87245c701175208c989c6e55eb440be7a 100644 (file)
@@ -30,7 +30,7 @@ public class OxmPbbIsidDeserializer extends AbstractOxmMatchEntryDeserializer {
         final int isid = input.readUnsignedMedium();
         final PbbIsidBuilder isidBuilder = new PbbIsidBuilder()
                 .setIsid(Uint32.valueOf(isid));
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             isidBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.SIZE_OF_3_BYTES));
         }
         builder.setMatchEntryValue(new PbbIsidCaseBuilder().setPbbIsid(isidBuilder.build()).build());
index 5038b48c5725f5719068f77288e25dfb20dbc533..62c6762da4ea382d5bfc8c9f8ec2d57cde185d23 100644 (file)
@@ -29,7 +29,7 @@ public class OxmTunnelIdDeserializer extends AbstractOxmMatchEntryDeserializer {
         input.readBytes(metadataBytes);
         final TunnelIdBuilder tunnelIdBuilder = new TunnelIdBuilder()
                 .setTunnelId(metadataBytes);
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             tunnelIdBuilder.setMask(OxmDeserializerHelper.convertMask(input, Long.BYTES));
         }
         builder.setMatchEntryValue(new TunnelIdCaseBuilder().setTunnelId(tunnelIdBuilder.build()).build());
index 4edb99b1b4965277caf07340252b5cad269cde9d..43c3fc44d4be9b481ed45f1ae4823b249d0abda4 100644 (file)
@@ -30,7 +30,7 @@ public class OxmVlanVidDeserializer extends AbstractOxmMatchEntryDeserializer {
         final VlanVidBuilder vlanBuilder = new VlanVidBuilder()
                 .setCfiBit((vidEntryValue & 1 << 12) != 0) // cfi is 13-th bit
                 .setVlanVid(Uint16.valueOf(vidEntryValue & (1 << 12) - 1)); // value without 13-th bit
-        if (builder.isHasMask()) {
+        if (builder.getHasMask()) {
             vlanBuilder.setMask(OxmDeserializerHelper.convertMask(input, Short.BYTES));
         }
         builder.setMatchEntryValue(new VlanVidCaseBuilder().setVlanVid(vlanBuilder.build()).build());
index 26e75359471ac08b3c2f83bafb4d6337cc69d387..14bd1bc8a7cdc92a701dff4382de8709c70356d9 100644 (file)
@@ -27,7 +27,7 @@ public class OnfOxmTcpFlagsDeserializer extends AbstractOxmExperimenterMatchEntr
     @Override
     protected void deserialize(final ByteBuf input, final MatchEntryBuilder builder) {
         ExperimenterIdCaseBuilder expCaseBuilder = createExperimenterIdCase(builder, input);
-        addTcpFlagsAugmentation(input, expCaseBuilder, builder.isHasMask());
+        addTcpFlagsAugmentation(input, expCaseBuilder, builder.getHasMask());
         builder.setMatchEntryValue(expCaseBuilder.build());
     }
 
index abff263b2059885dd53c874e9ccdabba2e5e8ff8..a4c8b4600a696efa2a9ce39d6a888d556be69c88 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.serialization.factories;
 
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@@ -70,11 +69,11 @@ public class FlowModInputMessageFactory implements OFSerializer<FlowMod>, Serial
 
     private static int createFlowModFlagsBitmask(final FlowModFlags flags) {
         return ByteBufUtils.fillBitMask(0,
-                flags.isOFPFFSENDFLOWREM(),
-                flags.isOFPFFCHECKOVERLAP(),
-                flags.isOFPFFRESETCOUNTS(),
-                flags.isOFPFFNOPKTCOUNTS(),
-                flags.isOFPFFNOBYTCOUNTS());
+                flags.getOFPFFSENDFLOWREM(),
+                flags.getOFPFFCHECKOVERLAP(),
+                flags.getOFPFFRESETCOUNTS(),
+                flags.getOFPFFNOPKTCOUNTS(),
+                flags.getOFPFFNOBYTCOUNTS());
     }
 
 }
index 112a39e628bae9fad2097de1f43ac0364db1ea12..325a8e397821403f41a113ef35bb6d7a6754a828 100644 (file)
@@ -29,7 +29,7 @@ public class GetFeaturesOutputFactory implements OFSerializer<GetFeaturesOutput>
     private static final byte PADDING = 2;
 
     @Override
-    public void serialize(GetFeaturesOutput message, ByteBuf outBuffer) {
+    public void serialize(final GetFeaturesOutput message, final ByteBuf outBuffer) {
         ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH);
         outBuffer.writeLong(message.getDatapathId().longValue());
         outBuffer.writeInt(message.getBuffers().intValue());
@@ -45,15 +45,15 @@ public class GetFeaturesOutputFactory implements OFSerializer<GetFeaturesOutput>
     public void injectSerializerRegistry(final SerializerRegistry serializerRegistry) {
     }
 
-    private static void writeCapabilities(Capabilities capabilities, ByteBuf outBuffer) {
+    private static void writeCapabilities(final Capabilities capabilities, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, capabilities.isOFPCFLOWSTATS());
-        map.put(1, capabilities.isOFPCTABLESTATS());
-        map.put(2, capabilities.isOFPCPORTSTATS());
-        map.put(3, capabilities.isOFPCGROUPSTATS());
-        map.put(5, capabilities.isOFPCIPREASM());
-        map.put(6, capabilities.isOFPCQUEUESTATS());
-        map.put(8, capabilities.isOFPCPORTBLOCKED());
+        map.put(0, capabilities.getOFPCFLOWSTATS());
+        map.put(1, capabilities.getOFPCTABLESTATS());
+        map.put(2, capabilities.getOFPCPORTSTATS());
+        map.put(3, capabilities.getOFPCGROUPSTATS());
+        map.put(5, capabilities.getOFPCIPREASM());
+        map.put(6, capabilities.getOFPCQUEUESTATS());
+        map.put(8, capabilities.getOFPCPORTBLOCKED());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
index 1389cc782a5b3a2f6e2ad7c834cff287052f55e4..c5eff16470c246efaab6054936624d88cffc298e 100755 (executable)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.serialization.factories;
 
 import io.netty.buffer.ByteBuf;
@@ -61,10 +60,10 @@ public class MeterModInputMessageFactory implements OFSerializer<MeterModInput>,
 
     private static int createMeterFlagsBitmask(final MeterFlags flags) {
         return ByteBufUtils.fillBitMask(0,
-                flags.isOFPMFKBPS(),
-                flags.isOFPMFPKTPS(),
-                flags.isOFPMFBURST(),
-                flags.isOFPMFSTATS());
+                flags.getOFPMFKBPS(),
+                flags.getOFPMFPKTPS(),
+                flags.getOFPMFBURST(),
+                flags.getOFPMFSTATS());
     }
 
     private void serializeBands(final List<Bands> bands, final ByteBuf outBuffer) {
index 78496ea656f5bfc11f8a3fd879938b87d9d2b201..d104479d15c3714dc741a9a874a5df8c02d87101 100644 (file)
@@ -223,7 +223,7 @@ public class MultipartReplyMessageFactory implements OFSerializer<MultipartReply
 
     private static void writeFlags(final MultipartRequestFlags flags, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, flags.isOFPMPFREQMORE());
+        map.put(0, flags.getOFPMPFREQMORE());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeShort(bitmap);
     }
@@ -389,7 +389,7 @@ public class MultipartReplyMessageFactory implements OFSerializer<MultipartReply
 
     private static void writeTableConfig(final TableConfig tableConfig, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, tableConfig.isOFPTCDEPRECATEDMASK());
+        map.put(0, tableConfig.getOFPTCDEPRECATEDMASK());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
@@ -407,8 +407,8 @@ public class MultipartReplyMessageFactory implements OFSerializer<MultipartReply
 
     private static void writeBandTypes(final MeterBandTypeBitmap bandTypes, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, bandTypes.isOFPMBTDROP());
-        map.put(1, bandTypes.isOFPMBTDSCPREMARK());
+        map.put(0, bandTypes.getOFPMBTDROP());
+        map.put(1, bandTypes.getOFPMBTDSCPREMARK());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
@@ -451,10 +451,10 @@ public class MultipartReplyMessageFactory implements OFSerializer<MultipartReply
 
     private static void writeMeterFlags(final MeterFlags flags, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, flags.isOFPMFKBPS());
-        map.put(1, flags.isOFPMFPKTPS());
-        map.put(2, flags.isOFPMFBURST());
-        map.put(3, flags.isOFPMFSTATS());
+        map.put(0, flags.getOFPMFKBPS());
+        map.put(1, flags.getOFPMFPKTPS());
+        map.put(2, flags.getOFPMFBURST());
+        map.put(3, flags.getOFPMFSTATS());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeShort(bitmap);
     }
@@ -496,43 +496,43 @@ public class MultipartReplyMessageFactory implements OFSerializer<MultipartReply
 
     private static void writeActionType(final ActionType action, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, action.isOFPATOUTPUT());
-        map.put(1, action.isOFPATCOPYTTLOUT());
-        map.put(2, action.isOFPATCOPYTTLIN());
-        map.put(3, action.isOFPATSETMPLSTTL());
-        map.put(4, action.isOFPATDECMPLSTTL());
-        map.put(5, action.isOFPATPUSHVLAN());
-        map.put(6, action.isOFPATPOPVLAN());
-        map.put(7, action.isOFPATPUSHMPLS());
-        map.put(8, action.isOFPATPOPMPLS());
-        map.put(9, action.isOFPATSETQUEUE());
-        map.put(10, action.isOFPATGROUP());
-        map.put(11, action.isOFPATSETNWTTL());
-        map.put(12, action.isOFPATDECNWTTL());
-        map.put(13, action.isOFPATSETFIELD());
-        map.put(14, action.isOFPATPUSHPBB());
-        map.put(15, action.isOFPATPOPPBB());
-        map.put(16, action.isOFPATEXPERIMENTER());
+        map.put(0, action.getOFPATOUTPUT());
+        map.put(1, action.getOFPATCOPYTTLOUT());
+        map.put(2, action.getOFPATCOPYTTLIN());
+        map.put(3, action.getOFPATSETMPLSTTL());
+        map.put(4, action.getOFPATDECMPLSTTL());
+        map.put(5, action.getOFPATPUSHVLAN());
+        map.put(6, action.getOFPATPOPVLAN());
+        map.put(7, action.getOFPATPUSHMPLS());
+        map.put(8, action.getOFPATPOPMPLS());
+        map.put(9, action.getOFPATSETQUEUE());
+        map.put(10, action.getOFPATGROUP());
+        map.put(11, action.getOFPATSETNWTTL());
+        map.put(12, action.getOFPATDECNWTTL());
+        map.put(13, action.getOFPATSETFIELD());
+        map.put(14, action.getOFPATPUSHPBB());
+        map.put(15, action.getOFPATPOPPBB());
+        map.put(16, action.getOFPATEXPERIMENTER());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writeGroupCapabilities(final GroupCapabilities capabilities, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, capabilities.isOFPGFCSELECTWEIGHT());
-        map.put(1, capabilities.isOFPGFCSELECTLIVENESS());
-        map.put(2, capabilities.isOFPGFCCHAINING());
-        map.put(3, capabilities.isOFPGFCCHAININGCHECKS());
+        map.put(0, capabilities.getOFPGFCSELECTWEIGHT());
+        map.put(1, capabilities.getOFPGFCSELECTLIVENESS());
+        map.put(2, capabilities.getOFPGFCCHAINING());
+        map.put(3, capabilities.getOFPGFCCHAININGCHECKS());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writeGroupTypes(final GroupTypes types, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, types.isOFPGTALL());
-        map.put(1, types.isOFPGTSELECT());
-        map.put(2, types.isOFPGTINDIRECT());
-        map.put(3, types.isOFPGTFF());
+        map.put(0, types.getOFPGTALL());
+        map.put(1, types.getOFPGTSELECT());
+        map.put(2, types.getOFPGTINDIRECT());
+        map.put(3, types.getOFPGTFF());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
@@ -762,41 +762,41 @@ public class MultipartReplyMessageFactory implements OFSerializer<MultipartReply
 
     private static void writePortConfig(final PortConfig config, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, config.isPortDown());
-        map.put(2, config.isNoRecv());
-        map.put(5, config.isNoFwd());
-        map.put(6, config.isNoPacketIn());
+        map.put(0, config.getPortDown());
+        map.put(2, config.getNoRecv());
+        map.put(5, config.getNoFwd());
+        map.put(6, config.getNoPacketIn());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writePortState(final PortState state, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, state.isLinkDown());
-        map.put(1, state.isBlocked());
-        map.put(2, state.isLive());
+        map.put(0, state.getLinkDown());
+        map.put(1, state.getBlocked());
+        map.put(2, state.getLive());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writePortFeatures(final PortFeatures features, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, features.is_10mbHd());
-        map.put(1, features.is_10mbFd());
-        map.put(2, features.is_100mbHd());
-        map.put(3, features.is_100mbFd());
-        map.put(4, features.is_1gbHd());
-        map.put(5, features.is_1gbFd());
-        map.put(6, features.is_10gbFd());
-        map.put(7, features.is_40gbFd());
-        map.put(8, features.is_100gbFd());
-        map.put(9, features.is_1tbFd());
-        map.put(10, features.isOther());
-        map.put(11, features.isCopper());
-        map.put(12, features.isFiber());
-        map.put(13, features.isAutoneg());
-        map.put(14, features.isPause());
-        map.put(15, features.isPauseAsym());
+        map.put(0, features.get_10mbHd());
+        map.put(1, features.get_10mbFd());
+        map.put(2, features.get_100mbHd());
+        map.put(3, features.get_100mbFd());
+        map.put(4, features.get_1gbHd());
+        map.put(5, features.get_1gbFd());
+        map.put(6, features.get_10gbFd());
+        map.put(7, features.get_40gbFd());
+        map.put(8, features.get_100gbFd());
+        map.put(9, features.get_1tbFd());
+        map.put(10, features.getOther());
+        map.put(11, features.getCopper());
+        map.put(12, features.getFiber());
+        map.put(13, features.getAutoneg());
+        map.put(14, features.getPause());
+        map.put(15, features.getPauseAsym());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
index f2e9d58d84721d992b9e517d45ed2d1c010de657..713493e63bfa29e1a947be81b755940e0a6794e5 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.serialization.factories;
 
 import io.netty.buffer.ByteBuf;
@@ -159,7 +158,7 @@ public class MultipartRequestInputFactory implements OFSerializer<MultipartReque
     }
 
     private static int createMultipartRequestFlagsBitmask(final MultipartRequestFlags flags) {
-        return ByteBufUtils.fillBitMask(0, flags.isOFPMPFREQMORE());
+        return ByteBufUtils.fillBitMask(0, flags.getOFPMPFREQMORE());
     }
 
     private void serializeDescBody() {
@@ -310,9 +309,8 @@ public class MultipartRequestInputFactory implements OFSerializer<MultipartReque
                     writeOxmRelatedTableProperty(output, property, APPLY_SETFIELD_CODE);
                 } else if (type.equals(TableFeaturesPropType.OFPTFPTAPPLYSETFIELDMISS)) {
                     writeOxmRelatedTableProperty(output, property, APPLY_SETFIELD_MISS_CODE);
-                } else if (type.equals(TableFeaturesPropType.OFPTFPTEXPERIMENTER)) {
-                    writeExperimenterRelatedTableProperty(output, property);
-                } else if (type.equals(TableFeaturesPropType.OFPTFPTEXPERIMENTERMISS)) {
+                } else if (type.equals(TableFeaturesPropType.OFPTFPTEXPERIMENTER)
+                        || type.equals(TableFeaturesPropType.OFPTFPTEXPERIMENTERMISS)) {
                     writeExperimenterRelatedTableProperty(output, property);
                 }
             }
@@ -409,7 +407,7 @@ public class MultipartRequestInputFactory implements OFSerializer<MultipartReque
     }
 
     private static int createTableConfigBitmask(final TableConfig tableConfig) {
-        return ByteBufUtils.fillBitMask(3, tableConfig.isOFPTCDEPRECATEDMASK());
+        return ByteBufUtils.fillBitMask(3, tableConfig.getOFPTCDEPRECATEDMASK());
     }
 
     @Override
index 15563a92b7e8ab787db29541816d2edcc7187c49..cae2aef89f5afde2e8222f51c2181107998e244e 100644 (file)
@@ -58,69 +58,69 @@ public class OF10FeaturesReplyMessageFactory implements OFSerializer<GetFeatures
 
     private static void writePortFeature(final PortFeaturesV10 feature, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, feature.is_10mbHd());
-        map.put(1, feature.is_10mbFd());
-        map.put(2, feature.is_100mbHd());
-        map.put(3, feature.is_100mbFd());
-        map.put(4, feature.is_1gbHd());
-        map.put(5, feature.is_1gbFd());
-        map.put(6, feature.is_10gbFd());
-        map.put(7, feature.isCopper());
-        map.put(8, feature.isFiber());
-        map.put(9, feature.isAutoneg());
-        map.put(10, feature.isPause());
-        map.put(11, feature.isPauseAsym());
+        map.put(0, feature.get_10mbHd());
+        map.put(1, feature.get_10mbFd());
+        map.put(2, feature.get_100mbHd());
+        map.put(3, feature.get_100mbFd());
+        map.put(4, feature.get_1gbHd());
+        map.put(5, feature.get_1gbFd());
+        map.put(6, feature.get_10gbFd());
+        map.put(7, feature.getCopper());
+        map.put(8, feature.getFiber());
+        map.put(9, feature.getAutoneg());
+        map.put(10, feature.getPause());
+        map.put(11, feature.getPauseAsym());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writePortState(final PortStateV10 state, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, state.isLinkDown());
-        map.put(1, state.isBlocked());
-        map.put(2, state.isLive());
-        map.put(3, state.isStpListen());
-        map.put(4, state.isStpLearn());
-        map.put(5, state.isStpForward());
-        map.put(6, state.isStpBlock());
-        map.put(7, state.isStpMask());
+        map.put(0, state.getLinkDown());
+        map.put(1, state.getBlocked());
+        map.put(2, state.getLive());
+        map.put(3, state.getStpListen());
+        map.put(4, state.getStpLearn());
+        map.put(5, state.getStpForward());
+        map.put(6, state.getStpBlock());
+        map.put(7, state.getStpMask());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writePortConfig(final PortConfigV10 config, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, config.isPortDown());
-        map.put(1, config.isNoStp());
-        map.put(2, config.isNoRecv());
-        map.put(3, config.isNoRecvStp());
-        map.put(4, config.isNoFlood());
-        map.put(5, config.isNoFwd());
-        map.put(6, config.isNoPacketIn());
+        map.put(0, config.getPortDown());
+        map.put(1, config.getNoStp());
+        map.put(2, config.getNoRecv());
+        map.put(3, config.getNoRecvStp());
+        map.put(4, config.getNoFlood());
+        map.put(5, config.getNoFwd());
+        map.put(6, config.getNoPacketIn());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static int createCapabilities(final CapabilitiesV10 capabilities) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, capabilities.isOFPCFLOWSTATS());
-        map.put(1, capabilities.isOFPCTABLESTATS());
-        map.put(2, capabilities.isOFPCPORTSTATS());
-        map.put(3, capabilities.isOFPCSTP());
-        map.put(4, capabilities.isOFPCRESERVED());
-        map.put(5, capabilities.isOFPCIPREASM());
-        map.put(6, capabilities.isOFPCQUEUESTATS());
-        map.put(7, capabilities.isOFPCARPMATCHIP());
+        map.put(0, capabilities.getOFPCFLOWSTATS());
+        map.put(1, capabilities.getOFPCTABLESTATS());
+        map.put(2, capabilities.getOFPCPORTSTATS());
+        map.put(3, capabilities.getOFPCSTP());
+        map.put(4, capabilities.getOFPCRESERVED());
+        map.put(5, capabilities.getOFPCIPREASM());
+        map.put(6, capabilities.getOFPCQUEUESTATS());
+        map.put(7, capabilities.getOFPCARPMATCHIP());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         return bitmap;
     }
 
     private static int createActionsV10(final ActionTypeV10 action) {
-        return ByteBufUtils.fillBitMask(0, action.isOFPATOUTPUT(), action.isOFPATSETVLANVID(),
-                action.isOFPATSETVLANPCP(), action.isOFPATSTRIPVLAN(), action.isOFPATSETDLSRC(),
-                action.isOFPATSETDLDST(), action.isOFPATSETNWSRC(), action.isOFPATSETNWDST(), action.isOFPATSETNWTOS(),
-                action.isOFPATSETTPSRC(), action.isOFPATSETTPDST(), action.isOFPATENQUEUE(), action.isOFPATVENDOR());
-
+        return ByteBufUtils.fillBitMask(0, action.getOFPATOUTPUT(), action.getOFPATSETVLANVID(),
+                action.getOFPATSETVLANPCP(), action.getOFPATSTRIPVLAN(), action.getOFPATSETDLSRC(),
+                action.getOFPATSETDLDST(), action.getOFPATSETNWSRC(), action.getOFPATSETNWDST(),
+                action.getOFPATSETNWTOS(), action.getOFPATSETTPSRC(), action.getOFPATSETTPDST(),
+                action.getOFPATENQUEUE(), action.getOFPATVENDOR());
     }
 
     private static void writeName(final String name, final ByteBuf outBuffer) {
index d1809fb02fd908fbe4e3d1d7e559387d43321540..7fad17e281f848662462340265a94d9ffbeb22f1 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.serialization.factories;
 
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@@ -60,9 +59,9 @@ public class OF10FlowModInputMessageFactory implements OFSerializer<FlowModInput
 
     private static int createFlowModFlagsBitmask(final FlowModFlagsV10 flags) {
         return ByteBufUtils.fillBitMask(0,
-                flags.isOFPFFSENDFLOWREM(),
-                flags.isOFPFFCHECKOVERLAP(),
-                flags.isOFPFFEMERG());
+                flags.getOFPFFSENDFLOWREM(),
+                flags.getOFPFFCHECKOVERLAP(),
+                flags.getOFPFFEMERG());
     }
 
     @Override
index aa794205e2b4bd9362c46cd8a4d67706c323c410..457e4a38fda7628e9a0a34452e0a41b055402db3 100644 (file)
@@ -40,29 +40,29 @@ public class OF10PortModInputMessageFactory implements OFSerializer<PortModInput
 
     private static int createPortConfigBitmask(final PortConfigV10 config) {
         return ByteBufUtils.fillBitMask(0,
-                config.isPortDown(),
-                config.isNoStp(),
-                config.isNoRecv(),
-                config.isNoRecvStp(),
-                config.isNoFlood(),
-                config.isNoFwd(),
-                config.isNoPacketIn());
+                config.getPortDown(),
+                config.getNoStp(),
+                config.getNoRecv(),
+                config.getNoRecvStp(),
+                config.getNoFlood(),
+                config.getNoFwd(),
+                config.getNoPacketIn());
     }
 
     private static int createPortFeaturesBitmask(final PortFeaturesV10 feature) {
         return ByteBufUtils.fillBitMask(0,
-                feature.is_10mbHd(),
-                feature.is_10mbFd(),
-                feature.is_100mbHd(),
-                feature.is_100mbFd(),
-                feature.is_1gbHd(),
-                feature.is_1gbFd(),
-                feature.is_10gbFd(),
-                feature.isCopper(),
-                feature.isFiber(),
-                feature.isAutoneg(),
-                feature.isPause(),
-                feature.isPauseAsym());
+                feature.get_10mbHd(),
+                feature.get_10mbFd(),
+                feature.get_100mbHd(),
+                feature.get_100mbFd(),
+                feature.get_1gbHd(),
+                feature.get_1gbFd(),
+                feature.get_10gbFd(),
+                feature.getCopper(),
+                feature.getFiber(),
+                feature.getAutoneg(),
+                feature.getPause(),
+                feature.getPauseAsym());
     }
 
 }
index 9aa1778a4f55b93ea8a54dc674624eede7dd38e8..b0629a61ace7792a3b4aa241490b000a814522b4 100644 (file)
@@ -49,45 +49,45 @@ public class OF10PortStatusMessageFactory implements OFSerializer<PortStatusMess
 
     private static void writePortFeature(final PortFeaturesV10 feature, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, feature.is_10mbHd());
-        map.put(1, feature.is_10mbFd());
-        map.put(2, feature.is_100mbHd());
-        map.put(3, feature.is_100mbFd());
-        map.put(4, feature.is_1gbHd());
-        map.put(5, feature.is_1gbFd());
-        map.put(6, feature.is_10gbFd());
-        map.put(7, feature.isCopper());
-        map.put(8, feature.isFiber());
-        map.put(9, feature.isAutoneg());
-        map.put(10, feature.isPause());
-        map.put(11, feature.isPauseAsym());
+        map.put(0, feature.get_10mbHd());
+        map.put(1, feature.get_10mbFd());
+        map.put(2, feature.get_100mbHd());
+        map.put(3, feature.get_100mbFd());
+        map.put(4, feature.get_1gbHd());
+        map.put(5, feature.get_1gbFd());
+        map.put(6, feature.get_10gbFd());
+        map.put(7, feature.getCopper());
+        map.put(8, feature.getFiber());
+        map.put(9, feature.getAutoneg());
+        map.put(10, feature.getPause());
+        map.put(11, feature.getPauseAsym());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writePortState(final PortStateV10 state, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, state.isLinkDown());
-        map.put(1, state.isBlocked());
-        map.put(2, state.isLive());
-        map.put(3, state.isStpListen());
-        map.put(4, state.isStpLearn());
-        map.put(5, state.isStpForward());
-        map.put(6, state.isStpBlock());
-        map.put(7, state.isStpMask());
+        map.put(0, state.getLinkDown());
+        map.put(1, state.getBlocked());
+        map.put(2, state.getLive());
+        map.put(3, state.getStpListen());
+        map.put(4, state.getStpLearn());
+        map.put(5, state.getStpForward());
+        map.put(6, state.getStpBlock());
+        map.put(7, state.getStpMask());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writePortConfig(final PortConfigV10 config, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, config.isPortDown());
-        map.put(1, config.isNoStp());
-        map.put(2, config.isNoRecv());
-        map.put(3, config.isNoRecvStp());
-        map.put(4, config.isNoFlood());
-        map.put(5, config.isNoFwd());
-        map.put(6, config.isNoPacketIn());
+        map.put(0, config.getPortDown());
+        map.put(1, config.getNoStp());
+        map.put(2, config.getNoRecv());
+        map.put(3, config.getNoRecvStp());
+        map.put(4, config.getNoFlood());
+        map.put(5, config.getNoFwd());
+        map.put(6, config.getNoPacketIn());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
index c2247506aa6af6d920e3a15fdb5543277d2f4eaa..9d74c7141a923c3b20e482c6be216287cb716869 100644 (file)
@@ -68,12 +68,12 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
     private static final byte PORT_STATS_PADDING = 6;
 
     @Override
-    public void injectSerializerRegistry(SerializerRegistry serializerRegistry) {
+    public void injectSerializerRegistry(final SerializerRegistry serializerRegistry) {
         registry = serializerRegistry;
     }
 
     @Override
-    public void serialize(MultipartReplyMessage message, ByteBuf outBuffer) {
+    public void serialize(final MultipartReplyMessage message, final ByteBuf outBuffer) {
         Objects.requireNonNull(registry);
 
         ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH);
@@ -107,13 +107,13 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         ByteBufUtils.updateOFHeaderLength(outBuffer);
     }
 
-    private void serializeExperimenterBody(MultipartReplyBody body, ByteBuf outBuffer) {
+    private void serializeExperimenterBody(final MultipartReplyBody body, final ByteBuf outBuffer) {
 //        MultipartReplyExperimenterCase experimenterCase = (MultipartReplyExperimenterCase) body;
 //        MultipartReplyExperimenter experimenterBody = experimenterCase.getMultipartReplyExperimenter();
         // TODO: experimenterBody does not have get methods
     }
 
-    private static void serializeQueueBody(MultipartReplyBody body, ByteBuf outBuffer) {
+    private static void serializeQueueBody(final MultipartReplyBody body, final ByteBuf outBuffer) {
         MultipartReplyQueueCase queueCase = (MultipartReplyQueueCase) body;
         MultipartReplyQueue queue = queueCase.getMultipartReplyQueue();
         for (QueueStats queueStats : queue.getQueueStats()) {
@@ -129,7 +129,7 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         }
     }
 
-    private static void serializePortStatsBody(MultipartReplyBody body, ByteBuf outBuffer) {
+    private static void serializePortStatsBody(final MultipartReplyBody body, final ByteBuf outBuffer) {
         MultipartReplyPortStatsCase portStatsCase = (MultipartReplyPortStatsCase) body;
         MultipartReplyPortStats portStats = portStatsCase.getMultipartReplyPortStats();
         for (PortStats portStat : portStats.getPortStats()) {
@@ -150,7 +150,7 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         }
     }
 
-    private static void serializeTableBody(MultipartReplyBody body, ByteBuf outBuffer) {
+    private static void serializeTableBody(final MultipartReplyBody body, final ByteBuf outBuffer) {
         MultipartReplyTableCase tableCase = (MultipartReplyTableCase) body;
         MultipartReplyTable table = tableCase.getMultipartReplyTable();
         for (TableStats tableStats : table.getTableStats()) {
@@ -165,23 +165,23 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         }
     }
 
-    private static void writeFlowWildcardsV10(FlowWildcardsV10 feature, ByteBuf outBuffer) {
+    private static void writeFlowWildcardsV10(final FlowWildcardsV10 feature, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, feature.isINPORT());
-        map.put(1, feature.isDLVLAN());
-        map.put(2, feature.isDLSRC());
-        map.put(3, feature.isDLDST());
-        map.put(4, feature.isDLTYPE());
-        map.put(5, feature.isNWPROTO());
-        map.put(6, feature.isTPSRC());
-        map.put(7, feature.isTPDST());
-        map.put(20, feature.isDLVLANPCP());
-        map.put(21, feature.isNWTOS());
+        map.put(0, feature.getINPORT());
+        map.put(1, feature.getDLVLAN());
+        map.put(2, feature.getDLSRC());
+        map.put(3, feature.getDLDST());
+        map.put(4, feature.getDLTYPE());
+        map.put(5, feature.getNWPROTO());
+        map.put(6, feature.getTPSRC());
+        map.put(7, feature.getTPDST());
+        map.put(20, feature.getDLVLANPCP());
+        map.put(21, feature.getNWTOS());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
-    private static void serializeAggregateBody(MultipartReplyBody body, ByteBuf outBuffer) {
+    private static void serializeAggregateBody(final MultipartReplyBody body, final ByteBuf outBuffer) {
         MultipartReplyAggregateCase aggregateCase = (MultipartReplyAggregateCase) body;
         MultipartReplyAggregate aggregate = aggregateCase.getMultipartReplyAggregate();
         outBuffer.writeLong(aggregate.getPacketCount().longValue());
@@ -190,7 +190,8 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         outBuffer.writeZero(AGGREGATE_PADDING);
     }
 
-    private void serializeFlowBody(MultipartReplyBody body, ByteBuf outBuffer, MultipartReplyMessage message) {
+    private void serializeFlowBody(final MultipartReplyBody body, final ByteBuf outBuffer,
+            final MultipartReplyMessage message) {
         MultipartReplyFlowCase flowCase = (MultipartReplyFlowCase) body;
         MultipartReplyFlow flow = flowCase.getMultipartReplyFlow();
         for (FlowStats flowStats : flow.getFlowStats()) {
@@ -216,14 +217,14 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         }
     }
 
-    private static void writeFlags(MultipartRequestFlags flags, ByteBuf outBuffer) {
+    private static void writeFlags(final MultipartRequestFlags flags, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, flags.isOFPMPFREQMORE());
+        map.put(0, flags.getOFPMPFREQMORE());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeShort(bitmap);
     }
 
-    private static void serializeDescBody(MultipartReplyBody body, ByteBuf outBuffer) {
+    private static void serializeDescBody(final MultipartReplyBody body, final ByteBuf outBuffer) {
         MultipartReplyDescCase descCase = (MultipartReplyDescCase) body;
         MultipartReplyDesc desc = descCase.getMultipartReplyDesc();
         write256String(desc.getMfrDesc(), outBuffer);
@@ -233,7 +234,7 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         write256String(desc.getDpDesc(), outBuffer);
     }
 
-    private static void write256String(String toWrite, ByteBuf outBuffer) {
+    private static void write256String(final String toWrite, final ByteBuf outBuffer) {
         byte[] nameBytes = toWrite.getBytes(StandardCharsets.UTF_8);
         if (nameBytes.length < 256) {
             byte[] nameBytesPadding = new byte[256];
@@ -251,7 +252,7 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         }
     }
 
-    private static void write16String(String toWrite, ByteBuf outBuffer) {
+    private static void write16String(final String toWrite, final ByteBuf outBuffer) {
         byte[] nameBytes = toWrite.getBytes(StandardCharsets.UTF_8);
         if (nameBytes.length < 16) {
             byte[] nameBytesPadding = new byte[16];
@@ -269,7 +270,7 @@ public class OF10StatsReplyMessageFactory implements OFSerializer<MultipartReply
         }
     }
 
-    private static void write32String(String toWrite, ByteBuf outBuffer) {
+    private static void write32String(final String toWrite, final ByteBuf outBuffer) {
         byte[] nameBytes = toWrite.getBytes(StandardCharsets.UTF_8);
         if (nameBytes.length < 32) {
             byte[] nameBytesPadding = new byte[32];
index bba32fd9fef35aed287351be3f8776cf5c70b736..7d428129e4acfc0a229879aa90a449c7246f67d0 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.serialization.factories;
 
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@@ -78,7 +77,7 @@ public class OF10StatsRequestInputFactory implements OFSerializer<MultipartReque
     }
 
     private static int createMultipartRequestFlagsBitmask(final MultipartRequestFlags flags) {
-        return ByteBufUtils.fillBitMask(0, flags.isOFPMPFREQMORE());
+        return ByteBufUtils.fillBitMask(0, flags.getOFPMPFREQMORE());
     }
 
     private void serializeDescBody() {
index 563bd51e0cdf20af7c1254f8a2f7f68f3372e7c5..b6410b142f9012e9bc8fe99644da7cca79e82937 100644 (file)
@@ -47,31 +47,31 @@ public class PortModInputMessageFactory implements OFSerializer<PortMod> {
 
     private static int createPortConfigBitmask(final PortConfig config) {
         Map<Integer, Boolean> portConfigMap = new HashMap<>();
-        portConfigMap.put(0, config.isPortDown());
-        portConfigMap.put(2, config.isNoRecv());
-        portConfigMap.put(5, config.isNoFwd());
-        portConfigMap.put(6, config.isNoPacketIn());
+        portConfigMap.put(0, config.getPortDown());
+        portConfigMap.put(2, config.getNoRecv());
+        portConfigMap.put(5, config.getNoFwd());
+        portConfigMap.put(6, config.getNoPacketIn());
 
         return ByteBufUtils.fillBitMaskFromMap(portConfigMap);
     }
 
     private static int createPortFeaturesBitmask(final PortFeatures feature) {
-        return ByteBufUtils.fillBitMask(0, feature.is_10mbHd(),
-                feature.is_10mbFd(),
-                feature.is_100mbHd(),
-                feature.is_100mbFd(),
-                feature.is_1gbHd(),
-                feature.is_1gbFd(),
-                feature.is_10gbFd(),
-                feature.is_40gbFd(),
-                feature.is_100gbFd(),
-                feature.is_1tbFd(),
-                feature.isOther(),
-                feature.isCopper(),
-                feature.isFiber(),
-                feature.isAutoneg(),
-                feature.isPause(),
-                feature.isPauseAsym());
+        return ByteBufUtils.fillBitMask(0, feature.get_10mbHd(),
+                feature.get_10mbFd(),
+                feature.get_100mbHd(),
+                feature.get_100mbFd(),
+                feature.get_1gbHd(),
+                feature.get_1gbFd(),
+                feature.get_10gbFd(),
+                feature.get_40gbFd(),
+                feature.get_100gbFd(),
+                feature.get_1tbFd(),
+                feature.getOther(),
+                feature.getCopper(),
+                feature.getFiber(),
+                feature.getAutoneg(),
+                feature.getPause(),
+                feature.getPauseAsym());
     }
 
 }
index 0035b9191b84143bd96e96d2aa7b6b54f13803ab..305be6ce7a440f95ee245d3fb73e87b56d38c11c 100644 (file)
@@ -55,10 +55,10 @@ public class PortStatusMessageFactory implements OFSerializer<PortStatusMessage>
 
     private static void writePortConfig(final PortConfig config, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, config.isPortDown());
-        map.put(2, config.isNoRecv());
-        map.put(5, config.isNoFwd());
-        map.put(6, config.isNoPacketIn());
+        map.put(0, config.getPortDown());
+        map.put(2, config.getNoRecv());
+        map.put(5, config.getNoFwd());
+        map.put(6, config.getNoPacketIn());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
@@ -83,31 +83,31 @@ public class PortStatusMessageFactory implements OFSerializer<PortStatusMessage>
 
     private static void writePortState(final PortState state, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, state.isLinkDown());
-        map.put(1, state.isBlocked());
-        map.put(2, state.isLive());
+        map.put(0, state.getLinkDown());
+        map.put(1, state.getBlocked());
+        map.put(2, state.getLive());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
 
     private static void writePortFeatures(final PortFeatures features, final ByteBuf outBuffer) {
         Map<Integer, Boolean> map = new HashMap<>();
-        map.put(0, features.is_10mbHd());
-        map.put(1, features.is_10mbFd());
-        map.put(2, features.is_100mbHd());
-        map.put(3, features.is_100mbFd());
-        map.put(4, features.is_1gbHd());
-        map.put(5, features.is_1gbFd());
-        map.put(6, features.is_10gbFd());
-        map.put(7, features.is_40gbFd());
-        map.put(8, features.is_100gbFd());
-        map.put(9, features.is_1tbFd());
-        map.put(10, features.isOther());
-        map.put(11, features.isCopper());
-        map.put(12, features.isFiber());
-        map.put(13, features.isAutoneg());
-        map.put(14, features.isPause());
-        map.put(15, features.isPauseAsym());
+        map.put(0, features.get_10mbHd());
+        map.put(1, features.get_10mbFd());
+        map.put(2, features.get_100mbHd());
+        map.put(3, features.get_100mbFd());
+        map.put(4, features.get_1gbHd());
+        map.put(5, features.get_1gbFd());
+        map.put(6, features.get_10gbFd());
+        map.put(7, features.get_40gbFd());
+        map.put(8, features.get_100gbFd());
+        map.put(9, features.get_1tbFd());
+        map.put(10, features.getOther());
+        map.put(11, features.getCopper());
+        map.put(12, features.getFiber());
+        map.put(13, features.getAutoneg());
+        map.put(14, features.getPause());
+        map.put(15, features.getPauseAsym());
         int bitmap = ByteBufUtils.fillBitMaskFromMap(map);
         outBuffer.writeInt(bitmap);
     }
index ba8b7a8bcb7f7888f11a3f2e0022cc285593a9b3..b716c42f1afabc45001a6dcde13c8360a123a96c 100644 (file)
@@ -35,6 +35,6 @@ public class TableModInputMessageFactory implements OFSerializer<TableModInput>
     }
 
     private static int createConfigBitmask(final TableConfig tableConfig) {
-        return ByteBufUtils.fillBitMask(3, tableConfig.isOFPTCDEPRECATEDMASK());
+        return ByteBufUtils.fillBitMask(3, tableConfig.getOFPTCDEPRECATEDMASK());
     }
 }
index beb59db1a2ce53fd134973656937d63b760e3c59..57f37153a987d7db569c1cf1d3e63528c4ba4ab1 100644 (file)
@@ -21,18 +21,17 @@ public abstract class AbstractOxmMatchEntrySerializer
         implements OFSerializer<MatchEntry>, HeaderSerializer<MatchEntry> {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         serializeHeader(entry, outBuffer);
     }
 
     @Override
-    public void serializeHeader(MatchEntry entry, ByteBuf outBuffer) {
+    public void serializeHeader(final MatchEntry entry, final ByteBuf outBuffer) {
         outBuffer.writeShort(getOxmClassCode());
-        writeOxmFieldAndLength(outBuffer, getOxmFieldCode(), entry.isHasMask(),
-                getValueLength());
+        writeOxmFieldAndLength(outBuffer, getOxmFieldCode(), entry.getHasMask(), getValueLength());
     }
 
-    protected static void writeMask(byte[] mask, ByteBuf out, int length) {
+    protected static void writeMask(final byte[] mask, final ByteBuf out, final int length) {
         if (mask != null && mask.length != length) {
             throw new IllegalArgumentException("incorrect length of mask: "
                     + mask.length + ", expected: " + length);
@@ -40,7 +39,8 @@ public abstract class AbstractOxmMatchEntrySerializer
         out.writeBytes(mask);
     }
 
-    protected static void writeOxmFieldAndLength(ByteBuf out, int fieldValue, boolean hasMask, int lengthArg) {
+    protected static void writeOxmFieldAndLength(final ByteBuf out, final int fieldValue, final boolean hasMask,
+            final int lengthArg) {
         int fieldAndMask = fieldValue << 1;
         int length = lengthArg;
         if (hasMask) {
index 38ed0b2b5e62f234d2d97dd5db49fd13d83acb9c..124733187f89be4811964c1675acf516cc2052dd 100644 (file)
@@ -21,11 +21,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 public class OxmArpShaSerializer extends AbstractOxmMacAddressSerializer {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         ArpShaCase entryValue = (ArpShaCase) entry.getMatchEntryValue();
         writeMacAddress(entryValue.getArpSha().getMacAddress(), outBuffer);
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getArpSha().getMask(), outBuffer, EncodeConstants.MAC_ADDRESS_LENGTH);
         }
     }
index a2fc20ff112a9bfce2cfb929c31a5c2569b110bd..83629da7cc251ef1efa4b1ce2d390942a68dc7e0 100644 (file)
@@ -25,9 +25,8 @@ public class OxmArpSpaSerializer extends AbstractOxmIpv4AddressSerializer {
         super.serialize(entry, outBuffer);
         ArpSpaCase entryValue = (ArpSpaCase) entry.getMatchEntryValue();
         writeIpv4Address(entryValue.getArpSpa().getIpv4Address(), outBuffer);
-        if (entry.isHasMask()) {
-            writeMask(entryValue.getArpSpa().getMask(), outBuffer,
-                    EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
+        if (entry.getHasMask()) {
+            writeMask(entryValue.getArpSpa().getMask(), outBuffer, EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
         }
     }
 
index 79faf3ca927c779e31191fada65a14a2df413136..40829e38c7957c7dc6757159f3999f71b5c42665 100644 (file)
@@ -21,11 +21,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 public class OxmArpThaSerializer extends AbstractOxmMacAddressSerializer {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         ArpThaCase entryValue = (ArpThaCase) entry.getMatchEntryValue();
         writeMacAddress(entryValue.getArpTha().getMacAddress(), outBuffer);
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getArpTha().getMask(), outBuffer, EncodeConstants.MAC_ADDRESS_LENGTH);
         }
     }
index 94d3a7fb63da34d5a9809f38e26f9fa1caf91d63..4d05f7d81a9f5506b91b9d78d57653110ef57e2b 100644 (file)
@@ -25,9 +25,8 @@ public class OxmArpTpaSerializer extends AbstractOxmIpv4AddressSerializer {
         super.serialize(entry, outBuffer);
         ArpTpaCase entryValue = (ArpTpaCase) entry.getMatchEntryValue();
         writeIpv4Address(entryValue.getArpTpa().getIpv4Address(), outBuffer);
-        if (entry.isHasMask()) {
-            writeMask(entryValue.getArpTpa().getMask(), outBuffer,
-                    EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
+        if (entry.getHasMask()) {
+            writeMask(entryValue.getArpTpa().getMask(), outBuffer, EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
         }
     }
 
index 9d02b423a7d2de8c4f7ce7da2048c773fb015534..3797b37b2216ca7e5baf76ba3a45895fca50561b 100644 (file)
@@ -21,11 +21,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 public class OxmEthDstSerializer extends AbstractOxmMacAddressSerializer {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         EthDstCase entryValue = (EthDstCase) entry.getMatchEntryValue();
         writeMacAddress(entryValue.getEthDst().getMacAddress(), outBuffer);
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getEthDst().getMask(), outBuffer, EncodeConstants.MAC_ADDRESS_LENGTH);
         }
     }
index 64e607e5cf2cbdedd4213515b3c2900b8e8101b4..339d771210fdaaa394269c4a57d82395a4bac62e 100644 (file)
@@ -21,11 +21,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 public class OxmEthSrcSerializer extends AbstractOxmMacAddressSerializer {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         EthSrcCase entryValue = (EthSrcCase) entry.getMatchEntryValue();
         writeMacAddress(entryValue.getEthSrc().getMacAddress(), outBuffer);
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getEthSrc().getMask(), outBuffer, EncodeConstants.MAC_ADDRESS_LENGTH);
         }
     }
index 4e703bac6b21cfc1efc2e1363c80f9930c577f74..78f5c571670170786507157ee8a7cff247fe6808 100644 (file)
@@ -25,9 +25,8 @@ public class OxmIpv4DstSerializer extends AbstractOxmIpv4AddressSerializer {
         super.serialize(entry, outBuffer);
         Ipv4DstCase entryValue = (Ipv4DstCase) entry.getMatchEntryValue();
         writeIpv4Address(entryValue.getIpv4Dst().getIpv4Address(), outBuffer);
-        if (entry.isHasMask()) {
-            writeMask(entryValue.getIpv4Dst().getMask(), outBuffer,
-                    EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
+        if (entry.getHasMask()) {
+            writeMask(entryValue.getIpv4Dst().getMask(), outBuffer, EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
         }
     }
 
index 258b403f21ec766aed408b60e337a82230ef89ce..9abdfbd64dfa0220d7780b11c9bc1c03b1062e61 100644 (file)
@@ -25,9 +25,8 @@ public class OxmIpv4SrcSerializer extends AbstractOxmIpv4AddressSerializer {
         super.serialize(entry, outBuffer);
         Ipv4SrcCase entryValue = (Ipv4SrcCase) entry.getMatchEntryValue();
         writeIpv4Address(entryValue.getIpv4Src().getIpv4Address(), outBuffer);
-        if (entry.isHasMask()) {
-            writeMask(entryValue.getIpv4Src().getMask(), outBuffer,
-                    EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
+        if (entry.getHasMask()) {
+            writeMask(entryValue.getIpv4Src().getMask(), outBuffer, EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
         }
     }
 
index a949c4fe8dbf4751866cd69fcedebaa170799223..6965ce5cee6e5d204305b0cad421f5412f29856e 100644 (file)
@@ -21,13 +21,12 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 public class OxmIpv6DstSerializer extends AbstractOxmIpv6AddressSerializer {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         Ipv6DstCase entryValue = (Ipv6DstCase) entry.getMatchEntryValue();
         writeIpv6Address(entryValue.getIpv6Dst().getIpv6Address().getValue(), outBuffer);
-        if (entry.isHasMask()) {
-            writeMask(entryValue.getIpv6Dst().getMask(), outBuffer,
-                    EncodeConstants.SIZE_OF_IPV6_ADDRESS_IN_BYTES);
+        if (entry.getHasMask()) {
+            writeMask(entryValue.getIpv6Dst().getMask(), outBuffer, EncodeConstants.SIZE_OF_IPV6_ADDRESS_IN_BYTES);
         }
     }
 
index b97e2236b64b97661a864a6113ac7cddbc5e0e02..ff89cd77e7b6b0c1708a1047fff8a20a25fa73bf 100644 (file)
@@ -21,22 +21,22 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
  */
 public class OxmIpv6ExtHdrSerializer extends AbstractOxmMatchEntrySerializer {
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         Ipv6ExthdrCase entryValue = (Ipv6ExthdrCase) entry.getMatchEntryValue();
         Ipv6ExthdrFlags pseudoField = entryValue.getIpv6Exthdr().getPseudoField();
         int bitmap = ByteBufUtils.fillBitMask(0,
-                pseudoField.isNonext(),
-                pseudoField.isEsp(),
-                pseudoField.isAuth(),
-                pseudoField.isDest(),
-                pseudoField.isFrag(),
-                pseudoField.isRouter(),
-                pseudoField.isHop(),
-                pseudoField.isUnrep(),
-                pseudoField.isUnseq());
+                pseudoField.getNonext(),
+                pseudoField.getEsp(),
+                pseudoField.getAuth(),
+                pseudoField.getDest(),
+                pseudoField.getFrag(),
+                pseudoField.getRouter(),
+                pseudoField.getHop(),
+                pseudoField.getUnrep(),
+                pseudoField.getUnseq());
         outBuffer.writeShort(bitmap);
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             outBuffer.writeBytes(entryValue.getIpv6Exthdr().getMask());
         }
     }
index 8c89fe047405bf7de298a2a659b87deea3b90495..3994d942b9bee61f33ec9729b2278faf084b64fd 100644 (file)
@@ -19,11 +19,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
  */
 public class OxmIpv6FlabelSerializer extends AbstractOxmMatchEntrySerializer {
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         Ipv6FlabelCase entryValue = (Ipv6FlabelCase) entry.getMatchEntryValue();
         outBuffer.writeInt(entryValue.getIpv6Flabel().getIpv6Flabel().getValue().intValue());
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getIpv6Flabel().getMask(), outBuffer, Integer.BYTES);
         }
     }
index 8c884fdc21fb1c5e175761fea49888d5968c57a2..0a3f8e8d99688c315315483baee5eb21f9a50fa0 100644 (file)
@@ -21,13 +21,12 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 public class OxmIpv6SrcSerializer extends AbstractOxmIpv6AddressSerializer {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         Ipv6SrcCase entryValue = (Ipv6SrcCase) entry.getMatchEntryValue();
         writeIpv6Address(entryValue.getIpv6Src().getIpv6Address().getValue(), outBuffer);
-        if (entry.isHasMask()) {
-            writeMask(entryValue.getIpv6Src().getMask(), outBuffer,
-                    EncodeConstants.SIZE_OF_IPV6_ADDRESS_IN_BYTES);
+        if (entry.getHasMask()) {
+            writeMask(entryValue.getIpv6Src().getMask(), outBuffer, EncodeConstants.SIZE_OF_IPV6_ADDRESS_IN_BYTES);
         }
     }
 
index 89162bef8b873f637b4eaba51c7b0bea03e7648e..530d4f1cc1c8a6ffb08fa6eb228e3b7e63c9e13d 100644 (file)
@@ -19,11 +19,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
  */
 public class OxmMetadataSerializer extends AbstractOxmMatchEntrySerializer {
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         MetadataCase entryValue = (MetadataCase) entry.getMatchEntryValue();
         outBuffer.writeBytes(entryValue.getMetadata().getMetadata());
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getMetadata().getMask(), outBuffer, Long.BYTES);
         }
     }
index 003871d3ea2347ea8b76fbe7c124cbdcb7f7d855..5ea9e66e7927ef0d255aa1fe32e554318af6e613 100644 (file)
@@ -19,10 +19,10 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
  */
 public class OxmMplsBosSerializer extends AbstractOxmMatchEntrySerializer {
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         MplsBosCase entryValue = (MplsBosCase) entry.getMatchEntryValue();
-        outBuffer.writeBoolean(entryValue.getMplsBos().isBos().booleanValue());
+        outBuffer.writeBoolean(entryValue.getMplsBos().getBos());
     }
 
     @Override
index dad8a4908fd2594e76c1bc6ff051142e887e13ed..2bdd4e25284c6caae55a10b2f2b3d86f1581d1e9 100644 (file)
@@ -21,11 +21,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 public class OxmPbbIsidSerializer extends AbstractOxmMatchEntrySerializer {
 
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         PbbIsidCase entryValue = (PbbIsidCase) entry.getMatchEntryValue();
         outBuffer.writeMedium(entryValue.getPbbIsid().getIsid().intValue());
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getPbbIsid().getMask(), outBuffer, getValueLength());
         }
     }
index eebadc457f420e5f495baed6b5c06eb29cb33c10..e470ac96224adfab01de22334332fae04c129620 100644 (file)
@@ -19,11 +19,11 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
  */
 public class OxmTunnelIdSerializer extends AbstractOxmMatchEntrySerializer {
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         TunnelIdCase entryValue = (TunnelIdCase) entry.getMatchEntryValue();
         outBuffer.writeBytes(entryValue.getTunnelId().getTunnelId());
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(entryValue.getTunnelId().getMask(), outBuffer, Long.BYTES);
         }
     }
index 1f18a549177b856dfc767cf089bea7955c029d3f..20467168b918eb9ed4ffe09afb7012a854577ce7 100644 (file)
@@ -20,16 +20,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
  */
 public class OxmVlanVidSerializer extends AbstractOxmMatchEntrySerializer {
     @Override
-    public void serialize(MatchEntry entry, ByteBuf outBuffer) {
+    public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
         super.serialize(entry, outBuffer);
         VlanVid vlanVid = ((VlanVidCase) entry.getMatchEntryValue()).getVlanVid();
         int vlanVidValue = vlanVid.getVlanVid().toJava();
-        if (vlanVid.isCfiBit()) {
+        if (vlanVid.getCfiBit()) {
             short cfi = 1 << 12; // 13-th bit
             vlanVidValue = vlanVidValue | cfi;
         }
         outBuffer.writeShort(vlanVidValue);
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             writeMask(vlanVid.getMask(), outBuffer, getValueLength());
         }
     }
index 6dc9e87ebecee40ac7eeecdac4ad8d2ea7bd3f32..5110c40f7c648d0530cd3cdbfffe9306e75e7a3a 100644 (file)
@@ -25,7 +25,7 @@ public abstract class AbstractOxmExperimenterMatchEntrySerializer extends Abstra
     @Override
     public void serializeHeader(final MatchEntry entry, final ByteBuf outBuffer) {
         outBuffer.writeShort(getOxmClassCode());
-        writeOxmFieldAndLength(outBuffer, getOxmFieldCode(), entry.isHasMask(), getValueLength());
+        writeOxmFieldAndLength(outBuffer, getOxmFieldCode(), entry.getHasMask(), getValueLength());
     }
 
     protected static void writeOxmFieldAndLength(final ByteBuf out, final int fieldValue, final boolean hasMask,
index a0c5daf0d677e9f61f8ea06c411dd36d3f9c8e22..f0243bd05503ef44dfc65f0f865fd1143827bd6f 100644 (file)
@@ -27,7 +27,7 @@ public class OnfOxmTcpFlagsSerializer extends AbstractOxmExperimenterMatchEntryS
         ExperimenterIdCase expCase = serializeExperimenterId(entry, outBuffer);
         TcpFlags tcpFlags = expCase.augmentation(TcpFlagsContainer.class).getTcpFlags();
         outBuffer.writeShort(tcpFlags.getFlags().toJava());
-        if (entry.isHasMask()) {
+        if (entry.getHasMask()) {
             outBuffer.writeBytes(tcpFlags.getMask());
         }
     }
index 98816686dc25cfa84270c5c3ac38dbad2400e150..32771c0a659d9a3e15ad4b11217febaa2fd70156 100644 (file)
@@ -54,17 +54,17 @@ public class OF10MatchSerializer implements OFSerializer<MatchV10> {
 
     private static int encodeWildcards(final FlowWildcardsV10 wildcards, final short srcMask, final short dstMask) {
         int bitmask = ByteBufUtils.fillBitMask(0,
-                wildcards.isINPORT(),
-                wildcards.isDLVLAN(),
-                wildcards.isDLSRC(),
-                wildcards.isDLDST(),
-                wildcards.isDLTYPE(),
-                wildcards.isNWPROTO(),
-                wildcards.isTPSRC(),
-                wildcards.isTPDST());
+                wildcards.getINPORT(),
+                wildcards.getDLVLAN(),
+                wildcards.getDLSRC(),
+                wildcards.getDLDST(),
+                wildcards.getDLTYPE(),
+                wildcards.getNWPROTO(),
+                wildcards.getTPSRC(),
+                wildcards.getTPDST());
         bitmask |= ByteBufUtils.fillBitMask(20,
-                wildcards.isDLVLANPCP(),
-                wildcards.isNWTOS());
+                wildcards.getDLVLANPCP(),
+                wildcards.getNWTOS());
         bitmask |= 32 - srcMask << NW_SRC_SHIFT;
         bitmask |= 32 - dstMask << NW_DST_SHIFT;
         return bitmask;
index 1be2c7c12f5b1bb7967c225e2b7551c3b9b2835a..b82df102aa1b3565e9032d8d6e2a9a86acb5f27e 100644 (file)
@@ -88,8 +88,7 @@ public class MultipartReplyMessageFactoryTest {
                 new MessageCodeKey(EncodeConstants.OF13_VERSION_ID, 19, MultipartReplyMessage.class));
     }
 
-    private static final Logger LOG = LoggerFactory
-            .getLogger(MultipartReplyMessageFactoryTest.class);
+    private static final Logger LOG = LoggerFactory.getLogger(MultipartReplyMessageFactoryTest.class);
 
     /**
      * Testing {@link MultipartReplyMessageFactory} for correct translation into POJO.
@@ -132,7 +131,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x00, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyDescCase messageCase = (MultipartReplyDescCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyDesc message = messageCase.getMultipartReplyDesc();
         Assert.assertEquals("Wrong mfrDesc", "Manufacturer description", message.getMfrDesc());
@@ -158,7 +157,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x02, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyAggregateCase messageCase = (MultipartReplyAggregateCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyAggregate message = messageCase.getMultipartReplyAggregate();
         Assert.assertEquals("Wrong packetCount", Uint64.valueOf("FF01010101010101", 16), message.getPacketCount());
@@ -183,7 +182,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x03, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
 
         MultipartReplyTableCase messageCase = (MultipartReplyTableCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyTable message = messageCase.getMultipartReplyTable();
@@ -223,7 +222,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x04, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyPortStatsCase messageCase = (MultipartReplyPortStatsCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyPortStats message = messageCase.getMultipartReplyPortStats();
         Assert.assertEquals("Wrong portNo", 255, message.getPortStats().get(0).getPortNo().intValue());
@@ -274,7 +273,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x05, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyQueueCase messageCase = (MultipartReplyQueueCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyQueue message = messageCase.getMultipartReplyQueue();
         Assert.assertEquals("Wrong portNo", 255, message.getQueueStats().get(0).getPortNo().intValue());
@@ -327,7 +326,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x06, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyGroupCase messageCase = (MultipartReplyGroupCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyGroup message = messageCase.getMultipartReplyGroup();
         Assert.assertEquals("Wrong groupId", 16, message.getGroupStats().get(0).getGroupId().getValue().intValue());
@@ -391,7 +390,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 9, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyMeterCase messageCase = (MultipartReplyMeterCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyMeter message = messageCase.getMultipartReplyMeter();
         Assert.assertEquals("Wrong meterId", 9,
@@ -460,7 +459,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 9, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyMeterCase messageCase = (MultipartReplyMeterCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyMeter message = messageCase.getMultipartReplyMeter();
         Assert.assertEquals("Wrong meterId", 9,
@@ -539,7 +538,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 10, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyMeterConfigCase messageCase =
                 (MultipartReplyMeterConfigCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyMeterConfig message = messageCase.getMultipartReplyMeterConfig();
@@ -599,7 +598,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 10, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyMeterConfigCase messageCase =
                 (MultipartReplyMeterConfigCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyMeterConfig message = messageCase.getMultipartReplyMeterConfig();
@@ -671,7 +670,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 7, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyGroupDescCase messageCase = (MultipartReplyGroupDescCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyGroupDesc message = messageCase.getMultipartReplyGroupDesc();
         Assert.assertEquals("Wrong type", 1,
@@ -744,7 +743,7 @@ public class MultipartReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 7, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyGroupDescCase messageCase = (MultipartReplyGroupDescCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyGroupDesc message = messageCase.getMultipartReplyGroupDesc();
         Assert.assertEquals("Wrong type", 1,
index a16e2814050493a332095bfb7189bbe4914d54ac..308cb2b2c0b77712f8d1420981a0bb6d62f2c992 100644 (file)
@@ -99,7 +99,7 @@ public class OF10StatsReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV10(builtByFactory);
         Assert.assertEquals("Wrong type", 0, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().isOFPMPFREQMORE().booleanValue());
+        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().getOFPMPFREQMORE().booleanValue());
         MultipartReplyDescCase messageCase = (MultipartReplyDescCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyDesc message = messageCase.getMultipartReplyDesc();
         Assert.assertEquals("Wrong mfrDesc", "Manufacturer description", message.getMfrDesc());
@@ -126,7 +126,7 @@ public class OF10StatsReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV10(builtByFactory);
         Assert.assertEquals("Wrong type", 0x01, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE().booleanValue());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE().booleanValue());
         MultipartReplyFlowCase messageCase = (MultipartReplyFlowCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyFlow message = messageCase.getMultipartReplyFlow();
         Assert.assertEquals("Wrong tableId", 1, message.getFlowStats().get(0).getTableId().intValue());
@@ -166,7 +166,7 @@ public class OF10StatsReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV10(builtByFactory);
         Assert.assertEquals("Wrong type", 0x02, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE().booleanValue());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE().booleanValue());
         MultipartReplyAggregateCase messageCase = (MultipartReplyAggregateCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyAggregate message = messageCase.getMultipartReplyAggregate();
         Assert.assertEquals("Wrong packet-count", Uint64.valueOf("FF01020304050607", 16), message.getPacketCount());
@@ -189,7 +189,7 @@ public class OF10StatsReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV10(builtByFactory);
         Assert.assertEquals("Wrong type", 0x03, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
 
         MultipartReplyTableCase messageCase = (MultipartReplyTableCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyTable message = messageCase.getMultipartReplyTable();
@@ -226,7 +226,7 @@ public class OF10StatsReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV10(builtByFactory);
         Assert.assertEquals("Wrong type", 0x04, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyPortStatsCase messageCase = (MultipartReplyPortStatsCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyPortStats message = messageCase.getMultipartReplyPortStats();
         Assert.assertEquals("Wrong portNo", 255, message.getPortStats().get(0).getPortNo().intValue());
@@ -272,7 +272,7 @@ public class OF10StatsReplyMessageFactoryTest {
 
         BufferHelper.checkHeaderV10(builtByFactory);
         Assert.assertEquals("Wrong type", 0x05, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyQueueCase messageCase = (MultipartReplyQueueCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyQueue message = messageCase.getMultipartReplyQueue();
         Assert.assertEquals("Wrong portNo", 255, message.getQueueStats().get(0).getPortNo().intValue());
index 3b134b7c3740b11d04f2dc73ae397affd2160a14..a67b602c032ef5ac691d6a5dc50663ae17ceae5a 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.factories.multipart;
 
 import io.netty.buffer.ByteBuf;
@@ -50,7 +49,7 @@ public class MultipartReplyExperimenterTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 65535, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
 
         Mockito.verify(vendorDeserializer).deserialize(bb);
     }
index 4b69ebebf30f46b2e87a559e01ed83e2429c4c4d..6a1fea6d48c57c5dc5d9b4147e18666be5a23e94 100644 (file)
@@ -56,7 +56,7 @@ public class MultipartReplyFlowTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x01, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyFlowCase messageCase = (MultipartReplyFlowCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyFlow message = messageCase.getMultipartReplyFlow();
         Assert.assertEquals("Wrong flow stats size", 0, message.nonnullFlowStats().size());
@@ -96,7 +96,7 @@ public class MultipartReplyFlowTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 0x01, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyFlowCase messageCase = (MultipartReplyFlowCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyFlow message = messageCase.getMultipartReplyFlow();
         Assert.assertEquals("Wrong flow stats size", 2, message.getFlowStats().size());
index 39cd8b39a09dff0026a653c44ca3d8c179210383..e0bc3dab5453ad6da85a61afe7783fa3b0d0b120 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.factories.multipart;
 
 import io.netty.buffer.ByteBuf;
@@ -50,7 +49,7 @@ public class MultipartReplyGroupFeaturesTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 8, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyGroupFeaturesCase messageCase =
                 (MultipartReplyGroupFeaturesCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyGroupFeatures message = messageCase.getMultipartReplyGroupFeatures();
@@ -96,7 +95,7 @@ public class MultipartReplyGroupFeaturesTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 8, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyGroupFeaturesCase messageCase =
                 (MultipartReplyGroupFeaturesCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyGroupFeatures message = messageCase.getMultipartReplyGroupFeatures();
index 6d04a76ea67b9298b24b559218d2b59e43be1c72..6d7a48945d198aef941f45b78b96f744e95e989d 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.factories.multipart;
 
 import io.netty.buffer.ByteBuf;
@@ -43,7 +42,7 @@ public class MultipartReplyMeterFeaturesTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 11, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyMeterFeaturesCase messageCase =
                 (MultipartReplyMeterFeaturesCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyMeterFeatures message = messageCase.getMultipartReplyMeterFeatures();
@@ -69,7 +68,7 @@ public class MultipartReplyMeterFeaturesTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 11, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyMeterFeaturesCase messageCase =
                 (MultipartReplyMeterFeaturesCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyMeterFeatures message = messageCase.getMultipartReplyMeterFeatures();
index bdce9273799b314a6a2bf04f96e7c9257f32d943..af25bc99545172c21896e8406b0f065b0e25e61f 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.factories.multipart;
 
 import io.netty.buffer.ByteBuf;
@@ -41,7 +40,7 @@ public class MultipartReplyPortDescTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 13, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyPortDescCase messageCase = (MultipartReplyPortDescCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyPortDesc message = messageCase.getMultipartReplyPortDesc();
         Assert.assertEquals("Wrong table features size", 0, message.nonnullPorts().size());
@@ -82,7 +81,7 @@ public class MultipartReplyPortDescTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 13, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyPortDescCase messageCase = (MultipartReplyPortDescCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyPortDesc message = messageCase.getMultipartReplyPortDesc();
         Assert.assertEquals("Wrong port desc size", 2, message.getPorts().size());
index 52276a087eaa89536aa747532b5dce1d420eef3b..6a4ef19c15bcfe66cf51c0dc2c85897ad829dfa3 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.factories.multipart;
 
 import io.netty.buffer.ByteBuf;
@@ -42,7 +41,7 @@ public class MultipartReplyTableFeaturesTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 12, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyTableFeaturesCase messageCase =
                 (MultipartReplyTableFeaturesCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyTableFeatures message = messageCase.getMultipartReplyTableFeatures();
@@ -76,7 +75,7 @@ public class MultipartReplyTableFeaturesTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 12, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyTableFeaturesCase messageCase =
                 (MultipartReplyTableFeaturesCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyTableFeatures message = messageCase.getMultipartReplyTableFeatures();
@@ -88,7 +87,7 @@ public class MultipartReplyTableFeaturesTest {
                 new byte[]{0, 0, 0, 0, 0, 0, 0, 1}, feature.getMetadataMatch());
         Assert.assertArrayEquals("Wrong metadata write",
                 new byte[]{0, 0, 0, 0, 0, 0, 0, 2}, feature.getMetadataWrite());
-        Assert.assertEquals("Wrong config", false, feature.getConfig().isOFPTCDEPRECATEDMASK());
+        Assert.assertEquals("Wrong config", false, feature.getConfig().getOFPTCDEPRECATEDMASK());
         Assert.assertEquals("Wrong max entries", 42, feature.getMaxEntries().intValue());
         feature = message.getTableFeatures().get(1);
         Assert.assertEquals("Wrong table id", 2, feature.getTableId().intValue());
@@ -97,7 +96,7 @@ public class MultipartReplyTableFeaturesTest {
                 new byte[]{0, 0, 0, 0, 0, 0, 0, 3}, feature.getMetadataMatch());
         Assert.assertArrayEquals("Wrong metadata write",
                 new byte[]{0, 0, 0, 0, 0, 0, 0, 4}, feature.getMetadataWrite());
-        Assert.assertEquals("Wrong config", true, feature.getConfig().isOFPTCDEPRECATEDMASK());
+        Assert.assertEquals("Wrong config", true, feature.getConfig().getOFPTCDEPRECATEDMASK());
         Assert.assertEquals("Wrong max entries", 43, feature.getMaxEntries().intValue());
     }
 
@@ -133,7 +132,7 @@ public class MultipartReplyTableFeaturesTest {
 
         BufferHelper.checkHeaderV13(builtByFactory);
         Assert.assertEquals("Wrong type", 12, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", false, builtByFactory.getFlags().getOFPMPFREQMORE());
         MultipartReplyTableFeaturesCase messageCase =
                 (MultipartReplyTableFeaturesCase) builtByFactory.getMultipartReplyBody();
         MultipartReplyTableFeatures message = messageCase.getMultipartReplyTableFeatures();
@@ -145,7 +144,7 @@ public class MultipartReplyTableFeaturesTest {
                 new byte[]{0, 0, 0, 0, 0, 0, 0, 1}, feature.getMetadataMatch());
         Assert.assertArrayEquals("Wrong metadata write",
                 new byte[]{0, 0, 0, 0, 0, 0, 0, 2}, feature.getMetadataWrite());
-        Assert.assertEquals("Wrong config", false, feature.getConfig().isOFPTCDEPRECATEDMASK());
+        Assert.assertEquals("Wrong config", false, feature.getConfig().getOFPTCDEPRECATEDMASK());
         Assert.assertEquals("Wrong max entries", 42, feature.getMaxEntries().intValue());
         Assert.assertEquals("Wrong properties size", 14, feature.getTableFeatureProperties().size());
         Assert.assertEquals("Wrong property type", TableFeaturesPropType.OFPTFPTINSTRUCTIONS,
index 40fed6f8b3d30974a9222965b6b903801d8be951..ad4a4bd42a1c54bad89614548533fc5a0ce50a27 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.factories.multipart;
 
 import io.netty.buffer.ByteBuf;
@@ -49,7 +48,7 @@ public class OF10StatsReplyExperimenterTest {
 
         BufferHelper.checkHeaderV10(builtByFactory);
         Assert.assertEquals("Wrong type", 65535, builtByFactory.getType().getIntValue());
-        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().isOFPMPFREQMORE());
+        Assert.assertEquals("Wrong flag", true, builtByFactory.getFlags().getOFPMPFREQMORE());
 
         Mockito.verify(vendorDeserializer).deserialize(bb);
     }
index 51d12f15782214331d2b28ed1c5b85f28a969765..bf34baf24af195916d262076323cd43bdc12d070 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
@@ -38,7 +37,7 @@ public class OxmIpv6ExtHdrDeserializerTest {
 
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6Exthdr.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry.getHasMask());
         Assert.assertEquals("Wrong entry value",
                 new Ipv6ExthdrFlags(true, true, true, true, true, true, true, true, true),
                 ((Ipv6ExthdrCase) entry.getMatchEntryValue()).getIpv6Exthdr().getPseudoField());
index 6562df83aa6636fd8a49c664d7a9f2155f1fe06b..c0b32b741c2e49320077be8e748076ce76a78c2c 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
@@ -37,7 +36,7 @@ public class OxmIpv6FlabelDeserializerTest {
 
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6Flabel.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry.getHasMask());
         Assert.assertEquals("Wrong entry value", 2,
                 ((Ipv6FlabelCase) entry.getMatchEntryValue()).getIpv6Flabel()
                 .getIpv6Flabel().getValue().intValue());
@@ -56,7 +55,7 @@ public class OxmIpv6FlabelDeserializerTest {
 
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6Flabel.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry.getHasMask());
         Assert.assertEquals("Wrong entry value", 2,
                 ((Ipv6FlabelCase) entry.getMatchEntryValue()).getIpv6Flabel()
                 .getIpv6Flabel().getValue().intValue());
index 412c7e677295bc7270e8094802836a46bba846ab..f4f97b86157709f22655f5244145c08095c0241c 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
@@ -38,7 +37,7 @@ public class OxmMetadataDeserializerTest {
 
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", Metadata.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry.getHasMask());
         Assert.assertArrayEquals("Wrong entry value", ByteBufUtils.hexStringToBytes("00 00 00 00 00 00 00 03"),
                 ((MetadataCase) entry.getMatchEntryValue()).getMetadata().getMetadata());
     }
index bcaf75cb1ccb77ded22b3586caced7e59b6ecc95..df60a2c0aa2b60d80828351a34b885409591aba5 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
@@ -37,8 +36,8 @@ public class OxmMplsBosDeserializerTest {
 
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", MplsBos.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry.getHasMask());
         Assert.assertEquals("Wrong entry value", false,
-                ((MplsBosCase) entry.getMatchEntryValue()).getMplsBos().isBos());
+                ((MplsBosCase) entry.getMatchEntryValue()).getMplsBos().getBos());
     }
 }
index e5adc24840254f2bbf722ea7a87eacac1aee9380..d5996a1a7900ab69a9db4688c3d2aaf9465a5569 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
@@ -29,7 +28,7 @@ public class OxmPacketTypeDeserializerTest {
 
         Assert.assertEquals(OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals(PacketType.class, entry.getOxmMatchField());
-        Assert.assertEquals(false, entry.isHasMask());
+        Assert.assertEquals(false, entry.getHasMask());
 
         PacketTypeCase packetTypeCase = (PacketTypeCase) entry.getMatchEntryValue();
         Assert.assertEquals(0x1894f, packetTypeCase.getPacketType().getPacketType().longValue());
index ebb84fbaabff578e4a5ffaa73fcb7cf8277319af..891daf968333be5ced2d887952080482a14b6400 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
@@ -37,7 +36,7 @@ public class OxmPbbIsidDeserializerTest {
 
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", PbbIsid.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry.getHasMask());
         Assert.assertEquals("Wrong entry value", 2, ((PbbIsidCase) entry.getMatchEntryValue())
                 .getPbbIsid().getIsid().intValue());
     }
index e200761eef1355124ecd9fd956ca61e9e250e4cf..36186606e4cb0b82e47f4b4f0519a1f795209e2a 100644 (file)
@@ -5,7 +5,6 @@
  * 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.openflowjava.protocol.impl.deserialization.match;
 
 import io.netty.buffer.ByteBuf;
@@ -37,10 +36,10 @@ public class OxmVlanVidDeserializerTest {
 
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", VlanVid.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry.getHasMask());
         Assert.assertEquals("Wrong entry value", 10,
                 ((VlanVidCase) entry.getMatchEntryValue()).getVlanVid().getVlanVid().intValue());
         Assert.assertEquals("Wrong entry value", false,
-                ((VlanVidCase) entry.getMatchEntryValue()).getVlanVid().isCfiBit());
+                ((VlanVidCase) entry.getMatchEntryValue()).getVlanVid().getCfiBit());
     }
 }
index 942070676f378ee7d3f5a137079089cca89fe79f..8c25f962a4c0bcf0b9d3f458043eeac86971106d 100644 (file)
@@ -132,7 +132,7 @@ public class ActionsDeserializerTest {
                 + "oxm.rev150225.OpenflowBasicClass", entries.get(0).getOxmClass().getName());
         Assert.assertEquals("Wrong match entry field", "org.opendaylight.yang.gen.v1.urn.opendaylight.openflow."
                 + "oxm.rev150225.InPhyPort", entries.get(0).getOxmMatchField().getName());
-        Assert.assertEquals("Wrong match entry mask", false, entries.get(0).isHasMask());
+        Assert.assertEquals("Wrong match entry mask", false, entries.get(0).getHasMask());
         Assert.assertEquals("Wrong match entry value", 11,
                 ((InPhyPortCase) entries.get(0).getMatchEntryValue()).getInPhyPort().getPortNumber()
                 .getValue().intValue());
index 602bb88ba3ed20a4c0034bcc987e37d8c8957220..9e3aa2c608bd42a3ce9488f5e6513c1a7a2bd62a 100644 (file)
@@ -223,19 +223,19 @@ public class MatchDeserializerTest {
         MatchEntry entry0 = entries.get(0);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry0.getOxmClass());
         Assert.assertEquals("Wrong entry field", InPort.class, entry0.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry0.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry0.getHasMask());
         Assert.assertEquals("Wrong entry value", 1,
                 ((InPortCase) entry0.getMatchEntryValue()).getInPort().getPortNumber().getValue().intValue());
         MatchEntry entry1 = entries.get(1);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry1.getOxmClass());
         Assert.assertEquals("Wrong entry field", InPhyPort.class, entry1.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry1.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry1.getHasMask());
         Assert.assertEquals("Wrong entry value", 2,
                 ((InPhyPortCase) entry1.getMatchEntryValue()).getInPhyPort().getPortNumber().getValue().intValue());
         MatchEntry entry2 = entries.get(2);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry2.getOxmClass());
         Assert.assertEquals("Wrong entry field", Metadata.class, entry2.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry2.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry2.getHasMask());
         Assert.assertArrayEquals("Wrong entry value", ByteBufUtils.hexStringToBytes("00 00 00 00 00 00 00 03"),
                 ((MetadataCase) entry2.getMatchEntryValue()).getMetadata().getMetadata());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 00 00 00 00 04"),
@@ -243,7 +243,7 @@ public class MatchDeserializerTest {
         MatchEntry entry3 = entries.get(3);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry3.getOxmClass());
         Assert.assertEquals("Wrong entry field", EthDst.class, entry3.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry3.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry3.getHasMask());
         Assert.assertEquals("Wrong entry value", new MacAddress("00:00:00:00:00:05"),
                 ((EthDstCase) entry3.getMatchEntryValue()).getEthDst().getMacAddress());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 00 00 06"),
@@ -251,7 +251,7 @@ public class MatchDeserializerTest {
         MatchEntry entry4 = entries.get(4);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry4.getOxmClass());
         Assert.assertEquals("Wrong entry field", EthSrc.class, entry4.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry4.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry4.getHasMask());
         Assert.assertEquals("Wrong entry value", new MacAddress("00:00:00:00:00:07"),
                 ((EthSrcCase) entry4.getMatchEntryValue()).getEthSrc().getMacAddress());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 00 00 08"),
@@ -259,47 +259,47 @@ public class MatchDeserializerTest {
         MatchEntry entry5 = entries.get(5);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry5.getOxmClass());
         Assert.assertEquals("Wrong entry field", EthType.class, entry5.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry5.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry5.getHasMask());
         Assert.assertEquals("Wrong entry value", 9,
                 ((EthTypeCase) entry5.getMatchEntryValue()).getEthType().getEthType().getValue().intValue());
         MatchEntry entry6 = entries.get(6);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry6.getOxmClass());
         Assert.assertEquals("Wrong entry field", VlanVid.class, entry6.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry6.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry6.getHasMask());
         Assert.assertEquals("Wrong entry value", 10,
                 ((VlanVidCase) entry6.getMatchEntryValue()).getVlanVid().getVlanVid().intValue());
         Assert.assertEquals("Wrong entry value", false,
-                ((VlanVidCase) entry6.getMatchEntryValue()).getVlanVid().isCfiBit());
+                ((VlanVidCase) entry6.getMatchEntryValue()).getVlanVid().getCfiBit());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 0B"),
                 ((VlanVidCase) entry6.getMatchEntryValue()).getVlanVid().getMask());
         MatchEntry entry7 = entries.get(7);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry7.getOxmClass());
         Assert.assertEquals("Wrong entry field", VlanPcp.class, entry7.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry7.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry7.getHasMask());
         Assert.assertEquals("Wrong entry value", 12,
                 ((VlanPcpCase) entry7.getMatchEntryValue()).getVlanPcp().getVlanPcp().intValue());
         MatchEntry entry8 = entries.get(8);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry8.getOxmClass());
         Assert.assertEquals("Wrong entry field", IpDscp.class, entry8.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry8.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry8.getHasMask());
         Assert.assertEquals("Wrong entry value", 13,
                 ((IpDscpCase) entry8.getMatchEntryValue()).getIpDscp().getDscp().getValue().intValue());
         MatchEntry entry9 = entries.get(9);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry9.getOxmClass());
         Assert.assertEquals("Wrong entry field", IpEcn.class, entry9.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry9.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry9.getHasMask());
         Assert.assertEquals("Wrong entry value", 14,
                 ((IpEcnCase) entry9.getMatchEntryValue()).getIpEcn().getEcn().intValue());
         MatchEntry entry10 = entries.get(10);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry10.getOxmClass());
         Assert.assertEquals("Wrong entry field", IpProto.class, entry10.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry10.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry10.getHasMask());
         Assert.assertEquals("Wrong entry value", 15,
                 ((IpProtoCase) entry10.getMatchEntryValue()).getIpProto().getProtocolNumber().intValue());
         MatchEntry entry11 = entries.get(11);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry11.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv4Src.class, entry11.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry11.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry11.getHasMask());
         Assert.assertEquals("Wrong entry value", new Ipv4Address("10.0.0.1"),
                 ((Ipv4SrcCase) entry11.getMatchEntryValue()).getIpv4Src().getIpv4Address());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 FF 00"),
@@ -307,7 +307,7 @@ public class MatchDeserializerTest {
         MatchEntry entry12 = entries.get(12);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry12.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv4Dst.class, entry12.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry12.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry12.getHasMask());
         Assert.assertEquals("Wrong entry value", new Ipv4Address("10.0.0.2"),
                 ((Ipv4DstCase) entry12.getMatchEntryValue()).getIpv4Dst().getIpv4Address());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 FF"),
@@ -315,61 +315,61 @@ public class MatchDeserializerTest {
         MatchEntry entry13 = entries.get(13);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry13.getOxmClass());
         Assert.assertEquals("Wrong entry field", TcpSrc.class, entry13.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry13.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry13.getHasMask());
         Assert.assertEquals("Wrong entry value", 3,
                 ((TcpSrcCase) entry13.getMatchEntryValue()).getTcpSrc().getPort().getValue().intValue());
         MatchEntry entry14 = entries.get(14);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry14.getOxmClass());
         Assert.assertEquals("Wrong entry field", TcpDst.class, entry14.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry14.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry14.getHasMask());
         Assert.assertEquals("Wrong entry value", 4,
                 ((TcpDstCase) entry14.getMatchEntryValue()).getTcpDst().getPort().getValue().intValue());
         MatchEntry entry15 = entries.get(15);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry15.getOxmClass());
         Assert.assertEquals("Wrong entry field", UdpSrc.class, entry15.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry15.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry15.getHasMask());
         Assert.assertEquals("Wrong entry value", 5,
                 ((UdpSrcCase) entry15.getMatchEntryValue()).getUdpSrc().getPort().getValue().intValue());
         MatchEntry entry16 = entries.get(16);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry16.getOxmClass());
         Assert.assertEquals("Wrong entry field", UdpDst.class, entry16.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry16.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry16.getHasMask());
         Assert.assertEquals("Wrong entry value", 6,
                 ((UdpDstCase) entry16.getMatchEntryValue()).getUdpDst().getPort().getValue().intValue());
         MatchEntry entry17 = entries.get(17);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry17.getOxmClass());
         Assert.assertEquals("Wrong entry field", SctpSrc.class, entry17.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry17.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry17.getHasMask());
         Assert.assertEquals("Wrong entry value", 7,
                 ((SctpSrcCase) entry17.getMatchEntryValue()).getSctpSrc().getPort().getValue().intValue());
         MatchEntry entry18 = entries.get(18);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry18.getOxmClass());
         Assert.assertEquals("Wrong entry field", SctpDst.class, entry18.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry18.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry18.getHasMask());
         Assert.assertEquals("Wrong entry value", 8,
                 ((SctpDstCase) entry18.getMatchEntryValue()).getSctpDst().getPort().getValue().intValue());
         MatchEntry entry19 = entries.get(19);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry19.getOxmClass());
         Assert.assertEquals("Wrong entry field", Icmpv4Type.class, entry19.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry19.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry19.getHasMask());
         Assert.assertEquals("Wrong entry value", 5,
                 ((Icmpv4TypeCase) entry19.getMatchEntryValue()).getIcmpv4Type().getIcmpv4Type().intValue());
         MatchEntry entry20 = entries.get(20);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry20.getOxmClass());
         Assert.assertEquals("Wrong entry field", Icmpv4Code.class, entry20.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry20.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry20.getHasMask());
         Assert.assertEquals("Wrong entry value", 7,
                 ((Icmpv4CodeCase) entry20.getMatchEntryValue()).getIcmpv4Code().getIcmpv4Code().intValue());
         MatchEntry entry21 = entries.get(21);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry21.getOxmClass());
         Assert.assertEquals("Wrong entry field", ArpOp.class, entry21.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry21.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry21.getHasMask());
         Assert.assertEquals("Wrong entry value", 16,
                 ((ArpOpCase) entry21.getMatchEntryValue()).getArpOp().getOpCode().intValue());
         MatchEntry entry22 = entries.get(22);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry22.getOxmClass());
         Assert.assertEquals("Wrong entry field", ArpSpa.class, entry22.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry22.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry22.getHasMask());
         Assert.assertEquals("Wrong entry value", new Ipv4Address("10.0.0.9"),
                 ((ArpSpaCase) entry22.getMatchEntryValue()).getArpSpa().getIpv4Address());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 FF 00"),
@@ -377,7 +377,7 @@ public class MatchDeserializerTest {
         MatchEntry entry23 = entries.get(23);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry23.getOxmClass());
         Assert.assertEquals("Wrong entry field", ArpTpa.class, entry23.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry23.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry23.getHasMask());
         Assert.assertEquals("Wrong entry value", new Ipv4Address("10.0.0.10"),
                 ((ArpTpaCase) entry23.getMatchEntryValue()).getArpTpa().getIpv4Address());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 FF"),
@@ -385,7 +385,7 @@ public class MatchDeserializerTest {
         MatchEntry entry24 = entries.get(24);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry24.getOxmClass());
         Assert.assertEquals("Wrong entry field", ArpSha.class, entry24.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry24.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry24.getHasMask());
         Assert.assertEquals("Wrong entry value", new MacAddress("00:00:00:00:00:01"),
                 ((ArpShaCase) entry24.getMatchEntryValue()).getArpSha().getMacAddress());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 00 00 03"),
@@ -393,7 +393,7 @@ public class MatchDeserializerTest {
         MatchEntry entry25 = entries.get(25);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry25.getOxmClass());
         Assert.assertEquals("Wrong entry field", ArpTha.class, entry25.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry25.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry25.getHasMask());
         Assert.assertEquals("Wrong entry value", new MacAddress("00:00:00:00:00:02"),
                 ((ArpThaCase) entry25.getMatchEntryValue()).getArpTha().getMacAddress());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 00 00 04"),
@@ -401,7 +401,7 @@ public class MatchDeserializerTest {
         MatchEntry entry26 = entries.get(26);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry26.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6Src.class, entry26.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry26.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry26.getHasMask());
         Assert.assertEquals("Wrong entry value", new Ipv6Address("::15"),
                 ((Ipv6SrcCase) entry26.getMatchEntryValue()).getIpv6Src().getIpv6Address());
         Assert.assertArrayEquals("Wrong entry mask",
@@ -410,7 +410,7 @@ public class MatchDeserializerTest {
         MatchEntry entry27 = entries.get(27);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry27.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6Dst.class, entry27.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry27.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry27.getHasMask());
         Assert.assertEquals("Wrong entry value", new Ipv6Address("::17"),
                 ((Ipv6DstCase) entry27.getMatchEntryValue()).getIpv6Dst().getIpv6Address());
         Assert.assertArrayEquals("Wrong entry mask",
@@ -419,62 +419,62 @@ public class MatchDeserializerTest {
         MatchEntry entry28 = entries.get(28);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry28.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6Flabel.class, entry28.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry28.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry28.getHasMask());
         Assert.assertEquals("Wrong entry value", 2,
                 ((Ipv6FlabelCase) entry28.getMatchEntryValue()).getIpv6Flabel().getIpv6Flabel()
                 .getValue().intValue());
         MatchEntry entry29 = entries.get(29);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry29.getOxmClass());
         Assert.assertEquals("Wrong entry field", Icmpv6Type.class, entry29.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry29.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry29.getHasMask());
         Assert.assertEquals("Wrong entry value", 21,
                 ((Icmpv6TypeCase) entry29.getMatchEntryValue()).getIcmpv6Type().getIcmpv6Type().intValue());
         MatchEntry entry30 = entries.get(30);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry30.getOxmClass());
         Assert.assertEquals("Wrong entry field", Icmpv6Code.class, entry30.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry30.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry30.getHasMask());
         Assert.assertEquals("Wrong entry value", 23,
                 ((Icmpv6CodeCase) entry30.getMatchEntryValue()).getIcmpv6Code().getIcmpv6Code().intValue());
         MatchEntry entry31 = entries.get(31);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry31.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6NdTarget.class, entry31.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry31.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry31.getHasMask());
         Assert.assertEquals("Wrong entry value", new Ipv6Address("::20"),
                 ((Ipv6NdTargetCase) entry31.getMatchEntryValue()).getIpv6NdTarget().getIpv6Address());
         MatchEntry entry32 = entries.get(32);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry32.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6NdSll.class, entry32.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry32.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry32.getHasMask());
         Assert.assertEquals("Wrong entry value", new MacAddress("00:05:00:00:00:01"),
                 ((Ipv6NdSllCase) entry32.getMatchEntryValue()).getIpv6NdSll().getMacAddress());
         MatchEntry entry33 = entries.get(33);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry33.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6NdTll.class, entry33.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry33.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry33.getHasMask());
         Assert.assertEquals("Wrong entry value", new MacAddress("00:05:00:00:00:02"),
                 ((Ipv6NdTllCase) entry33.getMatchEntryValue()).getIpv6NdTll().getMacAddress());
         MatchEntry entry34 = entries.get(34);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry34.getOxmClass());
         Assert.assertEquals("Wrong entry field", MplsLabel.class, entry34.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry34.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry34.getHasMask());
         Assert.assertEquals("Wrong entry value", 515,
                 ((MplsLabelCase) entry34.getMatchEntryValue()).getMplsLabel().getMplsLabel().intValue());
         MatchEntry entry35 = entries.get(35);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry35.getOxmClass());
         Assert.assertEquals("Wrong entry field", MplsTc.class, entry35.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry35.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry35.getHasMask());
         Assert.assertEquals("Wrong entry value", 3,
                 ((MplsTcCase) entry35.getMatchEntryValue()).getMplsTc().getTc().intValue());
         MatchEntry entry36 = entries.get(36);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry36.getOxmClass());
         Assert.assertEquals("Wrong entry field", MplsBos.class, entry36.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry36.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry36.getHasMask());
         Assert.assertEquals("Wrong entry value", true,
-                ((MplsBosCase) entry36.getMatchEntryValue()).getMplsBos().isBos());
+                ((MplsBosCase) entry36.getMatchEntryValue()).getMplsBos().getBos());
         MatchEntry entry37 = entries.get(37);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry37.getOxmClass());
         Assert.assertEquals("Wrong entry field", PbbIsid.class, entry37.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry37.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry37.getHasMask());
         Assert.assertEquals("Wrong entry value", 2,
                 ((PbbIsidCase) entry37.getMatchEntryValue()).getPbbIsid().getIsid().intValue());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 01"),
@@ -482,7 +482,7 @@ public class MatchDeserializerTest {
         MatchEntry entry38 = entries.get(38);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry38.getOxmClass());
         Assert.assertEquals("Wrong entry field", TunnelId.class, entry38.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry38.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry38.getHasMask());
         Assert.assertArrayEquals("Wrong entry value", ByteBufUtils.hexStringToBytes("00 00 00 00 00 00 00 07"),
                 ((TunnelIdCase) entry38.getMatchEntryValue()).getTunnelId().getTunnelId());
         Assert.assertArrayEquals("Wrong entry mask", ByteBufUtils.hexStringToBytes("00 00 00 00 00 00 00 FF"),
@@ -490,7 +490,7 @@ public class MatchDeserializerTest {
         MatchEntry entry39 = entries.get(39);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry39.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv6Exthdr.class, entry39.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", true, entry39.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", true, entry39.getHasMask());
         Assert.assertEquals("Wrong entry value",
                 new Ipv6ExthdrFlags(false, false, false, false, false, false, false, false, false),
                 ((Ipv6ExthdrCase) entry39.getMatchEntryValue()).getIpv6Exthdr().getPseudoField());
@@ -500,7 +500,7 @@ public class MatchDeserializerTest {
         MatchEntry entry40 = entries.get(40);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry40.getOxmClass());
         Assert.assertEquals("Wrong entry field", PacketType.class, entry40.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry40.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry40.getHasMask());
         Assert.assertEquals("Wrong entry value", 0x1894f,
                 ((PacketTypeCase) entry40.getMatchEntryValue()).getPacketType().getPacketType().longValue());
     }
@@ -519,7 +519,7 @@ public class MatchDeserializerTest {
         MatchEntry entry = entryDeserializer.deserializeHeader(buffer);
         Assert.assertEquals("Wrong entry class", OpenflowBasicClass.class, entry.getOxmClass());
         Assert.assertEquals("Wrong entry field", Ipv4Dst.class, entry.getOxmMatchField());
-        Assert.assertEquals("Wrong entry hasMask", false, entry.isHasMask());
+        Assert.assertEquals("Wrong entry hasMask", false, entry.getHasMask());
         Assert.assertNull("Wrong Ipv4 address", entry.getMatchEntryValue());
     }