public class PokemonConverterFactory
extends java.lang.Object
PokemonConverterProxy
and PokemonConverterRegistry
Constructor and Description |
---|
PokemonConverterFactory() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getExportText(java.util.Collection<Pokemon> pokemon)
Converts the given
Pokemon into a List of formatted text |
static java.util.List<java.lang.String> |
getExportText(PartyStorage party)
|
static java.util.List<java.lang.String> |
getExportText(Pokemon... pokemon)
Converts the given
Pokemon into a List of formatted text |
static java.lang.String |
getExportText(Pokemon data)
Used for converting the
Pokemon to the formatted text |
static java.lang.String |
getFormattedExportedText(java.util.Collection<Pokemon> pokemon)
Converts the given
Pokemon into a new line seperated formatted text |
static java.lang.String |
getFormattedExportedText(PartyStorage party)
Converts the given
Pokemon in the given PartyStorage into a new line seperated formatted text |
static java.lang.String |
getFormattedExportedText(Pokemon... pokemon)
Converts the given
Pokemon into a new line seperated formatted text |
static java.util.List<Pokemon> |
importText(java.util.Collection<java.lang.String> importText)
Imports formatted text to a Pokemon instance
|
static java.util.List<Pokemon> |
importText(java.lang.String... importText)
Imports formatted text to a Pokemon instance
|
static Pokemon |
importText(java.lang.String importText)
Imports formatted text to a Pokemon instance
|
public static java.lang.String getFormattedExportedText(PartyStorage party)
Pokemon
in the given PartyStorage
into a new line seperated formatted textparty
- The party convertedpublic static java.lang.String getFormattedExportedText(java.util.Collection<Pokemon> pokemon)
Pokemon
into a new line seperated formatted textpokemon
- The pokemon convertedpublic static java.lang.String getFormattedExportedText(Pokemon... pokemon)
Pokemon
into a new line seperated formatted textpokemon
- The pokemon convertedpublic static java.util.List<java.lang.String> getExportText(PartyStorage party)
party
- The party convertedpublic static java.util.List<java.lang.String> getExportText(java.util.Collection<Pokemon> pokemon)
Pokemon
into a List
of formatted textpokemon
- The pokemon convertedpublic static java.util.List<java.lang.String> getExportText(Pokemon... pokemon)
Pokemon
into a List
of formatted textpokemon
- The pokemon convertedpublic static java.lang.String getExportText(Pokemon data)
Pokemon
to the formatted textdata
- The pokemon being convertedpublic static java.util.List<Pokemon> importText(java.util.Collection<java.lang.String> importText) throws PokemonImportException
importText
- The formatted textPokemonImportException
- thrown when there's an error with the given textpublic static java.util.List<Pokemon> importText(java.lang.String... importText) throws PokemonImportException
importText
- The formatted textPokemonImportException
- thrown when there's an error with the given textpublic static Pokemon importText(java.lang.String importText) throws PokemonImportException
importText
- The formatted textPokemonImportException
- thrown when there's an error with the given text