Class FromMethod
java.lang.Object
dxt.moe.lib.mod2obj.FromMethod
- Direct Known Subclasses:
BlankLinear, BlankMapped, Setter
Represents a method that is used to convert a nested data model item into a Java object. The
method must be private, non-static, and return void. The method must also be annotated with the
MapFrom annotation, which specifies the data key that is used to identify the nested data
in the model.- Author:
- indroneel
-
Constructor Details
-
FromMethod
-
-
Method Details
-
getDataKey
Returns the data key associated with this method. The data key is used to identify the nested data in the model that will be converted.- Returns:
- the data key
-
getMethod
Returns the method that this FromMethod instance represents. The method is used to set the value of the converted data in the target object.- Returns:
- the method that is used to convert the data
-
getInputType
Returns the input type that the method accepts. The library will use this type to determine how to convert the data model item into the appropriate (Java) input type.- Returns:
- the input type of the method
-