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.default Optional<GeneratedClass> contractCases(String location) The class that lists an operation's contract cases, such asInitiateUserRegistrationContractCases: generated for every operation, with no cases where the contract gives nothing to derive one from.The class for a schema written inline in an operation.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
-
contractCases
The class that lists an operation's contract cases, such asInitiateUserRegistrationContractCases: generated for every operation, with no cases where the contract gives nothing to derive one from. 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
-