/// <summary> /// Initalizes a classification with the supplied content, looking up scheme and node representation for /// the XD attribute type provided /// </summary> /// <param name="attr">The XD attribute</param> /// <param name="nodeRep">The node representation for this classification</param> /// <param name="classifiedObject">The object being classified</param> /// <param name="content">Included nodes in this classification</param> public Classification(XDAttribute attr, string nodeRep, string classifiedObject, params Object[] content) : this () { if (!XDMetadataStandard.IsClassification(attr)) { throw new ArgumentException("Invalid Classification Type"); } string scheme = XDMetadataStandard.ClassificationUUIDs[attr]; InitializeContentScheme(scheme, nodeRep, classifiedObject, content); }
/// <summary> /// Initalizes a classification with the supplied content, looking up scheme and node representation for /// the XD attribute type provided /// </summary> /// <param name="attr">The XD attribute</param> /// <param name="nodeRep">The node representation for this classification</param> /// <param name="classifiedObject">The object being classified</param> /// <param name="content">Included nodes in this classification</param> public Classification(XDAttribute attr, string nodeRep, string classifiedObject, params Object[] content) : this() { if (!XDMetadataStandard.IsClassification(attr)) { throw new ArgumentException("Invalid Classification Type"); } string scheme = XDMetadataStandard.ClassificationUUIDs[attr]; InitializeContentScheme(scheme, nodeRep, classifiedObject, content); }
/// <summary> /// Initializes an instance with the supplied classification scheme, node representation, classified object and /// a name element for the label and a slot for the code. /// </summary> /// <param name="attr">The XD metadata attribute type</param> /// <param name="classifiedObject">The document that is being classified</param> /// <param name="value">The <see cref="CodedValue"/> for this classification</param> public CodedValueClassification(XDAttribute attr, string classifiedObject, CodedValue value) : base(attr, value.Code, classifiedObject) { Initialize(value); }
/// <summary> /// Initializes an instance with the supplied classification scheme, node representation, classified object and /// a name element for the label and a slot for the code. /// </summary> /// <param name="attr">The XD metadata attribute type</param> /// <param name="classifiedObject">The document that is being classified</param> /// <param name="code">The code</param> /// <param name="label">The code label</param> /// <param name="codingScheme">The coding scheme for this code</param> public CodedValueClassification(XDAttribute attr, string classifiedObject, string code, string label, string codingScheme) : base(attr, codingScheme, classifiedObject) { Initialize(code, label); }
/// <summary> /// Tests if the XD metadata attribute is represented by an ebXML classification /// </summary> public static bool IsClassification(XDAttribute attr) { return ClassificationUUIDs.ContainsKey(attr); }
/// <summary> /// Tests if the XD metadata attribute is represented by an ebXML classification /// </summary> public static bool IsClassification(XDAttribute attr) { return(ClassificationUUIDs.ContainsKey(attr)); }