Esempio n. 1
0
        public Composition(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                           Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                           CodePhrase language, CodePhrase territory, DvCodedText category, EventContext context,
                           Content.ContentItem[] content, PartyProxy composer) :
            base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            Check.Require(language != null, "language must not be null");
            Check.Require(territory != null, "territory must not be null");
            Check.Require(category != null, "category must not be null");
            Check.Require(composer != null, "composer must not be null");


            this.language  = language;
            this.territory = territory;
            this.category  = category;
            this.context   = context;
            if (this.context != null)
            {
                this.context.Parent = this;
            }
            if (content != null)
            {
                this.content = RmFactory.LocatableList <ContentItem>(this, content);
            }

            this.composer = composer;

            SetAttributeDictionary();
            this.CheckInvariants();
        }
Esempio n. 2
0
        public ItemTable(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                         Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit, Cluster[] rows)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            if (rows != null)
            {
                this.rows = RmFactory.LocatableList <Cluster>(this, rows);
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
Esempio n. 3
0
        public Section(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                       Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit, ContentItem[] items)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            if (items != null)
            {
                this.items = RmFactory.LocatableList <ContentItem>(this, items);
            }

            SetAttributeDictionary();
            CheckInvariants();
        }
Esempio n. 4
0
        public Instruction(DvText name, string archetypeNodeId, UidBasedId uid,
                           Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                           CodePhrase language, CodePhrase encoding, PartyProxy subject, PartyProxy proider,
                           Participation[] otherParticipations, ObjectRef workflowId, ItemStructure protocol,
                           ObjectRef guidelineId, DvText narrative, DvDateTime expiryTime,
                           Activity[] activities, DvParsable wfDefinition)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit, language,
                   encoding, subject, proider, otherParticipations, workflowId, protocol, guidelineId)
        {
            Check.Require(narrative != null, "narrative must not be null");

            this.narrative  = narrative;
            this.expiryTime = expiryTime;
            if (activities != null)
            {
                this.activities = RmFactory.LocatableList <Activity>(this, activities);
            }
            this.wfDefinition = wfDefinition;

            SetAttributeDictionary();
            CheckInvariants();
        }
Esempio n. 5
0
        public History(DvText name, string archetypeNodeId, Support.Identification.UidBasedId uid,
                       Link[] links, Archetyped archetypeDetails, FeederAudit feederAudit,
                       DvDateTime origin, DvDuration period, DvDuration duration,
                       Event <T>[] events, ItemStructure.ItemStructure summary)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            this.period   = period;
            this.duration = duration;
            this.summary  = summary;
            if (this.summary != null)
            {
                this.summary.Parent = this;
            }
            if (events != null)
            {
                this.events = RmFactory.LocatableList <Event <T> >(this, events);
            }
            this.origin = origin;

            SetAttributeDictionary();
            CheckInvariants();
        }