public class ApiParameterMetadata extends Object
| Constructor and Description |
|---|
ApiParameterMetadata(Parameter param)
Default constructor that creates a metadata object from a Java parameter
|
ApiParameterMetadata(String name,
RamlAbstractParam param)
Default constructor that creates a metadata object from a Raml parameter
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExample()
The example which is set with this parameter
|
Type |
getGenericType()
The Java Type of the generic portion of the parameter
|
String |
getJavaName()
Gets the name of the parameter as specified in Java (ignores any annotations)
|
String |
getName()
The Parameter Name in RAML
|
RamlAbstractParam |
getRamlParam() |
Class<?> |
getType()
The Java Type of the parameter
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass)
Checks if the param is annotated by a particular annotation
|
boolean |
isArray()
Quick check to see if this is an array type or not
|
boolean |
isNullable()
Can this parameter be passed in as null
|
boolean |
isResourceId()
Is this parameter the identifying parameter to the rest resource.
|
String |
toString() |
public ApiParameterMetadata(String name, RamlAbstractParam param)
name - The name of this parameter if different in annotationparam - Java Parameter representationpublic ApiParameterMetadata(Parameter param)
param - Java Parameter representationpublic Class<?> getType()
public Type getGenericType()
public boolean isNullable()
public boolean isResourceId()
public String getName()
public String getJavaName()
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
annotationClass - The type of the Annotation requiredpublic String getExample()
public RamlAbstractParam getRamlParam()
public boolean isArray()
Copyright © 2017. All rights reserved.