Class MAPAllowedServices
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- BitString
-
- BitStringWithNamedBits
-
- MAPAllowedServices
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPAllowedServices extends BitStringWithNamedBits
API for MAP-CH-DataTypes.AllowedServices. Generated from the following ASN.1 type definition.AllowedServices ::= BIT STRING (SIZE (2..8)) { firstServiceAllowed(0), -- firstService is the service indicated in the networkSignalInfo. secondServiceAllowed(1) -- secondService is the service indicated in the networkSignalInfo2. }
Added in release 5. Other bits than are named here shall be discarded.Used as field type by
MAPSendRoutingInfoRes_v3
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.opencloud.slee.resources.cgin.BitStringWithNamedBits
BitStringWithNamedBits.NamedBit
-
-
Constructor Summary
Constructors Constructor Description MAPAllowedServices()
Constructs an object that has no bits set.MAPAllowedServices(int nbits)
Constructs an object that has no bits set, initialised to accommodate the given number of bits.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPAllowedServices
clearFirstServiceAllowed()
Clears the bit for firstServiceAllowed to false.MAPAllowedServices
clearSecondServiceAllowed()
Clears the bit for secondServiceAllowed to false.MAPAllowedServices
clone()
Constructs a copy of this object and everything reachable from it.static MAPAllowedServices
copyOf(BitString from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.boolean
getFirstServiceAllowed()
Gets whether the bit for firstServiceAllowed is set or not.BitStringWithNamedBits.NamedBit[]
getNamedBits()
Gets the names of all bits of this type (not just the bits set in this value).boolean
getSecondServiceAllowed()
Gets whether the bit for secondServiceAllowed is set or not.MAPAllowedServices
setFirstServiceAllowed()
Sets the bit for firstServiceAllowed to true.MAPAllowedServices
setSecondServiceAllowed()
Sets the bit for secondServiceAllowed to true.static BitStringWithNamedBits.NamedBit[]
staticGetNamedBits()
Gets the names of all bits of this type (not just the bits set in this value).-
Methods inherited from class com.opencloud.slee.resources.cgin.BitStringWithNamedBits
toString
-
Methods inherited from class com.opencloud.slee.resources.cgin.BitString
clear, clear, equals, get, hashCode, length, nextSetBit, set
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly, setReadOnly
-
-
-
-
Constructor Detail
-
MAPAllowedServices
public MAPAllowedServices()
Constructs an object that has no bits set.
-
MAPAllowedServices
public MAPAllowedServices(int nbits)
Constructs an object that has no bits set, initialised to accommodate the given number of bits.- Parameters:
nbits
- initial number of bits
-
-
Method Detail
-
clearFirstServiceAllowed
public MAPAllowedServices clearFirstServiceAllowed()
Clears the bit for firstServiceAllowed to false.- Returns:
- this
-
clearSecondServiceAllowed
public MAPAllowedServices clearSecondServiceAllowed()
Clears the bit for secondServiceAllowed to false.- Returns:
- this
-
clone
public MAPAllowedServices clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Overrides:
clone
in classBitString
- Returns:
- copy of object
-
copyOf
public static MAPAllowedServices copyOf(BitString from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.- Parameters:
from
- the object from which to copy- Returns:
- MAPAllowedServices
-
getFirstServiceAllowed
public boolean getFirstServiceAllowed()
Gets whether the bit for firstServiceAllowed is set or not.- Returns:
- the named bit's value
-
getNamedBits
public BitStringWithNamedBits.NamedBit[] getNamedBits()
Description copied from class:BitStringWithNamedBits
Gets the names of all bits of this type (not just the bits set in this value).- Specified by:
getNamedBits
in classBitStringWithNamedBits
- Returns:
- array of NamedBit
-
getSecondServiceAllowed
public boolean getSecondServiceAllowed()
Gets whether the bit for secondServiceAllowed is set or not.- Returns:
- the named bit's value
-
setFirstServiceAllowed
public MAPAllowedServices setFirstServiceAllowed()
Sets the bit for firstServiceAllowed to true.- Returns:
- this
-
setSecondServiceAllowed
public MAPAllowedServices setSecondServiceAllowed()
Sets the bit for secondServiceAllowed to true.- Returns:
- this
-
staticGetNamedBits
public static BitStringWithNamedBits.NamedBit[] staticGetNamedBits()
Gets the names of all bits of this type (not just the bits set in this value).- Returns:
- array of NamedBit
-
-