Search
Preparing search index...
The search index is not available
socko
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
nodes
AbstractSockoNode
Class AbstractSockoNode
An abstract implementation of
SockoNodeInterface
Hierarchy
AbstractNode
AbstractSockoNode
BranchNode
BucketNode
SimpleNode
CartridgeNode
OutputNode
RootNode
SkippedNode
SocketNode
Implements
Node
SockoNodeInterface
Index
Constructors
constructor
Properties
_content
_log
_type
name
Accessors
type
Methods
add
Child
find
Child
get
Child
ByName
get
Children
get
Data
get
Level
get
Node
ByPath
get
Node
ByPath
Array
get
Parent
get
Path
get
Path
Nodes
get
Root
is
Root
read
Content
remove
Child
set
Data
set
Parent
toJSON
walk
write
Content
Constructors
constructor
new
Abstract
Socko
Node
(
type
:
SockoNodeType
)
:
AbstractSockoNode
Parameters
type:
SockoNodeType
Returns
AbstractSockoNode
Properties
Private
_content
_content
:
any
Protected
_log
_log
:
loglevel.Logger
Private
_type
_type
:
SockoNodeType
name
name
:
string
Accessors
type
get
type
(
)
:
SockoNodeType
set
type
(
value
:
SockoNodeType
)
:
void
Returns
SockoNodeType
Parameters
value:
SockoNodeType
Returns
void
Methods
add
Child
add
Child
(
child
:
Node
, position
?:
number
)
:
Node
Parameters
child:
Node
Optional
position:
number
Returns
Node
find
Child
find
Child
(
child
:
Node
)
:
number
Parameters
child:
Node
Returns
number
get
Child
ByName
get
Child
ByName
(
name
:
string
)
:
Node
Parameters
name:
string
Returns
Node
get
Children
get
Children
(
)
:
Node
[]
Returns
Node
[]
get
Data
get
Data
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
get
Level
get
Level
(
)
:
number
Returns
number
get
Node
ByPath
get
Node
ByPath
(
path
:
string
, pathSeparator
?:
string
)
:
Bluebird
<
Node
>
Parameters
path:
string
Optional
pathSeparator:
string
Returns
Bluebird
<
Node
>
get
Node
ByPath
Array
get
Node
ByPath
Array
(
pathNodes
:
Array
<
string
>
, absolute
:
boolean
)
:
Bluebird
<
Node
>
Parameters
pathNodes:
Array
<
string
>
absolute:
boolean
Returns
Bluebird
<
Node
>
get
Parent
get
Parent
(
)
:
Node
Returns
Node
get
Path
get
Path
(
pathSeparator
?:
string
)
:
Bluebird
<
string
>
Parameters
Optional
pathSeparator:
string
Returns
Bluebird
<
string
>
get
Path
Nodes
get
Path
Nodes
(
)
:
Bluebird
<
Array
<
Node
>
>
Returns
Bluebird
<
Array
<
Node
>
>
get
Root
get
Root
(
)
:
Node
Returns
Node
is
Root
is
Root
(
)
:
boolean
Returns
boolean
read
Content
read
Content
(
)
:
Bluebird
<
any
>
Returns
Bluebird
<
any
>
remove
Child
remove
Child
(
child
:
Node
|
number
)
:
void
Parameters
child:
Node
|
number
Returns
void
set
Data
set
Data
(
key
:
string
, value
:
any
)
:
Node
Parameters
key:
string
value:
any
Returns
Node
set
Parent
set
Parent
(
node
:
Node
)
:
void
Parameters
node:
Node
Returns
void
toJSON
toJSON
(
)
:
string
Returns
string
walk
walk
(
direction
:
Direction
|
Direction
[]
, action
:
ActionFunction
)
:
Bluebird
<
void
>
Parameters
direction:
Direction
|
Direction
[]
action:
ActionFunction
Returns
Bluebird
<
void
>
write
Content
write
Content
(
content
:
any
)
:
Bluebird
<
void
>
Parameters
content:
any
Returns
Bluebird
<
void
>
Globals
Internals
"index"
Externals
builders
errors
factories
nodes
options
processors
Socko
Node
Type
Abstract
Socko
Node
constructor
_content
_log
_type
name
type
add
Child
find
Child
get
Child
ByName
get
Children
get
Data
get
Level
get
Node
ByPath
get
Node
ByPath
Array
get
Parent
get
Path
get
Path
Nodes
get
Root
is
Root
read
Content
remove
Child
set
Data
set
Parent
toJSON
walk
write
Content
Branch
Node
Bucket
Node
Cartridge
Node
Cartridge
Slot
Output
Node
Root
Node
Simple
Node
Skipped
Node
Socket
Node
Branch
Node
Interface
Bucket
Node
Interface
Cartridge
Node
Interface
Cartridge
Slot
Interface
Output
Node
Interface
Root
Node
Interface
Simple
Node
Interface
Skipped
Node
Interface
Socket
Node
Interface
Socko
Node
Interface
Generated using
TypeDoc
An abstract implementation of SockoNodeInterface