Class TransformedHeader
java.lang.Object
com.univocity.parsers.annotations.helpers.TransformedHeader
A pair associating a Field of an annotated class to an optional
HeaderTransformer obtained from
Nested.headerTransformer() when nested classes are used to process beans.- Author:
- Univocity Software Pty Ltd - dev@univocity.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()intReturns the index that determines which column the current field represents, as specified byParsed.index()Returns the name to be used as a header based on a given field and itsParsedannotation.Returns theAnnotatedElementused to read/write values from/to.Returns the original attribute name of the field in its containing class.booleanReturnstrueif thisAnnotatedElementis aMethodwith no parameters and a return type which can only be used for reading values from the java bean.booleanReturnstrueif thisAnnotatedElementis aMethodwith parameters and can only be used for writing values into the java bean.
-
Constructor Details
-
TransformedHeader
-
-
Method Details
-
getHeaderName
-
getHeaderIndex
public int getHeaderIndex()Returns the index that determines which column the current field represents, as specified byParsed.index()- Returns:
- the current header index.
-
getTargetName
Returns the original attribute name of the field in its containing class.- Returns:
- the original attribute name of the field
-
getTarget
Returns theAnnotatedElementused to read/write values from/to.- Returns:
- the field or method being manipulated by the parser/writer when processing java beans
-
isWriteOnly
public boolean isWriteOnly()Returnstrueif thisAnnotatedElementis aMethodwith parameters and can only be used for writing values into the java bean.- Returns:
- a flag indicating whether this is a method that allows writing values only.
-
isReadOly
public boolean isReadOly()Returnstrueif thisAnnotatedElementis aMethodwith no parameters and a return type which can only be used for reading values from the java bean.- Returns:
- a flag indicating whether this is a method that allows reading values only.
-
describe
-