Class OpenApiUtils
java.lang.Object
org.opengis.cite.ogcapiprocesses10.openapi3.OpenApiUtils
OpenApiUtils class.
- Author:
- Lyn Goltz
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isFreeFormParameterSupportedForCollection
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String collectionName) isFreeFormParameterSupportedForCollection.static boolean
isParameterSupportedForCollection
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String collectionName, String queryParam) isParameterSupportedForCollection.static com.reprezen.kaizen.oasparser.model3.Parameter
retrieveParameterByName
(String collectionItemPath, com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String name) retrieveParameterByName.retrieveTestPoints
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse all test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollection
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollectionMetadata
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the COLLECTION METADATA test points for the passed collectionName including the extended path from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollections
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, int noOfCollection) Parse the COLLECTIONS test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollectionsMetadata
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the COLLECTIONS METADATA test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForConformance
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the CONFORMANCE test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForFeature
(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName, String featureId) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3.
-
Method Details
-
retrieveTestPoints
static List<TestPoint> retrieveTestPoints(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse all test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
apiModel
- nevernull
iut
- the url of the instance under test, nevernull
- Returns:
- the parsed test points, may be empty but never
null
-
retrieveTestPointsForConformance
public static List<TestPoint> retrieveTestPointsForConformance(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the CONFORMANCE test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
apiModel
- nevernull
iut
- the url of the instance under test, nevernull
- Returns:
- the parsed test points, may be empty but never
null
-
retrieveTestPointsForCollectionsMetadata
public static List<TestPoint> retrieveTestPointsForCollectionsMetadata(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the COLLECTIONS METADATA test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
apiModel
- nevernull
iut
- the url of the instance under test, nevernull
- Returns:
- the parsed test points, may be empty but never
null
-
retrieveTestPointsForCollectionMetadata
public static List<TestPoint> retrieveTestPointsForCollectionMetadata(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the COLLECTION METADATA test points for the passed collectionName including the extended path from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
apiModel
- nevernull
iut
- the url of the instance under test, nevernull
collectionName
- the extended path, may benull
- Returns:
- the parsed test points, may be empty but never
null
-
retrieveTestPointsForCollections
public static List<TestPoint> retrieveTestPointsForCollections(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, int noOfCollection) Parse the COLLECTIONS test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
apiModel
- nevernull
iut
- the url of the instance under test, nevernull
noOfCollection
- the number of collections to return test points for (-1 means the test points of all collections should be returned)- Returns:
- the parsed test points, may be empty but never
null
-
retrieveTestPointsForCollection
public static List<TestPoint> retrieveTestPointsForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
apiModel
- nevernull
iut
- the url of the instance under test, nevernull
collectionName
- the extended path, may benull
- Returns:
- the parsed test points, may be empty but never
null
-
retrieveTestPointsForFeature
public static List<TestPoint> retrieveTestPointsForFeature(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName, String featureId) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
apiModel
- nevernull
iut
- the url of the instance under test, nevernull
collectionName
- the extended path, may benull
featureId
- the id of the feature, nevernull
- Returns:
- the parsed test points, may be empty but never
null
-
retrieveParameterByName
public static com.reprezen.kaizen.oasparser.model3.Parameter retrieveParameterByName(String collectionItemPath, com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String name) retrieveParameterByName.
-
isFreeFormParameterSupportedForCollection
public static boolean isFreeFormParameterSupportedForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String collectionName) isFreeFormParameterSupportedForCollection.
- Parameters:
apiModel
- aOpenApi3
objectcollectionName
- aString
object- Returns:
- a boolean
-
isParameterSupportedForCollection
public static boolean isParameterSupportedForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String collectionName, String queryParam) isParameterSupportedForCollection.
-