public Dictionary<string, string> GenerateAttributeSetDictionary()
{
Dictionary<string, string> attributeSet = new Dictionary<string, string>();
if (!string.IsNullOrEmpty(DisplayAttributes.Identity))
{
attributeSet["identity"] = DisplayAttributes.Identity;
}
if (!string.IsNullOrEmpty(DisplayAttributes.SymbolSet))
{
attributeSet["symbolset"] = DisplayAttributes.SymbolSet;
}
if (!string.IsNullOrEmpty(DisplayAttributes.SymbolEntity))
{
attributeSet["symbolentity"] = DisplayAttributes.SymbolEntity;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Indicator))
{
attributeSet["indicator"] = DisplayAttributes.Indicator;
}
//Echelon or Mobility
if (!string.IsNullOrEmpty(DisplayAttributes.Echelon))
{
attributeSet["echelon"] = DisplayAttributes.Echelon;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Mobility))
{
attributeSet["echelon"] = DisplayAttributes.Mobility;
}
//Statuses or Operation
if (!string.IsNullOrEmpty(DisplayAttributes.OperationalCondition))
{
attributeSet["operationalcondition"] = DisplayAttributes.OperationalCondition;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Status))
{
attributeSet["operationalcondition"] = DisplayAttributes.Status;
}
//Delta attributes
if (!string.IsNullOrEmpty(DisplayAttributes.Context))
{
attributeSet["context"] = DisplayAttributes.Context;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Modifier1))
{
attributeSet["modifier1"] = DisplayAttributes.Modifier1;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Modifier2))
{
attributeSet["modifier2"] = DisplayAttributes.Modifier2;
}
return attributeSet;
}