public class FieldMetadata
extends java.lang.Object
Constructor and Description |
---|
FieldMetadata(java.lang.String field,
java.lang.String type)
Creates a field metadata.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldName() |
java.lang.String |
getFieldType() |
static java.lang.String |
getInternalPrimitiveType(java.lang.String string)
Gets the internal notation for primitive type.
|
static java.lang.String |
getPrimitiveTypeByClass(java.lang.Class clazz)
Gets the iPOJO primitive type from the given primitive class.
|
static java.lang.String |
getReflectionType(java.lang.String type)
Gets the 'reflective' type of the given type.
|
public FieldMetadata(java.lang.String field, java.lang.String type)
PojoMetadata
.
Be care that creating such FieldMetadata
does not assert its
presence in the implementation class.field
- the field name.type
- the type of the field.public java.lang.String getFieldName()
public java.lang.String getFieldType()
public static java.lang.String getReflectionType(java.lang.String type)
type
- the type to analyze to find the Java reflective type.public static java.lang.String getInternalPrimitiveType(java.lang.String string)
string
- the String form of the typenull
if not foundpublic static java.lang.String getPrimitiveTypeByClass(java.lang.Class clazz)
clazz
- the class of the primitive typenull
if
not found.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.