Class 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 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 speaker
        language - 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object