public IElement Create() { var label = new LabelElement("Test"); var align = new AlignmentElement(label) { VerticalAlignment = Alignment.Last, HorizontalAlignment = Alignment.Last }; var border = new BorderElement(align) { Border = BorderStyle.SingleLine }; var size = new SizeElement(border) { Size = new BoxConstraint(9, int.MaxValue, 5, int.MaxValue) }; var style = new StyleElement(size) { Style = new Style() { Background = Color.BurlyWood, Foreground = Color.Black } }; var label2 = new LabelElement("sup"); var border2 = new BorderElement(label2) { Border = BorderStyle.DoubleLine }; var align2 = new AlignmentElement(border2) { VerticalAlignment = Alignment.Middle, HorizontalAlignment = Alignment.Last }; var stack = new FlexLayoutElement(Axis.Vertical, new IElement[] { style, align2 }); var stack2 = new FlexLayoutElement(Axis.Horizontal, new IElement[] { new AlignmentElement(new LabelElement("hi")) { HorizontalAlignment = Alignment.Middle, VerticalAlignment = Alignment.Middle }, new LabelElement("hib"), stack }) { ItemSpacing = FlexSpacing.Evenly }; return(stack2); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Attachment; if (dest != null) { base.CopyTo(dest); if (ContentTypeElement != null) { dest.ContentTypeElement = (Hl7.Fhir.Model.Code)ContentTypeElement.DeepCopy(); } if (LanguageElement != null) { dest.LanguageElement = (Hl7.Fhir.Model.Code)LanguageElement.DeepCopy(); } if (DataElement != null) { dest.DataElement = (Hl7.Fhir.Model.Base64Binary)DataElement.DeepCopy(); } if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy(); } if (SizeElement != null) { dest.SizeElement = (Hl7.Fhir.Model.UnsignedInt)SizeElement.DeepCopy(); } if (HashElement != null) { dest.HashElement = (Hl7.Fhir.Model.Base64Binary)HashElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (CreationElement != null) { dest.CreationElement = (Hl7.Fhir.Model.FhirDateTime)CreationElement.DeepCopy(); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }
public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (ContentTypeElement != null) { result.AddRange(ContentTypeElement.Validate()); } if (LanguageElement != null) { result.AddRange(LanguageElement.Validate()); } if (DataElement != null) { result.AddRange(DataElement.Validate()); } if (UrlElement != null) { result.AddRange(UrlElement.Validate()); } if (SizeElement != null) { result.AddRange(SizeElement.Validate()); } if (HashElement != null) { result.AddRange(HashElement.Validate()); } if (TitleElement != null) { result.AddRange(TitleElement.Validate()); } return(result); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Attachment; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (ContentTypeElement != null) { dest.ContentTypeElement = (Hl7.Fhir.Model.Code)ContentTypeElement.DeepCopy(); } if (LanguageElement != null) { dest.LanguageElement = (Hl7.Fhir.Model.Code)LanguageElement.DeepCopy(); } if (DataElement != null) { dest.DataElement = (Hl7.Fhir.Model.Base64Binary)DataElement.DeepCopy(); } if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUrl)UrlElement.DeepCopy(); } if (SizeElement != null) { dest.SizeElement = (Hl7.Fhir.Model.Integer64)SizeElement.DeepCopy(); } if (HashElement != null) { dest.HashElement = (Hl7.Fhir.Model.Base64Binary)HashElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (CreationElement != null) { dest.CreationElement = (Hl7.Fhir.Model.FhirDateTime)CreationElement.DeepCopy(); } if (HeightElement != null) { dest.HeightElement = (Hl7.Fhir.Model.PositiveInt)HeightElement.DeepCopy(); } if (WidthElement != null) { dest.WidthElement = (Hl7.Fhir.Model.PositiveInt)WidthElement.DeepCopy(); } if (FramesElement != null) { dest.FramesElement = (Hl7.Fhir.Model.PositiveInt)FramesElement.DeepCopy(); } if (DurationElement != null) { dest.DurationElement = (Hl7.Fhir.Model.FhirDecimal)DurationElement.DeepCopy(); } if (PagesElement != null) { dest.PagesElement = (Hl7.Fhir.Model.PositiveInt)PagesElement.DeepCopy(); } return(dest); }
public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (MasterIdentifier != null) { result.AddRange(MasterIdentifier.Validate()); } if (Identifier != null) { Identifier.ForEach(elem => result.AddRange(elem.Validate())); } if (Subject != null) { result.AddRange(Subject.Validate()); } if (Type != null) { result.AddRange(Type.Validate()); } if (Subtype != null) { result.AddRange(Subtype.Validate()); } if (Author != null) { Author.ForEach(elem => result.AddRange(elem.Validate())); } if (Custodian != null) { result.AddRange(Custodian.Validate()); } if (Authenticator != null) { result.AddRange(Authenticator.Validate()); } if (CreatedElement != null) { result.AddRange(CreatedElement.Validate()); } if (IndexedElement != null) { result.AddRange(IndexedElement.Validate()); } if (StatusElement != null) { result.AddRange(StatusElement.Validate()); } if (DocStatus != null) { result.AddRange(DocStatus.Validate()); } if (Supercedes != null) { result.AddRange(Supercedes.Validate()); } if (DescriptionElement != null) { result.AddRange(DescriptionElement.Validate()); } if (Confidentiality != null) { result.AddRange(Confidentiality.Validate()); } if (PrimaryLanguageElement != null) { result.AddRange(PrimaryLanguageElement.Validate()); } if (MimeTypeElement != null) { result.AddRange(MimeTypeElement.Validate()); } if (Format != null) { result.AddRange(Format.Validate()); } if (SizeElement != null) { result.AddRange(SizeElement.Validate()); } if (HashElement != null) { result.AddRange(HashElement.Validate()); } if (LocationElement != null) { result.AddRange(LocationElement.Validate()); } if (Service != null) { result.AddRange(Service.Validate()); } if (Context != null) { result.AddRange(Context.Validate()); } return(result); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as DocumentReference; if (dest != null) { base.CopyTo(dest); if (MasterIdentifier != null) { dest.MasterIdentifier = (Hl7.Fhir.Model.Identifier)MasterIdentifier.DeepCopy(); } if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Type != null) { dest.Type = (Hl7.Fhir.Model.CodeableConcept)Type.DeepCopy(); } if (Class != null) { dest.Class = (Hl7.Fhir.Model.CodeableConcept)Class.DeepCopy(); } if (Author != null) { dest.Author = new List <Hl7.Fhir.Model.ResourceReference>(Author.DeepCopy()); } if (Custodian != null) { dest.Custodian = (Hl7.Fhir.Model.ResourceReference)Custodian.DeepCopy(); } if (PolicyManagerElement != null) { dest.PolicyManagerElement = (Hl7.Fhir.Model.FhirUri)PolicyManagerElement.DeepCopy(); } if (Authenticator != null) { dest.Authenticator = (Hl7.Fhir.Model.ResourceReference)Authenticator.DeepCopy(); } if (CreatedElement != null) { dest.CreatedElement = (Hl7.Fhir.Model.FhirDateTime)CreatedElement.DeepCopy(); } if (IndexedElement != null) { dest.IndexedElement = (Hl7.Fhir.Model.Instant)IndexedElement.DeepCopy(); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.DocumentReference.DocumentReferenceStatus>)StatusElement.DeepCopy(); } if (DocStatus != null) { dest.DocStatus = (Hl7.Fhir.Model.CodeableConcept)DocStatus.DeepCopy(); } if (RelatesTo != null) { dest.RelatesTo = new List <Hl7.Fhir.Model.DocumentReference.DocumentReferenceRelatesToComponent>(RelatesTo.DeepCopy()); } if (DescriptionElement != null) { dest.DescriptionElement = (Hl7.Fhir.Model.FhirString)DescriptionElement.DeepCopy(); } if (Confidentiality != null) { dest.Confidentiality = new List <Hl7.Fhir.Model.CodeableConcept>(Confidentiality.DeepCopy()); } if (PrimaryLanguageElement != null) { dest.PrimaryLanguageElement = (Hl7.Fhir.Model.Code)PrimaryLanguageElement.DeepCopy(); } if (MimeTypeElement != null) { dest.MimeTypeElement = (Hl7.Fhir.Model.Code)MimeTypeElement.DeepCopy(); } if (FormatElement != null) { dest.FormatElement = new List <Hl7.Fhir.Model.FhirUri>(FormatElement.DeepCopy()); } if (SizeElement != null) { dest.SizeElement = (Hl7.Fhir.Model.Integer)SizeElement.DeepCopy(); } if (HashElement != null) { dest.HashElement = (Hl7.Fhir.Model.FhirString)HashElement.DeepCopy(); } if (LocationElement != null) { dest.LocationElement = (Hl7.Fhir.Model.FhirUri)LocationElement.DeepCopy(); } if (Service != null) { dest.Service = (Hl7.Fhir.Model.DocumentReference.DocumentReferenceServiceComponent)Service.DeepCopy(); } if (Context != null) { dest.Context = (Hl7.Fhir.Model.DocumentReference.DocumentReferenceContextComponent)Context.DeepCopy(); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }