Search
Preparing search index...
The search index is not available
js-value-object
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
js-value-object
UniqueEntityIdValueObject
Class UniqueEntityIdValueObject
Hierarchy
ValueObject
<
string
>
UniqueEntityIdValueObject
Index
Constructors
constructor
Properties
name
value
Accessors
is
Valid
Methods
is
Equal
or
Fail
to
String
validate
create
Constructors
Protected
constructor
new
Unique
Entity
Id
Value
Object
(
__namedParameters
:
IValueObjectProps
<
string
>
)
:
UniqueEntityIdValueObject
Parameters
__namedParameters:
IValueObjectProps
<
string
>
Returns
UniqueEntityIdValueObject
Properties
Readonly
name
name
:
string
Readonly
value
value
:
string
Accessors
is
Valid
get
isValid
(
)
:
boolean
Returns
boolean
Methods
is
Equal
is
Equal
(
vo
:
ValueObject
<
unknown
>
)
:
boolean
Parameters
vo:
ValueObject
<
unknown
>
Returns
boolean
or
Fail
or
Fail
(
)
:
UniqueEntityIdValueObject
description
Throw exception if the value objects are invalid
Returns
UniqueEntityIdValueObject
to
String
to
String
(
)
:
string
Returns
string
Protected
validate
validate
(
)
:
boolean
Returns
boolean
Static
create
create
(
value
:
string
, name
:
string
)
:
UniqueEntityIdValueObject
Parameters
value:
string
name:
string
Returns
UniqueEntityIdValueObject
Exports
Unique
Entity
Id
Value
Object
constructor
name
value
is
Valid
is
Equal
or
Fail
to
String
validate
create
Generated using
TypeDoc
Throw exception if the value objects are invalid