Interface PokemonConverterProxy
- All Known Implementing Classes:
ShowdownConverter
public interface PokemonConverterProxy
Represents a converter that is used for converting a
Pokemon
to and from a given text format-
Method Summary
Modifier and TypeMethodDescriptiongetColorfulExportText
(Pokemon data) Used for converting thePokemon
to the formatted text colorfullygetExportText
(Pokemon data) Used for converting thePokemon
to the formatted textgetExportText
(Pokemon... pokemon) getExportText
(PartyStorage party) getExportText
(Collection<Pokemon> pokemon) default String
getFormattedExportedText
(Pokemon... pokemon) Converts the givenPokemon
into a new line seperated formatted textdefault String
Converts the givenPokemon
in the givenPartyStorage
into a new line seperated formatted textdefault String
getFormattedExportedText
(Collection<Pokemon> pokemon) Converts the givenPokemon
into a new line seperated formatted textimportText
(String importText) Imports formatted text to a Pokemon instanceimportText
(String... importText) Imports formatted text to a Pokemon instanceimportText
(Collection<String> importText) Imports formatted text to a Pokemon instance
-
Method Details
-
getFormattedExportedText
Converts the givenPokemon
in the givenPartyStorage
into a new line seperated formatted text- Parameters:
party
- The party converted- Returns:
- The exported text
-
getFormattedExportedText
Converts the givenPokemon
into a new line seperated formatted text- Parameters:
pokemon
- The pokemon converted- Returns:
- The exported text
-
getFormattedExportedText
Converts the givenPokemon
into a new line seperated formatted text- Parameters:
pokemon
- The pokemon converted- Returns:
- The exported text
-
getExportText
- Parameters:
party
- The party converted- Returns:
- The exported text
-
getExportText
- Parameters:
pokemon
- The pokemon converted- Returns:
- The exported text
-
getExportText
- Parameters:
pokemon
- The pokemon converted- Returns:
- The exported text
-
getExportText
Used for converting thePokemon
to the formatted text- Parameters:
data
- The pokemon being converted- Returns:
- The formatted text
-
getColorfulExportText
Used for converting thePokemon
to the formatted text colorfully- Parameters:
data
- The pokemon being converted- Returns:
- The colorful formatted text
-
importText
Imports formatted text to a Pokemon instance- Parameters:
importText
- The formatted text- Returns:
- The Pokemon instance
- Throws:
PokemonImportException
- thrown when there's an error with the given text
-
importText
Imports formatted text to a Pokemon instance- Parameters:
importText
- The formatted text- Returns:
- The Pokemon instance
- Throws:
PokemonImportException
- thrown when there's an error with the given text
-
importText
Imports formatted text to a Pokemon instance- Parameters:
importText
- The formatted text- Returns:
- The Pokemon instance
- Throws:
PokemonImportException
- thrown when there's an error with the given text
-