public class ExtendedBeanProperty extends Object implements com.fasterxml.jackson.databind.BeanProperty
ExtendedBeanProperty class extends on Jackson's
BeanProperty to provide support for querying repeatable annotations.| Constructor and Description |
|---|
ExtendedBeanProperty(com.fasterxml.jackson.databind.BeanProperty bean)
Instantiates a new
ExtendedBeanProperty object. |
| Modifier and Type | Method and Description |
|---|---|
void |
depositSchemaProperty(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor objectVisitor) |
com.fasterxml.jackson.annotation.JsonFormat.Value |
findFormatOverrides(com.fasterxml.jackson.databind.AnnotationIntrospector intr) |
<A extends Annotation> |
getAnnotation(Class<A> acls) |
<A extends Annotation> |
getAnnotationByType(Class<A> acls)
Method for finding annotations associated with this property;
meaning annotations associated with one of entities used to
access property.
|
com.fasterxml.jackson.databind.BeanProperty |
getBean()
Gets the underlying bean.
|
<A extends Annotation> |
getContextAnnotation(Class<A> acls) |
<A extends Annotation> |
getContextAnnotationByType(Class<A> acls)
Method for finding annotation associated with context of
this property; usually class in which member is declared
(or its subtype if processing subtype).
|
com.fasterxml.jackson.databind.PropertyName |
getFullName() |
com.fasterxml.jackson.databind.introspect.AnnotatedMember |
getMember() |
com.fasterxml.jackson.databind.PropertyMetadata |
getMetadata() |
String |
getName() |
com.fasterxml.jackson.databind.JavaType |
getType() |
com.fasterxml.jackson.databind.PropertyName |
getWrapperName() |
boolean |
isRequired() |
String |
toString() |
public ExtendedBeanProperty(com.fasterxml.jackson.databind.BeanProperty bean)
ExtendedBeanProperty object.bean - the bean to wrap and extendpublic com.fasterxml.jackson.databind.BeanProperty getBean()
null underlying beanpublic String getName()
getName in interface com.fasterxml.jackson.databind.BeanPropertygetName in interface com.fasterxml.jackson.databind.util.NamedBeanProperty.getName()public com.fasterxml.jackson.databind.PropertyName getFullName()
getFullName in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.getFullName()public com.fasterxml.jackson.databind.JavaType getType()
getType in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.getType()public com.fasterxml.jackson.databind.PropertyName getWrapperName()
getWrapperName in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.getWrapperName()public com.fasterxml.jackson.databind.PropertyMetadata getMetadata()
getMetadata in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.getMetadata()public boolean isRequired()
isRequired in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.isRequired()public <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.getAnnotation(java.lang.Class)public <A extends Annotation> A[] getAnnotationByType(Class<A> acls)
Note: This method should only be called for custom annotations;
access to standard Jackson annotations (or ones supported by
alternate AnnotationIntrospectors) should be accessed
through AnnotationIntrospector.
The difference between this method and getAnnotation(Class)
is that this method detects if its argument is a repeatable
annotation type (JLS 9.6), and if so, attempts to find one or
more annotations of that type by "looking through" a container
annotation.
The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.
acls - the class object corresponding to the annotation typeNullPointerException - if the given annotation class is nullInternalError - if the annotation is repeatable but not defined properlypublic <A extends Annotation> A getContextAnnotation(Class<A> acls)
getContextAnnotation in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.getContextAnnotation(java.lang.Class)public <A extends Annotation> A[] getContextAnnotationByType(Class<A> acls)
Note: This method should only be called for custom annotations;
access to standard Jackson annotations (or ones supported by
alternate AnnotationIntrospectors) should be accessed
through AnnotationIntrospector.
The difference between this method and getContextAnnotation(Class)
is that this method detects if its argument is a repeatable
annotation type (JLS 9.6), and if so, attempts to find one or
more annotations of that type by "looking through" a container
annotation.
The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.
acls - the class object corresponding to the annotation typeNullPointerException - if the given annotation class is nullInternalError - if the annotation is repeatable but not defined properlypublic com.fasterxml.jackson.databind.introspect.AnnotatedMember getMember()
getMember in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.getMember()public com.fasterxml.jackson.annotation.JsonFormat.Value findFormatOverrides(com.fasterxml.jackson.databind.AnnotationIntrospector intr)
findFormatOverrides in interface com.fasterxml.jackson.databind.BeanPropertyBeanProperty.findFormatOverrides(com.fasterxml.jackson.databind.AnnotationIntrospector)public void depositSchemaProperty(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor objectVisitor)
throws com.fasterxml.jackson.databind.JsonMappingException
depositSchemaProperty in interface com.fasterxml.jackson.databind.BeanPropertycom.fasterxml.jackson.databind.JsonMappingExceptionBeanProperty.depositSchemaProperty(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor)public String toString()
toString in class ObjectObject.toString()Copyright (C) 2015-2015 The Helenus Driver Project Authors.