|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fulmine.model.field.FieldUtils
public abstract class FieldUtils
Provides utility methods for working with IField
instances
Field Summary | |
---|---|
static String |
CREATE_FROM_NATIVE
The name of a field that is created from a native type. |
Constructor Summary | |
---|---|
FieldUtils()
|
Method Summary | ||
---|---|---|
static IField |
createFromNative(Object nativeObject)
Convert an object from its native object to a framework object |
|
static
|
createFromString(Class<? extends IField> field,
String fieldName,
String fieldValue)
Create an instance of an IField using the parameters passed in. |
|
static
|
createFromString(String simpleClassName,
String fieldName)
Create an instance of an IField using the simple class name and
the name for the field |
|
static
|
createFromString(String simpleClassName,
String fieldName,
byte application,
short permission)
Create an instance of an IField using the simple class name and
the name for the field |
|
static Class<? extends IField> |
getFrameworkClass(Class<?> nativeType)
Convert the native class to the framework class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CREATE_FROM_NATIVE
createFromNative(Object)
,
Constant Field ValuesConstructor Detail |
---|
public FieldUtils()
Method Detail |
---|
public static <T extends IField> T createFromString(Class<? extends IField> field, String fieldName, String fieldValue)
IField
using the parameters passed in.
The (String, String) constructor for the field class is located and
invoked.
T
- field
- the field Class
fieldName
- the field namefieldValue
- the field value
public static <T extends IField> T createFromString(String simpleClassName, String fieldName)
IField
using the simple class name and
the name for the field
T
- simpleClassName
- the simple class name, e.g. StringFieldfieldName
- the name for the field
public static <T extends IField> T createFromString(String simpleClassName, String fieldName, byte application, short permission)
IField
using the simple class name and
the name for the field
T
- simpleClassName
- the simple class name, e.g. StringFieldfieldName
- the name for the fieldapplication
- the application code for the fieldpermission
- the permission code for the field
public static IField createFromNative(Object nativeObject)
nativeObject
- the object to convert
IllegalArgumentException
- if the native object is not supportedpublic static Class<? extends IField> getFrameworkClass(Class<?> nativeType)
nativeType
- the native class type
IllegalArgumentException
- if the native class is not compatible with the framework
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |