Record Class FeatureMethodInfo
java.lang.Object
java.lang.Record
io.quarkiverse.mcp.server.runtime.FeatureMethodInfo
public record FeatureMethodInfo(String name, String title, String description, String uri, String mimeType, int size, List<FeatureArgument> arguments, String declaringClassName, ToolManager.ToolAnnotations toolAnnotations, Content.Annotations resourceAnnotations, String serverName, Class<?> outputSchemaFrom, Class<? extends OutputSchemaGenerator> outputSchemaGenerator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureMethodInfo(String name, String title, String description, String uri, String mimeType, int size, List<FeatureArgument> arguments, String declaringClassName, ToolManager.ToolAnnotations toolAnnotations, Content.Annotations resourceAnnotations, String serverName, Class<?> outputSchemaFrom, Class<? extends OutputSchemaGenerator> outputSchemaGenerator) Creates an instance of aFeatureMethodInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.Returns the value of thedeclaringClassNamerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mimeType()Returns the value of themimeTyperecord component.name()Returns the value of thenamerecord component.Class<?>Returns the value of theoutputSchemaFromrecord component.Class<? extends OutputSchemaGenerator>Returns the value of theoutputSchemaGeneratorrecord component.Returns the value of theresourceAnnotationsrecord component.Returns the value of theserverNamerecord component.intsize()Returns the value of thesizerecord component.title()Returns the value of thetitlerecord component.Returns the value of thetoolAnnotationsrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
FeatureMethodInfo
public FeatureMethodInfo(String name, String title, String description, String uri, String mimeType, int size, List<FeatureArgument> arguments, String declaringClassName, ToolManager.ToolAnnotations toolAnnotations, Content.Annotations resourceAnnotations, String serverName, Class<?> outputSchemaFrom, Class<? extends OutputSchemaGenerator> outputSchemaGenerator) Creates an instance of aFeatureMethodInforecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componenturi- the value for theurirecord componentmimeType- the value for themimeTyperecord componentsize- the value for thesizerecord componentarguments- the value for theargumentsrecord componentdeclaringClassName- the value for thedeclaringClassNamerecord componenttoolAnnotations- the value for thetoolAnnotationsrecord componentresourceAnnotations- the value for theresourceAnnotationsrecord componentserverName- the value for theserverNamerecord componentoutputSchemaFrom- the value for theoutputSchemaFromrecord componentoutputSchemaGenerator- the value for theoutputSchemaGeneratorrecord component
-
-
Method Details
-
serializedArguments
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
declaringClassName
Returns the value of thedeclaringClassNamerecord component.- Returns:
- the value of the
declaringClassNamerecord component
-
toolAnnotations
Returns the value of thetoolAnnotationsrecord component.- Returns:
- the value of the
toolAnnotationsrecord component
-
resourceAnnotations
Returns the value of theresourceAnnotationsrecord component.- Returns:
- the value of the
resourceAnnotationsrecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
outputSchemaFrom
Returns the value of theoutputSchemaFromrecord component.- Returns:
- the value of the
outputSchemaFromrecord component
-
outputSchemaGenerator
Returns the value of theoutputSchemaGeneratorrecord component.- Returns:
- the value of the
outputSchemaGeneratorrecord component
-