Interface ClassNames
public interface ClassNames
The core classes of one contract, as the core emitter names them.
-
Method Summary
Modifier and TypeMethodDescriptionall()Every core class, in the order the contract declares what they come from.The class for a component.The class for a schema written inline in an operation.default Optional<GeneratedClass> invalidRequests(String location) The class that lists an operation's invalid-request cases, such asInitiateUserRegistrationInvalidRequests: generated for every operation, with no cases where the operation declares no invalid-request status or no constraint on its input.The class for an operation.
-
Method Details
-
all
List<GeneratedClass> all()Every core class, in the order the contract declares what they come from.- Returns:
- the classes
-
component
The class for a component.- Parameters:
origin-Origin.SCHEMA,Origin.RESPONSE,Origin.PARAMETERorOrigin.REQUEST_BODYcomponentName- the component's name- Returns:
- the class, or empty when there is none
-
operation
The class for an operation.- Parameters:
location- the JSON pointer of the operation, such as/paths/~1v1~1users/get- Returns:
- the class, or empty when there is none
-
inline
The class for a schema written inline in an operation.- Parameters:
location- the JSON pointer of the schema- Returns:
- the class, or empty when the schema has none
-
invalidRequests
The class that lists an operation's invalid-request cases, such asInitiateUserRegistrationInvalidRequests: generated for every operation, with no cases where the operation declares no invalid-request status or no constraint on its input. It is not one ofall(), which lists the classes the contract's components and operations are generated into.- Parameters:
location- the JSON pointer of the operation, such as/paths/~1v1~1users/get- Returns:
- the class, or empty when there is none
-