ObjectIdentifier
Extends
Section titled “Extends”BaseBlock<LocalObjectIdentifierValueBlock,LocalObjectIdentifierValueBlockJson>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ObjectIdentifier(
parameters?):ObjectIdentifier
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”Returns
Section titled “Returns”ObjectIdentifier
Overrides
Section titled “Overrides”Properties
Section titled “Properties”blockLength
Section titled “blockLength”blockLength:
number
Inherited from
Section titled “Inherited from”error:
string
Inherited from
Section titled “Inherited from”idBlock
Section titled “idBlock”idBlock:
LocalIdentificationBlock
Inherited from
Section titled “Inherited from”lenBlock
Section titled “lenBlock”lenBlock:
LocalLengthBlock
Inherited from
Section titled “Inherited from”name:
string
Inherited from
Section titled “Inherited from”optional
Section titled “optional”optional:
boolean
Inherited from
Section titled “Inherited from”primitiveSchema?
Section titled “primitiveSchema?”
optionalprimitiveSchema?:BaseBlock<ValueBlock,LocalBaseBlockJson>
Inherited from
Section titled “Inherited from”valueBeforeDecodeView
Section titled “valueBeforeDecodeView”valueBeforeDecodeView:
Uint8Array
3.0.0
Inherited from
Section titled “Inherited from”BaseBlock.valueBeforeDecodeView
valueBlock
Section titled “valueBlock”valueBlock:
LocalObjectIdentifierValueBlock
Inherited from
Section titled “Inherited from”warnings
Section titled “warnings”warnings:
string[]
Inherited from
Section titled “Inherited from”
staticNAME:string="OBJECT IDENTIFIER"
Name of the block
Overrides
Section titled “Overrides”Accessors
Section titled “Accessors”strict
Section titled “strict”Get Signature
Section titled “Get Signature”get strict():
boolean
Whether value assignment and encoding throw on invalid OIDs. Defaults to false.
Changing this flag does not validate or alter the value; the next assignment or encoding checks it.
Returns
Section titled “Returns”boolean
Set Signature
Section titled “Set Signature”set strict(
value):void
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
valueBeforeDecode
Section titled “valueBeforeDecode”Get Signature
Section titled “Get Signature”get valueBeforeDecode():
ArrayBuffer
Returns
Section titled “Returns”ArrayBuffer
Set Signature
Section titled “Set Signature”set valueBeforeDecode(
value):void
Parameters
Section titled “Parameters”ArrayBuffer
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”fromBER()
Section titled “fromBER()”fromBER(
inputBuffer,inputOffset,inputLength,context?):number
Replaces decoded value state and refreshes diagnostics using the prepared length block.
Parameters
Section titled “Parameters”inputBuffer
Section titled “inputBuffer”Uint8Array
inputOffset
Section titled “inputOffset”number
inputLength
Section titled “inputLength”number
context?
Section titled “context?”FromBerContext
Returns
Section titled “Returns”number
Overrides
Section titled “Overrides”getValue()
Section titled “getValue()”getValue():
string
Gets string representation of Object Identifier
Returns
Section titled “Returns”string
3.0.0
isEqual()
Section titled “isEqual()”isEqual(
other):other is ObjectIdentifier
Determines whether two object instances are equal
Parameters
Section titled “Parameters”unknown
Object to compare with the current object
Returns
Section titled “Returns”other is ObjectIdentifier
Inherited from
Section titled “Inherited from”setValue()
Section titled “setValue()”setValue(
value):void
Sets Object Identifier value from a complete decimal string.
Invalid input clears the value and sets error and valueBlock.error.
Throws when strict is enabled; a successful assignment clears previous value errors.
Parameters
Section titled “Parameters”string
String value
Returns
Section titled “Returns”void
3.0.0
toBER()
Section titled “toBER()”toBER(
sizeOnly?,writer?):ArrayBuffer
Encodes the value and copies value errors to this block’s diagnostics.
In strict mode, invalid values throw, including for sizeOnly and nested encoding.
Discard an externally supplied writer if encoding throws; writes are not rolled back.
Parameters
Section titled “Parameters”sizeOnly?
Section titled “sizeOnly?”boolean
writer?
Section titled “writer?”Returns
Section titled “Returns”ArrayBuffer
Overrides
Section titled “Overrides”toJSON()
Section titled “toJSON()”toJSON():
ObjectIdentifierJson
Returns a JSON representation of an object
Returns
Section titled “Returns”JSON object
Overrides
Section titled “Overrides”toString()
Section titled “toString()”toString(
encoding?):string
Returns a string representation of an object.
Parameters
Section titled “Parameters”encoding?
Section titled “encoding?”StringEncoding = "ascii"
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”blockName()
Section titled “blockName()”
staticblockName():string
Aux function, need to get a block name. Need to have it here for inheritance
Returns
Section titled “Returns”string
Returns name of the block