Replaced all tabs with spaces in java and pom.xml
[so.git] / common / src / main / java / org / onap / so / client / aai / entities / uri / AAISimpleUri.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 - 2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.client.aai.entities.uri;
22
23 import java.net.URI;
24 import javax.ws.rs.core.UriBuilder;
25 import org.onap.so.client.aai.AAIObjectPlurals;
26 import org.onap.so.client.aai.AAIObjectType;
27 import org.onap.so.client.graphinventory.Format;
28 import org.onap.so.client.graphinventory.GraphInventoryObjectType;
29 import org.onap.so.client.graphinventory.entities.uri.Depth;
30 import org.onap.so.client.graphinventory.entities.uri.GraphInventoryResourceUri;
31 import org.onap.so.client.graphinventory.entities.uri.SimpleUri;
32
33 public class AAISimpleUri extends SimpleUri implements AAIResourceUri {
34
35     private static final long serialVersionUID = -6397024057188453229L;
36
37     protected AAISimpleUri(AAIObjectType type, Object... values) {
38         super(type, values);
39
40     }
41
42     protected AAISimpleUri(AAIObjectType type, URI uri) {
43         super(type, uri);
44     }
45
46     protected AAISimpleUri(AAIObjectType type, UriBuilder builder, Object... values) {
47         super(type, builder, values);
48     }
49
50     protected AAISimpleUri(AAIObjectPlurals type, UriBuilder builder, Object... values) {
51         super(type, builder, values);
52     }
53
54     protected AAISimpleUri(AAIObjectPlurals type) {
55         super(type);
56     }
57
58     protected AAISimpleUri(AAIObjectPlurals type, Object... values) {
59         super(type, values);
60     }
61
62     protected AAISimpleUri(AAIResourceUri parentUri, AAIObjectType childType, Object... childValues) {
63         super(parentUri, childType, childValues);
64     }
65
66     protected AAISimpleUri(AAIResourceUri parentUri, AAIObjectPlurals childType) {
67         super(parentUri, childType);
68     }
69
70     @Override
71     public AAISimpleUri relationshipAPI() {
72         return (AAISimpleUri) super.relationshipAPI();
73     }
74
75     @Override
76     public AAISimpleUri relatedTo(AAIObjectPlurals plural) {
77         return (AAISimpleUri) super.relatedTo(plural);
78     }
79
80     @Override
81     public AAISimpleUri relatedTo(AAIObjectType type, String... values) {
82         return (AAISimpleUri) super.relatedTo(type, values);
83     }
84
85     @Override
86     public AAISimpleUri resourceVersion(String version) {
87         return (AAISimpleUri) super.resourceVersion(version);
88     }
89
90     @Override
91     public AAISimpleUri queryParam(String name, String... values) {
92         return (AAISimpleUri) super.queryParam(name, values);
93     }
94
95     @Override
96     public AAISimpleUri replaceQueryParam(String name, String... values) {
97         return (AAISimpleUri) super.replaceQueryParam(name, values);
98     }
99
100     @Override
101     public AAISimpleUri resultIndex(int index) {
102         return (AAISimpleUri) super.resultIndex(index);
103     }
104
105     @Override
106     public AAISimpleUri resultSize(int size) {
107         return (AAISimpleUri) super.resultSize(size);
108     }
109
110     @Override
111     public AAISimpleUri limit(int size) {
112         return (AAISimpleUri) super.limit(size);
113     }
114
115     @Override
116     public AAISimpleUri clone() {
117         if (this.type != null) {
118             return new AAISimpleUri((AAIObjectType) this.type, this.internalURI.clone(), values);
119         } else {
120             return new AAISimpleUri((AAIObjectPlurals) this.pluralType, this.internalURI.clone(), values);
121         }
122     }
123
124     @Override
125     public AAIObjectType getObjectType() {
126         return (AAIObjectType) this.type;
127     }
128
129     @Override
130     public AAISimpleUri depth(Depth depth) {
131         return (AAISimpleUri) super.depth(depth);
132     }
133
134     @Override
135     public AAISimpleUri nodesOnly(boolean nodesOnly) {
136         return (AAISimpleUri) super.nodesOnly(nodesOnly);
137     }
138
139     @Override
140     public AAISimpleUri format(Format format) {
141         return (AAISimpleUri) super.format(format);
142     }
143 }