public static SoyType getTypeForContentKind ( SanitizedContentKind contentKind ) { switch ( contentKind ) { case ATTRIBUTES : return AttributesType . getInstance ( ) ; case CSS : return StyleType . getInstance ( ) ; case HTML : return HtmlType . getInstance ( ) ; case JS : return JsType . getInstance ( ) ; case URI : return UriType . getInstance ( ) ; case TRUSTED_RESOURCE_URI : return TrustedResourceUriType . getInstance ( ) ; case TEXT : return StringType . getInstance ( ) ; } throw new AssertionError ( contentKind ) ; }
Given a content kind return the corresponding soy type .