示例#1
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Agent instance = new MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Agent();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"AGNT".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "AGNT", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "representedOrganization" ) {

			object db1b9febfa2ff4d9c8a44c75c7799f8e1 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Organization), currentInteractionType, resultContext); instance.RepresentedOrganization = db1b9febfa2ff4d9c8a44c75c7799f8e1 is MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Organization ? db1b9febfa2ff4d9c8a44c75c7799f8e1 as MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Organization : (MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Organization)MARC.Everest.Connectors.Util.FromWireFormat(db1b9febfa2ff4d9c8a44c75c7799f8e1, typeof(MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Organization));
}
else if(s.LocalName == "realmCode" ) {

			object d8a6a02dee5514777bfbbd1f6d49916f3 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d8a6a02dee5514777bfbbd1f6d49916f3 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d8a6a02dee5514777bfbbd1f6d49916f3 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d8a6a02dee5514777bfbbd1f6d49916f3, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d1e93adf2ef0647dea657168fb827351e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d1e93adf2ef0647dea657168fb827351e is MARC.Everest.DataTypes.II ? d1e93adf2ef0647dea657168fb827351e as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d1e93adf2ef0647dea657168fb827351e, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d6fcedf8ad81741bfb6425f42cbe2daf7 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d6fcedf8ad81741bfb6425f42cbe2daf7 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d6fcedf8ad81741bfb6425f42cbe2daf7 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d6fcedf8ad81741bfb6425f42cbe2daf7, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#2
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.ContactParty instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.ContactParty();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"CON".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "CON", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object dadc130b0c1454113af26af1d11f4d31e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = dadc130b0c1454113af26af1d11f4d31e is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? dadc130b0c1454113af26af1d11f4d31e as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dadc130b0c1454113af26af1d11f4d31e, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object dcd5b58fa1a704d5d993de9662b709c18 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = dcd5b58fa1a704d5d993de9662b709c18 is MARC.Everest.DataTypes.CE<System.String> ? dcd5b58fa1a704d5d993de9662b709c18 as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(dcd5b58fa1a704d5d993de9662b709c18, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "addr" ) {

			object d440e11103cf6476e85b7882d410e5de1 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), currentInteractionType, resultContext); instance.Addr = d440e11103cf6476e85b7882d410e5de1 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> ? d440e11103cf6476e85b7882d410e5de1 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>)MARC.Everest.Connectors.Util.FromWireFormat(d440e11103cf6476e85b7882d410e5de1, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>));
}
else if(s.LocalName == "telecom" ) {

			object dba47d6e6088b4192b806da9fea58d1d0 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>), currentInteractionType, resultContext); instance.Telecom = dba47d6e6088b4192b806da9fea58d1d0 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> ? dba47d6e6088b4192b806da9fea58d1d0 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>)MARC.Everest.Connectors.Util.FromWireFormat(dba47d6e6088b4192b806da9fea58d1d0, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>));
}
else if(s.LocalName == "contactPerson" ) {

			object d7428c1bf11e0404bbcfb7119fac21e5f = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Person), currentInteractionType, resultContext); instance.ContactPerson = d7428c1bf11e0404bbcfb7119fac21e5f is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Person ? d7428c1bf11e0404bbcfb7119fac21e5f as MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Person : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Person)MARC.Everest.Connectors.Util.FromWireFormat(d7428c1bf11e0404bbcfb7119fac21e5f, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Person));
}
else if(s.LocalName == "realmCode" ) {

			object d3783733e65c84a96986f7305900ea38e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d3783733e65c84a96986f7305900ea38e is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d3783733e65c84a96986f7305900ea38e as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d3783733e65c84a96986f7305900ea38e, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dd8e88293fd1742319937d752267e2a1d = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dd8e88293fd1742319937d752267e2a1d is MARC.Everest.DataTypes.II ? dd8e88293fd1742319937d752267e2a1d as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dd8e88293fd1742319937d752267e2a1d, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object dd82c3bd8a293492eb6db735b461be9d1 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = dd82c3bd8a293492eb6db735b461be9d1 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? dd82c3bd8a293492eb6db735b461be9d1 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dd82c3bd8a293492eb6db735b461be9d1, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#3
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.PersonalRelationship instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.PersonalRelationship();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"PRS".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "PRS", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d8d8539ee5344492081a6a0d859c388ad = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d8d8539ee5344492081a6a0d859c388ad is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d8d8539ee5344492081a6a0d859c388ad as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d8d8539ee5344492081a6a0d859c388ad, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object dd67367774f3941acbf7dfca1b2a69164 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = dd67367774f3941acbf7dfca1b2a69164 is MARC.Everest.DataTypes.CE<System.String> ? dd67367774f3941acbf7dfca1b2a69164 as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(dd67367774f3941acbf7dfca1b2a69164, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "relationshipHolder" ) {

			object d03f6d05036c647b984272e9d5a2351ce = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person), currentInteractionType, resultContext); instance.RelationshipHolder = d03f6d05036c647b984272e9d5a2351ce is MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person ? d03f6d05036c647b984272e9d5a2351ce as MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person)MARC.Everest.Connectors.Util.FromWireFormat(d03f6d05036c647b984272e9d5a2351ce, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person));
}
else if(s.LocalName == "personalRelationshipWith" ) {

			object d771dcd7ccdf84e628d037441337ca57d = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person), currentInteractionType, resultContext); instance.PersonalRelationshipWith = d771dcd7ccdf84e628d037441337ca57d is MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person ? d771dcd7ccdf84e628d037441337ca57d as MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person)MARC.Everest.Connectors.Util.FromWireFormat(d771dcd7ccdf84e628d037441337ca57d, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.Person));
}
else if(s.LocalName == "realmCode" ) {

			object d2c1e9f65f02942ed9f3f0d0c70ee6c31 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d2c1e9f65f02942ed9f3f0d0c70ee6c31 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d2c1e9f65f02942ed9f3f0d0c70ee6c31 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d2c1e9f65f02942ed9f3f0d0c70ee6c31, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object df2d0b5e10945459691e14d229907275f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = df2d0b5e10945459691e14d229907275f is MARC.Everest.DataTypes.II ? df2d0b5e10945459691e14d229907275f as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(df2d0b5e10945459691e14d229907275f, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object df2aa4ab5723640c0a4213c97c01bdbd4 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = df2aa4ab5723640c0a4213c97c01bdbd4 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? df2aa4ab5723640c0a4213c97c01bdbd4 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(df2aa4ab5723640c0a4213c97c01bdbd4, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#4
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"PART".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "PART", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleLinkType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleLinkType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "priorityNumber" ) {

			object d36e310ad261640549e1638ad6b720909 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.INT), currentInteractionType, resultContext); instance.PriorityNumber = d36e310ad261640549e1638ad6b720909 is MARC.Everest.DataTypes.INT ? d36e310ad261640549e1638ad6b720909 as MARC.Everest.DataTypes.INT : (MARC.Everest.DataTypes.INT)MARC.Everest.Connectors.Util.FromWireFormat(d36e310ad261640549e1638ad6b720909, typeof(MARC.Everest.DataTypes.INT));
}
else if(s.LocalName == "effectiveTime" ) {

			object d1d921c2a3cac4135af9f1f1440ab3d8a = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), currentInteractionType, resultContext); instance.EffectiveTime = d1d921c2a3cac4135af9f1f1440ab3d8a is MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> ? d1d921c2a3cac4135af9f1f1440ab3d8a as MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> : (MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>)MARC.Everest.Connectors.Util.FromWireFormat(d1d921c2a3cac4135af9f1f1440ab3d8a, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>));
}
else if(s.LocalName == "personalRelationship" ) {

			object de3856ca8000346e78b92a8f796448c86 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.PersonalRelationship), currentInteractionType, resultContext); instance.PersonalRelationship = de3856ca8000346e78b92a8f796448c86 is MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.PersonalRelationship ? de3856ca8000346e78b92a8f796448c86 as MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.PersonalRelationship : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.PersonalRelationship)MARC.Everest.Connectors.Util.FromWireFormat(de3856ca8000346e78b92a8f796448c86, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.PersonalRelationship));
}
else if(s.LocalName == "realmCode" ) {

			object d15594cc79b924672ad646ba5fd6d2123 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d15594cc79b924672ad646ba5fd6d2123 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d15594cc79b924672ad646ba5fd6d2123 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d15594cc79b924672ad646ba5fd6d2123, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d4f91ca055fa14cc8b54624222f5489b3 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d4f91ca055fa14cc8b54624222f5489b3 is MARC.Everest.DataTypes.II ? d4f91ca055fa14cc8b54624222f5489b3 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d4f91ca055fa14cc8b54624222f5489b3, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d97a17c7e657840c3b479a076107c4ce0 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d97a17c7e657840c3b479a076107c4ce0 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d97a17c7e657840c3b479a076107c4ce0 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d97a17c7e657840c3b479a076107c4ce0, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#5
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Performer instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Performer();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"PRF".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "PRF", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "responsible" ) {

			object d279b1ab73ea14b42808abf8aa9af20ba = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible), currentInteractionType, resultContext); instance.Responsible = d279b1ab73ea14b42808abf8aa9af20ba is MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible ? d279b1ab73ea14b42808abf8aa9af20ba as MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible : (MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible)MARC.Everest.Connectors.Util.FromWireFormat(d279b1ab73ea14b42808abf8aa9af20ba, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible));
}
else if(s.LocalName == "realmCode" ) {

			object de2cf2928112c4c3e8febd520fdc49302 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = de2cf2928112c4c3e8febd520fdc49302 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? de2cf2928112c4c3e8febd520fdc49302 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(de2cf2928112c4c3e8febd520fdc49302, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d811ef0c824824e47bf339752dfaa6f6b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d811ef0c824824e47bf339752dfaa6f6b is MARC.Everest.DataTypes.II ? d811ef0c824824e47bf339752dfaa6f6b as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d811ef0c824824e47bf339752dfaa6f6b, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object df4a62caaa7e94d2fa73de9622a5ec5f3 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = df4a62caaa7e94d2fa73de9622a5ec5f3 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? df4a62caaa7e94d2fa73de9622a5ec5f3 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(df4a62caaa7e94d2fa73de9622a5ec5f3, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#6
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Support instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Support();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"SPRT".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "SPRT", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActRelationshipType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActRelationshipType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "informationProvision" ) {

			object dca0665df19904e02bd212d5d3d36e4bc = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InformationProvision), currentInteractionType, resultContext); instance.InformationProvision = dca0665df19904e02bd212d5d3d36e4bc is MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InformationProvision ? dca0665df19904e02bd212d5d3d36e4bc as MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InformationProvision : (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InformationProvision)MARC.Everest.Connectors.Util.FromWireFormat(dca0665df19904e02bd212d5d3d36e4bc, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InformationProvision));
}
else if(s.LocalName == "realmCode" ) {

			object d751912425dec41aca15a5079f0b8e76b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d751912425dec41aca15a5079f0b8e76b is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d751912425dec41aca15a5079f0b8e76b as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d751912425dec41aca15a5079f0b8e76b, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d65574972a18441198604e67ead5cade3 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d65574972a18441198604e67ead5cade3 is MARC.Everest.DataTypes.II ? d65574972a18441198604e67ead5cade3 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d65574972a18441198604e67ead5cade3, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object daedcc6acede04936bf5c886dfd0d38bd = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = daedcc6acede04936bf5c886dfd0d38bd is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? daedcc6acede04936bf5c886dfd0d38bd as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(daedcc6acede04936bf5c886dfd0d38bd, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#7
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Verification instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Verification();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"OBS".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "OBS", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
if(s.GetAttribute("moodCode") != null){ if(!"EVN".Equals(s.GetAttribute("moodCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("moodCode"), "EVN", false, s.ToString()));  instance.MoodCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("moodCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object dfe6c8ab3d89545fd882f98e8156de713 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = dfe6c8ab3d89545fd882f98e8156de713 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? dfe6c8ab3d89545fd882f98e8156de713 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dfe6c8ab3d89545fd882f98e8156de713, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object d2b0169f800d441cbae19e0ef6b5acb15 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CD<System.String>), currentInteractionType, resultContext); instance.Code = d2b0169f800d441cbae19e0ef6b5acb15 is MARC.Everest.DataTypes.CD<System.String> ? d2b0169f800d441cbae19e0ef6b5acb15 as MARC.Everest.DataTypes.CD<System.String> : (MARC.Everest.DataTypes.CD<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d2b0169f800d441cbae19e0ef6b5acb15, typeof(MARC.Everest.DataTypes.CD<System.String>));
}
else if(s.LocalName == "statusCode" ) {

			object d7469b81f11ad4c5280ee14eee319f03c = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActStatus>), currentInteractionType, resultContext); instance.StatusCode = d7469b81f11ad4c5280ee14eee319f03c is MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActStatus> ? d7469b81f11ad4c5280ee14eee319f03c as MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActStatus> : (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActStatus>)MARC.Everest.Connectors.Util.FromWireFormat(d7469b81f11ad4c5280ee14eee319f03c, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActStatus>));
}
else if(s.LocalName == "effectiveTime" ) {

			object d9574a02793a245a28735b5a9313ade1f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.TS), currentInteractionType, resultContext); instance.EffectiveTime = d9574a02793a245a28735b5a9313ade1f is MARC.Everest.DataTypes.TS ? d9574a02793a245a28735b5a9313ade1f as MARC.Everest.DataTypes.TS : (MARC.Everest.DataTypes.TS)MARC.Everest.Connectors.Util.FromWireFormat(d9574a02793a245a28735b5a9313ade1f, typeof(MARC.Everest.DataTypes.TS));
}
else if(s.LocalName == "reasonCode" ) {

			object d72bb8b240d51475fbf35e122651497b5 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.ReasonCode = d72bb8b240d51475fbf35e122651497b5 is MARC.Everest.DataTypes.CE<System.String> ? d72bb8b240d51475fbf35e122651497b5 as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d72bb8b240d51475fbf35e122651497b5, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "value" ) {

			object dfc3a555db89a419aae734e109842c4aa = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Value = dfc3a555db89a419aae734e109842c4aa is MARC.Everest.DataTypes.CE<System.String> ? dfc3a555db89a419aae734e109842c4aa as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(dfc3a555db89a419aae734e109842c4aa, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "methodCode" ) {

			object d484e0f7e50d7419b9f3e570d58819964 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CE<System.String>>), currentInteractionType, resultContext); instance.MethodCode = d484e0f7e50d7419b9f3e570d58819964 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CE<System.String>> ? d484e0f7e50d7419b9f3e570d58819964 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CE<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CE<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d484e0f7e50d7419b9f3e570d58819964, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CE<System.String>>));
}
else if(s.LocalName == "primaryPerformer" ) {

			object d52400f9711d444a88f6958e98f457276 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.PrimaryPerformer), currentInteractionType, resultContext); instance.PrimaryPerformer.Add(d52400f9711d444a88f6958e98f457276 is MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.PrimaryPerformer ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.PrimaryPerformer)d52400f9711d444a88f6958e98f457276 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.PrimaryPerformer)MARC.Everest.Connectors.Util.FromWireFormat(d52400f9711d444a88f6958e98f457276, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.PrimaryPerformer)));
}
else if(s.LocalName == "inFulfillmentOf" ) {

			object dfd64d3a8764247b4a4bff82b1cf6fba9 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InFulfillmentOf), currentInteractionType, resultContext); instance.InFulfillmentOf.Add(dfd64d3a8764247b4a4bff82b1cf6fba9 is MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InFulfillmentOf ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InFulfillmentOf)dfd64d3a8764247b4a4bff82b1cf6fba9 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InFulfillmentOf)MARC.Everest.Connectors.Util.FromWireFormat(dfd64d3a8764247b4a4bff82b1cf6fba9, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InFulfillmentOf)));
}
else if(s.LocalName == "support" ) {

			object db020ac8f4d484d0a9b3b34cea8cede0b = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Support), currentInteractionType, resultContext); instance.Support.Add(db020ac8f4d484d0a9b3b34cea8cede0b is MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Support ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Support)db020ac8f4d484d0a9b3b34cea8cede0b : (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Support)MARC.Everest.Connectors.Util.FromWireFormat(db020ac8f4d484d0a9b3b34cea8cede0b, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Support)));
}
else if(s.LocalName == "realmCode" ) {

			object da8714f022b314308a1d8bbcb71659c58 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = da8714f022b314308a1d8bbcb71659c58 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? da8714f022b314308a1d8bbcb71659c58 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(da8714f022b314308a1d8bbcb71659c58, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d26b08a16db2448ed984da9651d5deb36 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d26b08a16db2448ed984da9651d5deb36 is MARC.Everest.DataTypes.II ? d26b08a16db2448ed984da9651d5deb36 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d26b08a16db2448ed984da9651d5deb36, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object da17632d0f8064231ad004c52ef93bea8 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = da17632d0f8064231ad004c52ef93bea8 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? da17632d0f8064231ad004c52ef93bea8 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(da17632d0f8064231ad004c52ef93bea8, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#8
0
		public virtual MARC.Everest.Connectors.ResultCode Graph(System.Xml.XmlWriter s, object o, MARC.Everest.Interfaces.IGraphable context, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterGraphResult resultContext) {
			MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity instance = o as MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity;;
			MARC.Everest.Connectors.ResultCode retVal = MARC.Everest.Connectors.ResultCode.Accepted;
			if(o == null) throw new System.ArgumentNullException("o");
			if(instance == null) throw new System.ArgumentException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity'!", o.GetType().FullName));
			bool isInstanceNull = instance.NullFlavor != null;
			bool isEntryPoint = s is MARC.Everest.Xml.XmlStateWriter && (s as MARC.Everest.Xml.XmlStateWriter).ElementStack.Count == 0 || s.WriteState == System.Xml.WriteState.Start; if(isEntryPoint) s.WriteStartElement("AssignedEntity", "urn:hl7-org:v3");
			if(isEntryPoint) s.WriteAttributeString("xmlns", "xsi", null, MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(instance.NullFlavor != null) this.Host.WriteNullFlavorUtil(s, instance.NullFlavor);
if(instance.ClassCode != null && !isInstanceNull) {

			s.WriteAttributeString("classCode", MARC.Everest.Connectors.Util.ToWireFormat(instance.ClassCode));
}
if(instance.RealmCode != null && !isInstanceNull) {

if(!instance.RealmCode.IsEmpty)
			retVal = Host.WriteElementUtil(s, "realmCode", (MARC.Everest.Interfaces.IGraphable)instance.RealmCode, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.TypeId != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "typeId", (MARC.Everest.Interfaces.IGraphable)instance.TypeId, typeof(MARC.Everest.DataTypes.II), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.TemplateId != null && !isInstanceNull) {

if(!instance.TemplateId.IsEmpty)
			retVal = Host.WriteElementUtil(s, "templateId", (MARC.Everest.Interfaces.IGraphable)instance.TemplateId, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Id != null && !isInstanceNull) {

if(!instance.Id.IsEmpty)
			retVal = Host.WriteElementUtil(s, "id", (MARC.Everest.Interfaces.IGraphable)instance.Id, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Code == null && Host.CreateRequiredElements) { instance.Code = new MARC.Everest.DataTypes.CE<System.String>(); instance.Code.NullFlavor = MARC.Everest.DataTypes.NullFlavor.NoInformation; }
if(instance.Code != null && !isInstanceNull) {

			if((host.Settings & MARC.Everest.Formatters.XML.ITS1.SettingsType.AllowSupplierDomainImposing) == MARC.Everest.Formatters.XML.ITS1.SettingsType.AllowSupplierDomainImposing && System.String.IsNullOrEmpty(instance.Code.CodeSystem) && instance.Code.NullFlavor == null) instance.Code.CodeSystem = "2.16.840.1.113883.5.111";
			retVal = Host.WriteElementUtil(s, "code", (MARC.Everest.Interfaces.IGraphable)instance.Code, typeof(MARC.Everest.DataTypes.CE<System.String>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Addr != null && !isInstanceNull) {

if(!instance.Addr.IsEmpty)
			retVal = Host.WriteElementUtil(s, "addr", (MARC.Everest.Interfaces.IGraphable)instance.Addr, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.AssignedPrincipalChoiceList != null && !isInstanceNull) {

 if(instance.AssignedPrincipalChoiceList.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090103UV01.Person)) {

			retVal = Host.WriteElementUtil(s, "assignedPerson", (MARC.Everest.Interfaces.IGraphable)instance.AssignedPrincipalChoiceList, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090103UV01.Person), context, resultContext);
}
else if(instance.AssignedPrincipalChoiceList.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090203UV01.Organization)) {

			retVal = Host.WriteElementUtil(s, "assignedOrganization", (MARC.Everest.Interfaces.IGraphable)instance.AssignedPrincipalChoiceList, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090203UV01.Organization), context, resultContext);
}
else if(instance.AssignedPrincipalChoiceList.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090303UV01.Device)) {

			retVal = Host.WriteElementUtil(s, "assignedDevice", (MARC.Everest.Interfaces.IGraphable)instance.AssignedPrincipalChoiceList, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090303UV01.Device), context, resultContext);
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotSupportedChoiceResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, System.String.Format("Type {0} is not a valid choice according to available choice elements", instance.AssignedPrincipalChoiceList.GetType()), s.ToString(), null)); }
}
if(instance.RepresentedOrganization != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "representedOrganization", (MARC.Everest.Interfaces.IGraphable)instance.RepresentedOrganization, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
			if(isEntryPoint) s.WriteEndElement();
			return retVal;
		}
示例#9
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"COVPTY".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "COVPTY", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d4ae0ab9ad7694ac5a46c7cbb9c18214b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d4ae0ab9ad7694ac5a46c7cbb9c18214b is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d4ae0ab9ad7694ac5a46c7cbb9c18214b as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d4ae0ab9ad7694ac5a46c7cbb9c18214b, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object dc31f5edc8382455c8ee28b0e579ffbd4 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = dc31f5edc8382455c8ee28b0e579ffbd4 is MARC.Everest.DataTypes.CE<System.String> ? dc31f5edc8382455c8ee28b0e579ffbd4 as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(dc31f5edc8382455c8ee28b0e579ffbd4, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "addr" ) {

			object ddc5359e9abd8451d99bca28f3296e96b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), currentInteractionType, resultContext); instance.Addr = ddc5359e9abd8451d99bca28f3296e96b is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> ? ddc5359e9abd8451d99bca28f3296e96b as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>)MARC.Everest.Connectors.Util.FromWireFormat(ddc5359e9abd8451d99bca28f3296e96b, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>));
}
else if(s.LocalName == "telecom" ) {

			object dafd8124c4a304e25a87be64a0e84d0d6 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>), currentInteractionType, resultContext); instance.Telecom = dafd8124c4a304e25a87be64a0e84d0d6 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> ? dafd8124c4a304e25a87be64a0e84d0d6 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>)MARC.Everest.Connectors.Util.FromWireFormat(dafd8124c4a304e25a87be64a0e84d0d6, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>));
}
else if(s.LocalName == "effectiveTime" ) {

			object d20024e4e720c4087a5deaea232fc9819 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), currentInteractionType, resultContext); instance.EffectiveTime = d20024e4e720c4087a5deaea232fc9819 is MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> ? d20024e4e720c4087a5deaea232fc9819 as MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> : (MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>)MARC.Everest.Connectors.Util.FromWireFormat(d20024e4e720c4087a5deaea232fc9819, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>));
}
else if(s.LocalName == "coveredPerson" ) {

			object de020eb8ccf8c45388f3f36b01c642a02 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.Person), currentInteractionType, resultContext); instance.CoveredBeneficiaryCoveredPartyChoice = de020eb8ccf8c45388f3f36b01c642a02 is MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.Person ? de020eb8ccf8c45388f3f36b01c642a02 as MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.Person : (MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.Person)MARC.Everest.Connectors.Util.FromWireFormat(de020eb8ccf8c45388f3f36b01c642a02, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.Person));
}
else if(s.LocalName == "coveredNonPersonLivingSubject" ) {

			object db3810a22c83640e99ec765e54b9f33ce = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.NonPersonLivingSubject), currentInteractionType, resultContext); instance.CoveredBeneficiaryCoveredPartyChoice = db3810a22c83640e99ec765e54b9f33ce is MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.NonPersonLivingSubject ? db3810a22c83640e99ec765e54b9f33ce as MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.NonPersonLivingSubject : (MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.NonPersonLivingSubject)MARC.Everest.Connectors.Util.FromWireFormat(db3810a22c83640e99ec765e54b9f33ce, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.NonPersonLivingSubject));
}
else if(s.LocalName == "coveredOrganization1" ) {

			object d90028feefed44879b3f4d04f3dcfe9dd = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization), currentInteractionType, resultContext); instance.CoveredBeneficiaryCoveredPartyChoice = d90028feefed44879b3f4d04f3dcfe9dd is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization ? d90028feefed44879b3f4d04f3dcfe9dd as MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization)MARC.Everest.Connectors.Util.FromWireFormat(d90028feefed44879b3f4d04f3dcfe9dd, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization));
}
else if(s.LocalName == "underwritingOrganization" ) {

			object d41ca345fb2d841f8a654c23bf94077ac = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization), currentInteractionType, resultContext); instance.UnderwritingOrganization = d41ca345fb2d841f8a654c23bf94077ac is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization ? d41ca345fb2d841f8a654c23bf94077ac as MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization)MARC.Everest.Connectors.Util.FromWireFormat(d41ca345fb2d841f8a654c23bf94077ac, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization));
}
else if(s.LocalName == "subjectOf1" ) {

			object da40447bdebb945e9bc519270d739883e = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject), currentInteractionType, resultContext); instance.SubjectOf1.Add(da40447bdebb945e9bc519270d739883e is MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject)da40447bdebb945e9bc519270d739883e : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject)MARC.Everest.Connectors.Util.FromWireFormat(da40447bdebb945e9bc519270d739883e, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject)));
}
else if(s.LocalName == "subjectOf2" ) {

			object d3d3b4828bd8744fa95ac770f7bcfabaf = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3), currentInteractionType, resultContext); instance.SubjectOf2.Add(d3d3b4828bd8744fa95ac770f7bcfabaf is MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3 ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3)d3d3b4828bd8744fa95ac770f7bcfabaf : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3)MARC.Everest.Connectors.Util.FromWireFormat(d3d3b4828bd8744fa95ac770f7bcfabaf, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3)));
}
else if(s.LocalName == "part" ) {

			object d4dbc700cabb447c8acc3971fe9952149 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part), currentInteractionType, resultContext); instance.Part.Add(d4dbc700cabb447c8acc3971fe9952149 is MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part)d4dbc700cabb447c8acc3971fe9952149 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part)MARC.Everest.Connectors.Util.FromWireFormat(d4dbc700cabb447c8acc3971fe9952149, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part)));
}
else if(s.LocalName == "indirectAuthority1" ) {

			object d58c1b264f46d4589a89264071c7018ff = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver), currentInteractionType, resultContext); instance.IndirectAuthority1.Add(d58c1b264f46d4589a89264071c7018ff is MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver)d58c1b264f46d4589a89264071c7018ff : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver)MARC.Everest.Connectors.Util.FromWireFormat(d58c1b264f46d4589a89264071c7018ff, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver)));
}
else if(s.LocalName == "indirectAuthority2" ) {

			object d8a6f8de1ee7e489db4b2a56851b78362 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver2), currentInteractionType, resultContext); instance.IndirectAuthority2 = d8a6f8de1ee7e489db4b2a56851b78362 is MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver2 ? d8a6f8de1ee7e489db4b2a56851b78362 as MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver2 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver2)MARC.Everest.Connectors.Util.FromWireFormat(d8a6f8de1ee7e489db4b2a56851b78362, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver2));
}
else if(s.LocalName == "realmCode" ) {

			object df8bb223cc8124cc293dc5cc3ff190ee4 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = df8bb223cc8124cc293dc5cc3ff190ee4 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? df8bb223cc8124cc293dc5cc3ff190ee4 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(df8bb223cc8124cc293dc5cc3ff190ee4, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d62f3a66d76074a2196ff378100bf6762 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d62f3a66d76074a2196ff378100bf6762 is MARC.Everest.DataTypes.II ? d62f3a66d76074a2196ff378100bf6762 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d62f3a66d76074a2196ff378100bf6762, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d0f823c5238ae41f1804baa00775697c8 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d0f823c5238ae41f1804baa00775697c8 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d0f823c5238ae41f1804baa00775697c8 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d0f823c5238ae41f1804baa00775697c8, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#10
0
		public virtual MARC.Everest.Connectors.ResultCode Graph(System.Xml.XmlWriter s, object o, MARC.Everest.Interfaces.IGraphable context, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterGraphResult resultContext) {
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty instance = o as MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty;;
			MARC.Everest.Connectors.ResultCode retVal = MARC.Everest.Connectors.ResultCode.Accepted;
			if(o == null) throw new System.ArgumentNullException("o");
			if(instance == null) throw new System.ArgumentException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty'!", o.GetType().FullName));
			bool isInstanceNull = instance.NullFlavor != null;
			if(instance.NullFlavor != null) this.Host.WriteNullFlavorUtil(s, instance.NullFlavor);
if(instance.ClassCode != null && !isInstanceNull) {

			s.WriteAttributeString("classCode", MARC.Everest.Connectors.Util.ToWireFormat(instance.ClassCode));
}
if(instance.RealmCode != null && !isInstanceNull) {

if(!instance.RealmCode.IsEmpty)
			retVal = Host.WriteElementUtil(s, "realmCode", (MARC.Everest.Interfaces.IGraphable)instance.RealmCode, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.TypeId != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "typeId", (MARC.Everest.Interfaces.IGraphable)instance.TypeId, typeof(MARC.Everest.DataTypes.II), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.TemplateId != null && !isInstanceNull) {

if(!instance.TemplateId.IsEmpty)
			retVal = Host.WriteElementUtil(s, "templateId", (MARC.Everest.Interfaces.IGraphable)instance.TemplateId, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Id == null && Host.CreateRequiredElements) { instance.Id = new MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>(); instance.Id.NullFlavor = MARC.Everest.DataTypes.NullFlavor.NoInformation; }
if(instance.Id != null && !isInstanceNull) {

if(!instance.Id.IsEmpty)
			retVal = Host.WriteElementUtil(s, "id", (MARC.Everest.Interfaces.IGraphable)instance.Id, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Code == null && Host.CreateRequiredElements) { instance.Code = new MARC.Everest.DataTypes.CE<System.String>(); instance.Code.NullFlavor = MARC.Everest.DataTypes.NullFlavor.NoInformation; }
if(instance.Code != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "code", (MARC.Everest.Interfaces.IGraphable)instance.Code, typeof(MARC.Everest.DataTypes.CE<System.String>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Addr != null && !isInstanceNull) {

if(!instance.Addr.IsEmpty)
			retVal = Host.WriteElementUtil(s, "addr", (MARC.Everest.Interfaces.IGraphable)instance.Addr, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Telecom != null && !isInstanceNull) {

if(!instance.Telecom.IsEmpty)
			retVal = Host.WriteElementUtil(s, "telecom", (MARC.Everest.Interfaces.IGraphable)instance.Telecom, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.EffectiveTime != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "effectiveTime", (MARC.Everest.Interfaces.IGraphable)instance.EffectiveTime, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.CoveredBeneficiaryCoveredPartyChoice != null && !isInstanceNull) {

 if(instance.CoveredBeneficiaryCoveredPartyChoice.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.Person)) {

			retVal = Host.WriteElementUtil(s, "coveredPerson", (MARC.Everest.Interfaces.IGraphable)instance.CoveredBeneficiaryCoveredPartyChoice, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.Person), context, resultContext);
}
else if(instance.CoveredBeneficiaryCoveredPartyChoice.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.NonPersonLivingSubject)) {

			retVal = Host.WriteElementUtil(s, "coveredNonPersonLivingSubject", (MARC.Everest.Interfaces.IGraphable)instance.CoveredBeneficiaryCoveredPartyChoice, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030007UV.NonPersonLivingSubject), context, resultContext);
}
else if(instance.CoveredBeneficiaryCoveredPartyChoice.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization)) {

			retVal = Host.WriteElementUtil(s, "coveredOrganization1", (MARC.Everest.Interfaces.IGraphable)instance.CoveredBeneficiaryCoveredPartyChoice, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization), context, resultContext);
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotSupportedChoiceResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, System.String.Format("Type {0} is not a valid choice according to available choice elements", instance.CoveredBeneficiaryCoveredPartyChoice.GetType()), s.ToString(), null)); }
}
if(instance.UnderwritingOrganization != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "underwritingOrganization", (MARC.Everest.Interfaces.IGraphable)instance.UnderwritingOrganization, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.SubjectOf1 != null && !isInstanceNull) {

foreach(MARC.Everest.Interfaces.IGraphable ig in instance.SubjectOf1) { retVal = Host.WriteElementUtil(s, "subjectOf1", ig, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject), context, resultContext); }
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.SubjectOf2 != null && !isInstanceNull) {

foreach(MARC.Everest.Interfaces.IGraphable ig in instance.SubjectOf2) { retVal = Host.WriteElementUtil(s, "subjectOf2", ig, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3), context, resultContext); }
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Part != null && !isInstanceNull) {

foreach(MARC.Everest.Interfaces.IGraphable ig in instance.Part) { retVal = Host.WriteElementUtil(s, "part", ig, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Part), context, resultContext); }
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.IndirectAuthority1 != null && !isInstanceNull) {

foreach(MARC.Everest.Interfaces.IGraphable ig in instance.IndirectAuthority1) { retVal = Host.WriteElementUtil(s, "indirectAuthority1", ig, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver), context, resultContext); }
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.IndirectAuthority2 != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "indirectAuthority2", (MARC.Everest.Interfaces.IGraphable)instance.IndirectAuthority2, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver2), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
			return retVal;
		}
示例#11
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityHasParts instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityHasParts();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"LOCE".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "LOCE", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d9a70f79385a0463da71fdab3e7ccd8cb = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d9a70f79385a0463da71fdab3e7ccd8cb is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d9a70f79385a0463da71fdab3e7ccd8cb as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d9a70f79385a0463da71fdab3e7ccd8cb, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "locatedPlace" ) {

			object dba82eb7566cb420c8f0a49208f219080 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place), currentInteractionType, resultContext); instance.LocatedPlace = dba82eb7566cb420c8f0a49208f219080 is MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place ? dba82eb7566cb420c8f0a49208f219080 as MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place : (MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place)MARC.Everest.Connectors.Util.FromWireFormat(dba82eb7566cb420c8f0a49208f219080, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place));
}
else if(s.LocalName == "realmCode" ) {

			object d19f62b390fbb4bc1a51c312074a95ff5 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d19f62b390fbb4bc1a51c312074a95ff5 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d19f62b390fbb4bc1a51c312074a95ff5 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d19f62b390fbb4bc1a51c312074a95ff5, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d2acb87b5e749487e9ce166f1c48a5729 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d2acb87b5e749487e9ce166f1c48a5729 is MARC.Everest.DataTypes.II ? d2acb87b5e749487e9ce166f1c48a5729 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d2acb87b5e749487e9ce166f1c48a5729, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object db4044bdc9e2941eb80a2e1cda40ddabd = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = db4044bdc9e2941eb80a2e1cda40ddabd is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? db4044bdc9e2941eb80a2e1cda40ddabd as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(db4044bdc9e2941eb80a2e1cda40ddabd, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#12
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityPartOf instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityPartOf();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"LOCE".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "LOCE", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d46656d46222c47f7b5c90ce474c98bea = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d46656d46222c47f7b5c90ce474c98bea is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d46656d46222c47f7b5c90ce474c98bea as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d46656d46222c47f7b5c90ce474c98bea, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "location" ) {

			object d3f88d74077c6495b9062aa44cb3a8b91 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place), currentInteractionType, resultContext); instance.Location = d3f88d74077c6495b9062aa44cb3a8b91 is MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place ? d3f88d74077c6495b9062aa44cb3a8b91 as MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place : (MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place)MARC.Everest.Connectors.Util.FromWireFormat(d3f88d74077c6495b9062aa44cb3a8b91, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place));
}
else if(s.LocalName == "realmCode" ) {

			object d5ae78e59f3b4493587f5f62668421c82 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d5ae78e59f3b4493587f5f62668421c82 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d5ae78e59f3b4493587f5f62668421c82 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d5ae78e59f3b4493587f5f62668421c82, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object db4bfeba74aa74da29553142cbf5bd1a2 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = db4bfeba74aa74da29553142cbf5bd1a2 is MARC.Everest.DataTypes.II ? db4bfeba74aa74da29553142cbf5bd1a2 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(db4bfeba74aa74da29553142cbf5bd1a2, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d67b0f34403db46a1a9a207d98cc2828d = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d67b0f34403db46a1a9a207d98cc2828d is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d67b0f34403db46a1a9a207d98cc2828d as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d67b0f34403db46a1a9a207d98cc2828d, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#13
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Organization instance = new MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Organization();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"ORG".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "ORG", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
if(s.GetAttribute("determinerCode") != null){ if(!"INSTANCE".Equals(s.GetAttribute("determinerCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("determinerCode"), "INSTANCE", false, s.ToString()));  instance.DeterminerCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("determinerCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d9511f2b32aad4876b72d824e47cf907c = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d9511f2b32aad4876b72d824e47cf907c is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d9511f2b32aad4876b72d824e47cf907c as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d9511f2b32aad4876b72d824e47cf907c, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "name" ) {

			object d023056ae46d14fcfa3c0c9fe1b87564c = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN>), currentInteractionType, resultContext); instance.Name = d023056ae46d14fcfa3c0c9fe1b87564c is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN> ? d023056ae46d14fcfa3c0c9fe1b87564c as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN>)MARC.Everest.Connectors.Util.FromWireFormat(d023056ae46d14fcfa3c0c9fe1b87564c, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN>));
}
else if(s.LocalName == "telecom" ) {

			object da711eb5fc19740aa80fbdeb026ec728e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>), currentInteractionType, resultContext); instance.Telecom = da711eb5fc19740aa80fbdeb026ec728e is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> ? da711eb5fc19740aa80fbdeb026ec728e as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>)MARC.Everest.Connectors.Util.FromWireFormat(da711eb5fc19740aa80fbdeb026ec728e, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>));
}
else if(s.LocalName == "notificationParty" ) {

			object da7d6ee1658524278a4d24b1c31fac9c3 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT040203UV01.NotificationParty), currentInteractionType, resultContext); instance.NotificationParty = da7d6ee1658524278a4d24b1c31fac9c3 is MARC.Everest.RMIM.UV.NE2008.COCT_MT040203UV01.NotificationParty ? da7d6ee1658524278a4d24b1c31fac9c3 as MARC.Everest.RMIM.UV.NE2008.COCT_MT040203UV01.NotificationParty : (MARC.Everest.RMIM.UV.NE2008.COCT_MT040203UV01.NotificationParty)MARC.Everest.Connectors.Util.FromWireFormat(da7d6ee1658524278a4d24b1c31fac9c3, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT040203UV01.NotificationParty));
}
else if(s.LocalName == "realmCode" ) {

			object deb5f424a3f3b416f8e537b74cb8600e4 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = deb5f424a3f3b416f8e537b74cb8600e4 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? deb5f424a3f3b416f8e537b74cb8600e4 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(deb5f424a3f3b416f8e537b74cb8600e4, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d90836a1eed714022bc6d20964a968e0e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d90836a1eed714022bc6d20964a968e0e is MARC.Everest.DataTypes.II ? d90836a1eed714022bc6d20964a968e0e as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d90836a1eed714022bc6d20964a968e0e, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object dc55a8f0e19fe4ac48cd873348ed7321f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = dc55a8f0e19fe4ac48cd873348ed7321f is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? dc55a8f0e19fe4ac48cd873348ed7321f as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dc55a8f0e19fe4ac48cd873348ed7321f, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#14
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT070000UV01.LocatedEntity instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT070000UV01.LocatedEntity();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"LOCE".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "LOCE", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object dde7615e8e97e4d96806b33f722c485f8 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = dde7615e8e97e4d96806b33f722c485f8 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? dde7615e8e97e4d96806b33f722c485f8 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dde7615e8e97e4d96806b33f722c485f8, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "addr" ) {

			object ddad6e1414556456d8214da3b4dc8c9c5 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), currentInteractionType, resultContext); instance.Addr = ddad6e1414556456d8214da3b4dc8c9c5 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> ? ddad6e1414556456d8214da3b4dc8c9c5 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>)MARC.Everest.Connectors.Util.FromWireFormat(ddad6e1414556456d8214da3b4dc8c9c5, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>));
}
else if(s.LocalName == "telecom" ) {

			object d0ac23cd42a89412ea6d8b58988887b3f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>), currentInteractionType, resultContext); instance.Telecom = d0ac23cd42a89412ea6d8b58988887b3f is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> ? d0ac23cd42a89412ea6d8b58988887b3f as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>)MARC.Everest.Connectors.Util.FromWireFormat(d0ac23cd42a89412ea6d8b58988887b3f, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>));
}
else if(s.LocalName == "statusCode" ) {

			object d89c24609bdd948aeb7b8fcb96e6b5e91 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>), currentInteractionType, resultContext); instance.StatusCode = d89c24609bdd948aeb7b8fcb96e6b5e91 is MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus> ? d89c24609bdd948aeb7b8fcb96e6b5e91 as MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus> : (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>)MARC.Everest.Connectors.Util.FromWireFormat(d89c24609bdd948aeb7b8fcb96e6b5e91, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>));
}
else if(s.LocalName == "effectiveTime" ) {

			object df2c85366de0d494b951a5d4c282355a6 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), currentInteractionType, resultContext); instance.EffectiveTime = df2c85366de0d494b951a5d4c282355a6 is MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> ? df2c85366de0d494b951a5d4c282355a6 as MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> : (MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>)MARC.Everest.Connectors.Util.FromWireFormat(df2c85366de0d494b951a5d4c282355a6, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>));
}
else if(s.LocalName == "location" ) {

			object dac315bba4459484baee60456f1eca66e = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place), currentInteractionType, resultContext); instance.Location = dac315bba4459484baee60456f1eca66e is MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place ? dac315bba4459484baee60456f1eca66e as MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place : (MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place)MARC.Everest.Connectors.Util.FromWireFormat(dac315bba4459484baee60456f1eca66e, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place));
}
else if(s.LocalName == "realmCode" ) {

			object d5e90b2f9c4094e6f9ad208fd20686271 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d5e90b2f9c4094e6f9ad208fd20686271 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d5e90b2f9c4094e6f9ad208fd20686271 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d5e90b2f9c4094e6f9ad208fd20686271, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dfb78fd7d768741e6b1c6737049078b40 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dfb78fd7d768741e6b1c6737049078b40 is MARC.Everest.DataTypes.II ? dfb78fd7d768741e6b1c6737049078b40 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dfb78fd7d768741e6b1c6737049078b40, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d45a9990d564a4201a0cdecd39c0c0d21 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d45a9990d564a4201a0cdecd39c0c0d21 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d45a9990d564a4201a0cdecd39c0c0d21 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d45a9990d564a4201a0cdecd39c0c0d21, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#15
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"ORG".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "ORG", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityClass>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityClass>)); }
if(s.GetAttribute("determinerCode") != null){ if(!"INSTANCE".Equals(s.GetAttribute("determinerCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("determinerCode"), "INSTANCE", false, s.ToString()));  instance.DeterminerCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("determinerCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d85eba10393ca4d128e9baa9289255492 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d85eba10393ca4d128e9baa9289255492 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d85eba10393ca4d128e9baa9289255492 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d85eba10393ca4d128e9baa9289255492, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object d90ebce59355b4340848544d781de6c6f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = d90ebce59355b4340848544d781de6c6f is MARC.Everest.DataTypes.CE<System.String> ? d90ebce59355b4340848544d781de6c6f as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d90ebce59355b4340848544d781de6c6f, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "name" ) {

			object d26492d8d1ada497f8ff1b868f7a68622 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON>), currentInteractionType, resultContext); instance.Name = d26492d8d1ada497f8ff1b868f7a68622 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON> ? d26492d8d1ada497f8ff1b868f7a68622 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON>)MARC.Everest.Connectors.Util.FromWireFormat(d26492d8d1ada497f8ff1b868f7a68622, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON>));
}
else if(s.LocalName == "desc" ) {

			object df409ed0037f142818b5e33fd1c66ef6b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.ED), currentInteractionType, resultContext); instance.Desc = df409ed0037f142818b5e33fd1c66ef6b is MARC.Everest.DataTypes.ED ? df409ed0037f142818b5e33fd1c66ef6b as MARC.Everest.DataTypes.ED : (MARC.Everest.DataTypes.ED)MARC.Everest.Connectors.Util.FromWireFormat(df409ed0037f142818b5e33fd1c66ef6b, typeof(MARC.Everest.DataTypes.ED));
}
else if(s.LocalName == "statusCode" ) {

			object d61abaf9fdfd44946a0169e8a96c42c06 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityStatus>), currentInteractionType, resultContext); instance.StatusCode = d61abaf9fdfd44946a0169e8a96c42c06 is MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityStatus> ? d61abaf9fdfd44946a0169e8a96c42c06 as MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityStatus> : (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityStatus>)MARC.Everest.Connectors.Util.FromWireFormat(d61abaf9fdfd44946a0169e8a96c42c06, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityStatus>));
}
else if(s.LocalName == "telecom" ) {

			object db1ed5139b6ee4f30acbcf4bf3f67ad12 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>), currentInteractionType, resultContext); instance.Telecom = db1ed5139b6ee4f30acbcf4bf3f67ad12 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> ? db1ed5139b6ee4f30acbcf4bf3f67ad12 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>)MARC.Everest.Connectors.Util.FromWireFormat(db1ed5139b6ee4f30acbcf4bf3f67ad12, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.TEL>));
}
else if(s.LocalName == "addr" ) {

			object dd104357c43a04f4184417669b83e3df7 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), currentInteractionType, resultContext); instance.Addr = dd104357c43a04f4184417669b83e3df7 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> ? dd104357c43a04f4184417669b83e3df7 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>)MARC.Everest.Connectors.Util.FromWireFormat(dd104357c43a04f4184417669b83e3df7, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>));
}
else if(s.LocalName == "standardIndustryClassCode" ) {

			object d2742defc3ae84790ae199fe2e777494f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.StandardIndustryClassCode = d2742defc3ae84790ae199fe2e777494f is MARC.Everest.DataTypes.CE<System.String> ? d2742defc3ae84790ae199fe2e777494f as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d2742defc3ae84790ae199fe2e777494f, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "asOrganizationPartOf" ) {

			object d1c54470e88c145b5816ac7cc04f84c01 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationPartOf), currentInteractionType, resultContext); instance.AsOrganizationPartOf.Add(d1c54470e88c145b5816ac7cc04f84c01 is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationPartOf ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationPartOf)d1c54470e88c145b5816ac7cc04f84c01 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationPartOf)MARC.Everest.Connectors.Util.FromWireFormat(d1c54470e88c145b5816ac7cc04f84c01, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationPartOf)));
}
else if(s.LocalName == "contactParty" ) {

			object d4a60e778f6164c7fa16b269aad7dd324 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.ContactParty), currentInteractionType, resultContext); instance.ContactParty.Add(d4a60e778f6164c7fa16b269aad7dd324 is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.ContactParty ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.ContactParty)d4a60e778f6164c7fa16b269aad7dd324 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.ContactParty)MARC.Everest.Connectors.Util.FromWireFormat(d4a60e778f6164c7fa16b269aad7dd324, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.ContactParty)));
}
else if(s.LocalName == "organizationContains" ) {

			object dce8bb108cf4d4891bf78991e258f7153 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationContains), currentInteractionType, resultContext); instance.OrganizationContains.Add(dce8bb108cf4d4891bf78991e258f7153 is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationContains ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationContains)dce8bb108cf4d4891bf78991e258f7153 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationContains)MARC.Everest.Connectors.Util.FromWireFormat(dce8bb108cf4d4891bf78991e258f7153, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationContains)));
}
else if(s.LocalName == "realmCode" ) {

			object d86217443b2e24d1bb5edae082b3cf694 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d86217443b2e24d1bb5edae082b3cf694 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d86217443b2e24d1bb5edae082b3cf694 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d86217443b2e24d1bb5edae082b3cf694, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d3d2c24d29a494e129ffb8667194cc74a = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d3d2c24d29a494e129ffb8667194cc74a is MARC.Everest.DataTypes.II ? d3d2c24d29a494e129ffb8667194cc74a as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d3d2c24d29a494e129ffb8667194cc74a, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object dcd65a88adb6348198892a8ec66c03206 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = dcd65a88adb6348198892a8ec66c03206 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? dcd65a88adb6348198892a8ec66c03206 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dcd65a88adb6348198892a8ec66c03206, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#16
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"ORG".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "ORG", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityClass>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityClass>)); }
if(s.GetAttribute("determinerCode") != null){ if(!"INSTANCE".Equals(s.GetAttribute("determinerCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("determinerCode"), "INSTANCE", false, s.ToString()));  instance.DeterminerCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("determinerCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object da36086fff0af4749a8c6752e7f6a15eb = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = da36086fff0af4749a8c6752e7f6a15eb is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? da36086fff0af4749a8c6752e7f6a15eb as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(da36086fff0af4749a8c6752e7f6a15eb, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object d16b3592efbff42fba776326801751a3a = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = d16b3592efbff42fba776326801751a3a is MARC.Everest.DataTypes.CE<System.String> ? d16b3592efbff42fba776326801751a3a as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d16b3592efbff42fba776326801751a3a, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "name" ) {

			object d2dbe7c8cdc0542f483f1e147dfe4ef61 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON>), currentInteractionType, resultContext); instance.Name = d2dbe7c8cdc0542f483f1e147dfe4ef61 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON> ? d2dbe7c8cdc0542f483f1e147dfe4ef61 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON>)MARC.Everest.Connectors.Util.FromWireFormat(d2dbe7c8cdc0542f483f1e147dfe4ef61, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ON>));
}
else if(s.LocalName == "addr" ) {

			object d64ec920b4bf547c497f4a23dc4ceaacc = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), currentInteractionType, resultContext); instance.Addr = d64ec920b4bf547c497f4a23dc4ceaacc is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> ? d64ec920b4bf547c497f4a23dc4ceaacc as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>)MARC.Everest.Connectors.Util.FromWireFormat(d64ec920b4bf547c497f4a23dc4ceaacc, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>));
}
else if(s.LocalName == "realmCode" ) {

			object d44228ab5b9824fe6b69933f7440e1b3e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d44228ab5b9824fe6b69933f7440e1b3e is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d44228ab5b9824fe6b69933f7440e1b3e as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d44228ab5b9824fe6b69933f7440e1b3e, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dafba14a801f44a31b74885b20a750aec = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dafba14a801f44a31b74885b20a750aec is MARC.Everest.DataTypes.II ? dafba14a801f44a31b74885b20a750aec as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dafba14a801f44a31b74885b20a750aec, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d2fd740b2d1d74c25811ca1d18d7aa5af = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d2fd740b2d1d74c25811ca1d18d7aa5af is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d2fd740b2d1d74c25811ca1d18d7aa5af as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d2fd740b2d1d74c25811ca1d18d7aa5af, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#17
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationPartOf instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationPartOf();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"PART".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "PART", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object dd4dc3bb31d644ce5893528d6ec78cdf0 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = dd4dc3bb31d644ce5893528d6ec78cdf0 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? dd4dc3bb31d644ce5893528d6ec78cdf0 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dd4dc3bb31d644ce5893528d6ec78cdf0, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object d04dc222e7bdf415b9f7abada465eff01 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = d04dc222e7bdf415b9f7abada465eff01 is MARC.Everest.DataTypes.CE<System.String> ? d04dc222e7bdf415b9f7abada465eff01 as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d04dc222e7bdf415b9f7abada465eff01, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "statusCode" ) {

			object d523ce662073549ec9678ea1917e24c3c = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>), currentInteractionType, resultContext); instance.StatusCode = d523ce662073549ec9678ea1917e24c3c is MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus> ? d523ce662073549ec9678ea1917e24c3c as MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus> : (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>)MARC.Everest.Connectors.Util.FromWireFormat(d523ce662073549ec9678ea1917e24c3c, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>));
}
else if(s.LocalName == "effectiveTime" ) {

			object d179ffcbdedc34948a2d9a2544cf049eb = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), currentInteractionType, resultContext); instance.EffectiveTime = d179ffcbdedc34948a2d9a2544cf049eb is MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> ? d179ffcbdedc34948a2d9a2544cf049eb as MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> : (MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>)MARC.Everest.Connectors.Util.FromWireFormat(d179ffcbdedc34948a2d9a2544cf049eb, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>));
}
else if(s.LocalName == "wholeOrganization" ) {

			object d39b5a3723e6c437fa489759c0ddce42d = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization), currentInteractionType, resultContext); instance.WholeOrganization = d39b5a3723e6c437fa489759c0ddce42d is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization ? d39b5a3723e6c437fa489759c0ddce42d as MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization)MARC.Everest.Connectors.Util.FromWireFormat(d39b5a3723e6c437fa489759c0ddce42d, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization));
}
else if(s.LocalName == "realmCode" ) {

			object dabee0463e5634a579ec111d738897993 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = dabee0463e5634a579ec111d738897993 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? dabee0463e5634a579ec111d738897993 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(dabee0463e5634a579ec111d738897993, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d322b9652df9649e18d4ebabb354fc7ff = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d322b9652df9649e18d4ebabb354fc7ff is MARC.Everest.DataTypes.II ? d322b9652df9649e18d4ebabb354fc7ff as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d322b9652df9649e18d4ebabb354fc7ff, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object dc3552f914d424be9bdc5fcc300c47cbd = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = dc3552f914d424be9bdc5fcc300c47cbd is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? dc3552f914d424be9bdc5fcc300c47cbd as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dc3552f914d424be9bdc5fcc300c47cbd, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#18
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3 instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject3();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"SBJ".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "SBJ", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "verification" ) {

			object d3fe67d162b3d4ece91b3342553c878b4 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Verification), currentInteractionType, resultContext); instance.Verification = d3fe67d162b3d4ece91b3342553c878b4 is MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Verification ? d3fe67d162b3d4ece91b3342553c878b4 as MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Verification : (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Verification)MARC.Everest.Connectors.Util.FromWireFormat(d3fe67d162b3d4ece91b3342553c878b4, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Verification));
}
else if(s.LocalName == "realmCode" ) {

			object dbb0c7b71c3b14cd3ba4b1475b6e38e0e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = dbb0c7b71c3b14cd3ba4b1475b6e38e0e is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? dbb0c7b71c3b14cd3ba4b1475b6e38e0e as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(dbb0c7b71c3b14cd3ba4b1475b6e38e0e, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object ddb0354da9a284a3e80044265806b464b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = ddb0354da9a284a3e80044265806b464b is MARC.Everest.DataTypes.II ? ddb0354da9a284a3e80044265806b464b as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(ddb0354da9a284a3e80044265806b464b, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d4e1bd2dafe7943c1adff7fb9072fb6fd = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d4e1bd2dafe7943c1adff7fb9072fb6fd is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d4e1bd2dafe7943c1adff7fb9072fb6fd as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d4e1bd2dafe7943c1adff7fb9072fb6fd, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#19
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"ASSIGNED".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "ASSIGNED", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object de3a9b29ccab543248ab80ecaf806e58f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = de3a9b29ccab543248ab80ecaf806e58f is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? de3a9b29ccab543248ab80ecaf806e58f as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(de3a9b29ccab543248ab80ecaf806e58f, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object dbc468ba441f54d8b9e7ecd7157f75f99 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = dbc468ba441f54d8b9e7ecd7157f75f99 is MARC.Everest.DataTypes.CE<System.String> ? dbc468ba441f54d8b9e7ecd7157f75f99 as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(dbc468ba441f54d8b9e7ecd7157f75f99, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "addr" ) {

			object d4bee5ce485db4f3c8b6f308c8a051fa7 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>), currentInteractionType, resultContext); instance.Addr = d4bee5ce485db4f3c8b6f308c8a051fa7 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> ? d4bee5ce485db4f3c8b6f308c8a051fa7 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>)MARC.Everest.Connectors.Util.FromWireFormat(d4bee5ce485db4f3c8b6f308c8a051fa7, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.AD>));
}
else if(s.LocalName == "assignedPerson" ) {

			object d6a8832c34e384c4fb99c4d34e5f88e65 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090103UV01.Person), currentInteractionType, resultContext); instance.AssignedPrincipalChoiceList = d6a8832c34e384c4fb99c4d34e5f88e65 is MARC.Everest.RMIM.UV.NE2008.COCT_MT090103UV01.Person ? d6a8832c34e384c4fb99c4d34e5f88e65 as MARC.Everest.RMIM.UV.NE2008.COCT_MT090103UV01.Person : (MARC.Everest.RMIM.UV.NE2008.COCT_MT090103UV01.Person)MARC.Everest.Connectors.Util.FromWireFormat(d6a8832c34e384c4fb99c4d34e5f88e65, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090103UV01.Person));
}
else if(s.LocalName == "assignedOrganization" ) {

			object defa31c409b0a49a1aed3968585188751 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090203UV01.Organization), currentInteractionType, resultContext); instance.AssignedPrincipalChoiceList = defa31c409b0a49a1aed3968585188751 is MARC.Everest.RMIM.UV.NE2008.COCT_MT090203UV01.Organization ? defa31c409b0a49a1aed3968585188751 as MARC.Everest.RMIM.UV.NE2008.COCT_MT090203UV01.Organization : (MARC.Everest.RMIM.UV.NE2008.COCT_MT090203UV01.Organization)MARC.Everest.Connectors.Util.FromWireFormat(defa31c409b0a49a1aed3968585188751, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090203UV01.Organization));
}
else if(s.LocalName == "assignedDevice" ) {

			object dad45bdd08eed44fe9d9e1e5153de183f = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090303UV01.Device), currentInteractionType, resultContext); instance.AssignedPrincipalChoiceList = dad45bdd08eed44fe9d9e1e5153de183f is MARC.Everest.RMIM.UV.NE2008.COCT_MT090303UV01.Device ? dad45bdd08eed44fe9d9e1e5153de183f as MARC.Everest.RMIM.UV.NE2008.COCT_MT090303UV01.Device : (MARC.Everest.RMIM.UV.NE2008.COCT_MT090303UV01.Device)MARC.Everest.Connectors.Util.FromWireFormat(dad45bdd08eed44fe9d9e1e5153de183f, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090303UV01.Device));
}
else if(s.LocalName == "representedOrganization" ) {

			object d7490f1abcf574486b893676ef4bc3553 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization), currentInteractionType, resultContext); instance.RepresentedOrganization = d7490f1abcf574486b893676ef4bc3553 is MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization ? d7490f1abcf574486b893676ef4bc3553 as MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization)MARC.Everest.Connectors.Util.FromWireFormat(d7490f1abcf574486b893676ef4bc3553, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150002UV01.Organization));
}
else if(s.LocalName == "realmCode" ) {

			object d1f9eca31615844cc9ff3936e6229ad9a = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d1f9eca31615844cc9ff3936e6229ad9a is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d1f9eca31615844cc9ff3936e6229ad9a as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d1f9eca31615844cc9ff3936e6229ad9a, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d189c468608cf4738b6f9e5a578443037 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d189c468608cf4738b6f9e5a578443037 is MARC.Everest.DataTypes.II ? d189c468608cf4738b6f9e5a578443037 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d189c468608cf4738b6f9e5a578443037, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object dc1e68f67bb434772bf35ff19439d6727 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = dc1e68f67bb434772bf35ff19439d6727 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? dc1e68f67bb434772bf35ff19439d6727 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dc1e68f67bb434772bf35ff19439d6727, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#20
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.Subject();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"SBJ".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "SBJ", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "eligibilityStatusObservation" ) {

			object dc346dd1bc9a6437b8dcf97f306a97ef9 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.EligibilityStatusObservation), currentInteractionType, resultContext); instance.EligibilityStatusObservation = dc346dd1bc9a6437b8dcf97f306a97ef9 is MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.EligibilityStatusObservation ? dc346dd1bc9a6437b8dcf97f306a97ef9 as MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.EligibilityStatusObservation : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.EligibilityStatusObservation)MARC.Everest.Connectors.Util.FromWireFormat(dc346dd1bc9a6437b8dcf97f306a97ef9, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.EligibilityStatusObservation));
}
else if(s.LocalName == "realmCode" ) {

			object d7f08dde9e02642328548ab625f05a38f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d7f08dde9e02642328548ab625f05a38f is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d7f08dde9e02642328548ab625f05a38f as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d7f08dde9e02642328548ab625f05a38f, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dd990180cdbf846b7b38d253d74769364 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dd990180cdbf846b7b38d253d74769364 is MARC.Everest.DataTypes.II ? dd990180cdbf846b7b38d253d74769364 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dd990180cdbf846b7b38d253d74769364, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object dbf53166e9abf4dd387d408420d71da7b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = dbf53166e9abf4dd387d408420d71da7b is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? dbf53166e9abf4dd387d408420d71da7b as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dbf53166e9abf4dd387d408420d71da7b, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#21
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.Place();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"PLC".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "PLC", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityClass>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityClass>)); }
if(s.GetAttribute("determinerCode") != null){ if(!"INSTANCE".Equals(s.GetAttribute("determinerCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("determinerCode"), "INSTANCE", false, s.ToString()));  instance.DeterminerCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("determinerCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.EntityDeterminer>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d6ef498db27d94d23a18de04f005b3ddd = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d6ef498db27d94d23a18de04f005b3ddd is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d6ef498db27d94d23a18de04f005b3ddd as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d6ef498db27d94d23a18de04f005b3ddd, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object d781cf7f139d04be0bea871dd5f752bb1 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = d781cf7f139d04be0bea871dd5f752bb1 is MARC.Everest.DataTypes.CE<System.String> ? d781cf7f139d04be0bea871dd5f752bb1 as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d781cf7f139d04be0bea871dd5f752bb1, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "name" ) {

			object d4235c35d5b0f4756a0a08cd42234a62f = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN>), currentInteractionType, resultContext); instance.Name = d4235c35d5b0f4756a0a08cd42234a62f is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN> ? d4235c35d5b0f4756a0a08cd42234a62f as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN>)MARC.Everest.Connectors.Util.FromWireFormat(d4235c35d5b0f4756a0a08cd42234a62f, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.EN>));
}
else if(s.LocalName == "desc" ) {

			object dd104c61bad5c4b4ba9dcffec4b6bb735 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.ED), currentInteractionType, resultContext); instance.Desc = dd104c61bad5c4b4ba9dcffec4b6bb735 is MARC.Everest.DataTypes.ED ? dd104c61bad5c4b4ba9dcffec4b6bb735 as MARC.Everest.DataTypes.ED : (MARC.Everest.DataTypes.ED)MARC.Everest.Connectors.Util.FromWireFormat(dd104c61bad5c4b4ba9dcffec4b6bb735, typeof(MARC.Everest.DataTypes.ED));
}
else if(s.LocalName == "directionsText" ) {

			object d18d4dee30f6d4524a1b20625a774420a = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.ED), currentInteractionType, resultContext); instance.DirectionsText = d18d4dee30f6d4524a1b20625a774420a is MARC.Everest.DataTypes.ED ? d18d4dee30f6d4524a1b20625a774420a as MARC.Everest.DataTypes.ED : (MARC.Everest.DataTypes.ED)MARC.Everest.Connectors.Util.FromWireFormat(d18d4dee30f6d4524a1b20625a774420a, typeof(MARC.Everest.DataTypes.ED));
}
else if(s.LocalName == "positionText" ) {

			object d348cb2d4936344c69ae290cc71d25e8b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.ED), currentInteractionType, resultContext); instance.PositionText = d348cb2d4936344c69ae290cc71d25e8b is MARC.Everest.DataTypes.ED ? d348cb2d4936344c69ae290cc71d25e8b as MARC.Everest.DataTypes.ED : (MARC.Everest.DataTypes.ED)MARC.Everest.Connectors.Util.FromWireFormat(d348cb2d4936344c69ae290cc71d25e8b, typeof(MARC.Everest.DataTypes.ED));
}
else if(s.LocalName == "gpsText" ) {

			object dd549c9e406cb452dbe184d60cff9dfe1 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.ST), currentInteractionType, resultContext); instance.GpsText = dd549c9e406cb452dbe184d60cff9dfe1 is MARC.Everest.DataTypes.ST ? dd549c9e406cb452dbe184d60cff9dfe1 as MARC.Everest.DataTypes.ST : (MARC.Everest.DataTypes.ST)MARC.Everest.Connectors.Util.FromWireFormat(dd549c9e406cb452dbe184d60cff9dfe1, typeof(MARC.Everest.DataTypes.ST));
}
else if(s.LocalName == "asLocatedEntityPartOf" ) {

			object d83c8f6a04e0e40dbaf7f059bec9386c7 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityPartOf), currentInteractionType, resultContext); instance.AsLocatedEntityPartOf.Add(d83c8f6a04e0e40dbaf7f059bec9386c7 is MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityPartOf ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityPartOf)d83c8f6a04e0e40dbaf7f059bec9386c7 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityPartOf)MARC.Everest.Connectors.Util.FromWireFormat(d83c8f6a04e0e40dbaf7f059bec9386c7, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityPartOf)));
}
else if(s.LocalName == "locatedEntityHasParts" ) {

			object d415113a2a15c4536a600599f927586f2 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityHasParts), currentInteractionType, resultContext); instance.LocatedEntityHasParts.Add(d415113a2a15c4536a600599f927586f2 is MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityHasParts ? (MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityHasParts)d415113a2a15c4536a600599f927586f2 : (MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityHasParts)MARC.Everest.Connectors.Util.FromWireFormat(d415113a2a15c4536a600599f927586f2, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT710000UV01.LocatedEntityHasParts)));
}
else if(s.LocalName == "realmCode" ) {

			object de12da0f9a7424f18bcc1a56b0c444d8d = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = de12da0f9a7424f18bcc1a56b0c444d8d is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? de12da0f9a7424f18bcc1a56b0c444d8d as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(de12da0f9a7424f18bcc1a56b0c444d8d, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dacfac6b041fd4ce4b4a10d8c26e6ef94 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dacfac6b041fd4ce4b4a10d8c26e6ef94 is MARC.Everest.DataTypes.II ? dacfac6b041fd4ce4b4a10d8c26e6ef94 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dacfac6b041fd4ce4b4a10d8c26e6ef94, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object da39ceea97e37472f9e31dbec3859d21c = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = da39ceea97e37472f9e31dbec3859d21c is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? da39ceea97e37472f9e31dbec3859d21c as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(da39ceea97e37472f9e31dbec3859d21c, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#22
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationContains instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.OrganizationContains();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"PART".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "PART", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d06235746857240dab805536c060ae5ca = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d06235746857240dab805536c060ae5ca is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d06235746857240dab805536c060ae5ca as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d06235746857240dab805536c060ae5ca, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object d177c05d16d3a49a4af56672240b1775e = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.Code = d177c05d16d3a49a4af56672240b1775e is MARC.Everest.DataTypes.CE<System.String> ? d177c05d16d3a49a4af56672240b1775e as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d177c05d16d3a49a4af56672240b1775e, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "statusCode" ) {

			object d550ab8448de74d16a4545bbb81526e35 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>), currentInteractionType, resultContext); instance.StatusCode = d550ab8448de74d16a4545bbb81526e35 is MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus> ? d550ab8448de74d16a4545bbb81526e35 as MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus> : (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>)MARC.Everest.Connectors.Util.FromWireFormat(d550ab8448de74d16a4545bbb81526e35, typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleStatus>));
}
else if(s.LocalName == "effectiveTime" ) {

			object d6e829546568e4f8899687225e3ddc3d6 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), currentInteractionType, resultContext); instance.EffectiveTime = d6e829546568e4f8899687225e3ddc3d6 is MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> ? d6e829546568e4f8899687225e3ddc3d6 as MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> : (MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>)MARC.Everest.Connectors.Util.FromWireFormat(d6e829546568e4f8899687225e3ddc3d6, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>));
}
else if(s.LocalName == "partOrganization" ) {

			object df0f69b492afc4bbdbb6a122d657b8e1b = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization), currentInteractionType, resultContext); instance.PartOrganization = df0f69b492afc4bbdbb6a122d657b8e1b is MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization ? df0f69b492afc4bbdbb6a122d657b8e1b as MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization : (MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization)MARC.Everest.Connectors.Util.FromWireFormat(df0f69b492afc4bbdbb6a122d657b8e1b, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150000UV02.Organization));
}
else if(s.LocalName == "realmCode" ) {

			object d51309ab05b924b2e9ff2f4610d35da1c = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d51309ab05b924b2e9ff2f4610d35da1c is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d51309ab05b924b2e9ff2f4610d35da1c as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d51309ab05b924b2e9ff2f4610d35da1c, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dff2ada61ec7f4494bcf8d9658b4592ca = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dff2ada61ec7f4494bcf8d9658b4592ca is MARC.Everest.DataTypes.II ? dff2ada61ec7f4494bcf8d9658b4592ca as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dff2ada61ec7f4494bcf8d9658b4592ca, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d40b5c608bf2841d6a14314e7db7272a8 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d40b5c608bf2841d6a14314e7db7272a8 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d40b5c608bf2841d6a14314e7db7272a8 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d40b5c608bf2841d6a14314e7db7272a8, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#23
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.VerificationRequest instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.VerificationRequest();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"OBS".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "OBS", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
if(s.GetAttribute("moodCode") != null){ if(!"RQO".Equals(s.GetAttribute("moodCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("moodCode"), "RQO", false, s.ToString()));  instance.MoodCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("moodCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object db5e82a8238e0493a9c21a7decb245045 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = db5e82a8238e0493a9c21a7decb245045 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? db5e82a8238e0493a9c21a7decb245045 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(db5e82a8238e0493a9c21a7decb245045, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "realmCode" ) {

			object dc09c7be05f0345e68e270bcfea918be9 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = dc09c7be05f0345e68e270bcfea918be9 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? dc09c7be05f0345e68e270bcfea918be9 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(dc09c7be05f0345e68e270bcfea918be9, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d8532709f8ff64a13ab0a94f5fca30527 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d8532709f8ff64a13ab0a94f5fca30527 is MARC.Everest.DataTypes.II ? d8532709f8ff64a13ab0a94f5fca30527 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d8532709f8ff64a13ab0a94f5fca30527, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object dfd6661adb51f49c49da3c8142d3b081a = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = dfd6661adb51f49c49da3c8142d3b081a is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? dfd6661adb51f49c49da3c8142d3b081a as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(dfd6661adb51f49c49da3c8142d3b081a, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#24
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.EligibilityStatusObservation instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.EligibilityStatusObservation();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"OBS".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "OBS", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
if(s.GetAttribute("moodCode") != null){ if(!"EVN".Equals(s.GetAttribute("moodCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("moodCode"), "EVN", false, s.ToString()));  instance.MoodCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("moodCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "id" ) {

			object d8d1d008e275b4b729630cf62c4e7a335 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.Id = d8d1d008e275b4b729630cf62c4e7a335 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> ? d8d1d008e275b4b729630cf62c4e7a335 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d8d1d008e275b4b729630cf62c4e7a335, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>));
}
else if(s.LocalName == "code" ) {

			object d9b647eae259b46aa8226d4eb0da7d2d7 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CD<System.String>), currentInteractionType, resultContext); instance.Code = d9b647eae259b46aa8226d4eb0da7d2d7 is MARC.Everest.DataTypes.CD<System.String> ? d9b647eae259b46aa8226d4eb0da7d2d7 as MARC.Everest.DataTypes.CD<System.String> : (MARC.Everest.DataTypes.CD<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d9b647eae259b46aa8226d4eb0da7d2d7, typeof(MARC.Everest.DataTypes.CD<System.String>));
}
else if(s.LocalName == "effectiveTime" ) {

			object dd32bc584511140b7a57400708d209cc8 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), currentInteractionType, resultContext); instance.EffectiveTime = dd32bc584511140b7a57400708d209cc8 is MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> ? dd32bc584511140b7a57400708d209cc8 as MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS> : (MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>)MARC.Everest.Connectors.Util.FromWireFormat(dd32bc584511140b7a57400708d209cc8, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>));
}
else if(s.LocalName == "value" ) {

			object d057a71b11f3f45ccb564657a05453383 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ED>), currentInteractionType, resultContext); instance.Value = d057a71b11f3f45ccb564657a05453383 is MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ED> ? d057a71b11f3f45ccb564657a05453383 as MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ED> : (MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ED>)MARC.Everest.Connectors.Util.FromWireFormat(d057a71b11f3f45ccb564657a05453383, typeof(MARC.Everest.DataTypes.BAG<MARC.Everest.DataTypes.ED>));
}
else if(s.LocalName == "realmCode" ) {

			object d31c29c9cefcc49f4bc4ab5a81dc62af5 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d31c29c9cefcc49f4bc4ab5a81dc62af5 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d31c29c9cefcc49f4bc4ab5a81dc62af5 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d31c29c9cefcc49f4bc4ab5a81dc62af5, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d6fbdf7f77c9141e086366aabf1ade687 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d6fbdf7f77c9141e086366aabf1ade687 is MARC.Everest.DataTypes.II ? d6fbdf7f77c9141e086366aabf1ade687 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d6fbdf7f77c9141e086366aabf1ade687, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d68308fda85e14bf3a5b352e0eea920cc = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d68308fda85e14bf3a5b352e0eea920cc is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d68308fda85e14bf3a5b352e0eea920cc as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d68308fda85e14bf3a5b352e0eea920cc, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#25
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InformationProvision instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InformationProvision();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("classCode") != null){ if(!"INFRM".Equals(s.GetAttribute("classCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("classCode"), "INFRM", false, s.ToString()));  instance.ClassCode = (MARC.Everest.DataTypes.CS<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("classCode"), typeof(MARC.Everest.DataTypes.CS<System.String>)); }
if(s.GetAttribute("moodCode") != null){ if(!"EVN".Equals(s.GetAttribute("moodCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("moodCode"), "EVN", false, s.ToString()));  instance.MoodCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("moodCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActMood>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "performer" ) {

			object d8e34f6bfeb6a4d43a6a72e6685b1ae59 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Performer), currentInteractionType, resultContext); instance.Performer = d8e34f6bfeb6a4d43a6a72e6685b1ae59 is MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Performer ? d8e34f6bfeb6a4d43a6a72e6685b1ae59 as MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Performer : (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Performer)MARC.Everest.Connectors.Util.FromWireFormat(d8e34f6bfeb6a4d43a6a72e6685b1ae59, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.Performer));
}
else if(s.LocalName == "realmCode" ) {

			object dc72469066497488c8d87b7a3d482e0f4 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = dc72469066497488c8d87b7a3d482e0f4 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? dc72469066497488c8d87b7a3d482e0f4 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(dc72469066497488c8d87b7a3d482e0f4, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dab036d9b427c480cae5adad26cecf4ef = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dab036d9b427c480cae5adad26cecf4ef is MARC.Everest.DataTypes.II ? dab036d9b427c480cae5adad26cecf4ef as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dab036d9b427c480cae5adad26cecf4ef, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d4a76838aae0f45f5b6d0c9eec1c8ebf6 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d4a76838aae0f45f5b6d0c9eec1c8ebf6 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d4a76838aae0f45f5b6d0c9eec1c8ebf6 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d4a76838aae0f45f5b6d0c9eec1c8ebf6, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#26
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InFulfillmentOf instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.InFulfillmentOf();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"FLFS".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "FLFS", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActRelationshipType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ActRelationshipType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "verificationRequest" ) {

			object d307c98f86ec845f49a96d23666e9a645 = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.VerificationRequest), currentInteractionType, resultContext); instance.VerificationRequest = d307c98f86ec845f49a96d23666e9a645 is MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.VerificationRequest ? d307c98f86ec845f49a96d23666e9a645 as MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.VerificationRequest : (MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.VerificationRequest)MARC.Everest.Connectors.Util.FromWireFormat(d307c98f86ec845f49a96d23666e9a645, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.VerificationRequest));
}
else if(s.LocalName == "realmCode" ) {

			object df09fc6e8de1344aa880be3066cd05974 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = df09fc6e8de1344aa880be3066cd05974 is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? df09fc6e8de1344aa880be3066cd05974 as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(df09fc6e8de1344aa880be3066cd05974, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object db1cf9cf160af4627b9cdcb3748e855c9 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = db1cf9cf160af4627b9cdcb3748e855c9 is MARC.Everest.DataTypes.II ? db1cf9cf160af4627b9cdcb3748e855c9 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(db1cf9cf160af4627b9cdcb3748e855c9, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d93864a5f040746bf9d89fc509dbdf1d2 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d93864a5f040746bf9d89fc509dbdf1d2 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d93864a5f040746bf9d89fc509dbdf1d2 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d93864a5f040746bf9d89fc509dbdf1d2, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#27
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.IndirectAuthorithyOver();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"INDAUTH".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "INDAUTH", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleLinkType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.RoleLinkType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "responsibleParty" ) {

			object d370a739fb31e4e88b6e9681214a9ffef = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.ResponsibleParty), currentInteractionType, resultContext); instance.ResponsibleParty = d370a739fb31e4e88b6e9681214a9ffef is MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.ResponsibleParty ? d370a739fb31e4e88b6e9681214a9ffef as MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.ResponsibleParty : (MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.ResponsibleParty)MARC.Everest.Connectors.Util.FromWireFormat(d370a739fb31e4e88b6e9681214a9ffef, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT510005UV06.ResponsibleParty));
}
else if(s.LocalName == "realmCode" ) {

			object dffd43f9747ab4a12aff45fc4b6f701db = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = dffd43f9747ab4a12aff45fc4b6f701db is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? dffd43f9747ab4a12aff45fc4b6f701db as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(dffd43f9747ab4a12aff45fc4b6f701db, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object dd826ede0f5cc4f1ea8cb78deaceba091 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = dd826ede0f5cc4f1ea8cb78deaceba091 is MARC.Everest.DataTypes.II ? dd826ede0f5cc4f1ea8cb78deaceba091 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(dd826ede0f5cc4f1ea8cb78deaceba091, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object de979602699ee4e51aafad36505af0dac = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = de979602699ee4e51aafad36505af0dac is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? de979602699ee4e51aafad36505af0dac as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(de979602699ee4e51aafad36505af0dac, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#28
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.PrimaryPerformer instance = new MARC.Everest.RMIM.UV.NE2008.COCT_MT810000UV.PrimaryPerformer();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
if(s.GetAttribute("typeCode") != null){ if(!"PPRF".Equals(s.GetAttribute("typeCode"))) resultContext.AddResultDetail(new MARC.Everest.Connectors.FixedValueMisMatchedResultDetail(s.GetAttribute("typeCode"), "PPRF", false, s.ToString()));  instance.TypeCode = (MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("typeCode"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.RMIM.UV.NE2008.Vocabulary.ParticipationType>)); }
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "signatureCode" ) {

			object d14bb894abbdb4545b4cc8c84ddeb9a1b = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.CE<System.String>), currentInteractionType, resultContext); instance.SignatureCode = d14bb894abbdb4545b4cc8c84ddeb9a1b is MARC.Everest.DataTypes.CE<System.String> ? d14bb894abbdb4545b4cc8c84ddeb9a1b as MARC.Everest.DataTypes.CE<System.String> : (MARC.Everest.DataTypes.CE<System.String>)MARC.Everest.Connectors.Util.FromWireFormat(d14bb894abbdb4545b4cc8c84ddeb9a1b, typeof(MARC.Everest.DataTypes.CE<System.String>));
}
else if(s.LocalName == "signatureText" ) {

			object d11031525e9f74201a94e9e41e2f13489 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.ED), currentInteractionType, resultContext); instance.SignatureText = d11031525e9f74201a94e9e41e2f13489 is MARC.Everest.DataTypes.ED ? d11031525e9f74201a94e9e41e2f13489 as MARC.Everest.DataTypes.ED : (MARC.Everest.DataTypes.ED)MARC.Everest.Connectors.Util.FromWireFormat(d11031525e9f74201a94e9e41e2f13489, typeof(MARC.Everest.DataTypes.ED));
}
else if(s.LocalName == "assignedEntity" ) {

			object de614200062c2452aadd8c800a7fa318f = Host.ParseObject(s, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity), currentInteractionType, resultContext); instance.AssignedEntity = de614200062c2452aadd8c800a7fa318f is MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity ? de614200062c2452aadd8c800a7fa318f as MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity : (MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity)MARC.Everest.Connectors.Util.FromWireFormat(de614200062c2452aadd8c800a7fa318f, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT090002UV01.AssignedEntity));
}
else if(s.LocalName == "realmCode" ) {

			object d6ff4c792f1dc46d0a63e63b2b05d139c = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d6ff4c792f1dc46d0a63e63b2b05d139c is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d6ff4c792f1dc46d0a63e63b2b05d139c as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d6ff4c792f1dc46d0a63e63b2b05d139c, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d37acf285326a4314a0993f778a7ad284 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d37acf285326a4314a0993f778a7ad284 is MARC.Everest.DataTypes.II ? d37acf285326a4314a0993f778a7ad284 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d37acf285326a4314a0993f778a7ad284, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d112d8a765bd04152a2bb673b81fb74c3 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d112d8a765bd04152a2bb673b81fb74c3 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d112d8a765bd04152a2bb673b81fb74c3 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d112d8a765bd04152a2bb673b81fb74c3, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}
示例#29
0
		public virtual MARC.Everest.Connectors.ResultCode Graph(System.Xml.XmlWriter s, object o, MARC.Everest.Interfaces.IGraphable context, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterGraphResult resultContext) {
			MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible instance = o as MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible;;
			MARC.Everest.Connectors.ResultCode retVal = MARC.Everest.Connectors.ResultCode.Accepted;
			if(o == null) throw new System.ArgumentNullException("o");
			if(instance == null) throw new System.ArgumentException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.COCT_MT040008UV.Responsible'!", o.GetType().FullName));
			bool isInstanceNull = instance.NullFlavor != null;
			bool isEntryPoint = s is MARC.Everest.Xml.XmlStateWriter && (s as MARC.Everest.Xml.XmlStateWriter).ElementStack.Count == 0 || s.WriteState == System.Xml.WriteState.Start; if(isEntryPoint) s.WriteStartElement("Responsible", "urn:hl7-org:v3");
			if(isEntryPoint) s.WriteAttributeString("xmlns", "xsi", null, MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(instance.NullFlavor != null) this.Host.WriteNullFlavorUtil(s, instance.NullFlavor);
if(instance.ClassCode != null && !isInstanceNull) {

			s.WriteAttributeString("classCode", MARC.Everest.Connectors.Util.ToWireFormat(instance.ClassCode));
}
if(instance.RealmCode != null && !isInstanceNull) {

if(!instance.RealmCode.IsEmpty)
			retVal = Host.WriteElementUtil(s, "realmCode", (MARC.Everest.Interfaces.IGraphable)instance.RealmCode, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.TypeId != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "typeId", (MARC.Everest.Interfaces.IGraphable)instance.TypeId, typeof(MARC.Everest.DataTypes.II), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.TemplateId != null && !isInstanceNull) {

if(!instance.TemplateId.IsEmpty)
			retVal = Host.WriteElementUtil(s, "templateId", (MARC.Everest.Interfaces.IGraphable)instance.TemplateId, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Id != null && !isInstanceNull) {

if(!instance.Id.IsEmpty)
			retVal = Host.WriteElementUtil(s, "id", (MARC.Everest.Interfaces.IGraphable)instance.Id, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.II>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.Code != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "code", (MARC.Everest.Interfaces.IGraphable)instance.Code, typeof(MARC.Everest.DataTypes.CE<System.String>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.EffectiveTime != null && !isInstanceNull) {

			retVal = Host.WriteElementUtil(s, "effectiveTime", (MARC.Everest.Interfaces.IGraphable)instance.EffectiveTime, typeof(MARC.Everest.DataTypes.IVL<MARC.Everest.DataTypes.TS>), context, resultContext);
			if(resultContext.Code != MARC.Everest.Connectors.ResultCode.Accepted) retVal = resultContext.Code;
}
if(instance.AgentEntityChoicePlayer != null && !isInstanceNull) {

 if(instance.AgentEntityChoicePlayer.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150007UV.Organization)) {

			retVal = Host.WriteElementUtil(s, "agentOrganization", (MARC.Everest.Interfaces.IGraphable)instance.AgentEntityChoicePlayer, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150007UV.Organization), context, resultContext);
}
else if(instance.AgentEntityChoicePlayer.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030207UV.Person)) {

			retVal = Host.WriteElementUtil(s, "agentPerson", (MARC.Everest.Interfaces.IGraphable)instance.AgentEntityChoicePlayer, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030207UV.Person), context, resultContext);
}
else if(instance.AgentEntityChoicePlayer.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT140007UV.Device)) {

			retVal = Host.WriteElementUtil(s, "agentDevice", (MARC.Everest.Interfaces.IGraphable)instance.AgentEntityChoicePlayer, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT140007UV.Device), context, resultContext);
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotSupportedChoiceResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, System.String.Format("Type {0} is not a valid choice according to available choice elements", instance.AgentEntityChoicePlayer.GetType()), s.ToString(), null)); }
}
if(instance.RepresentedEntityChoiceScoper != null && !isInstanceNull) {

 if(instance.RepresentedEntityChoiceScoper.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150007UV.Organization)) {

			retVal = Host.WriteElementUtil(s, "representedOrganization", (MARC.Everest.Interfaces.IGraphable)instance.RepresentedEntityChoiceScoper, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT150007UV.Organization), context, resultContext);
}
else if(instance.RepresentedEntityChoiceScoper.GetType() == typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030207UV.Person)) {

			retVal = Host.WriteElementUtil(s, "representedPerson", (MARC.Everest.Interfaces.IGraphable)instance.RepresentedEntityChoiceScoper, typeof(MARC.Everest.RMIM.UV.NE2008.COCT_MT030207UV.Person), context, resultContext);
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotSupportedChoiceResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, System.String.Format("Type {0} is not a valid choice according to available choice elements", instance.RepresentedEntityChoiceScoper.GetType()), s.ToString(), null)); }
}
			if(isEntryPoint) s.WriteEndElement();
			return retVal;
		}
示例#30
0
		public virtual object Parse(System.Xml.XmlReader s, System.Type useType, System.Type currentInteractionType, MARC.Everest.Formatters.XML.ITS1.XmlIts1FormatterParseResult resultContext) {
			System.String nil = s.GetAttribute("nil", MARC.Everest.Formatters.XML.ITS1.XmlIts1Formatter.NS_XSI);
			if(!System.String.IsNullOrEmpty(nil) && System.Convert.ToBoolean(nil)) return null;;
			MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.AttentionLine instance = new MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.AttentionLine();;
			if(s.NodeType != System.Xml.XmlNodeType.Element) throw new System.InvalidOperationException(System.String.Format("Expected node type of Element, actual node type is '{0}'", s.NodeType));
			if(s.GetAttribute("nullFlavor") != null) instance.NullFlavor = (MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>)MARC.Everest.Connectors.Util.FromWireFormat(s.GetAttribute("nullFlavor"), typeof(MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>));
			if(s.IsEmptyElement) return instance;
string sName = s.Name;
int sDepth = s.Depth;
s.Read();
while(!(s.NodeType == System.Xml.XmlNodeType.EndElement && s.Name == sName && s.Depth == sDepth)) {
string oldName = s.LocalName; 
 try { if(s.NodeType == System.Xml.XmlNodeType.Element) { 
 if(s.LocalName == "keyWordText" ) {

			object d154b09d1ce5b4708a668cbe61609e2bb = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SC), currentInteractionType, resultContext); instance.KeyWordText = d154b09d1ce5b4708a668cbe61609e2bb is MARC.Everest.DataTypes.SC ? d154b09d1ce5b4708a668cbe61609e2bb as MARC.Everest.DataTypes.SC : (MARC.Everest.DataTypes.SC)MARC.Everest.Connectors.Util.FromWireFormat(d154b09d1ce5b4708a668cbe61609e2bb, typeof(MARC.Everest.DataTypes.SC));
}
else if(s.LocalName == "value" ) {

			object d40fe5a82cee94e66a0d9ae9151f75abf = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.ANY), currentInteractionType, resultContext); instance.Value = d40fe5a82cee94e66a0d9ae9151f75abf is MARC.Everest.DataTypes.ANY ? d40fe5a82cee94e66a0d9ae9151f75abf as MARC.Everest.DataTypes.ANY : (MARC.Everest.DataTypes.ANY)MARC.Everest.Connectors.Util.FromWireFormat(d40fe5a82cee94e66a0d9ae9151f75abf, typeof(MARC.Everest.DataTypes.ANY));
}
else if(s.LocalName == "realmCode" ) {

			object d979cdadc0a7f4432b376211a7f8d182d = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>), currentInteractionType, resultContext); instance.RealmCode = d979cdadc0a7f4432b376211a7f8d182d is MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> ? d979cdadc0a7f4432b376211a7f8d182d as MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>> : (MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>)MARC.Everest.Connectors.Util.FromWireFormat(d979cdadc0a7f4432b376211a7f8d182d, typeof(MARC.Everest.DataTypes.SET<MARC.Everest.DataTypes.CS<System.String>>));
}
else if(s.LocalName == "typeId" ) {

			object d3a73f2be074f4312be4ebb4db1e81115 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.II), currentInteractionType, resultContext); instance.TypeId = d3a73f2be074f4312be4ebb4db1e81115 is MARC.Everest.DataTypes.II ? d3a73f2be074f4312be4ebb4db1e81115 as MARC.Everest.DataTypes.II : (MARC.Everest.DataTypes.II)MARC.Everest.Connectors.Util.FromWireFormat(d3a73f2be074f4312be4ebb4db1e81115, typeof(MARC.Everest.DataTypes.II));
}
else if(s.LocalName == "templateId" ) {

			object d74b30a3f41bc494d8322bd0ba3645ac1 = Host.ParseObject(s, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>), currentInteractionType, resultContext); instance.TemplateId = d74b30a3f41bc494d8322bd0ba3645ac1 is MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> ? d74b30a3f41bc494d8322bd0ba3645ac1 as MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II> : (MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>)MARC.Everest.Connectors.Util.FromWireFormat(d74b30a3f41bc494d8322bd0ba3645ac1, typeof(MARC.Everest.DataTypes.LIST<MARC.Everest.DataTypes.II>));
}
else { resultContext.AddResultDetail(new MARC.Everest.Connectors.NotImplementedElementResultDetail(MARC.Everest.Connectors.ResultDetailType.Warning, s.LocalName, s.NamespaceURI, s.ToString(), null)); }
}
}
catch (System.Exception e) { resultContext.AddResultDetail(new MARC.Everest.Connectors.ResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, e.Message, s.ToString(), e)); }
finally { if(oldName.Equals(s.LocalName)) s.Read(); } }
			return instance;
		}