|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.parser.FieldMetadata
public class FieldMetadata
A Field Metadata represents a field of the implementation class. This class avoids using reflection to get the type and the name of a field.
Constructor Summary | |
---|---|
FieldMetadata(String field,
String type)
Creates a field metadata. |
Method Summary | |
---|---|
String |
getFieldName()
|
String |
getFieldType()
|
static String |
getInternalPrimitiveType(String string)
Gets the internal notation for primitive type. |
static String |
getPrimitiveTypeByClass(Class clazz)
Gets the iPOJO primitive type from the given primitive class. |
static String |
getReflectionType(String type)
Gets the 'reflective' type of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldMetadata(String field, 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.Method Detail |
---|
public String getFieldName()
public String getFieldType()
public static String getReflectionType(String type)
type
- the type to analyze to find the Java reflective type.
public static String getInternalPrimitiveType(String string)
string
- the String form of the type
null
if not foundpublic static String getPrimitiveTypeByClass(Class clazz)
clazz
- the class of the primitive type
null
if
not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |