com.univocity.parsers.annotations.helpers
Class AnnotationRegistry

java.lang.Object
  extended by com.univocity.parsers.annotations.helpers.AnnotationRegistry

public class AnnotationRegistry
extends Object

An internal registry of annotated elements and their properties that have been set via a Copy annotation.


Constructor Summary
AnnotationRegistry()
           
 
Method Summary
static
<T> T
getValue(AnnotatedElement annotatedElement, Annotation annotation, String attribute, T valueIfNull)
          Returns the a value to a given annotation attribute that might have been modified by a Copy annotation
static void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationRegistry

public AnnotationRegistry()
Method Detail

getValue

public static final <T> T getValue(AnnotatedElement annotatedElement,
                                   Annotation annotation,
                                   String attribute,
                                   T valueIfNull)
Returns the a value to a given annotation attribute that might have been modified by a Copy annotation

Type Parameters:
T - the expected value type to be returned by this method.
Parameters:
annotatedElement - a method or field that has an annotation whose properties might have been changed by a Copy annotation
annotation - the possibly altered annotation of the given annotatedElement
attribute - the attribute of the possibly altered annotation
valueIfNull - the value to return from the unmodified annotation, if it has not been changed by a Copy
Returns:
the value associated with the given annotation property.

reset

public static final void reset()


Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.