From 2a8be57acc9c0067816229f1f388913abd410b9c Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Tue, 18 Jan 2022 04:25:44 +0100 Subject: [PATCH] chore: add BSD license to copyright headers --- example/dart_wot_example.dart | 12 ++++-------- lib/binding_coap.dart | 12 ++++-------- lib/binding_http.dart | 12 ++++-------- lib/core.dart | 12 ++++-------- lib/dart_wot.dart | 12 ++++-------- lib/definitions.dart | 12 ++++-------- lib/scripting_api.dart | 12 ++++-------- lib/src/binding_coap/coap_client.dart | 12 ++++-------- lib/src/binding_coap/coap_client_factory.dart | 12 ++++-------- lib/src/binding_coap/coap_config.dart | 12 ++++-------- lib/src/binding_coap/coap_server.dart | 12 ++++-------- lib/src/binding_http/http_client.dart | 12 ++++-------- lib/src/binding_http/http_client_factory.dart | 12 ++++-------- lib/src/binding_http/http_config.dart | 12 ++++-------- lib/src/binding_http/http_server.dart | 12 ++++-------- lib/src/core/codecs/cbor_codec.dart | 12 ++++-------- lib/src/core/codecs/content_codec.dart | 12 ++++-------- lib/src/core/codecs/json_codec.dart | 12 ++++-------- lib/src/core/consumed_thing.dart | 12 ++++-------- lib/src/core/content.dart | 12 ++++-------- lib/src/core/content_serdes.dart | 12 ++++-------- lib/src/core/credentials.dart | 12 ++++-------- lib/src/core/exposed_thing.dart | 12 ++++-------- lib/src/core/interaction_output.dart | 12 ++++-------- lib/src/core/operation_type.dart | 12 ++++-------- .../core/protocol_interfaces/protocol_client.dart | 12 ++++-------- .../protocol_interfaces/protocol_client_factory.dart | 12 ++++-------- .../core/protocol_interfaces/protocol_server.dart | 12 ++++-------- lib/src/core/servient.dart | 12 ++++-------- lib/src/core/thing_discovery.dart | 12 ++++-------- lib/src/core/wot.dart | 12 ++++-------- lib/src/definitions/context_entry.dart | 12 ++++-------- lib/src/definitions/data_schema.dart | 12 ++++-------- lib/src/definitions/expected_response.dart | 12 ++++-------- lib/src/definitions/form.dart | 12 ++++-------- .../definitions/interaction_affordances/action.dart | 12 ++++-------- .../definitions/interaction_affordances/event.dart | 12 ++++-------- .../interaction_affordance.dart | 12 ++++-------- .../interaction_affordances/property.dart | 12 ++++-------- lib/src/definitions/security_scheme.dart | 12 ++++-------- lib/src/definitions/thing_description.dart | 12 ++++-------- lib/src/definitions/thing_model.dart | 12 ++++-------- lib/src/scripting_api/consumed_thing.dart | 12 ++++-------- .../scripting_api/discovery/discovery_method.dart | 12 ++++-------- lib/src/scripting_api/discovery/thing_discovery.dart | 12 ++++-------- lib/src/scripting_api/discovery/thing_filter.dart | 12 ++++-------- lib/src/scripting_api/exposed_thing.dart | 12 ++++-------- lib/src/scripting_api/interaction_options.dart | 12 ++++-------- lib/src/scripting_api/interaction_output.dart | 12 ++++-------- lib/src/scripting_api/subscription.dart | 12 ++++-------- lib/src/scripting_api/types.dart | 12 ++++-------- lib/src/scripting_api/wot.dart | 12 ++++-------- test/consumed_thing_test.dart | 12 ++++-------- test/dart_wot_test.dart | 12 ++++-------- 54 files changed, 216 insertions(+), 432 deletions(-) diff --git a/example/dart_wot_example.dart b/example/dart_wot_example.dart index 3774b2b5..dd951c40 100644 --- a/example/dart_wot_example.dart +++ b/example/dart_wot_example.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:io'; diff --git a/lib/binding_coap.dart b/lib/binding_coap.dart index 4f4e4172..81bf4ac6 100644 --- a/lib/binding_coap.dart +++ b/lib/binding_coap.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Protocol binding for the Constrained Application Protocol (CoAP). Follows /// the [WoT Binding Templates Specification][spec link] for CoAP. diff --git a/lib/binding_http.dart b/lib/binding_http.dart index ab884cb3..0c3b9add 100644 --- a/lib/binding_http.dart +++ b/lib/binding_http.dart @@ -1,12 +1,8 @@ -// Copyright 2022 The NAMIB Project Developers +// Copyright 2022 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Protocol binding for the Hypertext Transfer Protocol (HTTP). Follows /// the [WoT Binding Templates Specification][spec link] for HTTP. diff --git a/lib/core.dart b/lib/core.dart index 55646a91..b8cb6136 100644 --- a/lib/core.dart +++ b/lib/core.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Core implementation providing Scripting API implementations, interfaces /// for protocol bindings, and the `Servient` class which provides the WoT diff --git a/lib/dart_wot.dart b/lib/dart_wot.dart index 6dec314f..7326bd8d 100644 --- a/lib/dart_wot.dart +++ b/lib/dart_wot.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// A W3C Web of Things implementation written in Dart. library dart_wot; diff --git a/lib/definitions.dart b/lib/definitions.dart index 85923cfa..4aa1a76b 100644 --- a/lib/definitions.dart +++ b/lib/definitions.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Provides Thing Description and Thing Model Definitions that follow the /// [WoT Thing Description Specification][spec link]. diff --git a/lib/scripting_api.dart b/lib/scripting_api.dart index 991d48ef..9ddd5a46 100644 --- a/lib/scripting_api.dart +++ b/lib/scripting_api.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2012 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Defines interfaces that follow the /// [WoT Scripting API Specification][spec link]. diff --git a/lib/src/binding_coap/coap_client.dart b/lib/src/binding_coap/coap_client.dart index dffa6058..e89808c8 100644 --- a/lib/src/binding_coap/coap_client.dart +++ b/lib/src/binding_coap/coap_client.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:convert'; import 'dart:io'; diff --git a/lib/src/binding_coap/coap_client_factory.dart b/lib/src/binding_coap/coap_client_factory.dart index 1c83342d..6bd7bc9f 100644 --- a/lib/src/binding_coap/coap_client_factory.dart +++ b/lib/src/binding_coap/coap_client_factory.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../core/protocol_interfaces/protocol_client.dart'; import '../core/protocol_interfaces/protocol_client_factory.dart'; diff --git a/lib/src/binding_coap/coap_config.dart b/lib/src/binding_coap/coap_config.dart index d24ffec4..9420d2e2 100644 --- a/lib/src/binding_coap/coap_config.dart +++ b/lib/src/binding_coap/coap_config.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Allows for configuring the behavior of CoAP clients and servers. class CoapConfig { diff --git a/lib/src/binding_coap/coap_server.dart b/lib/src/binding_coap/coap_server.dart index 40576bef..3d2ba019 100644 --- a/lib/src/binding_coap/coap_server.dart +++ b/lib/src/binding_coap/coap_server.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../core/credentials.dart'; import '../core/protocol_interfaces/protocol_server.dart'; diff --git a/lib/src/binding_http/http_client.dart b/lib/src/binding_http/http_client.dart index 5e7acac5..ef1e1c32 100644 --- a/lib/src/binding_http/http_client.dart +++ b/lib/src/binding_http/http_client.dart @@ -1,12 +1,8 @@ -// Copyright 2022 The NAMIB Project Developers +// Copyright 2022 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:convert'; diff --git a/lib/src/binding_http/http_client_factory.dart b/lib/src/binding_http/http_client_factory.dart index 23cae1b1..9305ea67 100644 --- a/lib/src/binding_http/http_client_factory.dart +++ b/lib/src/binding_http/http_client_factory.dart @@ -1,12 +1,8 @@ -// Copyright 2022 The NAMIB Project Developers +// Copyright 2022 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../core/protocol_interfaces/protocol_client.dart'; import '../core/protocol_interfaces/protocol_client_factory.dart'; diff --git a/lib/src/binding_http/http_config.dart b/lib/src/binding_http/http_config.dart index bfd9c82f..bb2325b6 100644 --- a/lib/src/binding_http/http_config.dart +++ b/lib/src/binding_http/http_config.dart @@ -1,12 +1,8 @@ -// Copyright 2022 The NAMIB Project Developers +// Copyright 2022 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Allows for configuring the behavior of HTTP clients and servers. class HttpConfig { diff --git a/lib/src/binding_http/http_server.dart b/lib/src/binding_http/http_server.dart index a0641ca9..80f96b46 100644 --- a/lib/src/binding_http/http_server.dart +++ b/lib/src/binding_http/http_server.dart @@ -1,12 +1,8 @@ -// Copyright 2022 The NAMIB Project Developers +// Copyright 2022 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'package:dart_wot/src/binding_http/http_config.dart'; diff --git a/lib/src/core/codecs/cbor_codec.dart b/lib/src/core/codecs/cbor_codec.dart index ddbc68bc..7b003d48 100644 --- a/lib/src/core/codecs/cbor_codec.dart +++ b/lib/src/core/codecs/cbor_codec.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/src/core/codecs/content_codec.dart b/lib/src/core/codecs/content_codec.dart index 67d622f8..0f12e3cd 100644 --- a/lib/src/core/codecs/content_codec.dart +++ b/lib/src/core/codecs/content_codec.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:typed_data'; diff --git a/lib/src/core/codecs/json_codec.dart b/lib/src/core/codecs/json_codec.dart index c2419f51..d68d1e00 100644 --- a/lib/src/core/codecs/json_codec.dart +++ b/lib/src/core/codecs/json_codec.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/src/core/consumed_thing.dart b/lib/src/core/consumed_thing.dart index 3fc26310..ee988f2e 100644 --- a/lib/src/core/consumed_thing.dart +++ b/lib/src/core/consumed_thing.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../../scripting_api.dart' as scripting_api; import '../../scripting_api.dart' hide ConsumedThing, InteractionOutput; diff --git a/lib/src/core/content.dart b/lib/src/core/content.dart index 79ec5ae7..9bbb87ad 100644 --- a/lib/src/core/content.dart +++ b/lib/src/core/content.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:typed_data'; diff --git a/lib/src/core/content_serdes.dart b/lib/src/core/content_serdes.dart index b6a498ea..b98796e0 100644 --- a/lib/src/core/content_serdes.dart +++ b/lib/src/core/content_serdes.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:convert'; import 'dart:typed_data'; diff --git a/lib/src/core/credentials.dart b/lib/src/core/credentials.dart index 146cef6e..c2861b86 100644 --- a/lib/src/core/credentials.dart +++ b/lib/src/core/credentials.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Class used for defining credentials for Thing Interactions. // TODO(JKRhb): Add implementation. diff --git a/lib/src/core/exposed_thing.dart b/lib/src/core/exposed_thing.dart index e0dd4e63..bb1cf94c 100644 --- a/lib/src/core/exposed_thing.dart +++ b/lib/src/core/exposed_thing.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../../definitions.dart'; import '../../scripting_api.dart' hide ExposedThing; diff --git a/lib/src/core/interaction_output.dart b/lib/src/core/interaction_output.dart index 15123062..df28e627 100644 --- a/lib/src/core/interaction_output.dart +++ b/lib/src/core/interaction_output.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:typed_data'; diff --git a/lib/src/core/operation_type.dart b/lib/src/core/operation_type.dart index 361a9b29..ea78baad 100644 --- a/lib/src/core/operation_type.dart +++ b/lib/src/core/operation_type.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Enumeration for the possible WoT operation types. /// diff --git a/lib/src/core/protocol_interfaces/protocol_client.dart b/lib/src/core/protocol_interfaces/protocol_client.dart index 9c0036d3..55a8db34 100644 --- a/lib/src/core/protocol_interfaces/protocol_client.dart +++ b/lib/src/core/protocol_interfaces/protocol_client.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../../definitions/form.dart'; import '../../definitions/security_scheme.dart'; diff --git a/lib/src/core/protocol_interfaces/protocol_client_factory.dart b/lib/src/core/protocol_interfaces/protocol_client_factory.dart index afd60c74..d6d41879 100644 --- a/lib/src/core/protocol_interfaces/protocol_client_factory.dart +++ b/lib/src/core/protocol_interfaces/protocol_client_factory.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'protocol_client.dart'; diff --git a/lib/src/core/protocol_interfaces/protocol_server.dart b/lib/src/core/protocol_interfaces/protocol_server.dart index 3cc9ee52..73dbe3dd 100644 --- a/lib/src/core/protocol_interfaces/protocol_server.dart +++ b/lib/src/core/protocol_interfaces/protocol_server.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../../../scripting_api.dart'; import '../credentials.dart'; diff --git a/lib/src/core/servient.dart b/lib/src/core/servient.dart index eb627abd..30db6801 100644 --- a/lib/src/core/servient.dart +++ b/lib/src/core/servient.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'package:uuid/uuid.dart'; diff --git a/lib/src/core/thing_discovery.dart b/lib/src/core/thing_discovery.dart index 159a7a98..cb011c21 100644 --- a/lib/src/core/thing_discovery.dart +++ b/lib/src/core/thing_discovery.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../../scripting_api.dart' as scripting_api; import '../definitions/form.dart'; diff --git a/lib/src/core/wot.dart b/lib/src/core/wot.dart index 4b0272e4..0e7d0c52 100644 --- a/lib/src/core/wot.dart +++ b/lib/src/core/wot.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../../scripting_api.dart' as scripting_api; import '../definitions/thing_description.dart'; diff --git a/lib/src/definitions/context_entry.dart b/lib/src/definitions/context_entry.dart index 053cbd06..1e5b42eb 100644 --- a/lib/src/definitions/context_entry.dart +++ b/lib/src/definitions/context_entry.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Class holding a [value] and an optional [key] for representing different /// types of `@context` entries. diff --git a/lib/src/definitions/data_schema.dart b/lib/src/definitions/data_schema.dart index 4235b79c..fa6cd290 100644 --- a/lib/src/definitions/data_schema.dart +++ b/lib/src/definitions/data_schema.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Parses a [json] object and adds its contents to a [dataSchema]. void parseDataSchemaJson(DataSchema dataSchema, Map json) { diff --git a/lib/src/definitions/expected_response.dart b/lib/src/definitions/expected_response.dart index 00b02532..287a4f72 100644 --- a/lib/src/definitions/expected_response.dart +++ b/lib/src/definitions/expected_response.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Communication metadata describing the expected response message for the /// primary response. diff --git a/lib/src/definitions/form.dart b/lib/src/definitions/form.dart index 878b10fc..f5f79758 100644 --- a/lib/src/definitions/form.dart +++ b/lib/src/definitions/form.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'expected_response.dart'; diff --git a/lib/src/definitions/interaction_affordances/action.dart b/lib/src/definitions/interaction_affordances/action.dart index d8904161..2266069b 100644 --- a/lib/src/definitions/interaction_affordances/action.dart +++ b/lib/src/definitions/interaction_affordances/action.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../data_schema.dart'; import '../form.dart'; diff --git a/lib/src/definitions/interaction_affordances/event.dart b/lib/src/definitions/interaction_affordances/event.dart index 05d2974e..8d704457 100644 --- a/lib/src/definitions/interaction_affordances/event.dart +++ b/lib/src/definitions/interaction_affordances/event.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../data_schema.dart'; import '../form.dart'; diff --git a/lib/src/definitions/interaction_affordances/interaction_affordance.dart b/lib/src/definitions/interaction_affordances/interaction_affordance.dart index 94b6e644..81c5fc6f 100644 --- a/lib/src/definitions/interaction_affordances/interaction_affordance.dart +++ b/lib/src/definitions/interaction_affordances/interaction_affordance.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../form.dart'; diff --git a/lib/src/definitions/interaction_affordances/property.dart b/lib/src/definitions/interaction_affordances/property.dart index c215f7fd..4e774f81 100644 --- a/lib/src/definitions/interaction_affordances/property.dart +++ b/lib/src/definitions/interaction_affordances/property.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../data_schema.dart'; import '../form.dart'; diff --git a/lib/src/definitions/security_scheme.dart b/lib/src/definitions/security_scheme.dart index 2c34f2ea..62cf47a1 100644 --- a/lib/src/definitions/security_scheme.dart +++ b/lib/src/definitions/security_scheme.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Class that contains metadata describing the configuration of a security /// mechanism. diff --git a/lib/src/definitions/thing_description.dart b/lib/src/definitions/thing_description.dart index b4121ce4..2112b8ab 100644 --- a/lib/src/definitions/thing_description.dart +++ b/lib/src/definitions/thing_description.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:convert'; diff --git a/lib/src/definitions/thing_model.dart b/lib/src/definitions/thing_model.dart index 6b2f2211..f623eedc 100644 --- a/lib/src/definitions/thing_model.dart +++ b/lib/src/definitions/thing_model.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'thing_description.dart'; diff --git a/lib/src/scripting_api/consumed_thing.dart b/lib/src/scripting_api/consumed_thing.dart index 25ca65ee..16fc1561 100644 --- a/lib/src/scripting_api/consumed_thing.dart +++ b/lib/src/scripting_api/consumed_thing.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../definitions/thing_description.dart'; import 'interaction_options.dart'; diff --git a/lib/src/scripting_api/discovery/discovery_method.dart b/lib/src/scripting_api/discovery/discovery_method.dart index 5da6e792..a303f574 100644 --- a/lib/src/scripting_api/discovery/discovery_method.dart +++ b/lib/src/scripting_api/discovery/discovery_method.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Enumeration of possible discovery methods. /// diff --git a/lib/src/scripting_api/discovery/thing_discovery.dart b/lib/src/scripting_api/discovery/thing_discovery.dart index 82423216..15a0f940 100644 --- a/lib/src/scripting_api/discovery/thing_discovery.dart +++ b/lib/src/scripting_api/discovery/thing_discovery.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'thing_filter.dart'; diff --git a/lib/src/scripting_api/discovery/thing_filter.dart b/lib/src/scripting_api/discovery/thing_filter.dart index 8eb2079a..81fe1087 100644 --- a/lib/src/scripting_api/discovery/thing_filter.dart +++ b/lib/src/scripting_api/discovery/thing_filter.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'discovery_method.dart'; diff --git a/lib/src/scripting_api/exposed_thing.dart b/lib/src/scripting_api/exposed_thing.dart index 5a9e998e..37b2d310 100644 --- a/lib/src/scripting_api/exposed_thing.dart +++ b/lib/src/scripting_api/exposed_thing.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../definitions/thing_description.dart'; import 'interaction_options.dart'; diff --git a/lib/src/scripting_api/interaction_options.dart b/lib/src/scripting_api/interaction_options.dart index 46c15388..03d73e4c 100644 --- a/lib/src/scripting_api/interaction_options.dart +++ b/lib/src/scripting_api/interaction_options.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause /// Holds the interaction options that need to be exposed for application /// scripts according to the Thing Description. diff --git a/lib/src/scripting_api/interaction_output.dart b/lib/src/scripting_api/interaction_output.dart index 03d864cc..e91c6254 100644 --- a/lib/src/scripting_api/interaction_output.dart +++ b/lib/src/scripting_api/interaction_output.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'dart:typed_data'; diff --git a/lib/src/scripting_api/subscription.dart b/lib/src/scripting_api/subscription.dart index 112328e6..6ac8a41d 100644 --- a/lib/src/scripting_api/subscription.dart +++ b/lib/src/scripting_api/subscription.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../definitions/form.dart'; import '../definitions/interaction_affordances/interaction_affordance.dart'; diff --git a/lib/src/scripting_api/types.dart b/lib/src/scripting_api/types.dart index cb98067e..fe7f0771 100644 --- a/lib/src/scripting_api/types.dart +++ b/lib/src/scripting_api/types.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../definitions/thing_description.dart'; import 'interaction_output.dart'; diff --git a/lib/src/scripting_api/wot.dart b/lib/src/scripting_api/wot.dart index 3d7bee4c..1ac16656 100644 --- a/lib/src/scripting_api/wot.dart +++ b/lib/src/scripting_api/wot.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import '../definitions/thing_description.dart'; import 'consumed_thing.dart'; diff --git a/test/consumed_thing_test.dart b/test/consumed_thing_test.dart index b844aeb9..10efe630 100644 --- a/test/consumed_thing_test.dart +++ b/test/consumed_thing_test.dart @@ -1,12 +1,8 @@ -// Copyright 2022 The NAMIB Project Developers +// Copyright 2022 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'package:dart_wot/dart_wot.dart'; import 'package:test/test.dart'; diff --git a/test/dart_wot_test.dart b/test/dart_wot_test.dart index e9b11b64..41a81e93 100644 --- a/test/dart_wot_test.dart +++ b/test/dart_wot_test.dart @@ -1,12 +1,8 @@ -// Copyright 2021 The NAMIB Project Developers +// Copyright 2021 The NAMIB Project Developers. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. // -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// SPDX-License-Identifier: MIT OR Apache-2.0 +// SPDX-License-Identifier: BSD-3-Clause import 'package:dart_wot/dart_wot.dart'; import 'package:test/test.dart';