public ObjectClassInfo ( String type, ICollection |
||
type | String | |
attrInfo | ICollection |
|
isContainer | bool | |
return | System |
public ObjectClassInfo(String type,
ICollection<ConnectorAttributeInfo> attrInfo,
bool isContainer)
{
Assertions.NullCheck(type, "type");
_type = type;
_info = CollectionUtil.NewReadOnlySet(attrInfo);
_isContainer = isContainer;
// check to make sure name exists
IDictionary<string, ConnectorAttributeInfo> dict
= ConnectorAttributeInfoUtil.ToMap(attrInfo);
if (!dict.ContainsKey(Name.NAME))
{
const string MSG = "Missing 'Name' connector attribute info.";
throw new ArgumentException(MSG);
}
}