BO4E/BoMapper.cs
/// <summary>
///     Get JSON Scheme for given Business Object name
/// </summary>
/// See
/// <see cref="GetValidBoNames" />
/// for a list of valid arguments.
/// <param name="businessObjectName">Business Object name (e.g. "Messlokation")</param>
/// <returns>A JSON scheme to be used for validation purposes or null for invalid arguments.</returns>
/// <seealso cref="GetJsonSchemeFor(Type)" />
Get JSON Scheme for given Business Object name
Get JSON Scheme for given Business Object name
public static JSchema GetJsonSchemeFor(string businessObjectName)
        {
            Type clazz;
            try
            {
                clazz = GetTypeForBoName(businessObjectName);
            }
            catch (ArgumentException)
            {
                return null;
            }
            return clazz == null ? null : GetJsonSchemeFor(clazz);
        }
public static JSchema GetJsonSchemeFor ( string businessObjectName ) { Type clazz ; try { clazz = GetTypeForBoName ( businessObjectName ) ; } catch ( ArgumentException ) { return null ; } return clazz == null ? null : GetJsonSchemeFor ( clazz ) ; }
Get JSON Scheme for given Business Object name
Get JSON Scheme for given Business Object name
A JSON scheme to be used for validation purposes or null for invalid arguments.
A JSON scheme to be used for validation purposes or null for invalid arguments .
businessObjectName
string
Business Object name
Business Object name
see
for a list of valid arguments.
for a list of valid arguments .
seealso
None