From f409d5d499644be01a5801b56303135f7854cf94 Mon Sep 17 00:00:00 2001 From: Ryan Stuart Date: Fri, 8 Nov 2019 10:00:47 +0000 Subject: [PATCH] Update remaining headers. --- .circleci/config.yml | 7 +++++-- license-check.sh | 1 - .../FieldSpecRelationFactory.java | 15 +++++++++++++++ .../profile/handlers/CreateProfileHandler.java | 15 +++++++++++++++ .../deg/profile/reader/ProfileCommandBus.java | 15 +++++++++++++++ .../deg/profile/services/ConstraintService.java | 15 +++++++++++++++ .../deg/profile/services/RuleService.java | 15 +++++++++++++++ .../validators/CreateProfileValidator.java | 15 +++++++++++++++ .../validators/profile/ConstraintValidator.java | 15 +++++++++++++++ .../validators/profile/FieldValidator.java | 15 +++++++++++++++ .../validators/profile/ProfileValidator.java | 15 +++++++++++++++ .../profile/validators/profile/RuleValidator.java | 15 +++++++++++++++ .../constraints/InMapConstraintValidator.java | 15 +++++++++++++++ .../constraints/NotConstraintValidator.java | 15 +++++++++++++++ .../RelationalConstraintValidator.java | 15 +++++++++++++++ .../atomic/AtomicConstraintValidator.java | 15 +++++++++++++++ .../atomic/DateTimeGranularityValidator.java | 15 +++++++++++++++ .../atomic/EqualToConstraintValidator.java | 15 +++++++++++++++ .../atomic/GranularToConstraintValidator.java | 15 +++++++++++++++ .../atomic/InSetConstraintValidator.java | 15 +++++++++++++++ .../atomic/IsNullConstraintValidator.java | 15 +++++++++++++++ .../atomic/NumericConstraintValidator.java | 15 +++++++++++++++ .../atomic/RegexConstraintValidator.java | 15 +++++++++++++++ .../atomic/TemporalConstraintValidator.java | 15 +++++++++++++++ .../grammatical/AllOfConstraintValidator.java | 15 +++++++++++++++ .../grammatical/AnyOfConstraintValidator.java | 15 +++++++++++++++ .../ConditionalConstraintValidator.java | 15 +++++++++++++++ .../GrammaticalConstraintValidator.java | 15 +++++++++++++++ .../scottlogic/deg/profile/TestFileReader.java | 15 +++++++++++++++ .../profile/ConstraintValidatorTests.java | 15 +++++++++++++++ .../validators/profile/FieldValidatorTests.java | 15 +++++++++++++++ .../validators/profile/ProfileValidatorTests.java | 15 +++++++++++++++ .../validators/profile/RuleValidatorTests.java | 15 +++++++++++++++ 33 files changed, 470 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1ffa6f90e..bfb6ce7f3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,8 +10,11 @@ jobs: steps: - checkout - run: - name: Check license headers exist on all source files - command: find . -type f -name '*.java' | xargs grep -L "Licensed under the Apache License" + name: Set header script priviledges + command: chmod +x license-check.sh + - run: + name: Check commit messages + command: ./license-check.sh check_commit_message: docker: diff --git a/license-check.sh b/license-check.sh index 364d2742c..33e15f0a2 100644 --- a/license-check.sh +++ b/license-check.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash files=`find . -type f -name '*.java' | xargs grep -L "Licensed under the Apache License"` -# echo {files} if [[ -z ${files} ]] then diff --git a/profile/src/main/java/com/scottlogic/deg/profile/factories/relation_factories/FieldSpecRelationFactory.java b/profile/src/main/java/com/scottlogic/deg/profile/factories/relation_factories/FieldSpecRelationFactory.java index 10193bf4b..fddb3f7c3 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/factories/relation_factories/FieldSpecRelationFactory.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/factories/relation_factories/FieldSpecRelationFactory.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.factories.relation_factories; import com.scottlogic.deg.common.profile.*; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/handlers/CreateProfileHandler.java b/profile/src/main/java/com/scottlogic/deg/profile/handlers/CreateProfileHandler.java index d18535905..09e574e0d 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/handlers/CreateProfileHandler.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/handlers/CreateProfileHandler.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.handlers; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/reader/ProfileCommandBus.java b/profile/src/main/java/com/scottlogic/deg/profile/reader/ProfileCommandBus.java index 73feee4ea..698e4374e 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/reader/ProfileCommandBus.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/reader/ProfileCommandBus.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.reader; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/services/ConstraintService.java b/profile/src/main/java/com/scottlogic/deg/profile/services/ConstraintService.java index 8b9b3846b..53c3ce31b 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/services/ConstraintService.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/services/ConstraintService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.services; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/services/RuleService.java b/profile/src/main/java/com/scottlogic/deg/profile/services/RuleService.java index 19309fbeb..c087a58b3 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/services/RuleService.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/services/RuleService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.services; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/CreateProfileValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/CreateProfileValidator.java index 0781e3f6a..5aa90c8de 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/CreateProfileValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/CreateProfileValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidator.java index a5f640b95..1911b04d0 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.scottlogic.deg.common.profile.FieldType; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/FieldValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/FieldValidator.java index 6af1d7bed..14435f912 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/FieldValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/FieldValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ProfileValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ProfileValidator.java index 5085bb31d..679c2ca4d 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ProfileValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/ProfileValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.google.inject.Inject; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/RuleValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/RuleValidator.java index b639c1bd3..08eb82adc 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/RuleValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/RuleValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/InMapConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/InMapConstraintValidator.java index 27101f845..e99257fe8 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/InMapConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/InMapConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/NotConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/NotConstraintValidator.java index 8fd799d31..2f014bd69 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/NotConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/NotConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/RelationalConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/RelationalConstraintValidator.java index 3b39aee46..073f12ce8 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/RelationalConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/RelationalConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints; import com.scottlogic.deg.common.profile.FieldType; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/AtomicConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/AtomicConstraintValidator.java index 611dc4483..3d6e33f2c 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/AtomicConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/AtomicConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; import com.scottlogic.deg.common.profile.FieldType; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/DateTimeGranularityValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/DateTimeGranularityValidator.java index 5a7854381..f9f4cf87d 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/DateTimeGranularityValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/DateTimeGranularityValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/EqualToConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/EqualToConstraintValidator.java index ee4302abb..12331db71 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/EqualToConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/EqualToConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/GranularToConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/GranularToConstraintValidator.java index be38e4ed0..d560a8b07 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/GranularToConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/GranularToConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/InSetConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/InSetConstraintValidator.java index a82962b64..e92706940 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/InSetConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/InSetConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/IsNullConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/IsNullConstraintValidator.java index 6795fa97f..6e15b7f77 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/IsNullConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/IsNullConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/NumericConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/NumericConstraintValidator.java index c1a711dc9..090a3a258 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/NumericConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/NumericConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/RegexConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/RegexConstraintValidator.java index ad2dde0e8..0fe52175d 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/RegexConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/RegexConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/TemporalConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/TemporalConstraintValidator.java index fc1d121db..a2271c8eb 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/TemporalConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/atomic/TemporalConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.atomic; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AllOfConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AllOfConstraintValidator.java index 05b2a8d82..0403a24f7 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AllOfConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AllOfConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.grammatical; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AnyOfConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AnyOfConstraintValidator.java index 8f0629033..77b8cf271 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AnyOfConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/AnyOfConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.grammatical; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/ConditionalConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/ConditionalConstraintValidator.java index 8a819cb9e..307c29071 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/ConditionalConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/ConditionalConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.grammatical; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/GrammaticalConstraintValidator.java b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/GrammaticalConstraintValidator.java index 4c8136241..2dffb0dd0 100644 --- a/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/GrammaticalConstraintValidator.java +++ b/profile/src/main/java/com/scottlogic/deg/profile/validators/profile/constraints/grammatical/GrammaticalConstraintValidator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile.constraints.grammatical; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/test/java/com/scottlogic/deg/profile/TestFileReader.java b/profile/src/test/java/com/scottlogic/deg/profile/TestFileReader.java index f1eb02f47..176f9efb3 100644 --- a/profile/src/test/java/com/scottlogic/deg/profile/TestFileReader.java +++ b/profile/src/test/java/com/scottlogic/deg/profile/TestFileReader.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile; import com.scottlogic.deg.generator.fieldspecs.whitelist.DistributedList; diff --git a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidatorTests.java b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidatorTests.java index 8bee20652..ee52e9bd6 100644 --- a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidatorTests.java +++ b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ConstraintValidatorTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.scottlogic.deg.common.profile.SpecificFieldType; diff --git a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/FieldValidatorTests.java b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/FieldValidatorTests.java index c150d510a..d1af26561 100644 --- a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/FieldValidatorTests.java +++ b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/FieldValidatorTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ProfileValidatorTests.java b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ProfileValidatorTests.java index 5c1c3958f..379f51ba0 100644 --- a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ProfileValidatorTests.java +++ b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/ProfileValidatorTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.scottlogic.deg.common.validators.ValidationResult; diff --git a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/RuleValidatorTests.java b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/RuleValidatorTests.java index 547932678..32e946047 100644 --- a/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/RuleValidatorTests.java +++ b/profile/src/test/java/com/scottlogic/deg/profile/validators/profile/RuleValidatorTests.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Scott Logic Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.scottlogic.deg.profile.validators.profile; import com.scottlogic.deg.common.profile.SpecificFieldType;