public class CommandFactory extends Object
ICommand
given a "type" that was previously
serialized as part of the marshalling of a command to a JS object (and ultimately a JSON string).
The type of command is typically its short classname, but not always.Constructor and Description |
---|
CommandFactory() |
public static ICommand create(String cmdType)
cmdType
- public static final ICommand createAggregateCommand(String name, Object info, List<ICommand> commands)
public static final ICommand createAddExampleCommand(Oas30MediaType mediaType, Object example, String exampleName, String exampleSummary, String exampleDescription)
public static final ICommand createAddParameterExampleCommand(Oas30Parameter parameter, Object example, String exampleName, String exampleSummary, String exampleDescription)
public static final ICommand createAddSchemaDefinitionCommand(DocumentType docType, String definitionName, Object from)
public static final ICommand createAddResponseDefinitionCommand(DocumentType docType, String definitionName, Object from)
public static final ICommand createAddPathItemCommand(String pathItemName, Object from)
public static final ICommand createAddSecurityRequirementCommand(ISecurityRequirementParent parent, SecurityRequirement requirement)
public static <T> ICommand createChangePropertyCommand(Node node, String property, T newValue)
public static final ICommand createChangeDescriptionCommand(String newDescription)
public static final ICommand createChangeVersionCommand(String newVersion)
public static final ICommand createChangeLicenseCommand(String name, String url)
public static final ICommand createChangeContactCommand(String name, String email, String url)
public static final ICommand createChangeMediaTypeTypeCommand(Oas30MediaType mediaType, SimplifiedType newType)
public static final ICommand createChangeParameterTypeCommand(DocumentType docType, Parameter parameter, SimplifiedParameterType newType)
public static final ICommand createChangeParameterDefinitionTypeCommand(DocumentType docType, Parameter parameter, SimplifiedParameterType newType)
public static final ICommand createChangePropertyTypeCommand(IOasPropertySchema property, SimplifiedPropertyType newType)
public static final ICommand createChangeResponseTypeCommand(Oas20Response response, SimplifiedType newType)
public static final ICommand createChangeResponseDefinitionTypeCommand(Oas20ResponseDefinition response, SimplifiedType newType)
public static final ICommand createChangeSecuritySchemeCommand(DocumentType docType, SecurityScheme scheme)
public static final ICommand createDeleteAllExamplesCommand(Oas30MediaType mediaType)
public static final ICommand createDeleteAllParameterExamplesCommand(Oas30Parameter parameter)
public static final ICommand createDeleteAllOperationsCommand(OasPathItem pathItem)
public static final ICommand createDeleteAllParametersCommand(IOasParameterParent parent, String type)
public static final ICommand createDeleteAllPropertiesCommand(OasSchema schema)
public static final ICommand createDeleteAllResponsesCommand(OasOperation operation)
public static final ICommand createDeleteAllSecurityRequirementsCommand(ISecurityRequirementParent parent)
public static final ICommand createDeleteAllSecuritySchemesCommand()
public static final ICommand createDeleteAllServersCommand(IServerParent parent)
public static final ICommand createDeleteAllTagsCommand()
public static final ICommand createDelete20ExampleCommand(Oas20Response response, String contentType)
public static final ICommand createDeleteExampleCommand(Oas30Example example)
public static final ICommand createDeleteParameterExampleCommand(Oas30Example example)
public static final ICommand createDeleteExtensionCommand(Extension extension)
public static final ICommand createDeleteMediaTypeCommand(Oas30MediaType mediaType)
public static final ICommand createDeleteOperationCommand(String opMethod, OasPathItem pathItem)
public static final ICommand createDeleteParameterCommand(OasParameter parameter)
public static final ICommand createDeletePropertyCommand(IOasPropertySchema property)
public static final ICommand createDeleteRequestBodyCommand(Oas30Operation operation)
public static final ICommand createDeleteResponseCommand(OasResponse response)
public static final ICommand createDeleteSchemaDefinitionCommand(DocumentType docType, String definitionName)
public static final ICommand createDeleteResponseDefinitionCommand(DocumentType docType, String definitionName)
public static final ICommand createDeleteSecurityRequirementCommand(ISecurityRequirementParent parent, SecurityRequirement requirement)
public static final ICommand createDeleteSecuritySchemeCommand(DocumentType docType, String schemeName)
public static final ICommand createNewMediaTypeCommand(IOas30MediaTypeParent parent, String newMediaType)
public static final ICommand createNewOperationCommand(String path, String method)
public static final ICommand createNewParamCommand(IOasParameterParent parent, String paramName, String paramType, String description, SimplifiedParameterType newType, boolean override)
public static final ICommand createNewRequestBodyCommand(DocumentType docType, OasOperation operation)
public static final ICommand createNewResponseCommand(OasOperation operation, String statusCode, OasResponse sourceResponse)
public static final ICommand createNewSchemaDefinitionCommand(DocumentType docType, String definitionName, Object example, String description)
public static final ICommand createNewResponseDefinitionCommand(DocumentType docType, String definitionName, String description)
public static final ICommand createNewSchemaPropertyCommand(Schema schema, String propertyName, String description, SimplifiedPropertyType newType)
public static final ICommand createNewSecuritySchemeCommand(DocumentType docType, SecurityScheme scheme)
public static final ICommand createNewServerCommand(IServerParent parent, Server server)
public static final ICommand createNewTagCommand(String name, String description)
public static final ICommand createRenameParameterCommand(IOasParameterParent parent, String oldParamName, String newParamName, String paramIn)
public static final ICommand createRenamePathItemCommand(String oldPath, String newPath, boolean alsoRenameSubpaths)
public static final ICommand createRenamePropertyCommand(OasSchema parent, String oldPropertyName, String newPropertyName)
public static final ICommand createRenameSchemaDefinitionCommand(DocumentType docType, String oldName, String newName)
public static final ICommand createRenameResponseDefinitionCommand(DocumentType docType, String oldName, String newName)
public static final ICommand createRenameSecuritySchemeCommand(String oldSchemeName, String newSchemeName)
public static final ICommand createRenameTagDefinitionCommand(String oldTag, String newTag)
public static final ICommand createReplaceOperationCommand(OasOperation old, OasOperation replacement)
public static final ICommand createReplaceDocumentCommand(Document old, Document replacement)
public static final ICommand createReplacePathItemCommand(OasPathItem old, OasPathItem replacement)
public static final ICommand createReplaceSchemaDefinitionCommand(DocumentType docType, IDefinition old, IDefinition replacement)
public static final ICommand createReplaceResponseDefinitionCommand(DocumentType docType, IDefinition old, IDefinition replacement)
public static final ICommand createReplaceSecurityRequirementCommand(SecurityRequirement old, SecurityRequirement replacement)
public static <T> ICommand createSetPropertyCommand(NodePath path, String property, T newValue)
public static final ICommand createSetExampleCommand(DocumentType docType, IExampleParent parent, Object example, String nameOrContentType)
public static final ICommand createSetParameterExampleCommand(IExampleParent parent, Object example, String exampleName)
public static final ICommand createSetExtensionCommand(ExtensibleNode parent, String name, Object value)
Copyright © 2019 Red Hat. All rights reserved.