Package com.landawn.abacus.parser
Class ParserUtil.PropInfo
- java.lang.Object
-
- com.landawn.abacus.parser.ParserUtil.PropInfo
-
- Enclosing class:
- ParserUtil
public static class ParserUtil.PropInfo extends Object
The Class PropInfo.
-
-
Field Summary
Fields Modifier and Type Field Description ImmutableMap<Class<? extends Annotation>,Annotation>
annotations
Class<Object>
clazz
The clazz.u.Optional<String>
columnName
com.landawn.abacus.type.Type<Object>
dbType
The db type.Class<Object>
declaringClass
Field
field
The field.Method
getMethod
The get method.com.landawn.abacus.type.Type<Object>
jsonXmlType
The json xml type.String
name
The name.Method
setMethod
The set method.com.landawn.abacus.type.Type<Object>
type
The type.
-
Constructor Summary
Constructors Constructor Description PropInfo(String propName, Field field, Method getMethod, JsonXmlConfig jsonXmlConfig, ImmutableMap<Class<? extends Annotation>,Annotation> classAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
<T extends Annotation>
TgetAnnotation(Class<T> annotationClass)
<T> T
getPropValue(Object obj)
Gets the prop value.int
hashCode()
boolean
isAnnotationPresent(Class<? extends Annotation> annotationClass)
Object
readPropValue(String strValue)
Read prop value.void
setPropValue(Object obj, Object propValue)
Sets the prop value.String
toString()
void
writePropValue(CharacterWriter writer, Object x, SerializationConfig<?> config)
Write prop value.
-
-
-
Field Detail
-
name
public final String name
The name.
-
type
public final com.landawn.abacus.type.Type<Object> type
The type.
-
field
public final Field field
The field.
-
getMethod
public final Method getMethod
The get method.
-
setMethod
public final Method setMethod
The set method.
-
annotations
public final ImmutableMap<Class<? extends Annotation>,Annotation> annotations
-
jsonXmlType
public final com.landawn.abacus.type.Type<Object> jsonXmlType
The json xml type.
-
dbType
public final com.landawn.abacus.type.Type<Object> dbType
The db type.
-
columnName
public final u.Optional<String> columnName
-
-
Constructor Detail
-
PropInfo
public PropInfo(String propName, Field field, Method getMethod, JsonXmlConfig jsonXmlConfig, ImmutableMap<Class<? extends Annotation>,Annotation> classAnnotations)
-
-
Method Detail
-
getPropValue
public <T> T getPropValue(Object obj)
Gets the prop value.- Type Parameters:
T
-- Parameters:
obj
-- Returns:
-
setPropValue
public void setPropValue(Object obj, Object propValue)
Sets the prop value.- Parameters:
obj
-propValue
-
-
readPropValue
public Object readPropValue(String strValue)
Read prop value.- Parameters:
strValue
-- Returns:
-
writePropValue
public void writePropValue(CharacterWriter writer, Object x, SerializationConfig<?> config) throws IOException
Write prop value.- Parameters:
writer
-x
-config
-- Throws:
IOException
- Signals that an I/O exception has occurred.
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
-
equals
public boolean equals(Object obj)
-
-