@ file : Suppress (" UN CHECK ED _ CAST ") Ċ Ċ package Ġru . hh . plugins . ge min io . sdk . recipe . parsers . pre defined Ċ Ċ import Ġru . hh . plugins . ge min io . sdk . recipe . models . pre defined . Pre defined Feature Ċ import Ġru . hh . plugins . ge min io . sdk . recipe . models . pre defined . Pre defined Features Section Ċ import Ġru . hh . plugins . ge min io . sdk . recipe . parsers . Parsers Errors Factory . section Unknown Enum Key ErrorMessage ĊĊ Ċ private Ġconst Ġval ĠKEY _ PRE DEFINED _ FEATURES _ SECTION Ġ= Ġ" pre defined Features " ĊĊ Ċ /** Ċ Ġ* ĠParser Ġfrom ĠYAML Ġto Ġ[ ru . hh . plugins . ge min io . sdk . recipe . models . pre defined . Pre defined Features Section ]. Ċ Ġ*/ Ċ internal Ġfun ĠMap < String , ĠAny >. to Pre defined Features Section (): ĠPre defined Features Section Ġ{ ĊĠĠĠ Ġval Ġfeatures List Ġ= Ġthis [ KEY _ PRE DEFINED _ FEATURES _ SECTION ] Ġas ? ĠList < String > ĊĠĠĠĠĠĠĠ Ġ?: Ġreturn ĠPre defined Features Section ( empty Set ()) ĊĊĠĠĠ Ġreturn ĠPre defined Features Section ( ĊĠĠĠĠĠĠĠ Ġfeatures Ġ= Ġfeatures List . map To ( mutable Set Of ()) Ġ{ Ġyaml Key Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠPre defined Feature . from Yaml Key ( yaml Key ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġthrow ĠIllegalArgumentException ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsection Unknown Enum Key ErrorMessage ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsection Name Ġ= ĠKEY _ PRE DEFINED _ FEATURES _ SECTION , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġkey Ġ= Ġyaml Key , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġacceptable Values Ġ= ĠPre defined Feature . available Yaml Keys () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġresult ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ) Ċ } Ċ