public NodePortDefinition(string key, string title, InputOutputType inputOutputType, Type dataType, bool isMandatory) { Key = key; Title = title; InputOutputType = inputOutputType; DataMode = DataMode.WithData; PortDataType = dataType; DefaultValue = null; Mandatory = isMandatory; }
/////////////////////////////////////////////////////////////////////////////////////////////////// ////////////BUILD FROM V2.1 SCHEMA ////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Initializes a new instance of the <see cref="InputOutputCore"/> class. /// </summary> /// <param name="parent"> /// The parent. /// </param> /// <param name="xmlType"> /// The xml type. /// </param> public InputOutputCore(IIdentifiableObject parent, InputOutputType xmlType) : base(xmlType, SdmxStructureType.GetFromEnum(SdmxStructureEnumType.Computation), parent) { this.localId = xmlType.localID; if (xmlType.ObjectReference != null) { this.structureReference = RefUtil.CreateReference(this, xmlType.ObjectReference); } this.Validate(); }