java.lang.Object
gg.xp.xivapi.mappers.util.MappingUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFieldName(Method method) Given a method, determine the name of the XivApi field to use.static booleanisArrayQueryType(Class<?> type) Check whether a field should have [] suffixed to it in the fields param.static XivApiSchemaVersionmakeSchemaVersion(String version) static booleanstatic intmethodMapHashCode(Map<Method, Object> map) static Class<?> parameterizedTypeToRawClass(Type typeOriginal) static booleanunknownValueEquals(Object left, Object right) static StringvalidateAndGetSheetName(Class<?> cls)
-
Field Details
-
ALL_LANGS
-
-
Method Details
-
getFieldName
Given a method, determine the name of the XivApi field to use.- Parameters:
method- The method- Returns:
- The name
- Throws:
XivApiMappingException- if the method neither has an appropriate name nor an appropriate annotation.
-
isArrayQueryType
Check whether a field should have [] suffixed to it in the fields param. i.e. returns true iff the type is a list or array.- Parameters:
type- The type to check- Returns:
- True if list/array.
-
validateAndGetSheetName
-
parameterizedTypeToRawClass
-
makeSchemaVersion
-
methodMapEquals
-
methodMapHashCode
-
unknownValueEquals
-