public class ParameterAdapter extends Object implements Parameter
OAuthAuthorizationParameter
object to Parameter
adaConstructor and Description |
---|
ParameterAdapter(OAuthAuthorizationParameter oAuthAuthorizationParameter) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ModelVisitor visitor) |
Type |
asType() |
TypeMirror |
asTypeMirror() |
String |
getAlternativeName()
Alternative name of the attribute to be generated
|
<A extends Annotation> |
getAnnotation(Class<A> aClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
|
List<? extends AnnotationMirror> |
getAnnotationMirrors()
Returns the annotations that are directly present on this element.
|
String |
getDefaultValue()
Returns the given element's default value
|
String |
getEmailDomain()
Returns the email domain if one configured otherwise empty domain
|
GenericType |
getGenericType() |
String |
getJavaDocParameterSummary(String paramName) |
String |
getJavaDocSummary() |
String |
getJavaDocTagContent(String tagName) |
String |
getJavaType()
Returns the fully qualified name of the underlying variable.
|
int |
getMaxSizeLimit()
Returns the max size limit value
|
int |
getMinSizeLimit()
Returns the min size limit value
|
String |
getName() |
String |
getPattern()
Returns the pattern
|
String |
getThrowsComment(String exceptionClassName)
Returns the comment for the given exception class name.
|
List<Type> |
getTypeArguments() |
List<Type> |
getXmlDeclaredChilds() |
boolean |
hasAnnotation(Class<? extends Annotation> aClazz)
Return true if the element has the annotation.
|
boolean |
hasDefaultEmailDomain()
Whether the email has an default domain or not
|
boolean |
hasDefaultPayload()
If the variable is annotated with
Payload or the given element has default value equals to #[payload] |
boolean |
hasDefaultValue()
Whether the given element is has a default value
|
boolean |
hasEmailPattern()
Whether the given element is has a default value
|
boolean |
hasJavaDocTag(String tagName)
Checks if the element contains the specified tag in this javadoc
comments.
|
boolean |
hasPattern()
Whether the given element has pattern
|
boolean |
hasSizeLimit()
Whether the given element has a size limit
|
boolean |
hasTypeArguments() |
boolean |
isAbstract() |
boolean |
isFinal() |
boolean |
isMetaDataKey()
If the variable is annotated with
MetaDataKeyParam |
boolean |
isMetaDataStaticKey()
If the variable is annotated with
MetaDataStaticKey |
boolean |
isOptional()
Whether the given element is marked as optional
|
boolean |
isPayload()
Whether the given element is marked with
Payload |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isQuery()
If the variable is annotated with
Query |
boolean |
isQueryPart() |
boolean |
isRefOnly()
The variable can be passed by reference only.
|
boolean |
isReservedIdentifier()
Returns whether the variable name is a reserved identifier or not
|
boolean |
isStatic() |
boolean |
isText()
Returns true if the variable is annotated with
Text |
Identifiable |
parent() |
boolean |
shouldBeIgnored() |
Element |
unwrap() |
public ParameterAdapter(OAuthAuthorizationParameter oAuthAuthorizationParameter)
public boolean shouldBeIgnored()
shouldBeIgnored
in interface Parameter
public GenericType getGenericType()
getGenericType
in interface Parameter
public boolean isQuery()
Variable
Query
public boolean isQueryPart()
isQueryPart
in interface Parameter
public String getJavaType()
Variable
getJavaType
in interface Variable
public boolean isOptional()
Variable
isOptional
in interface Variable
public boolean isPayload()
Variable
Payload
public boolean hasSizeLimit()
Variable
hasSizeLimit
in interface Variable
public boolean hasPattern()
Variable
hasPattern
in interface Variable
public String getPattern()
Variable
getPattern
in interface Variable
public int getMinSizeLimit()
Variable
getMinSizeLimit
in interface Variable
public int getMaxSizeLimit()
Variable
getMaxSizeLimit
in interface Variable
public boolean hasDefaultValue()
Variable
hasDefaultValue
in interface Variable
public String getDefaultValue()
Variable
getDefaultValue
in interface Variable
public boolean isText()
Variable
Text
public Element unwrap()
unwrap
in interface Identifiable
public TypeMirror asTypeMirror()
asTypeMirror
in interface Identifiable
public Type asType()
asType
in interface Identifiable
public String getName()
getName
in interface Identifiable
public boolean isReservedIdentifier()
Identifiable
isReservedIdentifier
in interface Identifiable
public boolean isPublic()
isPublic
in interface Accessible
public boolean isPrivate()
isPrivate
in interface Accessible
public boolean isProtected()
isProtected
in interface Accessible
public boolean isAbstract()
isAbstract
in interface Accessible
public boolean isFinal()
isFinal
in interface Accessible
public boolean isStatic()
isStatic
in interface Accessible
public List<? extends AnnotationMirror> getAnnotationMirrors()
Annotable
getAnnotationMirrors
in interface Annotable
public <A extends Annotation> A getAnnotation(Class<A> aClass)
Annotable
getAnnotation
in interface Annotable
A
- the annotation typeaClass
- the Class object corresponding to the annotation typepublic boolean hasJavaDocTag(String tagName)
Documentable
hasJavaDocTag
in interface Documentable
tagName
- The name of the javadoc tag to checkpublic String getJavaDocSummary()
getJavaDocSummary
in interface Documentable
public String getJavaDocTagContent(String tagName)
getJavaDocTagContent
in interface Documentable
public String getJavaDocParameterSummary(String paramName)
getJavaDocParameterSummary
in interface Documentable
public String getThrowsComment(String exceptionClassName)
Documentable
getThrowsComment
in interface Documentable
public List<Type> getTypeArguments()
getTypeArguments
in interface Generifiable
public List<Type> getXmlDeclaredChilds()
getXmlDeclaredChilds
in interface Generifiable
public boolean hasTypeArguments()
hasTypeArguments
in interface Generifiable
public Identifiable parent()
parent
in interface Parentable
public void accept(ModelVisitor visitor)
accept
in interface Identifiable
public String getAlternativeName()
Variable
getAlternativeName
in interface Variable
public boolean isRefOnly()
Variable
public boolean hasEmailPattern()
Variable
hasEmailPattern
in interface Variable
public String getEmailDomain()
Variable
getEmailDomain
in interface Variable
public boolean hasDefaultEmailDomain()
Variable
hasDefaultEmailDomain
in interface Variable
public boolean isMetaDataKey()
Variable
MetaDataKeyParam
isMetaDataKey
in interface Variable
public boolean isMetaDataStaticKey()
Variable
MetaDataStaticKey
isMetaDataStaticKey
in interface Variable
public boolean hasAnnotation(Class<? extends Annotation> aClazz)
Annotable
hasAnnotation
in interface Annotable
aClazz
- Annotation Classpublic boolean hasDefaultPayload()
Parameter
Payload
or the given element has default value equals to #[payload]hasDefaultPayload
in interface Parameter
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.