public abstract class AnnotationProcessorVariable<P extends Identifiable> extends AnnotationProcessorIdentifiable<VariableElement> implements Variable<P>
Modifier and Type | Field and Description |
---|---|
protected P |
parent |
components, elements, innerElement, types
Constructor and Description |
---|
AnnotationProcessorVariable(VariableElement variableElement,
P parent,
Types types,
Elements elements) |
Modifier and Type | Method and Description |
---|---|
String |
getAlternativeName()
Alternative name of the attribute to be generated
|
String |
getDefaultValue()
Returns the given element's default value
|
String |
getEmailDomain()
Returns the email domain if one configured otherwise empty domain
|
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 |
getPattern()
Returns the pattern
|
boolean |
hasDefaultEmailDomain()
Whether the email has an default domain or not
|
boolean |
hasDefaultValue()
Whether the given element is has a default value
|
boolean |
hasEmailPattern()
Whether the given element is has a default value
|
boolean |
hasPattern()
Whether the given element has pattern
|
boolean |
hasSizeLimit()
Whether the given element has a size limit
|
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 |
isQuery()
If the variable is annotated with
Query |
boolean |
isRefOnly()
The variable can be passed by reference only.
|
boolean |
isText()
Returns true if the variable is annotated with
Text |
P |
parent() |
asType, asTypeMirror, equals, getAnnotation, getAnnotationFieldValue, getAnnotationMirrors, getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getName, getThrowsComment, getTypeArguments, getXmlDeclaredChilds, hasAnnotation, hashCode, hasJavaDocTag, hasTypeArguments, isAbstract, isFinal, isPrivate, isProtected, isPublic, isReservedIdentifier, isStatic, unwrap
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
accept, asType, asTypeMirror, getName, isReservedIdentifier, unwrap
getAnnotation, getAnnotationMirrors, hasAnnotation
getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getThrowsComment, hasJavaDocTag
isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic
getTypeArguments, getXmlDeclaredChilds, hasTypeArguments
protected P extends Identifiable parent
public AnnotationProcessorVariable(VariableElement variableElement, P parent, Types types, Elements elements)
public String getJavaType()
Variable
getJavaType
in interface Variable<P extends Identifiable>
public boolean hasSizeLimit()
Variable
hasSizeLimit
in interface Variable<P extends Identifiable>
public int getMinSizeLimit()
Variable
getMinSizeLimit
in interface Variable<P extends Identifiable>
public int getMaxSizeLimit()
Variable
getMaxSizeLimit
in interface Variable<P extends Identifiable>
public boolean hasPattern()
Variable
hasPattern
in interface Variable<P extends Identifiable>
public String getPattern()
Variable
getPattern
in interface Variable<P extends Identifiable>
public boolean hasEmailPattern()
Variable
hasEmailPattern
in interface Variable<P extends Identifiable>
public String getEmailDomain()
Variable
getEmailDomain
in interface Variable<P extends Identifiable>
public boolean hasDefaultEmailDomain()
Variable
hasDefaultEmailDomain
in interface Variable<P extends Identifiable>
public boolean isOptional()
Variable
isOptional
in interface Variable<P extends Identifiable>
public boolean isPayload()
Variable
Payload
isPayload
in interface Variable<P extends Identifiable>
public boolean hasDefaultValue()
Variable
hasDefaultValue
in interface Variable<P extends Identifiable>
public boolean isText()
Variable
Text
isText
in interface Variable<P extends Identifiable>
public String getDefaultValue()
Variable
getDefaultValue
in interface Variable<P extends Identifiable>
public P parent()
parent
in interface Parentable<P extends Identifiable>
public String getAlternativeName()
Variable
getAlternativeName
in interface Variable<P extends Identifiable>
public boolean isRefOnly()
Variable
isRefOnly
in interface Variable<P extends Identifiable>
public boolean isMetaDataKey()
Variable
MetaDataKeyParam
isMetaDataKey
in interface Variable<P extends Identifiable>
public boolean isMetaDataStaticKey()
Variable
MetaDataStaticKey
isMetaDataStaticKey
in interface Variable<P extends Identifiable>
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.