public override bool Equals(object obj) { // Check for null if (obj == null) { return(false); } // Check for type if (this.GetType() != obj.GetType()) { return(false); } // Cast as IfcRoot IfcDocumentElectronicFormat root = (IfcDocumentElectronicFormat)obj; return(this == root); }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: _documentId = value.StringVal; return; case 1: _name = value.StringVal; return; case 2: _description = value.StringVal; return; case 3: _documentReferences.InternalAdd((IfcDocumentReference)value.EntityVal); return; case 4: _purpose = value.StringVal; return; case 5: _intendedUse = value.StringVal; return; case 6: _scope = value.StringVal; return; case 7: _revision = value.StringVal; return; case 8: _documentOwner = (IfcActorSelect)(value.EntityVal); return; case 9: _editors.InternalAdd((IfcActorSelect)value.EntityVal); return; case 10: _creationTime = (IfcDateAndTime)(value.EntityVal); return; case 11: _lastRevisionTime = (IfcDateAndTime)(value.EntityVal); return; case 12: _electronicFormat = (IfcDocumentElectronicFormat)(value.EntityVal); return; case 13: _validFrom = (IfcCalendarDate)(value.EntityVal); return; case 14: _validUntil = (IfcCalendarDate)(value.EntityVal); return; case 15: _confidentiality = (IfcDocumentConfidentialityEnum)System.Enum.Parse(typeof(IfcDocumentConfidentialityEnum), value.EnumVal, true); return; case 16: _status = (IfcDocumentStatusEnum)System.Enum.Parse(typeof(IfcDocumentStatusEnum), value.EnumVal, true); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _documentId = value.StringVal; break; case 1: _name = value.StringVal; break; case 2: _description = value.StringVal; break; case 3: if (_documentReferences == null) _documentReferences = new XbimSet<IfcDocumentReference>(this); _documentReferences.Add_Reversible((IfcDocumentReference) value.EntityVal); break; case 4: _purpose = value.StringVal; break; case 5: _intendedUse = value.StringVal; break; case 6: _scope = value.StringVal; break; case 7: _revision = value.StringVal; break; case 8: _documentOwner = (IfcActorSelect) value.EntityVal; break; case 9: if (_editors == null) _editors = new XbimSet<IfcActorSelect>(this); _editors.Add_Reversible((IfcActorSelect) value.EntityVal); break; case 10: _creationTime = (IfcDateAndTime) value.EntityVal; break; case 11: _lastRevisionTime = (IfcDateAndTime) value.EntityVal; break; case 12: _electronicFormat = (IfcDocumentElectronicFormat) value.EntityVal; break; case 13: _validFrom = (IfcCalendarDate) value.EntityVal; break; case 14: _validUntil = (IfcCalendarDate) value.EntityVal; break; case 15: _confidentiality = (IfcDocumentConfidentialityEnum) Enum.Parse(typeof (IfcDocumentConfidentialityEnum), value.EnumVal, true); break; case 16: _status = (IfcDocumentStatusEnum) Enum.Parse(typeof (IfcDocumentStatusEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _documentId = value.StringVal; break; case 1: _name = value.StringVal; break; case 2: _description = value.StringVal; break; case 3: if (_documentReferences == null) { _documentReferences = new XbimSet <IfcDocumentReference>(this); } ((IXbimNoNotifyCollection)_documentReferences).Add((IfcDocumentReference)value.EntityVal); break; case 4: _purpose = value.StringVal; break; case 5: _intendedUse = value.StringVal; break; case 6: _scope = value.StringVal; break; case 7: _revision = value.StringVal; break; case 8: _documentOwner = (IfcActorSelect)value.EntityVal; break; case 9: if (_editors == null) { _editors = new XbimSet <IfcActorSelect>(this); } ((IXbimNoNotifyCollection)_editors).Add((IfcActorSelect)value.EntityVal); break; case 10: _creationTime = (IfcDateAndTime)value.EntityVal; break; case 11: _lastRevisionTime = (IfcDateAndTime)value.EntityVal; break; case 12: _electronicFormat = (IfcDocumentElectronicFormat)value.EntityVal; break; case 13: _validFrom = (IfcCalendarDate)value.EntityVal; break; case 14: _validUntil = (IfcCalendarDate)value.EntityVal; break; case 15: _confidentiality = (IfcDocumentConfidentialityEnum) Enum.Parse(typeof(IfcDocumentConfidentialityEnum), value.EnumVal, true); break; case 16: _status = (IfcDocumentStatusEnum)Enum.Parse(typeof(IfcDocumentStatusEnum), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }