From 288a58cd4fc73f06d6275e2196a52349665c8b4a Mon Sep 17 00:00:00 2001 From: rpidikiti Date: Thu, 4 Aug 2011 10:45:17 -0700 Subject: [PATCH] Added licensing info --- ivy.xml | 6 +++--- .../swagger/codegen/FieldDefinition.java | 16 ++++++++++++++++ .../swagger/codegen/LibraryCodeGenerator.java | 15 +++++++++++++++ .../swagger/codegen/MethodArgument.java | 15 +++++++++++++++ .../swagger/codegen/ResourceMethod.java | 16 ++++++++++++++++ .../codegen/api/SwaggerResourceDocReader.java | 16 ++++++++++++++++ .../codegen/config/ApiConfiguration.java | 16 ++++++++++++++++ .../config/DataTypeMappingProvider.java | 16 ++++++++++++++++ .../codegen/config/LanguageConfiguration.java | 16 ++++++++++++++++ .../codegen/config/NamingPolicyProvider.java | 16 ++++++++++++++++ .../swagger/codegen/config/RulesProvider.java | 16 ++++++++++++++++ .../common/CamelCaseNamingPolicyProvider.java | 16 ++++++++++++++++ .../config/java/JavaCodeGenRulesProvider.java | 16 ++++++++++++++++ .../java/JavaDataTypeMappingProvider.java | 16 ++++++++++++++++ .../codegen/config/java/JavaLibCodeGen.java | 16 ++++++++++++++++ .../swagger/codegen/resource/ApiModelDefn.java | 16 ++++++++++++++++ .../codegen/resource/ApiModelListWrapper.java | 16 ++++++++++++++++ .../codegen/resource/ApiPropertyDefn.java | 16 ++++++++++++++++ .../resource/ApiPropertyListWrapper.java | 16 ++++++++++++++++ .../swagger/codegen/resource/Endpoint.java | 18 ++++++++++++++++-- .../codegen/resource/EndpointOperation.java | 16 ++++++++++++++++ .../codegen/resource/ErrorResponse.java | 18 ++++++++++++++++-- .../swagger/codegen/resource/Model.java | 18 ++++++++++++++++-- .../swagger/codegen/resource/ModelField.java | 16 ++++++++++++++++ .../swagger/codegen/resource/Resource.java | 16 ++++++++++++++++ .../swagger/codegen/resource/Response.java | 16 ++++++++++++++++ .../wordnik/swagger/codegen/util/FileUtil.java | 16 ++++++++++++++++ .../exception/CodeGenerationException.java | 16 ++++++++++++++++ 28 files changed, 433 insertions(+), 9 deletions(-) diff --git a/ivy.xml b/ivy.xml index a0795ddc8d..382fe8fc2b 100644 --- a/ivy.xml +++ b/ivy.xml @@ -1,5 +1,5 @@ - + @@ -9,8 +9,8 @@ - - + + diff --git a/src/main/java/com/wordnik/swagger/codegen/FieldDefinition.java b/src/main/java/com/wordnik/swagger/codegen/FieldDefinition.java index ea947f0120..615e24fe5c 100644 --- a/src/main/java/com/wordnik/swagger/codegen/FieldDefinition.java +++ b/src/main/java/com/wordnik/swagger/codegen/FieldDefinition.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen; import java.util.ArrayList; diff --git a/src/main/java/com/wordnik/swagger/codegen/LibraryCodeGenerator.java b/src/main/java/com/wordnik/swagger/codegen/LibraryCodeGenerator.java index 91d67402aa..5c5d338361 100644 --- a/src/main/java/com/wordnik/swagger/codegen/LibraryCodeGenerator.java +++ b/src/main/java/com/wordnik/swagger/codegen/LibraryCodeGenerator.java @@ -1,3 +1,18 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen; import com.wordnik.swagger.codegen.api.SwaggerResourceDocReader; diff --git a/src/main/java/com/wordnik/swagger/codegen/MethodArgument.java b/src/main/java/com/wordnik/swagger/codegen/MethodArgument.java index 86a8e3aa0d..b3639c23c7 100644 --- a/src/main/java/com/wordnik/swagger/codegen/MethodArgument.java +++ b/src/main/java/com/wordnik/swagger/codegen/MethodArgument.java @@ -1,3 +1,18 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen; import com.wordnik.swagger.codegen.config.NamingPolicyProvider; diff --git a/src/main/java/com/wordnik/swagger/codegen/ResourceMethod.java b/src/main/java/com/wordnik/swagger/codegen/ResourceMethod.java index 1feceabbb1..12dca4ebeb 100644 --- a/src/main/java/com/wordnik/swagger/codegen/ResourceMethod.java +++ b/src/main/java/com/wordnik/swagger/codegen/ResourceMethod.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen; import com.wordnik.swagger.codegen.resource.Model; diff --git a/src/main/java/com/wordnik/swagger/codegen/api/SwaggerResourceDocReader.java b/src/main/java/com/wordnik/swagger/codegen/api/SwaggerResourceDocReader.java index 3df8f286a7..b2d5f48ac4 100644 --- a/src/main/java/com/wordnik/swagger/codegen/api/SwaggerResourceDocReader.java +++ b/src/main/java/com/wordnik/swagger/codegen/api/SwaggerResourceDocReader.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.api; import com.sun.jersey.api.client.Client; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/ApiConfiguration.java b/src/main/java/com/wordnik/swagger/codegen/config/ApiConfiguration.java index b67831a8d1..8b1f8d7055 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/ApiConfiguration.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/ApiConfiguration.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config; import com.wordnik.swagger.exception.CodeGenerationException; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/DataTypeMappingProvider.java b/src/main/java/com/wordnik/swagger/codegen/config/DataTypeMappingProvider.java index ab88b8a1a9..d3acab682b 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/DataTypeMappingProvider.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/DataTypeMappingProvider.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config; import java.util.List; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/LanguageConfiguration.java b/src/main/java/com/wordnik/swagger/codegen/config/LanguageConfiguration.java index dbee37818b..2b19b972aa 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/LanguageConfiguration.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/LanguageConfiguration.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config; import com.wordnik.swagger.exception.CodeGenerationException; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/NamingPolicyProvider.java b/src/main/java/com/wordnik/swagger/codegen/config/NamingPolicyProvider.java index 590f57d268..24542f59ec 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/NamingPolicyProvider.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/NamingPolicyProvider.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config; /** diff --git a/src/main/java/com/wordnik/swagger/codegen/config/RulesProvider.java b/src/main/java/com/wordnik/swagger/codegen/config/RulesProvider.java index 48f9756fc4..a94c2b8155 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/RulesProvider.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/RulesProvider.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config; import java.util.ArrayList; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/common/CamelCaseNamingPolicyProvider.java b/src/main/java/com/wordnik/swagger/codegen/config/common/CamelCaseNamingPolicyProvider.java index e182d83680..0d92f73e31 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/common/CamelCaseNamingPolicyProvider.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/common/CamelCaseNamingPolicyProvider.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config.common; import com.wordnik.swagger.codegen.resource.Model; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/java/JavaCodeGenRulesProvider.java b/src/main/java/com/wordnik/swagger/codegen/config/java/JavaCodeGenRulesProvider.java index 4897d389fe..c47278c059 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/java/JavaCodeGenRulesProvider.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/java/JavaCodeGenRulesProvider.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config.java; import com.wordnik.swagger.codegen.config.RulesProvider; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/java/JavaDataTypeMappingProvider.java b/src/main/java/com/wordnik/swagger/codegen/config/java/JavaDataTypeMappingProvider.java index 769a8a0120..ac0731b8bd 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/java/JavaDataTypeMappingProvider.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/java/JavaDataTypeMappingProvider.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config.java; import com.wordnik.swagger.codegen.config.DataTypeMappingProvider; diff --git a/src/main/java/com/wordnik/swagger/codegen/config/java/JavaLibCodeGen.java b/src/main/java/com/wordnik/swagger/codegen/config/java/JavaLibCodeGen.java index 8a8db1a82e..c5b2703adb 100644 --- a/src/main/java/com/wordnik/swagger/codegen/config/java/JavaLibCodeGen.java +++ b/src/main/java/com/wordnik/swagger/codegen/config/java/JavaLibCodeGen.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.config.java; import com.wordnik.swagger.codegen.LibraryCodeGenerator; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelDefn.java b/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelDefn.java index ff8e2a5388..8f4eb98a09 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelDefn.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelDefn.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import com.wordnik.swagger.codegen.config.NamingPolicyProvider; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelListWrapper.java b/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelListWrapper.java index 82e2e334cc..968ead3d77 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelListWrapper.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/ApiModelListWrapper.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import org.codehaus.jackson.annotate.JsonAnyGetter; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyDefn.java b/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyDefn.java index 4ecb60a0f0..b0fe41c2c2 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyDefn.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyDefn.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import org.codehaus.jackson.annotate.JsonAnyGetter; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyListWrapper.java b/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyListWrapper.java index e44affc8f7..a22f69ffd5 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyListWrapper.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/ApiPropertyListWrapper.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import com.wordnik.swagger.codegen.config.NamingPolicyProvider; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/Endpoint.java b/src/main/java/com/wordnik/swagger/codegen/resource/Endpoint.java index 249ebf768d..21e2ac2d50 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/Endpoint.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/Endpoint.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import com.wordnik.swagger.codegen.ResourceMethod; @@ -8,11 +24,9 @@ import java.util.ArrayList; import java.util.List; /** - * Created by IntelliJ IDEA. * User: ramesh * Date: 3/30/11 * Time: 7:01 PM - * To change this template use File | Settings | File Templates. */ public class Endpoint { diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/EndpointOperation.java b/src/main/java/com/wordnik/swagger/codegen/resource/EndpointOperation.java index dd63eb6a14..1025c5a164 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/EndpointOperation.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/EndpointOperation.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import com.wordnik.swagger.codegen.MethodArgument; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/ErrorResponse.java b/src/main/java/com/wordnik/swagger/codegen/resource/ErrorResponse.java index f5f1871dbd..044bc399bc 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/ErrorResponse.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/ErrorResponse.java @@ -1,11 +1,25 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; /** - * Created by IntelliJ IDEA. * User: ramesh * Date: 3/31/11 * Time: 8:24 AM - * To change this template use File | Settings | File Templates. */ public class ErrorResponse { diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/Model.java b/src/main/java/com/wordnik/swagger/codegen/resource/Model.java index 35d97cc079..fa331f75e1 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/Model.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/Model.java @@ -1,13 +1,27 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import java.util.List; /** - * Created by IntelliJ IDEA. * User: ramesh * Date: 3/31/11 * Time: 8:31 AM - * To change this template use File | Settings | File Templates. */ public class Model { diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/ModelField.java b/src/main/java/com/wordnik/swagger/codegen/resource/ModelField.java index 656439709b..46593b60fe 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/ModelField.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/ModelField.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import com.wordnik.swagger.codegen.FieldDefinition; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/Resource.java b/src/main/java/com/wordnik/swagger/codegen/resource/Resource.java index 55773e31ff..ebf0b9245c 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/Resource.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/Resource.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; import com.wordnik.swagger.codegen.ResourceMethod; diff --git a/src/main/java/com/wordnik/swagger/codegen/resource/Response.java b/src/main/java/com/wordnik/swagger/codegen/resource/Response.java index 09d56eeb61..c1f4b012e0 100644 --- a/src/main/java/com/wordnik/swagger/codegen/resource/Response.java +++ b/src/main/java/com/wordnik/swagger/codegen/resource/Response.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.resource; diff --git a/src/main/java/com/wordnik/swagger/codegen/util/FileUtil.java b/src/main/java/com/wordnik/swagger/codegen/util/FileUtil.java index cfe1bd56d4..2a0f749304 100644 --- a/src/main/java/com/wordnik/swagger/codegen/util/FileUtil.java +++ b/src/main/java/com/wordnik/swagger/codegen/util/FileUtil.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.codegen.util; import com.wordnik.swagger.exception.CodeGenerationException; diff --git a/src/main/java/com/wordnik/swagger/exception/CodeGenerationException.java b/src/main/java/com/wordnik/swagger/exception/CodeGenerationException.java index 308f4a2733..27cdb8e224 100644 --- a/src/main/java/com/wordnik/swagger/exception/CodeGenerationException.java +++ b/src/main/java/com/wordnik/swagger/exception/CodeGenerationException.java @@ -1,3 +1,19 @@ +/** + * Copyright 2011 Wordnik, Inc. + * + * 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.wordnik.swagger.exception; /**