* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* 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.
+ * 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.
* ============LICENSE_END=========================================================
*/
package org.openecomp.aai.parsers.query;
-import java.net.URI;
-
+import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.openecomp.aai.db.props.AAIProperties;
import org.openecomp.aai.introspection.Loader;
import org.openecomp.aai.introspection.LoaderFactory;
import org.openecomp.aai.query.builder.QueryBuilder;
+import java.net.URI;
+
/**
* The Class QueryParser.
*/
protected Loader loader = null;
protected Loader latestLoader = null;
- protected QueryBuilder queryBuilder = null;
+ protected QueryBuilder<Vertex> queryBuilder = null;
- protected QueryBuilder parentQueryBuilder = null;
+ protected QueryBuilder<Vertex> parentQueryBuilder = null;
protected URI uri = null;
* @param queryBuilder the query builder
* @param uri the uri
*/
- protected QueryParser(Loader loader, QueryBuilder queryBuilder, URI uri) {
+ protected QueryParser(Loader loader, QueryBuilder<Vertex> queryBuilder, URI uri) {
this.uri = uri;
this.queryBuilder = queryBuilder;
this.loader = loader;
* @param loader the loader
* @param queryBuilder the query builder
*/
- protected QueryParser(Loader loader, QueryBuilder queryBuilder) {
+ protected QueryParser(Loader loader, QueryBuilder<Vertex> queryBuilder) {
this.queryBuilder = queryBuilder;
this.loader = loader;
this.latestLoader = LoaderFactory.createLoaderForVersion(loader.getModelType(), AAIProperties.LATEST);
*
* @return the query builder
*/
- public QueryBuilder getQueryBuilder() {
+ public QueryBuilder<Vertex> getQueryBuilder() {
return this.queryBuilder;
}
*
* @return the parent query builder
*/
- public QueryBuilder getParentQueryBuilder() {
+ public QueryBuilder<Vertex> getParentQueryBuilder() {
if (this.parentQueryBuilder != null) {
return this.parentQueryBuilder;
} else {