| java.lang.Object org.snmp4j.agent.DefaultMOScope org.snmp4j.agent.DefaultMOContextScope
DefaultMOContextScope | public class DefaultMOContextScope extends DefaultMOScope implements MOContextScope(Code) | | The DefaultMOContextScope is the default implementation of
a
MOContextScope representing an OID scope that distinguishes between
different contexts.
author: Frank Fock version: 1.1 |
DefaultMOContextScope | public DefaultMOContextScope(OctetString context, OID lowerBound, boolean lowerIncluded, OID upperBound, boolean upperIncluded)(Code) | | Creates a context scope from a context, upper, and lower bound OID.
Parameters: context - the context for which this scope is valid. Parameters: lowerBound - the lower bound of the OID scope (must not be null ). Parameters: lowerIncluded - specifies whether the lower bound is included or not. Parameters: upperBound - the upper bound of the OID scope (null for no upper limit). Parameters: upperIncluded - specifies whether the upper bound is included or not. |
DefaultMOContextScope | public DefaultMOContextScope(MOContextScope scope)(Code) | | Creates a context scope from another context scope.
Parameters: scope - a MOContextScope instance whose context and bounds are copied byreference. |
DefaultMOContextScope | public DefaultMOContextScope(OctetString context, MOScope extendedScope)(Code) | | Creates a context scope from a plain OID scope.
Parameters: context - the context name for the new context scope. Parameters: extendedScope - the OID scope that defines the OID range of the new scope (boundariesare copied by reference). |
equals | public boolean equals(Object obj)(Code) | | Indicates whether an object is equal to this one.
Parameters: obj - some object.true only if obj is a MOContextScopeand if context and scope equals this one's. |
getContext | public OctetString getContext()(Code) | | Gets the context of the scope.
the context name this scope applies to. |
hashCode | public int hashCode()(Code) | | |
isContextMatching | final public static boolean isContextMatching(MOScope a, MOScope b)(Code) | | Indicates whether the given scopes have a matching context. The context
does not match if both are
MOContextScope instances and both
contexts are not null and different.
Parameters: a - a MOScope instance. Parameters: b - another MOScope instance.true if both scopes have matching contexts (or at least onehas no context defined). since: 1.1 |
setContext | public void setContext(OctetString context)(Code) | | Sets the context name for this scope.
Parameters: context - a context name. |
|
|