ModelNodeHelper
Static Method Summary
Static Public Methods | ||
public static |
asNamedNodes(properties: Property[]): NamedNode[] Turns an properties array into an array of names nodes. |
|
public static |
failSafeBoolean(modelNode: ModelNode, path: string): boolean Tries to get a deeply nested boolean value from the specified model node. |
|
public static |
failSafeGet(modelNode: ModelNode, path: string): ModelNode Tries to get a deeply nested model node from the specified model node. |
|
public static |
failSafeList(modelNode: ModelNode, path: string): ModelNode[] Tries to get a deeply nested node array from the specified model node. |
|
public static |
failSafePropertyList(modelNode: ModelNode, path: string): Property[] Tries to get a deeply nested property array from the specified model node. |
Static Public Methods
public static asNamedNodes(properties: Property[]): NamedNode[] source
Turns an properties array into an array of names nodes.
Params:
Name | Type | Attribute | Description |
properties | Property[] | The properties |
public static failSafeBoolean(modelNode: ModelNode, path: string): boolean source
Tries to get a deeply nested boolean value from the specified model node. Nested paths must be separated with "/".
public static failSafeGet(modelNode: ModelNode, path: string): ModelNode source
Tries to get a deeply nested model node from the specified model node. Nested paths must be separated with "/".
public static failSafeList(modelNode: ModelNode, path: string): ModelNode[] source
Tries to get a deeply nested node array from the specified model node. Nested paths must be separated with "/".