Top Description Inners Fields Constructors Methods
com.univocity.parsers.annotations.helpers

public Class AnnotationRegistry

extends Object
Class Inheritance
Imports
java.lang.annotation.*, java.lang.reflect.*, java.util.*

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final Map<AnnotatedElement, AnnotationRegistry.FieldAnnotations>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final synchronized <
the expected value type to be returned by this method.
T
>
T

Returns:

the value associated with the given annotation property.
getValue
(AnnotatedElement
a method or field that has an annotation whose properties might have been changed by a com.univocity.parsers.annotations.Copy annotation
annotatedElement
,
Annotation
the possibly altered annotation of the given annotatedElement
annotation
,
String
the attribute of the possibly altered annotation
attribute
,
T
the value to return from the unmodified annotation, if it has not been changed by a com.univocity.parsers.annotations.Copy
valueIfNull
)

Returns the a value to a given annotation attribute that might have been modified by a com.univocity.parsers.annotations.Copy annotation

pack-priv static final synchronized Object

Returns:

the value associated with the given annotation property, or null if it has not been modified by a com.univocity.parsers.annotations.Copy
getValue
(AnnotatedElement
a method or field that has an annotation whose properties might have been changed by a com.univocity.parsers.annotations.Copy annotation
annotatedElement
,
Annotation
the possibly altered annotation of the given annotatedElement
annotation
,
String
the attribute of the possibly altered annotation
attribute
)

Returns the a value to a given annotation attribute that might have been modified by a com.univocity.parsers.annotations.Copy annotation

public static final void
pack-priv static final synchronized void
setValue(AnnotatedElement
a method or field that has an annotation whose properties are changed by a com.univocity.parsers.annotations.Copy annotation
annotatedElement
,
Annotation
the altered annotation of the given annotatedElement
annotation
,
String
the attribute of the altered annotation
attribute
,
Object
the value of the given attribute of the altered annotation.
newValue
)

Associates a value to a given annotation attribute

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

modifiedAnnotationsback to summary
private static final Map<AnnotatedElement, AnnotationRegistry.FieldAnnotations> modifiedAnnotations

Constructor Detail

AnnotationRegistryback to summary
public AnnotationRegistry()

Method Detail

getValueback to summary
public static final synchronized <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 com.univocity.parsers.annotations.Copy annotation

Parameters
<T>
the expected value type to be returned by this method.
annotatedElement:AnnotatedElement

a method or field that has an annotation whose properties might have been changed by a com.univocity.parsers.annotations.Copy annotation

annotation:Annotation

the possibly altered annotation of the given annotatedElement

attribute:String

the attribute of the possibly altered annotation

valueIfNull:T

the value to return from the unmodified annotation, if it has not been changed by a com.univocity.parsers.annotations.Copy

Returns:T

the value associated with the given annotation property.

getValueback to summary
pack-priv static final synchronized Object getValue(AnnotatedElement annotatedElement, Annotation annotation, String attribute)

Returns the a value to a given annotation attribute that might have been modified by a com.univocity.parsers.annotations.Copy annotation

Parameters
annotatedElement:AnnotatedElement

a method or field that has an annotation whose properties might have been changed by a com.univocity.parsers.annotations.Copy annotation

annotation:Annotation

the possibly altered annotation of the given annotatedElement

attribute:String

the attribute of the possibly altered annotation

Returns:Object

the value associated with the given annotation property, or null if it has not been modified by a com.univocity.parsers.annotations.Copy

resetback to summary
public static final void reset()
setValueback to summary
pack-priv static final synchronized void setValue(AnnotatedElement annotatedElement, Annotation annotation, String attribute, Object newValue)

Associates a value to a given annotation attribute

Parameters
annotatedElement:AnnotatedElement

a method or field that has an annotation whose properties are changed by a com.univocity.parsers.annotations.Copy annotation

annotation:Annotation

the altered annotation of the given annotatedElement

attribute:String

the attribute of the altered annotation

newValue:Object

the value of the given attribute of the altered annotation.

com.univocity.parsers.annotations.helpers back to summary

private Class AnnotationRegistry.AnnotationAttributes

extends Object
Class Inheritance
  • java.lang.Object
  • com.univocity.parsers.annotations.helpers.AnnotationRegistry.AnnotationAttributes

Field Summary

Modifier and TypeField and Description
private Map<String, Object>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Object
getAttribute(String attribute)

private void
setAttribute(String attribute, Object newValue)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributesback to summary
private Map<String, Object> attributes

Constructor Detail

AnnotationAttributesback to summary
private AnnotationAttributes()

Method Detail

getAttributeback to summary
private Object getAttribute(String attribute)
setAttributeback to summary
private void setAttribute(String attribute, Object newValue)
com.univocity.parsers.annotations.helpers back to summary

private Class AnnotationRegistry.FieldAnnotations

extends Object
Class Inheritance
  • java.lang.Object
  • com.univocity.parsers.annotations.helpers.AnnotationRegistry.FieldAnnotations

Field Summary

Modifier and TypeField and Description
private Map<Annotation, AnnotationRegistry.AnnotationAttributes>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Object
getValue(Annotation annotation, String attribute)

private void
setValue(Annotation annotation, String attribute, Object newValue)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationsback to summary
private Map<Annotation, AnnotationRegistry.AnnotationAttributes> annotations

Constructor Detail

FieldAnnotationsback to summary
private FieldAnnotations()

Method Detail

getValueback to summary
private Object getValue(Annotation annotation, String attribute)
setValueback to summary
private void setValue(Annotation annotation, String attribute, Object newValue)