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
StringValueObject
Class StringValueObject
Hierarchy
ValueObject
<
string
>
StringValueObject
Index
Constructors
constructor
Properties
max
min
name
value
Accessors
is
Valid
Methods
is
Equal
or
Fail
to
String
validate
create
Constructors
Private
constructor
new
String
Value
Object
(
props
:
IStringValueObjectProps
)
:
StringValueObject
Parameters
props:
IStringValueObjectProps
Returns
StringValueObject
Properties
Private
max
max
:
number
Private
min
min
:
number
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
(
)
:
StringValueObject
description
Throw exception if the value objects are invalid
Returns
StringValueObject
to
String
to
String
(
)
:
string
Returns
string
Protected
validate
validate
(
)
:
boolean
Returns
boolean
Static
create
create
(
props
:
IStringValueObjectProps
)
:
StringValueObject
Parameters
props:
IStringValueObjectProps
Returns
StringValueObject
Exports
String
Value
Object
constructor
max
min
name
value
is
Valid
is
Equal
or
Fail
to
String
validate
create
Generated using
TypeDoc
Throw exception if the value objects are invalid