//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace System.IdentityModel.Metadata
{
///
/// Defines an organization.
///
public class Organization
{
//
// We do not support extensions as yet. So on receive, we should skip parsing it.
//
LocalizedEntryCollection displayNames = new LocalizedEntryCollection();
LocalizedEntryCollection names = new LocalizedEntryCollection();
LocalizedEntryCollection urls = new LocalizedEntryCollection();
///
/// Empty constructor.
///
public Organization()
: this(new LocalizedEntryCollection(), new LocalizedEntryCollection(), new LocalizedEntryCollection())
{
}
///
/// Creates an organization with collections of names, display names, and URIs
///
/// A collection of for this instance.
/// A collection of for this instance representing the display names.
/// A collection of for this instance.
/// If any of the input parameters is null.
public Organization(LocalizedEntryCollection names, LocalizedEntryCollection displayNames, LocalizedEntryCollection urls)
{
if (names == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("names");
}
if (displayNames == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("displayNames");
}
if (urls == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("urls");
}
this.names = names;
this.displayNames = displayNames;
this.urls = urls;
}
///
/// Gets the collection of representing the display names.
/// This is a required element.
///
public LocalizedEntryCollection DisplayNames
{
get { return this.displayNames; }
}
///
/// Gets the collection of .
/// This is a required element.
///
public LocalizedEntryCollection Names
{
get { return this.names; }
}
///
/// Gets the collection of .
/// This is required element.
///
public LocalizedEntryCollection Urls
{
get { return this.urls; }
}
}
}