public class ApiSearchConditions extends Object
RegistryClient.findApi(ApiSearchConditions).
It describes a set of conditions to test against API entries found in the Registry's catalogue
catalogue response (in its <apis-implemented> section). Usually you will use
this class in conjunction with RegistryClient.findApi(ApiSearchConditions) and
RegistryClient.findApis(ApiSearchConditions) methods.
| Constructor and Description |
|---|
ApiSearchConditions()
Create an empty set of conditions.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRequiredHei()
Get the SCHAC ID of the HEI which needs to be covered by the API, as it has been previously
provided via
setRequiredHei(String). |
String |
getRequiredLocalName()
Get the required API element local name, as it has been previously provided via
setApiClassRequired(String, String). |
String |
getRequiredMinVersion()
Get the minimum required API version, as it has been previously provided via
setMinVersionRequired(String). |
String |
getRequiredNamespaceUri()
Get the required API element namespace URI, as it has been previously provided via
setApiClassRequired(String, String). |
ApiSearchConditions |
setApiClassRequired(String namespaceUri,
String localName)
Require the API to be of a given class.
|
ApiSearchConditions |
setApiClassRequired(String namespaceUri,
String localName,
String minVersionRequired)
Require the API to be of a given class, and to have a
version attribute greater or
equal to the provided one. |
ApiSearchConditions |
setMinVersionRequired(String minVersionRequired)
Require the API entry to have a
version attribute greater or equal to the provided
one. |
ApiSearchConditions |
setRequiredHei(String heiId)
Require the API entry to cover a particular HEI.
|
public ApiSearchConditions()
set* methods to add your conditions.)public String getRequiredHei()
setRequiredHei(String).public String getRequiredLocalName()
setApiClassRequired(String, String).public String getRequiredMinVersion()
setMinVersionRequired(String).public String getRequiredNamespaceUri()
setApiClassRequired(String, String).public ApiSearchConditions setApiClassRequired(String namespaceUri, String localName)
namespaceUri - Required namespaceURI of the API entry element, or null if no
requirements should be set.localName - Required localName of the API entry element, or null if no requirements
should be set.public ApiSearchConditions setApiClassRequired(String namespaceUri, String localName, String minVersionRequired)
version attribute greater or
equal to the provided one.
This method is a shorthand which allows you to call
setApiClassRequired(String, String) and setMinVersionRequired(String) both in
one call.
namespaceUri - Required namespaceURI of the API entry element, or null if no
requirements should be set.localName - Required localName of the API entry element, or null if no requirements
should be set.minVersionRequired - as described in setMinVersionRequired(String).public ApiSearchConditions setMinVersionRequired(String minVersionRequired)
version attribute greater or equal to the provided
one.
Both versions (the one in the matched DOM attribute, and the one provided in this method's
parameter) MUST be in the X.Y.Z format, where X, Y and Z are non-negative
integers. If you believe that the API entry you are looking for does not follow this versioning
schema, then you SHOULD NOT use this method, and verify version attribute
yourself.
Note, that the major version of most EWP APIs is also included in the API's namespace URI. So,
for example, if you're upgrading from "3.5.1" to "4.0.0", then you
will often also be required to change the namespace URI provided in
setApiClassRequired(String, String).
minVersionRequired - A minimum required version string, e.g. "1.3.0", or
null if no requirements should be set.public ApiSearchConditions setRequiredHei(String heiId)
heiId - SCHAC ID of the HEI, or null if no requirements should be set.Copyright © 2017. All rights reserved.