/// <summary> /// Checks if this attribute spec exists on the given node /// </summary> /// <param name="node"></param> /// <returns></returns> public static bool CompletionDateExists(this MapNode node) { MapTree.AttributeSpec aspec = CompletionDateAttribute.GetAttributeSpec(node.Tree); if (aspec != null) { return(node.ContainsAttribute(aspec)); } else { return(false); } }
/// <summary> /// Checks if this attribute spec exists on the given node /// </summary> /// <param name="node"></param> /// <returns></returns> public static bool TaskStatusExists(MapNode node) { MapTree.AttributeSpec aspec = TaskStatusAttribute.GetAttributeSpec(node.Tree); if (aspec != null) { return(node.ContainsAttribute(aspec)); } else { return(false); } }
public static bool StartDateExists(this MapNode node) { return(node.ContainsAttribute(START_DATE_ATTRIBUTE)); }