Пример #1
0
            internal IDCollection(XliffIdentifiedListe <T> identifiedListe) : base()
            {
                if (identifiedListe == null)
                {
                    throw new ArgumentNullException(null, "The source " + nameof(XliffIdentifiedListe <T>) + " cannot be null.");
                }

                SourceCollection = identifiedListe;
            }
Пример #2
0
        internal XliffFile(XmlElement element)
        {
            ID = element.TestIdentified(NodeName);

            Original = element.GetAttribute("original");

            Notes = new XliffList <XliffNote>(XliffNote.GetNotes(element));

            Groups = new XliffIdentifiedListe <XliffGroup>(XliffGroup.GetGroups(element));

            Units = new XliffIdentifiedListe <XliffUnit>(XliffUnit.GetUnits(element));

            if (Groups.Count == 0 && Units.Count == 0)
            {
                throw new XliffException("Invalid Xliff file.\nA minimum of one <" + XliffGroup.NodeName + "> or <" + XliffUnit.NodeName + "> with the attribute 'id' is required in a <" + NodeName + ">.");
            }
        }
Пример #3
0
 internal IdentifiedCollection(XliffIdentifiedListe <T> identifiedListe) : base(identifiedListe)
 {
 }