Class HandledNameConverter
java.lang.Object
me.datafox.dfxengine.text.converter.HandledNameConverter
- All Implemented Interfaces:
NameConverter<Handled>
A
NameConverter that uses Handled.getHandle() followed by Handle.getId() as the singular
form. It is not capable of generating the plural form on its own.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HandledNameConverter
public HandledNameConverter()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceNameConverter<Handled>- Returns:
- type of the object that this converter can convert. Always returns
Handled.class
-
isPluralCapable
public boolean isPluralCapable()- Specified by:
isPluralCapablein interfaceNameConverter<Handled>- Returns:
trueif this converter can also convert to plural form. Always returnsfalse
-
convert
- Specified by:
convertin interfaceNameConverter<Handled>- Parameters:
object- object to be converted- Returns:
- name of the object in singular form
-
convertPlural
- Specified by:
convertPluralin interfaceNameConverter<Handled>- Parameters:
object- ignored parameter- Returns:
- name of the object in singular form, or
nullif this converter does not support plural form. Always returnsnull
-