/// <summary> /// Initializes a new instance of the <see cref="ResourceData"/> class. /// </summary> public ResourceData() { this.RegisterElementInformation(ElementInformationFromReflection.Create(this)); this.ResourceItemReferences = new ParentAttachedList <ResourceItemRef>(this); this.ResourceItems = new ParentAttachedList <ResourceItem>(this); }
/// <summary> /// Initializes a new instance of the <see cref="XliffDocument"/> class. /// </summary> /// <param name="sourceLanguage">The language of the source text to translate.</param> public XliffDocument(string sourceLanguage) { this.RegisterElementInformation(ElementInformationFromReflection.Create(this)); this.extensions = new Lazy <List <IExtension> >(); this.Files = new ParentAttachedList <File>(this); this.SourceLanguage = sourceLanguage; }
/// <summary> /// Initializes a new instance of the <see cref="ResourceItem"/> class. /// </summary> public ResourceItem() { this.RegisterElementInformation(ElementInformationFromReflection.Create(this)); this.extensions = new Lazy <List <IExtension> >(); this.References = new ParentAttachedList <Reference>(this); }
/// <summary> /// Initializes a new instance of the <see cref="ResourceItemRef"/> class. /// </summary> /// <param name="reference">A reference to an associated <see cref="ResourceItem"/> element located at the /// <see cref="Localization.Xliff.OM.Core.File"/> level.</param> public ResourceItemRef(string reference) { this.RegisterElementInformation(ElementInformationFromReflection.Create(this)); this.extensions = new Lazy <List <IExtension> >(); this.Reference = reference; }
/// <summary> /// Initializes a new instance of the <see cref="RevisionsContainer"/> class. /// </summary> /// <param name="appliesTo">The specific XLIFF element which is a sibling, or a child of a sibling element, to /// the change track module within the scope of the enclosing element.</param> public RevisionsContainer(string appliesTo) { this.RegisterElementInformation(ElementInformationFromReflection.Create(this)); this.extensions = new Lazy <List <IExtension> >(); this.AppliesTo = appliesTo; this.Revisions = new ParentAttachedList <Revision>(this); }
/// <summary> /// Initializes a new instance of the <see cref="Meta"/> class. /// </summary> /// <param name="type">The type of metadata contained by the enclosing element.</param> /// <param name="text">The non-translatable text.</param> public Meta(string type, string text) { this.RegisterElementInformation(ElementInformationFromReflection.Create(this)); this.NonTranslatableText = text; if (type != null) { this.Type = type; } }
/// <summary> /// Initializes a new instance of the <see cref="MarkedSpanStart"/> class. /// </summary> /// <param name="id">The Id of the marked span.</param> public MarkedSpanStart(string id) { this.RegisterElementInformation(ElementInformationFromReflection.Create(this)); this.extensions = new Lazy <List <IExtension> >(); this.Id = id; this.SubFormatStyle = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase); this.EnableAttribute(MarkedSpanStart.PropertyNames.EquivalentStorage, false); this.EnableAttribute(MarkedSpanStart.PropertyNames.SizeInfo, false); this.EnableAttribute(MarkedSpanStart.PropertyNames.SizeInfoReference, false); }