Class NxMatchInfoHelper<T extends org.opendaylight.yangtools.yang.binding.DataObject,B extends org.opendaylight.yangtools.concepts.Builder<T>>
- java.lang.Object
-
- org.opendaylight.genius.mdsalutil.nxmatches.NxMatchInfoHelper<T,B>
-
- All Implemented Interfaces:
MatchInfoBase
,NxMatchInfo
- Direct Known Subclasses:
NxMatchCtMark
,NxMatchCtState
,NxMatchCtZone
,NxMatchRegister
,NxMatchTcpDestinationPort
,NxMatchTcpSourcePort
,NxMatchTunnelDestinationIp
,NxMatchTunnelSourceIp
,NxMatchUdpDestinationPort
,NxMatchUdpSourcePort
public abstract class NxMatchInfoHelper<T extends org.opendaylight.yangtools.yang.binding.DataObject,B extends org.opendaylight.yangtools.concepts.Builder<T>> extends java.lang.Object implements NxMatchInfo
Helper for Nicira extension matches (this is designed to be absorbed into MatchInfo once we've cleaned up downstream users).
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NxMatchInfoHelper(java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.general.rev140714.ExtensionKey> keyClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
applyValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder matchBuilder, T value)
void
createInnerMatchBuilder(java.util.Map<java.lang.Class<?>,java.lang.Object> mapMatchBuilder)
Creater the inner match object.boolean
equals(java.lang.Object other)
int
hashCode()
protected abstract void
populateBuilder(B builder)
void
setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder matchBuilder, java.util.Map<java.lang.Class<?>,java.lang.Object> mapMatchBuilder)
Set the match to the match builder.abstract java.lang.String
toString()
-
-
-
Method Detail
-
createInnerMatchBuilder
public void createInnerMatchBuilder(java.util.Map<java.lang.Class<?>,java.lang.Object> mapMatchBuilder)
Description copied from interface:MatchInfoBase
Creater the inner match object.- Specified by:
createInnerMatchBuilder
in interfaceMatchInfoBase
- Parameters:
mapMatchBuilder
- the map which holds the matches.
-
setMatch
public void setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder matchBuilder, java.util.Map<java.lang.Class<?>,java.lang.Object> mapMatchBuilder)
Description copied from interface:MatchInfoBase
Set the match to the match builder.- Specified by:
setMatch
in interfaceMatchInfoBase
- Parameters:
matchBuilder
- the matchbuilder to set the matchmapMatchBuilder
- the map containing the matches
-
applyValue
protected abstract void applyValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder matchBuilder, T value)
-
populateBuilder
protected abstract void populateBuilder(B builder)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public abstract java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-