Package nl.rrd.wool.parser
Class WoolFileDescription
- java.lang.Object
-
- nl.rrd.wool.parser.WoolFileDescription
-
public class WoolFileDescription extends Object
This class describes a WOOL file. This can be a ".wool" dialogue file or a ".json" translation file.
-
-
Constructor Summary
Constructors Constructor Description WoolFileDescription()WoolFileDescription(String mainSpeaker, String language, String fileName)Constructs a new description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFileName()Returns the file name.StringgetLanguage()Return the language code (for example en_GB).StringgetMainSpeaker()Returns the main speaker.inthashCode()voidsetFileName(String fileName)Sets the file name.voidsetLanguage(String language)Sets the language code (for example en_GB).voidsetMainSpeaker(String mainSpeaker)Sets the main speaker.StringtoString()
-
-
-
Constructor Detail
-
WoolFileDescription
public WoolFileDescription()
-
WoolFileDescription
public WoolFileDescription(String mainSpeaker, String language, String fileName)
Constructs a new description. The file name can be a ".wool" dialogue file or a ".json" translation file.- Parameters:
mainSpeaker- the main speakerlanguage- the language code (for example en_GB)fileName- the file name (.wool or .json)
-
-
Method Detail
-
getMainSpeaker
public String getMainSpeaker()
Returns the main speaker.- Returns:
- the main speaker
-
getLanguage
public String getLanguage()
Return the language code (for example en_GB).- Returns:
- the language code (for example en_GB)
-
getFileName
public String getFileName()
Returns the file name. This can be a ".wool" dialogue file or a ".json" translation file.- Returns:
- the file name (.wool or .json)
-
setMainSpeaker
public void setMainSpeaker(String mainSpeaker)
Sets the main speaker.- Parameters:
mainSpeaker- the main speaker
-
setLanguage
public void setLanguage(String language)
Sets the language code (for example en_GB).- Parameters:
language- the language code (for example en_GB)
-
setFileName
public void setFileName(String fileName)
Sets the file name. This can be a ".wool" dialogue file or a ".json" translation file.- Parameters:
fileName- the file name (.wool or .json)
-
-