//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace System.IdentityModel.Metadata
{
///
/// The entities descriptor class, defines a collection of entities.
///
public class EntitiesDescriptor : MetadataBase
{
Collection entityGroupCollection = new Collection();
Collection entityCollection = new Collection();
string name;
///
/// The empty constructor.
///
public EntitiesDescriptor()
: this(new Collection(), new Collection())
{
}
///
/// Constructs an entities descriptor with a collection of .
///
/// The collection of entities descriptor.
public EntitiesDescriptor(Collection entityGroupList)
{
this.entityGroupCollection = entityGroupList;
}
///
/// Constructs an entities descriptor with a collection of .
///
/// The collection of entity descriptor.
public EntitiesDescriptor(Collection entityList)
{
this.entityCollection = entityList;
}
///
/// Constructs an entities descriptor with a collection of
/// and a collection of .
///
/// The entity descriptor collection.
/// The entities descriptor collection.
public EntitiesDescriptor(Collection entityList, Collection entityGroupList)
{
this.entityCollection = entityList;
this.entityGroupCollection = entityGroupList;
}
///
/// Gets the collection of child .
///
public ICollection ChildEntities
{
get { return this.entityCollection; }
}
///
/// Gets the collection of child .
///
public ICollection ChildEntityGroups
{
get { return this.entityGroupCollection; }
}
///
/// Gets or sets the name.
///
public string Name
{
get { return this.name; }
set { this.name = value; }
}
}
}