package Ġnet . sub ro h 0 5 0 8 . oton ashi . core . serializer . type Ċ Ċ /** Ċ Ġ* ĠSee Ċ Ġ* Ġ- Ġ[ XML ĠSchema ĠPart Ġ 2 : ĠDat at ypes ĠSecond ĠEdition Ġ- Ġ 3 ĠBuilt - in Ġdat at ypes ]( https :// www . w 3 . org / TR / 2 0 0 4 / REC - xml schema - 2 - 2 0 0 4 1 0 2 8 / datat ypes . html # built - in - datat ypes ) Ċ Ġ* Ġ- Ġ( http :// www . dat yp ic . com / sc / xsd / ns - xsd . html ) Ċ Ġ*/ Ċ Ċ internal Ġenum Ġclass ĠType ( private Ġval Ġraw Name : ĠString ) Ġ{ ĊĠĠĠ ĠSTRING (" string "), ĊĠĠĠ ĠBOOLEAN (" boolean "), ĊĠĠĠ ĠDEC IMAL (" decimal "), ĊĠĠĠ ĠFLOAT (" float "), ĊĠĠĠ ĠDOUBLE (" double "), ĊĠĠĠ ĠD URATION (" duration "), ĊĠĠĠ ĠDATE _ TIME (" dateTime "), ĊĠĠĠ ĠTIME (" time "), ĊĠĠĠ ĠDATE (" date "), ĊĠĠĠ ĠG _ YEAR _ MONTH (" g Year Month "), ĊĠĠĠ ĠG _ YEAR (" g Year "), ĊĠĠĠ ĠG _ MONTH _ DAY (" g Month Day "), ĊĠĠĠ ĠG _ DAY (" g Month "), ĊĠĠĠ ĠHEX _ BINARY (" hex Binary "), ĊĠĠĠ ĠBASE _ 6 4 _ BINARY (" base 6 4 Binary "), ĊĠĠĠ ĠANY _ URI (" any URI "), ĊĠĠĠ ĠQ _ NAME (" QName "), ĊĠĠĠ ĠNOT ATION (" NOT ATION "), ĊĊĠĠĠ ĠNORMAL IZED _ STRING (" normalized String "), ĊĠĠĠ ĠTOKEN (" token "), ĊĠĠĠ ĠLANGUAGE (" language "), ĊĠĠĠ ĠN M TOKEN (" NM TOKEN "), ĊĠĠĠ ĠN M TOKEN S (" NM TOKEN S "), ĊĠĠĠ ĠNAME (" Name "), ĊĠĠĠ ĠNC _ NAME (" NC Name "), ĊĠĠĠ ĠID (" ID "), ĊĠĠĠ ĠID REF (" ID REF "), ĊĠĠĠ ĠID REF S (" ID REF S "), ĊĠĠĠ ĠENT ITY (" ENTITY "), ĊĠĠĠ ĠENT ITIES (" ENT ITIES "), ĊĠĠĠ ĠINTEGER (" integer "), ĊĠĠĠ ĠNON _ POSITIVE _ INTEGER (" non Positive Integer "), ĊĠĠĠ ĠNE G ATIVE _ INTEGER (" negative Integer "), ĊĠĠĠ ĠLONG (" long "), ĊĠĠĠ ĠINT (" int "), ĊĠĠĠ ĠSH ORT (" short "), ĊĠĠĠ ĠBYTE (" byte "), ĊĠĠĠ ĠNON _ NEGATIVE _ INTEGER (" non Negative Integer "), ĊĠĠĠ ĠUNSIGNED _ LONG (" unsigned Long "), ĊĠĠĠ ĠUNSIGNED _ INT (" unsigned Int "), ĊĠĠĠ ĠUNSIGNED _ SHORT (" unsigned Short "), ĊĠĠĠ ĠUNSIGNED _ BYTE (" unsigned Byte "), ĊĠĠĠ ĠPOS ITIVE _ INTEGER (" positive Integer "); ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠTARGET _ NAME _ SPACE Ġ= Ġ" http :// www . w 3 . org / 2 0 0 1 / XMLSchema " ĊĊĠĠĠĠĠĠĠ Ġfun ĠfindBy URI ( uri : ĠString ): ĠType Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġraw Name From Uri Ġ= Ġuri . replace ("$ TARGET _ NAME _ SPACE # ", Ġ"") ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġvalues (). find Ġ{ Ġit . raw Name Ġ== Ġraw Name From Uri Ġ} Ġ?: Ġthrow ĠIllegalArgumentException (" undefined : Ġ$ raw Name From Uri ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }