GeometryGym.Ifc.IfcPropertySetDefinition.ParseXml C# (CSharp) Méthode

ParseXml() private méthode

private ParseXml ( XmlElement xml ) : void
xml XmlElement
Résultat void
        internal override void ParseXml(XmlElement xml)
        {
            base.ParseXml(xml);
            foreach (XmlNode child in xml.ChildNodes)
            {
                string name = child.Name;
                if (string.Compare(name, "DefinesType") == 0)
                {
                    foreach (IfcTypeObject t in mDatabase.ParseXMLList<IfcTypeObject>(child))
                        t.AddPropertySet(this);
                }
                else if (string.Compare(name, "IsDefinedBy") == 0)
                {
                    foreach (IfcRelDefinesByTemplate r in mDatabase.ParseXMLList<IfcRelDefinesByTemplate>(child))
                        r.assign(this);
                }
                else if (string.Compare(name, "DefinesOccurrence") == 0)
                {
                    foreach (IfcRelDefinesByProperties r in mDatabase.ParseXMLList<IfcRelDefinesByProperties>(child))
                        r.RelatingPropertyDefinition = this;
                }
            }
        }