From 267efd5831be552dee4815565cb19b851e364088 Mon Sep 17 00:00:00 2001 From: jods4 Date: Mon, 9 Mar 2026 22:45:31 +0100 Subject: [PATCH 01/29] Prototype Scriban-based code generation --- .../Microsoft.Search.Query.xsd.cs | 5733 +++++++++++++++++ XObjectsCode/Src/Scriban/ScribanGlobals.cs | 246 + XObjectsCode/Src/Scriban/TemplateLoader.cs | 33 + XObjectsCode/Src/XObjectsCoreGenerator.cs | 32 +- XObjectsCode/Templates/class.scriban-cs | 248 + XObjectsCode/Templates/enum.scriban-cs | 60 + XObjectsCode/Templates/file.scriban-cs | 43 + XObjectsCode/Templates/manager.scriban-cs | 67 + XObjectsCode/Templates/root.scriban-cs | 265 + XObjectsCode/Templates/type.scriban-cs | 9 + XObjectsCode/XObjectsCodeGen.csproj | 5 + 11 files changed, 6734 insertions(+), 7 deletions(-) create mode 100644 GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs create mode 100644 XObjectsCode/Src/Scriban/ScribanGlobals.cs create mode 100644 XObjectsCode/Src/Scriban/TemplateLoader.cs create mode 100644 XObjectsCode/Templates/class.scriban-cs create mode 100644 XObjectsCode/Templates/enum.scriban-cs create mode 100644 XObjectsCode/Templates/file.scriban-cs create mode 100644 XObjectsCode/Templates/manager.scriban-cs create mode 100644 XObjectsCode/Templates/root.scriban-cs create mode 100644 XObjectsCode/Templates/type.scriban-cs diff --git a/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs new file mode 100644 index 00000000..c928b01f --- /dev/null +++ b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs @@ -0,0 +1,5733 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.Search.Query.Schemas { + using System; + using System.Collections; + using System.Collections.Generic; + using System.ComponentModel; + using System.IO; + using System.Linq; + using System.Diagnostics; + using System.Xml; + using System.Xml.Schema; + using System.Xml.Linq; + using Xml.Schema.Linq; + + + /// + /// + /// Regular expression: (Query) + /// + /// + public partial class QueryPacket : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static QueryPacket Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static QueryPacket Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static QueryPacket Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator QueryPacket(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (Query) + /// + /// + public QueryPacket() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QueryXName = System.Xml.Linq.XName.Get("Query", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (Query) + /// + /// + public virtual QueryLocalType Query { + get { + XElement x = this.GetElement(QueryXName); + return ((QueryLocalType)(x)); + } + set { + this.SetElement(QueryXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName revisionXName = System.Xml.Linq.XName.Get("revision", ""); + + /// + /// + /// Occurrence: optional + /// + /// + public virtual System.Int32? revision { + get { + XAttribute x = this.Attribute(revisionXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + set { + this.SetAttribute(revisionXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName buildXName = System.Xml.Linq.XName.Get("build", ""); + + /// + /// + /// Occurrence: optional + /// + /// + public virtual string build { + get { + XAttribute x = this.Attribute(buildXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(buildXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("QueryPacket", "urn:Microsoft.Search.Query"); + + static QueryPacket() { + BuildElementDictionary(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(QueryXName, typeof(QueryLocalType)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public partial class QueryLocalType : XTypedElement, IXMetaData { + + public static explicit operator QueryLocalType(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public QueryLocalType() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QueryIdXName = System.Xml.Linq.XName.Get("QueryId", "urn:Microsoft.Search.Query"); + + /// + /// + /// If this element is present, it must be returned in the response from the Query Web service. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual QueryId QueryId { + get { + XElement x = this.GetElement(QueryIdXName); + if ((x == null)) { + return null; + } + return ((QueryId)(x)); + } + set { + this.SetElement(QueryIdXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ContextXName = System.Xml.Linq.XName.Get("Context", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual Context Context { + get { + XElement x = this.GetElement(ContextXName); + if ((x == null)) { + return null; + } + return ((Context)(x)); + } + set { + this.SetElement(ContextXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RangeXName = System.Xml.Linq.XName.Get("Range", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual Range Range { + get { + XElement x = this.GetElement(RangeXName); + if ((x == null)) { + return null; + } + return ((Range)(x)); + } + set { + this.SetElement(RangeXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertiesXName = System.Xml.Linq.XName.Get("Properties", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual Properties Properties { + get { + XElement x = this.GetElement(PropertiesXName); + if ((x == null)) { + return null; + } + return ((Properties)(x)); + } + set { + this.SetElement(PropertiesXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SortByPropertiesXName = System.Xml.Linq.XName.Get("SortByProperties", "urn:Microsoft.Search.Query"); + + /// + /// + /// If no managed properties are specified for sorting results, by default the results will be sorted by Rank. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual SortByProperties SortByProperties { + get { + XElement x = this.GetElement(SortByPropertiesXName); + if ((x == null)) { + return null; + } + return ((SortByProperties)(x)); + } + set { + this.SetElement(SortByPropertiesXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ImplicitAndBehaviorXName = System.Xml.Linq.XName.Get("ImplicitAndBehavior", "urn:Microsoft.Search.Query"); + + /// + /// + /// This element applies to the Query Web method, and only when using the Keyword Query Syntax Reference. The only format that is supported is the Microsoft.Search.Response.Document format. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual ImplicitAndBehavior ImplicitAndBehavior { + get { + XElement x = this.GetElement(ImplicitAndBehaviorXName); + if ((x == null)) { + return null; + } + return ((ImplicitAndBehavior)(x)); + } + set { + this.SetElement(ImplicitAndBehaviorXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RelevanceModelXName = System.Xml.Linq.XName.Get("RelevanceModel", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual RelevanceModel RelevanceModel { + get { + XElement x = this.GetElement(RelevanceModelXName); + if ((x == null)) { + return null; + } + return ((RelevanceModel)(x)); + } + set { + this.SetElement(RelevanceModelXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EnableStemmingXName = System.Xml.Linq.XName.Get("EnableStemming", "urn:Microsoft.Search.Query"); + + /// + /// + /// When using the FAST Query Language, it is also possible to control stemming more precisely inside the query string. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual EnableStemming EnableStemming { + get { + XElement x = this.GetElement(EnableStemmingXName); + if ((x == null)) { + return null; + } + return ((EnableStemming)(x)); + } + set { + this.SetElement(EnableStemmingXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TrimDuplicatesXName = System.Xml.Linq.XName.Get("TrimDuplicates", "urn:Microsoft.Search.Query"); + + /// + /// + /// For FAST Search Server 2010 for SharePoint, this element can also be used to collapse hits in the result set by using a group identifier (ID). + /// + ///The attributes apply only to FAST Search Server 2010 for SharePoint. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual TrimDuplicates TrimDuplicates { + get { + XElement x = this.GetElement(TrimDuplicatesXName); + if ((x == null)) { + return null; + } + return ((TrimDuplicates)(x)); + } + set { + this.SetElement(TrimDuplicatesXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeSpecialTermResultsXName = System.Xml.Linq.XName.Get("IncludeSpecialTermResults", "urn:Microsoft.Search.Query"); + + /// + /// + /// For FAST Search Server 2010 for SharePoint, special term results includes best bets and Visual best bets. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual IncludeSpecialTermResults IncludeSpecialTermResults { + get { + XElement x = this.GetElement(IncludeSpecialTermResultsXName); + if ((x == null)) { + return null; + } + return ((IncludeSpecialTermResults)(x)); + } + set { + this.SetElement(IncludeSpecialTermResultsXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PreQuerySuggestionsXName = System.Xml.Linq.XName.Get("PreQuerySuggestions", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual PreQuerySuggestions PreQuerySuggestions { + get { + XElement x = this.GetElement(PreQuerySuggestionsXName); + if ((x == null)) { + return null; + } + return ((PreQuerySuggestions)(x)); + } + set { + this.SetElement(PreQuerySuggestionsXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HighlightQuerySuggestionsXName = System.Xml.Linq.XName.Get("HighlightQuerySuggestions", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual HighlightQuerySuggestions HighlightQuerySuggestions { + get { + XElement x = this.GetElement(HighlightQuerySuggestionsXName); + if ((x == null)) { + return null; + } + return ((HighlightQuerySuggestions)(x)); + } + set { + this.SetElement(HighlightQuerySuggestionsXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CapitalizeFirstLettersXName = System.Xml.Linq.XName.Get("CapitalizeFirstLetters", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual CapitalizeFirstLetters CapitalizeFirstLetters { + get { + XElement x = this.GetElement(CapitalizeFirstLettersXName); + if ((x == null)) { + return null; + } + return ((CapitalizeFirstLetters)(x)); + } + set { + this.SetElement(CapitalizeFirstLettersXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultProviderXName = System.Xml.Linq.XName.Get("ResultProvider", "urn:Microsoft.Search.Query"); + + /// + /// + /// NOTE: For People Search queries, specify SharePointSearch as the result provider even when FAST Search Server 2010 for SharePoint is the search back-end. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual Microsoft.Search.Query.Schemas.ResultProvider ResultProvider { + get { + XElement x = this.GetElement(ResultProviderXName); + if ((x == null)) { + return null; + } + return ((Microsoft.Search.Query.Schemas.ResultProvider)(x)); + } + set { + this.SetElement(ResultProviderXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResubmitFlagsXName = System.Xml.Linq.XName.Get("ResubmitFlags", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual ResubmitFlags ResubmitFlags { + get { + XElement x = this.GetElement(ResubmitFlagsXName); + if ((x == null)) { + return null; + } + return ((ResubmitFlags)(x)); + } + set { + this.SetElement(ResubmitFlagsXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EnableSpellcheckXName = System.Xml.Linq.XName.Get("EnableSpellcheck", "urn:Microsoft.Search.Query"); + + /// + /// + /// The element value specifies the spelling correction mode to apply to the query. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual Microsoft.Search.Query.Schemas.EnableSpellcheck EnableSpellcheck { + get { + XElement x = this.GetElement(EnableSpellcheckXName); + if ((x == null)) { + return null; + } + return ((Microsoft.Search.Query.Schemas.EnableSpellcheck)(x)); + } + set { + this.SetElement(EnableSpellcheckXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UserContextXName = System.Xml.Linq.XName.Get("UserContext", "urn:Microsoft.Search.Query"); + + /// + /// + /// The keyword management search settings can be restricted to context. A context defines when a search setting should apply, typically targeting a specific group of users. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual UserContext UserContext { + get { + XElement x = this.GetElement(UserContextXName); + if ((x == null)) { + return null; + } + return ((UserContext)(x)); + } + set { + this.SetElement(UserContextXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FindSimilarXName = System.Xml.Linq.XName.Get("FindSimilar", "urn:Microsoft.Search.Query"); + + /// + /// + /// The find similar features enable you to search for documents that are similar to already retrieved query results. The similarity evaluation is based on a statistical measure. + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual FindSimilar FindSimilar { + get { + XElement x = this.GetElement(FindSimilarXName); + if ((x == null)) { + return null; + } + return ((FindSimilar)(x)); + } + set { + this.SetElement(FindSimilarXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeRefinementResultsXName = System.Xml.Linq.XName.Get("IncludeRefinementResults", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual IncludeRefinementResults IncludeRefinementResults { + get { + XElement x = this.GetElement(IncludeRefinementResultsXName); + if ((x == null)) { + return null; + } + return ((IncludeRefinementResults)(x)); + } + set { + this.SetElement(IncludeRefinementResultsXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RefinementFiltersXName = System.Xml.Linq.XName.Get("RefinementFilters", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual RefinementFilters RefinementFilters { + get { + XElement x = this.GetElement(RefinementFiltersXName); + if ((x == null)) { + return null; + } + return ((RefinementFilters)(x)); + } + set { + this.SetElement(RefinementFiltersXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreAllNoiseQueryXName = System.Xml.Linq.XName.Get("IgnoreAllNoiseQuery", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual IgnoreAllNoiseQuery IgnoreAllNoiseQuery { + get { + XElement x = this.GetElement(IgnoreAllNoiseQueryXName); + if ((x == null)) { + return null; + } + return ((IgnoreAllNoiseQuery)(x)); + } + set { + this.SetElement(IgnoreAllNoiseQueryXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeRelevantResultsXName = System.Xml.Linq.XName.Get("IncludeRelevantResults", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual IncludeRelevantResults IncludeRelevantResults { + get { + XElement x = this.GetElement(IncludeRelevantResultsXName); + if ((x == null)) { + return null; + } + return ((IncludeRelevantResults)(x)); + } + set { + this.SetElement(IncludeRelevantResultsXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeHighConfidenceResultsXName = System.Xml.Linq.XName.Get("IncludeHighConfidenceResults", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: optional + /// + /// + /// Regular expression: (QueryId?, Context?, Range?, Properties?, SortByProperties?, ImplicitAndBehavior?, RelevanceModel?, EnableStemming?, TrimDuplicates?, IncludeSpecialTermResults?, PreQuerySuggestions?, HighlightQuerySuggestions?, CapitalizeFirstLetters?, ResultProvider?, ResubmitFlags?, EnableSpellcheck?, UserContext?, FindSimilar?, IncludeRefinementResults?, RefinementFilters?, IgnoreAllNoiseQuery?, IncludeRelevantResults?, IncludeHighConfidenceResults?) + /// + /// + public virtual IncludeHighConfidenceResults IncludeHighConfidenceResults { + get { + XElement x = this.GetElement(IncludeHighConfidenceResultsXName); + if ((x == null)) { + return null; + } + return ((IncludeHighConfidenceResults)(x)); + } + set { + this.SetElement(IncludeHighConfidenceResultsXName, value); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Query", "urn:Microsoft.Search.Query"); + + static QueryLocalType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(QueryIdXName), new NamedContentModelEntity(ContextXName), new NamedContentModelEntity(RangeXName), new NamedContentModelEntity(PropertiesXName), new NamedContentModelEntity(SortByPropertiesXName), new NamedContentModelEntity(ImplicitAndBehaviorXName), new NamedContentModelEntity(RelevanceModelXName), new NamedContentModelEntity(EnableStemmingXName), new NamedContentModelEntity(TrimDuplicatesXName), new NamedContentModelEntity(IncludeSpecialTermResultsXName), new NamedContentModelEntity(PreQuerySuggestionsXName), new NamedContentModelEntity(HighlightQuerySuggestionsXName), new NamedContentModelEntity(CapitalizeFirstLettersXName), new NamedContentModelEntity(ResultProviderXName), new NamedContentModelEntity(ResubmitFlagsXName), new NamedContentModelEntity(EnableSpellcheckXName), new NamedContentModelEntity(UserContextXName), new NamedContentModelEntity(FindSimilarXName), new NamedContentModelEntity(IncludeRefinementResultsXName), new NamedContentModelEntity(RefinementFiltersXName), new NamedContentModelEntity(IgnoreAllNoiseQueryXName), new NamedContentModelEntity(IncludeRelevantResultsXName), new NamedContentModelEntity(IncludeHighConfidenceResultsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(QueryIdXName, typeof(QueryId)); + localElementDictionary.Add(ContextXName, typeof(Context)); + localElementDictionary.Add(RangeXName, typeof(Range)); + localElementDictionary.Add(PropertiesXName, typeof(Properties)); + localElementDictionary.Add(SortByPropertiesXName, typeof(SortByProperties)); + localElementDictionary.Add(ImplicitAndBehaviorXName, typeof(ImplicitAndBehavior)); + localElementDictionary.Add(RelevanceModelXName, typeof(RelevanceModel)); + localElementDictionary.Add(EnableStemmingXName, typeof(EnableStemming)); + localElementDictionary.Add(TrimDuplicatesXName, typeof(TrimDuplicates)); + localElementDictionary.Add(IncludeSpecialTermResultsXName, typeof(IncludeSpecialTermResults)); + localElementDictionary.Add(PreQuerySuggestionsXName, typeof(PreQuerySuggestions)); + localElementDictionary.Add(HighlightQuerySuggestionsXName, typeof(HighlightQuerySuggestions)); + localElementDictionary.Add(CapitalizeFirstLettersXName, typeof(CapitalizeFirstLetters)); + localElementDictionary.Add(ResultProviderXName, typeof(ResultProvider)); + localElementDictionary.Add(ResubmitFlagsXName, typeof(ResubmitFlags)); + localElementDictionary.Add(EnableSpellcheckXName, typeof(EnableSpellcheck)); + localElementDictionary.Add(UserContextXName, typeof(UserContext)); + localElementDictionary.Add(FindSimilarXName, typeof(FindSimilar)); + localElementDictionary.Add(IncludeRefinementResultsXName, typeof(IncludeRefinementResults)); + localElementDictionary.Add(RefinementFiltersXName, typeof(RefinementFilters)); + localElementDictionary.Add(IgnoreAllNoiseQueryXName, typeof(IgnoreAllNoiseQuery)); + localElementDictionary.Add(IncludeRelevantResultsXName, typeof(IncludeRelevantResults)); + localElementDictionary.Add(IncludeHighConfidenceResultsXName, typeof(IncludeHighConfidenceResults)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Fragment; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + } + + public partial class QueryId : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static QueryId Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static QueryId Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static QueryId Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator QueryId(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public QueryId() { + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("QueryId", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (QueryText) + /// + /// + public partial class Context : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Context Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Context Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Context Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator Context(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (QueryText) + /// + /// + public Context() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QueryTextXName = System.Xml.Linq.XName.Get("QueryText", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (QueryText) + /// + /// + public virtual QueryText QueryText { + get { + XElement x = this.GetElement(QueryTextXName); + return ((QueryText)(x)); + } + set { + this.SetElement(QueryTextXName, value); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Context", "urn:Microsoft.Search.Query"); + + static Context() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(QueryTextXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(QueryTextXName, typeof(QueryText)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class QueryText : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static QueryText Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static QueryText Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static QueryText Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator QueryText(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public QueryText() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual string TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + public enum TypeEnum { + + STRING, + + MSSQLFT, + + FQL, + } + + public sealed class TypeEnumValidator { + + private TypeEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "STRING", + "MSSQLFT", + "FQL"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + + /// + /// + /// Identifies the query type (see the following type Attribute table). + /// + /// + /// Occurrence: optional + /// + /// + public virtual Microsoft.Search.Query.Schemas.QueryText.TypeEnum? type { + get { + XAttribute x = this.Attribute(typeXName); + if ((x == null)) { + return null; + } + return ((Microsoft.Search.Query.Schemas.QueryText.TypeEnum)(Enum.Parse(typeof(Microsoft.Search.Query.Schemas.QueryText.TypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TypeEnumValidator.TypeDefinition)))); + } + set { + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", TypeEnumValidator.TypeDefinition); + } + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName languageXName = System.Xml.Linq.XName.Get("language", ""); + + /// + /// + /// Identifies the language of the keyword search. The value type is xml:lang. If specified, this is interpreted by SharePoint Enterprise Search as the query locale. If not specified, the default value is the language of the site. + /// + ///For more information about query processing related to the query locale for FAST Search Server 2010 for SharePoint, see Linguistic Query Features (FAST Search Server 2010 for SharePoint). + /// + /// + /// Occurrence: optional + /// + /// + public virtual string language { + get { + XAttribute x = this.Attribute(languageXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Language).Datatype); + } + set { + this.SetAttribute(languageXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Language).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("QueryText", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (StartAt, Count) + /// + /// + public partial class Range : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Range Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Range Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Range Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator Range(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (StartAt, Count) + /// + /// + public Range() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartAtXName = System.Xml.Linq.XName.Get("StartAt", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (StartAt, Count) + /// + /// + public virtual StartAt StartAt { + get { + XElement x = this.GetElement(StartAtXName); + return ((StartAt)(x)); + } + set { + this.SetElement(StartAtXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CountXName = System.Xml.Linq.XName.Get("Count", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (StartAt, Count) + /// + /// + public virtual Count Count { + get { + XElement x = this.GetElement(CountXName); + return ((Count)(x)); + } + set { + this.SetElement(CountXName, value); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Range", "urn:Microsoft.Search.Query"); + + static Range() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(StartAtXName), new NamedContentModelEntity(CountXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartAtXName, typeof(StartAt)); + localElementDictionary.Add(CountXName, typeof(Count)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (Property+) + /// + /// + public partial class Properties : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Properties Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Properties Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Properties Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator Properties(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (Property+) + /// + /// + public Properties() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "urn:Microsoft.Search.Query"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList PropertyField; + + /// + /// + /// Occurrence: required, repeating + /// + /// + /// Regular expression: (Property+) + /// + /// + public virtual IList Property { + get { + if ((this.PropertyField == null)) { + this.PropertyField = new XTypedList(this, LinqToXsdTypeManager.Instance, PropertyXName); + } + return this.PropertyField; + } + set { + if ((value == null)) { + this.PropertyField = null; + } + else { + if ((this.PropertyField == null)) { + this.PropertyField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + } + else { + XTypedServices.SetList(this.PropertyField, value); + } + } + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Properties", "urn:Microsoft.Search.Query"); + + static Properties() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(Property)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class Property : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Property Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Property Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Property Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator Property(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public Property() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + + /// + /// + /// Occurrence: optional + /// + /// + public virtual string name { + get { + XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(nameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (SortByProperty+) + /// + /// + public partial class SortByProperties : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static SortByProperties Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SortByProperties Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SortByProperties Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator SortByProperties(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (SortByProperty+) + /// + /// + public SortByProperties() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SortByPropertyXName = System.Xml.Linq.XName.Get("SortByProperty", "urn:Microsoft.Search.Query"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList SortByPropertyField; + + /// + /// + /// Occurrence: required, repeating + /// + /// + /// Regular expression: (SortByProperty+) + /// + /// + public virtual IList SortByProperty { + get { + if ((this.SortByPropertyField == null)) { + this.SortByPropertyField = new XTypedList(this, LinqToXsdTypeManager.Instance, SortByPropertyXName); + } + return this.SortByPropertyField; + } + set { + if ((value == null)) { + this.SortByPropertyField = null; + } + else { + if ((this.SortByPropertyField == null)) { + this.SortByPropertyField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, SortByPropertyXName); + } + else { + XTypedServices.SetList(this.SortByPropertyField, value); + } + } + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SortByProperties", "urn:Microsoft.Search.Query"); + + static SortByProperties() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SortByPropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SortByPropertyXName, typeof(SortByProperty)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class SortByProperty : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static SortByProperty Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SortByProperty Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SortByProperty Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator SortByProperty(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public SortByProperty() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + + /// + /// + /// The name of the managed property to sort on. + /// + ///The following special conditions apply to FAST Search Server 2010 for SharePoint only: + /// + ///* The name attribute may contain the name of a rank profile instead of a managed property. In this case the result set is sorted by Rank, but using the non-default rank profile specified by name. For more information, see Sort Search Results by Rank. + /// + ///* The name attribute may contain a sort formula specification. In this case the result set is sorted based on the specified formula. For more information about the syntax, see Sort Search Results by a Formula Expression. + /// + /// + /// Occurrence: optional + /// + /// + public virtual string name { + get { + XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(nameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + public enum DirectionEnum { + + Ascending, + + Descending, + } + + public sealed class DirectionEnumValidator { + + private DirectionEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "Ascending", + "Descending"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName directionXName = System.Xml.Linq.XName.Get("direction", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Microsoft.Search.Query.Schemas.SortByProperty.DirectionEnum directionDefaultValue = Microsoft.Search.Query.Schemas.SortByProperty.DirectionEnum.Descending; + + /// + /// + /// Specifies the direction (ascending or descending) to sort the results. + /// + ///* Ascending Sorting is based on ascending value + ///* Descending Sorting is based on descending value + /// + ///Note: This attribute is not used when specifying a rank profile name in the name attribute (rank sorting is always descending). This applies to FAST Search Server 2010 for SharePoint only. + /// + ///Defaults to Descending. + /// + /// + /// + /// + /// Occurrence: optional + /// + /// + public virtual Microsoft.Search.Query.Schemas.SortByProperty.DirectionEnum direction { + get { + XAttribute x = this.Attribute(directionXName); + if ((x == null)) { + return directionDefaultValue; + } + return ((Microsoft.Search.Query.Schemas.SortByProperty.DirectionEnum)(Enum.Parse(typeof(Microsoft.Search.Query.Schemas.SortByProperty.DirectionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, DirectionEnumValidator.TypeDefinition)))); + } + set { + this.SetAttributeWithValidation(directionXName, value.ToString(), "direction", DirectionEnumValidator.TypeDefinition); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SortByProperty", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class RelevanceModel : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static RelevanceModel Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static RelevanceModel Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static RelevanceModel Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator RelevanceModel(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public RelevanceModel() { + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RelevanceModel", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class TrimDuplicates : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static TrimDuplicates Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static TrimDuplicates Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static TrimDuplicates Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator TrimDuplicates(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public TrimDuplicates() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName onpropertyXName = System.Xml.Linq.XName.Get("onproperty", ""); + + /// + /// + /// Optional attribute indicating the name of a non-default managed property to use as the basis for duplicate removal. + /// + /// + /// Occurrence: optional + /// + /// + public virtual string onproperty { + get { + XAttribute x = this.Attribute(onpropertyXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(onpropertyXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName keepcountXName = System.Xml.Linq.XName.Get("keepcount", ""); + + /// + /// + /// Optional attribute specifying how many items to keep for each set of duplicates. + /// + ///The default value is 1. + /// + /// + /// Occurrence: optional + /// + /// + public virtual System.Int32? keepcount { + get { + XAttribute x = this.Attribute(keepcountXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + set { + this.SetAttribute(keepcountXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName includeidXName = System.Xml.Linq.XName.Get("includeid", ""); + + /// + /// + /// Specifies the value associated with a collapse group, typically used when a user clicks the Duplicates(n) link of an item with duplicates. + /// + /// + /// Occurrence: optional + /// + /// + public virtual System.Boolean? includeid { + get { + XAttribute x = this.Attribute(includeidXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetAttribute(includeidXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TrimDuplicates", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class ResultProvider : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static ResultProvider Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ResultProvider Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ResultProvider Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator ResultProvider(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public ResultProvider() { + } + + public enum ResultProvider1Enum { + + Default, + + SharePointSearch, + + FASTSearch, + } + + public sealed class ResultProvider1EnumValidator { + + private ResultProvider1EnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "Default", + "SharePointSearch", + "FASTSearch"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual Microsoft.Search.Query.Schemas.ResultProvider.ResultProvider1Enum TypedValue { + get { + XElement x = this.Untyped; + return ((Microsoft.Search.Query.Schemas.ResultProvider.ResultProvider1Enum)(Enum.Parse(typeof(Microsoft.Search.Query.Schemas.ResultProvider.ResultProvider1Enum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ResultProvider1EnumValidator.TypeDefinition)))); + } + set { + this.SetValueWithValidation(value.ToString(), "TypedValue", ResultProvider1EnumValidator.TypeDefinition); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ResultProvider", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (ResubmitFlag+) + /// + /// + public partial class ResubmitFlags : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static ResubmitFlags Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ResubmitFlags Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ResubmitFlags Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator ResubmitFlags(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (ResubmitFlag+) + /// + /// + public ResubmitFlags() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResubmitFlagXName = System.Xml.Linq.XName.Get("ResubmitFlag", "urn:Microsoft.Search.Query"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList ResubmitFlagField; + + /// + /// + /// The effect of an automatic resubmit is that the query is modified and automatically re-evaluated before results are returned to the client. + /// + /// + /// Occurrence: required, repeating + /// + /// + /// Regular expression: (ResubmitFlag+) + /// + /// + public virtual IList ResubmitFlag { + get { + if ((this.ResubmitFlagField == null)) { + this.ResubmitFlagField = new XTypedList(this, LinqToXsdTypeManager.Instance, ResubmitFlagXName); + } + return this.ResubmitFlagField; + } + set { + if ((value == null)) { + this.ResubmitFlagField = null; + } + else { + if ((this.ResubmitFlagField == null)) { + this.ResubmitFlagField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, ResubmitFlagXName); + } + else { + XTypedServices.SetList(this.ResubmitFlagField, value); + } + } + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ResubmitFlags", "urn:Microsoft.Search.Query"); + + static ResubmitFlags() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ResubmitFlagXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ResubmitFlagXName, typeof(ResubmitFlag)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class ResubmitFlag : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static ResubmitFlag Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ResubmitFlag Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ResubmitFlag Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator ResubmitFlag(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public ResubmitFlag() { + } + + public enum ValueEnum { + + NoResubmit, + + EnableSpellcheckOnResubmit, + + EnableSpellcheckSuggestOnResubmit, + + EnableStemmingOnResubmit, + + AddSynonymsAutomatically, + } + + public sealed class ValueEnumValidator { + + private ValueEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "NoResubmit", + "EnableSpellcheckOnResubmit", + "EnableSpellcheckSuggestOnResubmit", + "EnableStemmingOnResubmit", + "AddSynonymsAutomatically"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName valueXName = System.Xml.Linq.XName.Get("value", ""); + + /// + /// + /// Explanation of values follows. + /// + ///NoResubmit: Do not resubmit the query, but return with ZERO results. If this attribute value is set, any other ResubmitFlag elements are ignored. + /// + ///EnableSpellcheckOnResubmit: Resubmit the query with automatic spelling checking enabled. This corresponds to evaluating the query with EnableSpellCheck set to 4 when re-evaluating the query. + /// + ///EnableSpellcheckSuggestOnResubmit: Resubmit the query with spelling checking enabled in suggest mode. This corresponds to evaluating the query with EnableSpellCheck set to 2 when re-evaluating the query. Note - This option will still return a query result with zero hits. + /// + ///EnableStemmingOnResubmit: Resubmit the query with stemming enabled. This corresponds to evaluating the query with EnableStemming set to true when re-evaluating the query. + /// + /// + /// Occurrence: optional + /// + /// + public virtual Microsoft.Search.Query.Schemas.ResubmitFlag.ValueEnum? value { + get { + XAttribute x = this.Attribute(valueXName); + if ((x == null)) { + return null; + } + return ((Microsoft.Search.Query.Schemas.ResubmitFlag.ValueEnum)(Enum.Parse(typeof(Microsoft.Search.Query.Schemas.ResubmitFlag.ValueEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ValueEnumValidator.TypeDefinition)))); + } + set { + if (value == null) { + this.SetAttribute(valueXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(valueXName, value.ToString(), "value", ValueEnumValidator.TypeDefinition); + } + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ResubmitFlag", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Off: Do not apply spelling correction to the query text. + ///Suggest: Suggest transformed (spelled correctly) query in the result, but do not apply spelling checking to the actual query performed. This enables the Did You Mean feature search tip in the result pages. + ///On: Apply spelling corrections to the query text before evaluating the query. + /// + /// + public partial class EnableSpellcheck : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static EnableSpellcheck Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static EnableSpellcheck Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static EnableSpellcheck Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator EnableSpellcheck(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Off: Do not apply spelling correction to the query text. + ///Suggest: Suggest transformed (spelled correctly) query in the result, but do not apply spelling checking to the actual query performed. This enables the Did You Mean feature search tip in the result pages. + ///On: Apply spelling corrections to the query text before evaluating the query. + /// + /// + public EnableSpellcheck() { + } + + public enum EnableSpellcheck1Enum { + + off, + + suggest, + + on, + } + + public sealed class EnableSpellcheck1EnumValidator { + + private EnableSpellcheck1EnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "off", + "suggest", + "on"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual Microsoft.Search.Query.Schemas.EnableSpellcheck.EnableSpellcheck1Enum TypedValue { + get { + XElement x = this.Untyped; + return ((Microsoft.Search.Query.Schemas.EnableSpellcheck.EnableSpellcheck1Enum)(Enum.Parse(typeof(Microsoft.Search.Query.Schemas.EnableSpellcheck.EnableSpellcheck1Enum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, EnableSpellcheck1EnumValidator.TypeDefinition)))); + } + set { + this.SetValueWithValidation(value.ToString(), "TypedValue", EnableSpellcheck1EnumValidator.TypeDefinition); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EnableSpellcheck", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (UserContextData) + /// + /// + public partial class UserContext : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static UserContext Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static UserContext Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static UserContext Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator UserContext(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (UserContextData) + /// + /// + public UserContext() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UserContextDataXName = System.Xml.Linq.XName.Get("UserContextData", "urn:Microsoft.Search.Query"); + + /// + /// + /// The keyword management search settings can be restricted to context. A context defines when a search setting should apply, typically targeting a specific group of users. + /// + ///If a user with the responsibilities "developer" and "tester" submits a query for "office", the query request should include the following userContextString: "responsibilities:;:developer;tester" + /// + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (UserContextData) + /// + /// + public virtual UserContextData UserContextData { + get { + XElement x = this.GetElement(UserContextDataXName); + return ((UserContextData)(x)); + } + set { + this.SetElement(UserContextDataXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName includeuserprofileXName = System.Xml.Linq.XName.Get("includeuserprofile", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static bool includeuserprofileDefaultValue = System.Xml.XmlConvert.ToBoolean("true"); + + /// + /// + /// Specifies the type of user context data to be applied. + /// + ///true Context values from the SharePoint 2010 user profile service will be included as part of the user context. If UserContextData is also used, the user profile data and the custom context data are both used. + /// + ///false Context values from the SharePoint 2010 user profile are not included as part of the user context. Use UserContextData to submit custom user contexts. + /// + ///Default: true. + /// + /// + /// Occurrence: optional + /// + /// + public virtual bool includeuserprofile { + get { + XAttribute x = this.Attribute(includeuserprofileXName); + if ((x == null)) { + return includeuserprofileDefaultValue; + } + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetAttribute(includeuserprofileXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UserContext", "urn:Microsoft.Search.Query"); + + static UserContext() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(UserContextDataXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(UserContextDataXName, typeof(UserContextData)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (SimilarTo, SimilarType, SortSimilar) + /// + /// + public partial class FindSimilar : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static FindSimilar Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static FindSimilar Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static FindSimilar Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator FindSimilar(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (SimilarTo, SimilarType, SortSimilar) + /// + /// + public FindSimilar() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SimilarToXName = System.Xml.Linq.XName.Get("SimilarTo", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (SimilarTo, SimilarType, SortSimilar) + /// + /// + public virtual SimilarTo SimilarTo { + get { + XElement x = this.GetElement(SimilarToXName); + return ((SimilarTo)(x)); + } + set { + this.SetElement(SimilarToXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SimilarTypeXName = System.Xml.Linq.XName.Get("SimilarType", "urn:Microsoft.Search.Query"); + + /// + /// + /// An explanation of possible values follows. + /// + ///FindSimilar: The similarity vectors are added to the query by using an OR operator. + ///RefineSimilar: The query will match if the original query conditions and the similarity vector conditions are met. + ///ExcludeSimilar: The query will match if the original query conditions are met, but not the similarity conditions. + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (SimilarTo, SimilarType, SortSimilar) + /// + /// + public virtual Microsoft.Search.Query.Schemas.SimilarType SimilarType { + get { + XElement x = this.GetElement(SimilarTypeXName); + return ((Microsoft.Search.Query.Schemas.SimilarType)(x)); + } + set { + this.SetElement(SimilarTypeXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SortSimilarXName = System.Xml.Linq.XName.Get("SortSimilar", "urn:Microsoft.Search.Query"); + + /// + /// + /// If set to False, the result is sorted by relevance score (rank). Default: true. + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (SimilarTo, SimilarType, SortSimilar) + /// + /// + public virtual SortSimilar SortSimilar { + get { + XElement x = this.GetElement(SortSimilarXName); + return ((SortSimilar)(x)); + } + set { + this.SetElement(SortSimilarXName, value); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FindSimilar", "urn:Microsoft.Search.Query"); + + static FindSimilar() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SimilarToXName), new NamedContentModelEntity(SimilarTypeXName), new NamedContentModelEntity(SortSimilarXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SimilarToXName, typeof(SimilarTo)); + localElementDictionary.Add(SimilarTypeXName, typeof(SimilarType)); + localElementDictionary.Add(SortSimilarXName, typeof(SortSimilar)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class SimilarType : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static SimilarType Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SimilarType Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SimilarType Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator SimilarType(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public SimilarType() { + } + + public enum SimilarType1Enum { + + FindSimilar, + + RefineSimilar, + + ExcludeSimilar, + } + + public sealed class SimilarType1EnumValidator { + + private SimilarType1EnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "FindSimilar", + "RefineSimilar", + "ExcludeSimilar"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual Microsoft.Search.Query.Schemas.SimilarType.SimilarType1Enum TypedValue { + get { + XElement x = this.Untyped; + return ((Microsoft.Search.Query.Schemas.SimilarType.SimilarType1Enum)(Enum.Parse(typeof(Microsoft.Search.Query.Schemas.SimilarType.SimilarType1Enum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, SimilarType1EnumValidator.TypeDefinition)))); + } + set { + this.SetValueWithValidation(value.ToString(), "TypedValue", SimilarType1EnumValidator.TypeDefinition); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SimilarType", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (Refiners, MaxShallowRefinementHits) + /// + /// + public partial class IncludeRefinementResults : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static IncludeRefinementResults Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeRefinementResults Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeRefinementResults Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator IncludeRefinementResults(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (Refiners, MaxShallowRefinementHits) + /// + /// + public IncludeRefinementResults() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RefinersXName = System.Xml.Linq.XName.Get("Refiners", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (Refiners, MaxShallowRefinementHits) + /// + /// + public virtual Refiners Refiners { + get { + XElement x = this.GetElement(RefinersXName); + return ((Refiners)(x)); + } + set { + this.SetElement(RefinersXName, value); + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MaxShallowRefinementHitsXName = System.Xml.Linq.XName.Get("MaxShallowRefinementHits", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (Refiners, MaxShallowRefinementHits) + /// + /// + public virtual MaxShallowRefinementHits MaxShallowRefinementHits { + get { + XElement x = this.GetElement(MaxShallowRefinementHitsXName); + return ((MaxShallowRefinementHits)(x)); + } + set { + this.SetElement(MaxShallowRefinementHitsXName, value); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IncludeRefinementResults", "urn:Microsoft.Search.Query"); + + static IncludeRefinementResults() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(RefinersXName), new NamedContentModelEntity(MaxShallowRefinementHitsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(RefinersXName, typeof(Refiners)); + localElementDictionary.Add(MaxShallowRefinementHitsXName, typeof(MaxShallowRefinementHits)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (Refiner) + /// + /// + public partial class Refiners : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Refiners Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Refiners Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Refiners Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator Refiners(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (Refiner) + /// + /// + public Refiners() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RefinerXName = System.Xml.Linq.XName.Get("Refiner", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (Refiner) + /// + /// + public virtual Refiner Refiner { + get { + XElement x = this.GetElement(RefinerXName); + return ((Refiner)(x)); + } + set { + this.SetElement(RefinerXName, value); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Refiners", "urn:Microsoft.Search.Query"); + + static Refiners() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(RefinerXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(RefinerXName, typeof(Refiner)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// Regular expression: (RefinementFilter) + /// + /// + public partial class RefinementFilters : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static RefinementFilters Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static RefinementFilters Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static RefinementFilters Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator RefinementFilters(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// Regular expression: (RefinementFilter) + /// + /// + public RefinementFilters() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RefinementFilterXName = System.Xml.Linq.XName.Get("RefinementFilter", "urn:Microsoft.Search.Query"); + + /// + /// + /// Occurrence: required + /// + /// + /// Regular expression: (RefinementFilter) + /// + /// + public virtual RefinementFilter RefinementFilter { + get { + XElement x = this.GetElement(RefinementFilterXName); + return ((RefinementFilter)(x)); + } + set { + this.SetElement(RefinementFilterXName, value); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RefinementFilters", "urn:Microsoft.Search.Query"); + + static RefinementFilters() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(RefinementFilterXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(RefinementFilterXName, typeof(RefinementFilter)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// The similarityReference is a string that represents a statistical similarity reference when searching for similar items. + /// + /// + public sealed class similarityReference { + + private similarityReference() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); + } + + /// + /// + /// This contains the name of the refiner, but you can also use an advanced syntax to apply non-default configuration values for the named refiner. For more information about the advanced syntax for the Refiner element, see Refiner Specification in the Query Web Service and Query Object Model (https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/gg984547%28v%3doffice.14%29). + /// + /// + public sealed class refinerSpecification { + + private refinerSpecification() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); + } + + public partial class StartAt : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static StartAt Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static StartAt Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static StartAt Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator StartAt(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public StartAt() { + } + + public StartAt(int content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual int TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StartAt", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class Count : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Count Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Count Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Count Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator Count(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public Count() { + } + + public Count(int content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual int TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Count", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class ImplicitAndBehavior : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static ImplicitAndBehavior Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ImplicitAndBehavior Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static ImplicitAndBehavior Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator ImplicitAndBehavior(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public ImplicitAndBehavior() { + } + + public ImplicitAndBehavior(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ImplicitAndBehavior", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class EnableStemming : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static EnableStemming Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static EnableStemming Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static EnableStemming Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator EnableStemming(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public EnableStemming() { + } + + public EnableStemming(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EnableStemming", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class IncludeSpecialTermResults : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static IncludeSpecialTermResults Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeSpecialTermResults Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeSpecialTermResults Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator IncludeSpecialTermResults(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public IncludeSpecialTermResults() { + } + + public IncludeSpecialTermResults(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IncludeSpecialTermResults", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class PreQuerySuggestions : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static PreQuerySuggestions Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static PreQuerySuggestions Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static PreQuerySuggestions Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator PreQuerySuggestions(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public PreQuerySuggestions() { + } + + public PreQuerySuggestions(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PreQuerySuggestions", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class HighlightQuerySuggestions : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static HighlightQuerySuggestions Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static HighlightQuerySuggestions Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static HighlightQuerySuggestions Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator HighlightQuerySuggestions(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public HighlightQuerySuggestions() { + } + + public HighlightQuerySuggestions(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HighlightQuerySuggestions", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class CapitalizeFirstLetters : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static CapitalizeFirstLetters Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static CapitalizeFirstLetters Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static CapitalizeFirstLetters Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator CapitalizeFirstLetters(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public CapitalizeFirstLetters() { + } + + public CapitalizeFirstLetters(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CapitalizeFirstLetters", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class UserContextData : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static UserContextData Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static UserContextData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static UserContextData Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator UserContextData(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public UserContextData() { + } + + public UserContextData(string content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual string TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UserContextData", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// The similarityReference is a string that represents a statistical similarity reference when searching for similar items. + /// + /// + public partial class SimilarTo : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static SimilarTo Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SimilarTo Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SimilarTo Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator SimilarTo(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// The similarityReference is a string that represents a statistical similarity reference when searching for similar items. + /// + /// + public SimilarTo() { + } + + /// + /// + /// The similarityReference is a string that represents a statistical similarity reference when searching for similar items. + /// + /// + public SimilarTo(string content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual string TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetValueWithValidation(value, "TypedValue", global::Microsoft.Search.Query.Schemas.similarityReference.TypeDefinition); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SimilarTo", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class SortSimilar : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static SortSimilar Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SortSimilar Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static SortSimilar Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator SortSimilar(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public SortSimilar() { + } + + public SortSimilar(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SortSimilar", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// + /// + /// This contains the name of the refiner, but you can also use an advanced syntax to apply non-default configuration values for the named refiner. For more information about the advanced syntax for the Refiner element, see Refiner Specification in the Query Web Service and Query Object Model (https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/gg984547%28v%3doffice.14%29). + /// + /// + public partial class Refiner : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Refiner Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Refiner Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static Refiner Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator Refiner(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + /// + /// + /// This contains the name of the refiner, but you can also use an advanced syntax to apply non-default configuration values for the named refiner. For more information about the advanced syntax for the Refiner element, see Refiner Specification in the Query Web Service and Query Object Model (https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/gg984547%28v%3doffice.14%29). + /// + /// + public Refiner() { + } + + /// + /// + /// This contains the name of the refiner, but you can also use an advanced syntax to apply non-default configuration values for the named refiner. For more information about the advanced syntax for the Refiner element, see Refiner Specification in the Query Web Service and Query Object Model (https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/gg984547%28v%3doffice.14%29). + /// + /// + public Refiner(string content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual string TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetValueWithValidation(value, "TypedValue", global::Microsoft.Search.Query.Schemas.refinerSpecification.TypeDefinition); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Refiner", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class MaxShallowRefinementHits : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static MaxShallowRefinementHits Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static MaxShallowRefinementHits Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static MaxShallowRefinementHits Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator MaxShallowRefinementHits(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public MaxShallowRefinementHits() { + } + + public MaxShallowRefinementHits(int content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual int TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MaxShallowRefinementHits", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class RefinementFilter : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static RefinementFilter Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static RefinementFilter Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static RefinementFilter Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator RefinementFilter(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public RefinementFilter() { + } + + public RefinementFilter(byte[] content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual byte[] TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RefinementFilter", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class IgnoreAllNoiseQuery : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static IgnoreAllNoiseQuery Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IgnoreAllNoiseQuery Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IgnoreAllNoiseQuery Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator IgnoreAllNoiseQuery(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public IgnoreAllNoiseQuery() { + } + + public IgnoreAllNoiseQuery(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IgnoreAllNoiseQuery", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class IncludeRelevantResults : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static IncludeRelevantResults Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeRelevantResults Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeRelevantResults Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator IncludeRelevantResults(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public IncludeRelevantResults() { + } + + public IncludeRelevantResults(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IncludeRelevantResults", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class IncludeHighConfidenceResults : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static IncludeHighConfidenceResults Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeHighConfidenceResults Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } + + public static IncludeHighConfidenceResults Parse(string xml) { + return XTypedServices.Parse(xml); + } + + public static explicit operator IncludeHighConfidenceResults(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + + public IncludeHighConfidenceResults() { + } + + public IncludeHighConfidenceResults(bool content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual bool TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IncludeHighConfidenceResults", "urn:Microsoft.Search.Query"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public class LinqToXsdTypeManager : ILinqToXsdTypeManager { + + private LinqToXsdTypeManager() { + } + + private static Dictionary elementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + elementDictionary.Add(System.Xml.Linq.XName.Get("QueryPacket", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.QueryPacket)); + elementDictionary.Add(System.Xml.Linq.XName.Get("QueryId", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.QueryId)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Context", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.Context)); + elementDictionary.Add(System.Xml.Linq.XName.Get("QueryText", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.QueryText)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Range", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.Range)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Properties", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.Properties)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Property", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.Property)); + elementDictionary.Add(System.Xml.Linq.XName.Get("SortByProperties", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.SortByProperties)); + elementDictionary.Add(System.Xml.Linq.XName.Get("SortByProperty", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.SortByProperty)); + elementDictionary.Add(System.Xml.Linq.XName.Get("RelevanceModel", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.RelevanceModel)); + elementDictionary.Add(System.Xml.Linq.XName.Get("TrimDuplicates", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.TrimDuplicates)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ResultProvider", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.ResultProvider)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ResubmitFlags", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.ResubmitFlags)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ResubmitFlag", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.ResubmitFlag)); + elementDictionary.Add(System.Xml.Linq.XName.Get("EnableSpellcheck", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.EnableSpellcheck)); + elementDictionary.Add(System.Xml.Linq.XName.Get("UserContext", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.UserContext)); + elementDictionary.Add(System.Xml.Linq.XName.Get("FindSimilar", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.FindSimilar)); + elementDictionary.Add(System.Xml.Linq.XName.Get("SimilarType", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.SimilarType)); + elementDictionary.Add(System.Xml.Linq.XName.Get("IncludeRefinementResults", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.IncludeRefinementResults)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Refiners", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.Refiners)); + elementDictionary.Add(System.Xml.Linq.XName.Get("RefinementFilters", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.RefinementFilters)); + elementDictionary.Add(System.Xml.Linq.XName.Get("StartAt", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.StartAt)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Count", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.Count)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ImplicitAndBehavior", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.ImplicitAndBehavior)); + elementDictionary.Add(System.Xml.Linq.XName.Get("EnableStemming", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.EnableStemming)); + elementDictionary.Add(System.Xml.Linq.XName.Get("IncludeSpecialTermResults", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.IncludeSpecialTermResults)); + elementDictionary.Add(System.Xml.Linq.XName.Get("PreQuerySuggestions", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.PreQuerySuggestions)); + elementDictionary.Add(System.Xml.Linq.XName.Get("HighlightQuerySuggestions", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.HighlightQuerySuggestions)); + elementDictionary.Add(System.Xml.Linq.XName.Get("CapitalizeFirstLetters", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.CapitalizeFirstLetters)); + elementDictionary.Add(System.Xml.Linq.XName.Get("UserContextData", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.UserContextData)); + elementDictionary.Add(System.Xml.Linq.XName.Get("SimilarTo", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.SimilarTo)); + elementDictionary.Add(System.Xml.Linq.XName.Get("SortSimilar", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.SortSimilar)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Refiner", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.Refiner)); + elementDictionary.Add(System.Xml.Linq.XName.Get("MaxShallowRefinementHits", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.MaxShallowRefinementHits)); + elementDictionary.Add(System.Xml.Linq.XName.Get("RefinementFilter", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.RefinementFilter)); + elementDictionary.Add(System.Xml.Linq.XName.Get("IgnoreAllNoiseQuery", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.IgnoreAllNoiseQuery)); + elementDictionary.Add(System.Xml.Linq.XName.Get("IncludeRelevantResults", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.IncludeRelevantResults)); + elementDictionary.Add(System.Xml.Linq.XName.Get("IncludeHighConfidenceResults", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults)); + } + + private static XmlSchemaSet schemaSet; + + XmlSchemaSet ILinqToXsdTypeManager.Schemas { + get { + if ((schemaSet == null)) { + XmlSchemaSet tempSet = new XmlSchemaSet(); + System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); + } + return schemaSet; + } + set { + schemaSet = value; + } + } + + protected internal static void AddSchemas(XmlSchemaSet schemas) { + schemas.Add(schemaSet); + } + + Dictionary ILinqToXsdTypeManager.GlobalTypeDictionary { + get { + return XTypedServices.EmptyDictionary; + } + } + + Dictionary ILinqToXsdTypeManager.GlobalElementDictionary { + get { + return elementDictionary; + } + } + + Dictionary ILinqToXsdTypeManager.RootContentTypeMapping { + get { + return XTypedServices.EmptyTypeMappingDictionary; + } + } + + static LinqToXsdTypeManager() { + BuildElementDictionary(); + } + + public static System.Type GetRootType() { + return elementDictionary[System.Xml.Linq.XName.Get("QueryPacket", "urn:Microsoft.Search.Query")]; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); + + public static LinqToXsdTypeManager Instance { + get { + return typeManagerSingleton; + } + } + } + + public partial class XRootNamespace { + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; + + private XRootNamespace() { + } + + public static XRootNamespace Load(string xmlFile) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlFile); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(string xmlFile, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlFile, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(TextReader textReader) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(textReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(TextReader textReader, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(textReader, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(XmlReader xmlReader) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Parse(string text) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Parse(text); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Parse(string text, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Parse(text, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public virtual void Save(string fileName) { + doc.Save(fileName); + } + + public virtual void Save(TextWriter textWriter) { + doc.Save(textWriter); + } + + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(QueryPacket root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public QueryPacket QueryPacket { get {return rootObject as QueryPacket; } } + + public XRootNamespace(QueryId root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public QueryId QueryId { get {return rootObject as QueryId; } } + + public XRootNamespace(Context root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Context Context { get {return rootObject as Context; } } + + public XRootNamespace(QueryText root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public QueryText QueryText { get {return rootObject as QueryText; } } + + public XRootNamespace(Range root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Range Range { get {return rootObject as Range; } } + + public XRootNamespace(Properties root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Properties Properties { get {return rootObject as Properties; } } + + public XRootNamespace(Property root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Property Property { get {return rootObject as Property; } } + + public XRootNamespace(SortByProperties root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SortByProperties SortByProperties { get {return rootObject as SortByProperties; } } + + public XRootNamespace(SortByProperty root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SortByProperty SortByProperty { get {return rootObject as SortByProperty; } } + + public XRootNamespace(RelevanceModel root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public RelevanceModel RelevanceModel { get {return rootObject as RelevanceModel; } } + + public XRootNamespace(TrimDuplicates root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public TrimDuplicates TrimDuplicates { get {return rootObject as TrimDuplicates; } } + + public XRootNamespace(ResultProvider root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public ResultProvider ResultProvider { get {return rootObject as ResultProvider; } } + + public XRootNamespace(ResubmitFlags root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public ResubmitFlags ResubmitFlags { get {return rootObject as ResubmitFlags; } } + + public XRootNamespace(ResubmitFlag root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public ResubmitFlag ResubmitFlag { get {return rootObject as ResubmitFlag; } } + + public XRootNamespace(EnableSpellcheck root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public EnableSpellcheck EnableSpellcheck { get {return rootObject as EnableSpellcheck; } } + + public XRootNamespace(UserContext root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public UserContext UserContext { get {return rootObject as UserContext; } } + + public XRootNamespace(FindSimilar root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public FindSimilar FindSimilar { get {return rootObject as FindSimilar; } } + + public XRootNamespace(SimilarType root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SimilarType SimilarType { get {return rootObject as SimilarType; } } + + public XRootNamespace(IncludeRefinementResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public IncludeRefinementResults IncludeRefinementResults { get {return rootObject as IncludeRefinementResults; } } + + public XRootNamespace(Refiners root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Refiners Refiners { get {return rootObject as Refiners; } } + + public XRootNamespace(RefinementFilters root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public RefinementFilters RefinementFilters { get {return rootObject as RefinementFilters; } } + + public XRootNamespace(StartAt root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public StartAt StartAt { get {return rootObject as StartAt; } } + + public XRootNamespace(Count root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Count Count { get {return rootObject as Count; } } + + public XRootNamespace(ImplicitAndBehavior root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public ImplicitAndBehavior ImplicitAndBehavior { get {return rootObject as ImplicitAndBehavior; } } + + public XRootNamespace(EnableStemming root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public EnableStemming EnableStemming { get {return rootObject as EnableStemming; } } + + public XRootNamespace(IncludeSpecialTermResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public IncludeSpecialTermResults IncludeSpecialTermResults { get {return rootObject as IncludeSpecialTermResults; } } + + public XRootNamespace(PreQuerySuggestions root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public PreQuerySuggestions PreQuerySuggestions { get {return rootObject as PreQuerySuggestions; } } + + public XRootNamespace(HighlightQuerySuggestions root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public HighlightQuerySuggestions HighlightQuerySuggestions { get {return rootObject as HighlightQuerySuggestions; } } + + public XRootNamespace(CapitalizeFirstLetters root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public CapitalizeFirstLetters CapitalizeFirstLetters { get {return rootObject as CapitalizeFirstLetters; } } + + public XRootNamespace(UserContextData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public UserContextData UserContextData { get {return rootObject as UserContextData; } } + + public XRootNamespace(SimilarTo root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SimilarTo SimilarTo { get {return rootObject as SimilarTo; } } + + public XRootNamespace(SortSimilar root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SortSimilar SortSimilar { get {return rootObject as SortSimilar; } } + + public XRootNamespace(Refiner root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Refiner Refiner { get {return rootObject as Refiner; } } + + public XRootNamespace(MaxShallowRefinementHits root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public MaxShallowRefinementHits MaxShallowRefinementHits { get {return rootObject as MaxShallowRefinementHits; } } + + public XRootNamespace(RefinementFilter root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public RefinementFilter RefinementFilter { get {return rootObject as RefinementFilter; } } + + public XRootNamespace(IgnoreAllNoiseQuery root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public IgnoreAllNoiseQuery IgnoreAllNoiseQuery { get {return rootObject as IgnoreAllNoiseQuery; } } + + public XRootNamespace(IncludeRelevantResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public IncludeRelevantResults IncludeRelevantResults { get {return rootObject as IncludeRelevantResults; } } + + public XRootNamespace(IncludeHighConfidenceResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public IncludeHighConfidenceResults IncludeHighConfidenceResults { get {return rootObject as IncludeHighConfidenceResults; } } + } + + public partial class XRoot { + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; + + private XRoot() { + } + + public static XRoot Load(string xmlFile) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(string xmlFile, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(XmlReader xmlReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public virtual void Save(string fileName) { + doc.Save(fileName); + } + + public virtual void Save(TextWriter textWriter) { + doc.Save(textWriter); + } + + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRoot(global::Microsoft.Search.Query.Schemas.QueryPacket root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.QueryPacket QueryPacket { get {return rootObject as global::Microsoft.Search.Query.Schemas.QueryPacket; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.QueryId root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.QueryId QueryId { get {return rootObject as global::Microsoft.Search.Query.Schemas.QueryId; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.Context root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.Context Context { get {return rootObject as global::Microsoft.Search.Query.Schemas.Context; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.QueryText root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.QueryText QueryText { get {return rootObject as global::Microsoft.Search.Query.Schemas.QueryText; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.Range root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.Range Range { get {return rootObject as global::Microsoft.Search.Query.Schemas.Range; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.Properties root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.Properties Properties { get {return rootObject as global::Microsoft.Search.Query.Schemas.Properties; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.Property root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.Property Property { get {return rootObject as global::Microsoft.Search.Query.Schemas.Property; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.SortByProperties root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.SortByProperties SortByProperties { get {return rootObject as global::Microsoft.Search.Query.Schemas.SortByProperties; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.SortByProperty root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.SortByProperty SortByProperty { get {return rootObject as global::Microsoft.Search.Query.Schemas.SortByProperty; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.RelevanceModel root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.RelevanceModel RelevanceModel { get {return rootObject as global::Microsoft.Search.Query.Schemas.RelevanceModel; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.TrimDuplicates root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.TrimDuplicates TrimDuplicates { get {return rootObject as global::Microsoft.Search.Query.Schemas.TrimDuplicates; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.ResultProvider root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.ResultProvider ResultProvider { get {return rootObject as global::Microsoft.Search.Query.Schemas.ResultProvider; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.ResubmitFlags root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.ResubmitFlags ResubmitFlags { get {return rootObject as global::Microsoft.Search.Query.Schemas.ResubmitFlags; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.ResubmitFlag root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.ResubmitFlag ResubmitFlag { get {return rootObject as global::Microsoft.Search.Query.Schemas.ResubmitFlag; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.EnableSpellcheck root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.EnableSpellcheck EnableSpellcheck { get {return rootObject as global::Microsoft.Search.Query.Schemas.EnableSpellcheck; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.UserContext root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.UserContext UserContext { get {return rootObject as global::Microsoft.Search.Query.Schemas.UserContext; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.FindSimilar root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.FindSimilar FindSimilar { get {return rootObject as global::Microsoft.Search.Query.Schemas.FindSimilar; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.SimilarType root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.SimilarType SimilarType { get {return rootObject as global::Microsoft.Search.Query.Schemas.SimilarType; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.IncludeRefinementResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.IncludeRefinementResults IncludeRefinementResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeRefinementResults; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.Refiners root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.Refiners Refiners { get {return rootObject as global::Microsoft.Search.Query.Schemas.Refiners; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.RefinementFilters root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.RefinementFilters RefinementFilters { get {return rootObject as global::Microsoft.Search.Query.Schemas.RefinementFilters; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.StartAt root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.StartAt StartAt { get {return rootObject as global::Microsoft.Search.Query.Schemas.StartAt; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.Count root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.Count Count { get {return rootObject as global::Microsoft.Search.Query.Schemas.Count; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.ImplicitAndBehavior root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.ImplicitAndBehavior ImplicitAndBehavior { get {return rootObject as global::Microsoft.Search.Query.Schemas.ImplicitAndBehavior; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.EnableStemming root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.EnableStemming EnableStemming { get {return rootObject as global::Microsoft.Search.Query.Schemas.EnableStemming; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.IncludeSpecialTermResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.IncludeSpecialTermResults IncludeSpecialTermResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeSpecialTermResults; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.PreQuerySuggestions root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.PreQuerySuggestions PreQuerySuggestions { get {return rootObject as global::Microsoft.Search.Query.Schemas.PreQuerySuggestions; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.HighlightQuerySuggestions root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.HighlightQuerySuggestions HighlightQuerySuggestions { get {return rootObject as global::Microsoft.Search.Query.Schemas.HighlightQuerySuggestions; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.CapitalizeFirstLetters root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.CapitalizeFirstLetters CapitalizeFirstLetters { get {return rootObject as global::Microsoft.Search.Query.Schemas.CapitalizeFirstLetters; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.UserContextData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.UserContextData UserContextData { get {return rootObject as global::Microsoft.Search.Query.Schemas.UserContextData; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.SimilarTo root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.SimilarTo SimilarTo { get {return rootObject as global::Microsoft.Search.Query.Schemas.SimilarTo; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.SortSimilar root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.SortSimilar SortSimilar { get {return rootObject as global::Microsoft.Search.Query.Schemas.SortSimilar; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.Refiner root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.Refiner Refiner { get {return rootObject as global::Microsoft.Search.Query.Schemas.Refiner; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.MaxShallowRefinementHits root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.MaxShallowRefinementHits MaxShallowRefinementHits { get {return rootObject as global::Microsoft.Search.Query.Schemas.MaxShallowRefinementHits; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.RefinementFilter root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.RefinementFilter RefinementFilter { get {return rootObject as global::Microsoft.Search.Query.Schemas.RefinementFilter; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.IgnoreAllNoiseQuery root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.IgnoreAllNoiseQuery IgnoreAllNoiseQuery { get {return rootObject as global::Microsoft.Search.Query.Schemas.IgnoreAllNoiseQuery; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.IncludeRelevantResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.IncludeRelevantResults IncludeRelevantResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeRelevantResults; } } + + public XRoot(global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults IncludeHighConfidenceResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults; } } + } +} diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs new file mode 100644 index 00000000..aaa31931 --- /dev/null +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -0,0 +1,246 @@ +#nullable enable +using System.CodeDom; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text.RegularExpressions; +using Scriban; + +namespace Xml.Schema.Linq.CodeGen.Scriban; + +static class ScribanGlobals +{ + public static void Comments(TemplateContext ctx, object target) + { + var comments = target switch + { + CodeTypeDeclaration decl => decl.Comments, + CodeTypeMember m => m.Comments, + _ => null, + }; + + if (comments == null || comments.Count == 0) + return; + + foreach (CodeCommentStatement c in comments) + ctx.Write($"/// {c.Comment.Text.Replace("\n", "\n///")}\n"); + ctx.ResetPreviousNewLine(); + ctx.Write(ctx.CurrentIndent); + } + + public static IEnumerable Classes(CodeTypeDeclaration type) + { + return type.Members + .OfType() + .Where(x => !x.IsEnum && !x.Name.EndsWith("EnumValidator")); + } + + public static CodeTypeDeclaration EnumDecl(string enumName, CodeTypeDeclaration type) + { + enumName = enumName.TrimEnd('?'); + return type.Members + .OfType() + .First(x => x.IsEnum && x.Name == enumName); + } + + public static CodeConstructor? Ctor(CodeTypeDeclaration type, int args = 0) + { + return type.Members + .OfType() + .FirstOrDefault(x => x.Parameters.Count == args); + } + + public static IEnumerable Properties(CodeTypeDeclaration type) + { + return type.Members + .OfType() + .Where(x => + // Exclude properties like SchemaName, TypeOrigin or TypeManager + !x.CustomAttributes.Cast().Any(a => a.Name == "DebuggerBrowsable") && + x.Name != "TypedValue"); + } + + public static bool IsList(CodeMemberProperty prop) + { + return prop.Type.BaseType == "IList`1"; + } + + public static bool IsElement(CodeMemberProperty prop) + { + return IsList(prop) || + prop.GetStatements[0] is CodeVariableDeclarationStatement { Type.BaseType: "XElement" }; + } + + public static IEnumerable Elements(CodeTypeDeclaration type) + { + return Properties(type).Where(IsElement); + } + + public static bool HasElements(CodeTypeDeclaration type) + { + return Elements(type).Any(); + } + + public static bool IsOptional(CodeMemberProperty prop) + { + return prop.Comments + .Cast() + .Any(x => x.Comment.Text.Contains("Occurrence: optional")); + } + + public static bool IsTypeDefinition(CodeTypeDeclaration type) + { + return type.TypeAttributes.HasFlag(TypeAttributes.Sealed); + } + + public static string? Validator(CodeTypeDeclaration type) + { + var statement = type.Members + .OfType() + .First(x => x.Name == "TypedValue") + .SetStatements[0]; + + if (statement is not CodeExpressionStatement + { + Expression: CodeMethodInvokeExpression + { + Method.MethodName: "SetValueWithValidation", + Parameters: [_, _, CodeFieldReferenceExpression + { + TargetObject: CodeTypeReferenceExpression + { + Type: var typeRef + } + }] + } + }) + return null; + + return typeRef.BaseType; + } + + public static string? SimpleType(CodeTypeDeclaration type) + { + var typeDecl = type.Members + .OfType() + .FirstOrDefault(x => x.Name == "TypedValue") + ?.Type; + return typeDecl != null ? TypeName(typeDecl, nullable: false) : null; + } + + public static IEnumerable EnumValues(CodeTypeDeclaration enumType) + { + return enumType.Members + .OfType() + .Select(x => x.Name); + } + + public static string? DefaultValue(CodeMemberProperty prop, CodeTypeDeclaration type) + { + var name = prop.Name + "DefaultValue"; + var init = type.Members + .OfType() + .FirstOrDefault(x => x.Name == name) + ?.InitExpression; + + return init switch + { + CodeMethodInvokeExpression i => $"{i.Method.MethodName}(\"{ ((CodePrimitiveExpression)i.Parameters[0]).Value }\")", + CodePrimitiveExpression p => (string)p.Value, + CodeFieldReferenceExpression f => f.FieldName, + _ => null, + }; + } + + public static string LocalName(CodeTypeDeclaration type, string name) + { + var init = type.Members + .OfType() + .FirstOrDefault(x => x.Name == name) + ?.InitExpression as CodeMethodInvokeExpression; + if (init is null) return "TODO: review null"; + return (string)(init.Parameters[0] as CodePrimitiveExpression)!.Value; + } + + public static string Namespace(CodeTypeDeclaration type, string name) + { + var init = type.Members + .OfType() + .FirstOrDefault(x => x.Name == name) + ?.InitExpression as CodeMethodInvokeExpression; + if (init is null) return "TODO: review null"; + return (string)(init.Parameters[1] as CodePrimitiveExpression)!.Value; + } + + public static bool HasContentModel(CodeTypeDeclaration type) + { + return type.Members + .OfType() + .Any(x => x.Name == "contentModel"); + } + + public static string TypeName(CodeTypeReference type, bool nullable = true) + { + if (type.ArrayElementType != null) + return TypeName(type.ArrayElementType) + "[]"; + + var name = type.BaseType; + + if (type.TypeArguments.Count > 0) + { + return Regex.Replace(name, @"`\d+$", "") + + "<" + + string.Join(", ", type.TypeArguments.Cast().Select(x => TypeName(x))) + + ">"; + } + + if (!nullable) + name = name.TrimEnd('?'); + + return name switch + { + "System.Boolean" => "bool", + "System.Byte" => "byte", + "System.Int32" => "int", + "System.String" => "string", + _ => name, + }; + } + + public static string ListElement(string typeName) + { + return Regex.Match(typeName, "^IList<([^>]+)>$") is { Success: true, Groups: var g } + ? g[1].Value + : typeName; + } + + public static string XmlTypeCode(object type, string? name = null) + { + // HACK: this is plain wrong but a shortcut to make the proof of concept match 100% without going to deep in CodeDom analysis + if (name == "language") return "XmlTypeCode.Language"; + + if (type is CodeTypeReference typeRef) + type = TypeName(typeRef, nullable: false); + + return type switch + { + "bool" => "XmlTypeCode.Boolean", + "byte[]" => "XmlTypeCode.Base64Binary", + "int" => "XmlTypeCode.Int", + "string" => "XmlTypeCode.String", + _ => "TODO", + }; + } + + public static IEnumerable AllTypes(CodeNamespace ns) + { + return ns.Types + .Cast() + .Where(x => x.Name is not ("XRootNamespace" or "XRoot" or "LinqToXsdTypeManager")); + } + + public static IEnumerable ElementTypes(CodeNamespace ns) + { + return AllTypes(ns).Where(x => !IsTypeDefinition(x)); + } +} \ No newline at end of file diff --git a/XObjectsCode/Src/Scriban/TemplateLoader.cs b/XObjectsCode/Src/Scriban/TemplateLoader.cs new file mode 100644 index 00000000..906c59ba --- /dev/null +++ b/XObjectsCode/Src/Scriban/TemplateLoader.cs @@ -0,0 +1,33 @@ +using Scriban; +using Scriban.Parsing; +using Scriban.Runtime; +using System.IO; +using System.Threading.Tasks; + +namespace Xml.Schema.Linq.CodeGen.Scriban; + +class TemplateLoader : ITemplateLoader +{ + static string FullPath(string name) + { + return Path.Combine( + Path.GetDirectoryName(typeof(TemplateLoader).Assembly.Location), + "Templates", + name); + } + + public static Template Load(string name) + { + var file = FullPath(name); + return Template.Parse(File.ReadAllText(file), file); + } + + public string GetPath(TemplateContext context, SourceSpan callerSpan, string templateName) + => FullPath(templateName); + + public string Load(TemplateContext context, SourceSpan callerSpan, string templatePath) + => File.ReadAllText(templatePath); + + public ValueTask LoadAsync(TemplateContext context, SourceSpan callerSpan, string templatePath) + => new ValueTask(File.ReadAllText(templatePath)); +} diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 542d55c7..3cbe5af4 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -4,10 +4,14 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text; using System.Xml; using System.Xml.Linq; using System.Xml.Schema; +using Scriban; +using Scriban.Runtime; using Xml.Schema.Linq.CodeGen; +using Xml.Schema.Linq.CodeGen.Scriban; using Xml.Schema.Linq.Extensions; using XObjects; @@ -146,8 +150,9 @@ public static Dictionary Generate(IEnumerable xsdFil return GenerateCodeCompileUnits(schemaSet, settings) .Select(x => { - var writer = x.unit.ToStringWriter(); + var writer = new StringWriter(new StringBuilder(x.code)); + // TODO: put directly in template if (settings.NullableReferences) { // HACK: CodeDom doesn't allow us to add #pragmas. @@ -171,7 +176,7 @@ public static Dictionary Generate(IEnumerable xsdFil /// /// is /// is - public static IEnumerable<(string clrNamespace, CodeCompileUnit unit)> GenerateCodeCompileUnits(XmlSchemaSet schemaSet, LinqToXsdSettings settings) + public static IEnumerable<(string clrNamespace, string code)> GenerateCodeCompileUnits(XmlSchemaSet schemaSet, LinqToXsdSettings settings) { if (schemaSet == null) throw new ArgumentNullException(nameof(schemaSet)); if (settings == null) throw new ArgumentNullException(nameof(settings)); @@ -181,16 +186,29 @@ public static Dictionary Generate(IEnumerable xsdFil var codeGenerator = new CodeDomTypesGenerator(settings); var namespaces = codeGenerator.GenerateTypes(mapping); + var template = TemplateLoader.Load("file.scriban-cs"); + return settings.SplitFilesByNamespace ? namespaces.GroupBy(ns => ns.Name).Select(g => (g.Key, BuildUnit(g))) : new[] { ((string)null, BuildUnit(namespaces)) }; - static CodeCompileUnit BuildUnit(IEnumerable namespaces) + // TODO: rename + string BuildUnit(IEnumerable namespaces) { - var ccu = new CodeCompileUnit(); - foreach (var ns in namespaces) - ccu.Namespaces.Add(ns); - return ccu; + var globals = new ScriptObject(); + globals.Import(typeof(ScribanGlobals)); + globals.Import( + new { Settings = settings, Namespaces = namespaces.ToArray() }, + renamer: m => m.Name); + + var context = new TemplateContext() + { + MemberRenamer = m => m.Name, + TemplateLoader = new TemplateLoader(), + }; + context.PushGlobal(globals); + + return template.Render(context); } } diff --git a/XObjectsCode/Templates/class.scriban-cs b/XObjectsCode/Templates/class.scriban-cs new file mode 100644 index 00000000..b12aebf5 --- /dev/null +++ b/XObjectsCode/Templates/class.scriban-cs @@ -0,0 +1,248 @@ +{{ $1 | comments -}} +public partial class {{ $1.Name }} : XTypedElement, IXMetaData { + {{~ if !$.isNested ~}} + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static {{ $1.Name }} Load(string xmlFile) { + return XTypedServices.Load<{{ $1.Name }}>(xmlFile); + } + + public static {{ $1.Name }} Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<{{ $1.Name }}>(xmlFile); + } + + public static {{ $1.Name }} Parse(string xml) { + return XTypedServices.Parse<{{ $1.Name }}>(xml); + } + {{~ end ~}} + + public static explicit operator {{ $1.Name }}(XElement xe) { return XTypedServices.ToXTypedElement<{{ $1.Name }}>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<{{ $1.Name }}>(this); + } + + {{ $1 | ctor | comments -}} + public {{ $1.Name }}() { + } + + {{- + $simple = $1 | simple_type + if $simple != null + $validatorType = $1 | validator + $enumType = $simple | (regex.matches "Enum\\??$").empty? ? null : $simple | string.split "." | array.last + if $enumType + }} + + {{ include 'enum.scriban-cs' 'TypedValue' ($enumType | enum_decl $1) $simple }} + + {{- else # simple type but not an enum }} + + {{- if ($1 | properties).empty? }} + + {{ $1 | ctor 1 | comments -}} + public {{ $1.Name }}({{ $simple }} content) { + this.TypedValue = content; + } + {{- end }} + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual {{ $simple }} TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue<{{ $simple }}>(x, XmlSchemaType.GetBuiltInSimpleType({{ $simple | xml_type_code }}).Datatype); + } + set { + {{~ if $validatorType == null ~}} + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType({{ $simple | xml_type_code }}).Datatype); + {{~ else ~}} + this.SetValueWithValidation(value, "TypedValue", {{ $validatorType }}.TypeDefinition); + {{~ end ~}} + } + } + + {{- end # if $enumType }} + + {{- end # if $simple }} + + {{- for $prop in $1 | properties }} + + {{- + $propType = $prop.Type | type_name + $enumType = $propType | (regex.matches "Enum\\??$").empty? ? null : $propType | string.split "." | array.last + if $enumType + }} + + {{ + include 'enum.scriban-cs' $prop.Name ($enumType | enum_decl $1) $propType $prop ($prop | default_value $1) + continue + end + }} + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName {{ $prop.Name }}XName = System.Xml.Linq.XName.Get("{{ $1 | local_name $prop.Name + 'XName' }}", "{{ $1 | namespace $prop.Name + 'XName' }}"); + + {{- + $default = $prop | default_value $1 + if $default + }} + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static {{ $prop.Type | type_name }} {{ $prop.Name }}DefaultValue = System.Xml.XmlConvert.{{ $default }}; + {{- end }} + + {{- if $prop | is_list }} + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<{{ $prop.Name }}> {{ $prop.Name }}Field; + + {{- end }} + + {{ $prop | comments -}} + public virtual {{ $prop.Type | type_name}} {{ $prop.Name }} { + {{- if $prop | is_list }} + get { + if ((this.{{ $prop.Name }}Field == null)) { + this.{{ $prop.Name }}Field = new XTypedList<{{ $prop.Name }}>(this, LinqToXsdTypeManager.Instance, {{ $prop.Name }}XName); + } + return this.{{ $prop.Name }}Field; + } + set { + if ((value == null)) { + this.{{ $prop.Name }}Field = null; + } + else { + if ((this.{{ $prop.Name }}Field == null)) { + this.{{ $prop.Name }}Field = XTypedList<{{ $prop.Name }}>.Initialize(this, LinqToXsdTypeManager.Instance, value, {{ $prop.Name }}XName); + } + else { + XTypedServices.SetList<{{ $prop.Name }}>(this.{{ $prop.Name }}Field, value); + } + } + } + + {{- else if $prop | is_element }} + get { + XElement x = this.GetElement({{ $prop.Name }}XName); + {{- if $prop | is_optional }} + if ((x == null)) { + return null; + } + {{- end }} + return (({{ $prop.Type | type_name }})(x)); + } + set { + this.SetElement({{ $prop.Name }}XName, value); + } + + {{- else }} + get { + XAttribute x = this.Attribute({{ $prop.Name }}XName); + {{- if $prop | is_optional }} + if ((x == null)) { + return {{ $default ? $prop.Name + "DefaultValue" : "null" }}; + } + {{- end }} + return XTypedServices.ParseValue<{{ $prop.Type | type_name nullable: false }}>(x, XmlSchemaType.GetBuiltInSimpleType({{ $prop.Type | xml_type_code $prop.Name }}).Datatype); + } + set { + this.SetAttribute({{ $prop.Name }}XName, value, XmlSchemaType.GetBuiltInSimpleType({{ $prop.Type | xml_type_code $prop.Name }}).Datatype); + } + + {{- end }} + } + {{- end }} + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("{{ $1 | local_name 'xName' }}", "{{ $1 | namespace 'xName' }}"); + + {{- if $1 | has_elements }} + + static {{ $1.Name }}() { + BuildElementDictionary(); + {{- if $1 | has_content_model }} + contentModel = new SequenceContentModelEntity( + {{- for $el in $1 | elements -}} + new NamedContentModelEntity({{ $el.Name }}XName) + {{- if !for.last; ', '; end -}} + {{- end -}} + ); + {{- end }} + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + {{- for $prop in $1 | elements }} + localElementDictionary.Add({{ $prop.Name }}XName, typeof({{ $prop.Type | type_name | list_element | string.split "." | array.last }})); + {{- end }} + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + {{- end }} + + {{- if $1 | has_content_model }} + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + {{- else }} + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + {{- end }} + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return {{ if $.isNested -}} SchemaOrigin.Fragment {{- else -}} SchemaOrigin.Element {{- end }}; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + + {{- for $type in $1 | classes }} + + {{ include 'class.scriban-cs' $type isNested: true }} + + {{- end }} +} \ No newline at end of file diff --git a/XObjectsCode/Templates/enum.scriban-cs b/XObjectsCode/Templates/enum.scriban-cs new file mode 100644 index 00000000..dd87bc2d --- /dev/null +++ b/XObjectsCode/Templates/enum.scriban-cs @@ -0,0 +1,60 @@ +public enum {{ $2.Name }} { + {{~ for $value in $2 | enum_values ~}} + + {{ $value }}, + {{~ end ~}} +} + +public sealed class {{ $2.Name }}Validator { + + private {{ $2.Name }}Validator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + {{ $2 | enum_values | array.join ",\n" do; ret '"' + $0 + '"'; end -}} + }, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); +} + +[DebuggerBrowsable(DebuggerBrowsableState.Never)] +[EditorBrowsable(EditorBrowsableState.Never)] +protected internal static readonly System.Xml.Linq.XName {{ $1 }}XName = System.Xml.Linq.XName.Get("{{ $1 }}", ""); + +{{- if $5 }} + +[DebuggerBrowsable(DebuggerBrowsableState.Never)] +private static {{ $3 }} {{ $1 }}DefaultValue = {{ $3 }}.{{ $5 }}; +{{- end }} + +{{ $4 | comments ~}} +public virtual {{ $3 }} {{ $1 }} { + {{~ if $1 == "TypedValue" ~}} + get { + XElement x = this.Untyped; + return (({{ $3 }})(Enum.Parse(typeof({{ $3 }}), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, {{ $2.Name }}Validator.TypeDefinition)))); + } + set { + this.SetValueWithValidation(value.ToString(), "{{ $1 }}", {{ $2.Name }}Validator.TypeDefinition); + } + {{~ else ~}} + get { + XAttribute x = this.Attribute({{ $1 }}XName); + if ((x == null)) { + return {{ $5 ? $1 + "DefaultValue" : "null" }}; + } + return (({{ $3 | string.remove_last "?" }})(Enum.Parse(typeof({{ $3 | string.remove_last "?" }}), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, {{ $2.Name }}Validator.TypeDefinition)))); + } + set { + {{~ if $3 | string.ends_with "?" ~}} + if (value == null) { + this.SetAttribute({{ $1 }}XName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation({{ $1 }}XName, value.ToString(), "{{ $1 }}", {{ $2.Name }}Validator.TypeDefinition); + } + {{~ else ~}} + this.SetAttributeWithValidation({{ $1 }}XName, value.ToString(), "{{ $1 }}", {{ $2.Name }}Validator.TypeDefinition); + {{~ end ~}} + } + {{~ end ~}} +} \ No newline at end of file diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs new file mode 100644 index 00000000..840b015c --- /dev/null +++ b/XObjectsCode/Templates/file.scriban-cs @@ -0,0 +1,43 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +{{- for $ns in Namespaces }} + +namespace {{ $ns.Name }} { + using System; + using System.Collections; + using System.Collections.Generic; + using System.ComponentModel; + using System.IO; + using System.Linq; + using System.Diagnostics; + using System.Xml; + using System.Xml.Schema; + {{~ if Settings.EnableServiceReference ~}} + using System.Xml.Serialization; + {{~ end ~}} + using System.Xml.Linq; + using Xml.Schema.Linq; + + {{~ for $type in $ns | all_types ~}} + + {{ + if $type | is_type_definition + include 'type.scriban-cs' $type + else + include 'class.scriban-cs' $type + end + }} + {{~ end ~}} + + {{ include 'manager.scriban-cs' $ns }} + + {{ include 'root.scriban-cs' $ns }} +} +{{ end }} \ No newline at end of file diff --git a/XObjectsCode/Templates/manager.scriban-cs b/XObjectsCode/Templates/manager.scriban-cs new file mode 100644 index 00000000..bb8a08d2 --- /dev/null +++ b/XObjectsCode/Templates/manager.scriban-cs @@ -0,0 +1,67 @@ +public class LinqToXsdTypeManager : ILinqToXsdTypeManager { + + private LinqToXsdTypeManager() { + } + + private static Dictionary elementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + {{- for $el in $1 | element_types }} + elementDictionary.Add(System.Xml.Linq.XName.Get("{{ $el | local_name 'xName' }}", "{{ $el | namespace 'xName' }}"), typeof(global::{{ $1.Name }}.{{ $el.Name }})); + {{- end }} + } + + private static XmlSchemaSet schemaSet; + + XmlSchemaSet ILinqToXsdTypeManager.Schemas { + get { + if ((schemaSet == null)) { + XmlSchemaSet tempSet = new XmlSchemaSet(); + System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); + } + return schemaSet; + } + set { + schemaSet = value; + } + } + + protected internal static void AddSchemas(XmlSchemaSet schemas) { + schemas.Add(schemaSet); + } + + Dictionary ILinqToXsdTypeManager.GlobalTypeDictionary { + get { + return XTypedServices.EmptyDictionary; + } + } + + Dictionary ILinqToXsdTypeManager.GlobalElementDictionary { + get { + return elementDictionary; + } + } + + Dictionary ILinqToXsdTypeManager.RootContentTypeMapping { + get { + return XTypedServices.EmptyTypeMappingDictionary; + } + } + + static LinqToXsdTypeManager() { + BuildElementDictionary(); + } + + public static System.Type GetRootType() { + return elementDictionary[System.Xml.Linq.XName.Get("{{ $1.Types[0] | local_name 'xName' }}", "{{ $1.Types[0] | namespace 'xName' }}")]; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); + + public static LinqToXsdTypeManager Instance { + get { + return typeManagerSingleton; + } + } +} \ No newline at end of file diff --git a/XObjectsCode/Templates/root.scriban-cs b/XObjectsCode/Templates/root.scriban-cs new file mode 100644 index 00000000..db27a620 --- /dev/null +++ b/XObjectsCode/Templates/root.scriban-cs @@ -0,0 +1,265 @@ +public partial class XRootNamespace { + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; + + private XRootNamespace() { + } + + public static XRootNamespace Load(string xmlFile) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlFile); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(string xmlFile, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlFile, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(TextReader textReader) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(textReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(TextReader textReader, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(textReader, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(XmlReader xmlReader) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Parse(string text) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Parse(text); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Parse(string text, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Parse(text, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public virtual void Save(string fileName) { + doc.Save(fileName); + } + + public virtual void Save(TextWriter textWriter) { + doc.Save(textWriter); + } + + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + {{- for $el in $1 | element_types }} + + public XRootNamespace({{ $el.Name }} root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public {{ $el.Name }} {{ $el.Name }} { get {return rootObject as {{ $el.Name }}; } } + + {{- end }} +} + +public partial class XRoot { + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; + + private XRoot() { + } + + public static XRoot Load(string xmlFile) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(string xmlFile, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(XmlReader xmlReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public virtual void Save(string fileName) { + doc.Save(fileName); + } + + public virtual void Save(TextWriter textWriter) { + doc.Save(textWriter); + } + + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + {{- for $el in $1 | element_types }} + + public XRoot(global::{{ $1.Name }}.{{ $el.Name }} root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::{{ $1.Name }}.{{ $el.Name }} {{ $el.Name }} { get {return rootObject as global::{{ $1.Name }}.{{ $el.Name }}; } } + + {{- end }} +} \ No newline at end of file diff --git a/XObjectsCode/Templates/type.scriban-cs b/XObjectsCode/Templates/type.scriban-cs new file mode 100644 index 00000000..5fd22998 --- /dev/null +++ b/XObjectsCode/Templates/type.scriban-cs @@ -0,0 +1,9 @@ +{{ $1 | comments -}} +public sealed class {{ $1.Name }} { + + private {{ $1.Name }}() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); +} \ No newline at end of file diff --git a/XObjectsCode/XObjectsCodeGen.csproj b/XObjectsCode/XObjectsCodeGen.csproj index 4c939648..78cd273b 100644 --- a/XObjectsCode/XObjectsCodeGen.csproj +++ b/XObjectsCode/XObjectsCodeGen.csproj @@ -17,6 +17,7 @@ + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -24,6 +25,10 @@ + + + + TargetFramework=net8.0 From 62fdae025eac9eb62626a2b54746314b7e1b3cbb Mon Sep 17 00:00:00 2001 From: jods4 Date: Mon, 9 Mar 2026 23:41:44 +0100 Subject: [PATCH 02/29] Remove #nullable enable pragma hack --- LinqToXsd/Program.GenerateCodeDispatcher.cs | 28 ++++--- LinqToXsd/Program.cs | 2 +- XObjectsCode/Src/PragmaHelper.cs | 33 -------- XObjectsCode/Src/XObjectsCoreGenerator.cs | 83 ++++++++------------- XObjectsCode/Templates/file.scriban-cs | 3 + 5 files changed, 48 insertions(+), 101 deletions(-) delete mode 100644 XObjectsCode/Src/PragmaHelper.cs diff --git a/LinqToXsd/Program.GenerateCodeDispatcher.cs b/LinqToXsd/Program.GenerateCodeDispatcher.cs index c7cfa7dd..580f3515 100644 --- a/LinqToXsd/Program.GenerateCodeDispatcher.cs +++ b/LinqToXsd/Program.GenerateCodeDispatcher.cs @@ -17,12 +17,12 @@ internal static class GenerateCodeDispatcher /// /// Writes generated code for to multiple output files, inferred by . /// - internal static void HandleWriteOutputToMultipleFiles(GenerateOptions options, Dictionary textWriters) + internal static void HandleWriteOutputToMultipleFiles(GenerateOptions options, Dictionary codeUnits) { var possibleOutputFolder = options.Output; - PrintLn($"Outputting {textWriters.Count} files...".Gray()); - foreach (var kvp in textWriters) + PrintLn($"Outputting {codeUnits.Count} files...".Gray()); + foreach (var kvp in codeUnits) { var outputFilename = Path.GetFileName(kvp.Key); if (!outputFilename.EndsWith(".cs")) @@ -44,11 +44,10 @@ internal static void HandleWriteOutputToMultipleFiles(GenerateOptions options, D PrintLn($"{kvp.Key} => {outputFilePath}".Gray()); - using (var outputFileStream = File.Open(outputFilePath, FileMode.Create, FileAccess.ReadWrite)) - using (var fileWriter = new StreamWriter(outputFileStream)) - { - fileWriter.Write(kvp.Value); - } + using var outputFileStream = File.Open(outputFilePath, FileMode.Create, FileAccess.ReadWrite); + using var fileWriter = new StreamWriter(outputFileStream); + + fileWriter.Write(kvp.Value); } } @@ -57,21 +56,20 @@ internal static void HandleWriteOutputToMultipleFiles(GenerateOptions options, D /// /// /// - internal static void HandleWriteOutputToSingleFile(GenerateOptions options, Dictionary textWriters) + internal static void HandleWriteOutputToSingleFile(GenerateOptions options, Dictionary codeUnits) { var outputFile = options.Output; // add .cs extension to filename if it doesn't have it already. var target = outputFile.EndsWith(".cs") ? outputFile : $"{outputFile}.cs"; var extractFileNameOnlyFunctor = new Func(k => $"'{Path.GetFileName(k)}'"); - PrintLn($"{textWriters.Keys.ToDelimitedString(extractFileNameOnlyFunctor).Yellow()}"); + PrintLn($"{codeUnits.Keys.ToDelimitedString(extractFileNameOnlyFunctor).Yellow()}"); PrintLn($"\toutput to \n{target}"); - using (var fileStream = File.Open(target, FileMode.Create, FileAccess.ReadWrite)) - using (var fileWriter = new StreamWriter(fileStream, Encoding.UTF8)) - { - foreach (var kvp in textWriters) fileWriter.Write(kvp.Value); - } + using var fileStream = File.Open(target, FileMode.Create, FileAccess.ReadWrite); + using var fileWriter = new StreamWriter(fileStream, Encoding.UTF8); + + foreach (var kvp in codeUnits) fileWriter.Write(kvp.Value); } } } diff --git a/LinqToXsd/Program.cs b/LinqToXsd/Program.cs index 0a56bdb3..3e49a56e 100644 --- a/LinqToXsd/Program.cs +++ b/LinqToXsd/Program.cs @@ -160,7 +160,7 @@ internal static void HandleGenerateCode(GenerateOptions generateOptions) settings.EnableServiceReference = generateOptions.EnableServiceReference; - Dictionary textWriters = generateOptions.AutoConfig + Dictionary textWriters = generateOptions.AutoConfig ? XObjectsCoreGenerator.Generate(generateOptions.SchemaFiles, ProgramObserver) : XObjectsCoreGenerator.Generate(generateOptions.SchemaFiles, settings, ProgramObserver); diff --git a/XObjectsCode/Src/PragmaHelper.cs b/XObjectsCode/Src/PragmaHelper.cs deleted file mode 100644 index 16fc34d1..00000000 --- a/XObjectsCode/Src/PragmaHelper.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.IO; -using System.Text; - -namespace Xml.Schema.Linq.CodeGen -{ - static class PragmaHelper - { - public static void InsertFilePragma(this StringWriter writer, string pragma) - { - var builder = writer.GetStringBuilder(); - // Insert the pragma on the first blank line, which will be just after the comment. - int blankIndex = IndexOfBlankLine(builder); - builder.Insert(blankIndex, pragma + "\r\n"); - } - - private static int IndexOfBlankLine(StringBuilder builder) - { - // We look for two chars \n[\r\n], so the stop condition is one less than actual length - for (int i = 0; i < builder.Length - 1; i++) - { - if (builder[i] == '\n') - { - ++i; // Safe because of the `Length - 1` stop condition - if (builder[i] == '\r' || builder[i] == '\n') - { - return i; - } - } - } - return 0; - } - } -} \ No newline at end of file diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 3cbe5af4..5ff5d5c6 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -4,7 +4,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Xml; using System.Xml.Linq; using System.Xml.Schema; @@ -13,7 +12,6 @@ using Xml.Schema.Linq.CodeGen; using Xml.Schema.Linq.CodeGen.Scriban; using Xml.Schema.Linq.Extensions; -using XObjects; namespace Xml.Schema.Linq { @@ -54,7 +52,7 @@ public static LinqToXsdSettings LoadLinqToXsdSettings(XDocument xdoc) /// /// /// - public static Dictionary Generate(IEnumerable xsdFilePaths, + public static Dictionary Generate(IEnumerable xsdFilePaths, LinqToXsdSettings settings, IWarnableObserver? programObserver = null) { if (xsdFilePaths == null) throw new ArgumentNullException(nameof(xsdFilePaths)); @@ -64,7 +62,7 @@ public static Dictionary Generate(IEnumerable xsdFil // Multiple XSD files may import the same namespace, e.g. in case of a shared schema. // In this case we arbitrary keep the first occurence. .Distinct(new FileNameComparer()) - .ToDictionary(x => x.filename, x => x.writer); + .ToDictionary(x => x.filename, x => x.code); } /// @@ -74,11 +72,10 @@ public static Dictionary Generate(IEnumerable xsdFil /// /// /// is - public static IEnumerable<(string filename, TextWriter writer)> Generate(string xsdFilePath, string? linqToXsdSettingsFilePath = null) + public static IEnumerable<(string filename, string code)> Generate(string xsdFilePath, string? linqToXsdSettingsFilePath = null) { if (xsdFilePath.IsEmpty()) throw new ArgumentNullException(nameof(xsdFilePath)); var settings = LoadLinqToXsdSettings(linqToXsdSettingsFilePath); - return Generate(xsdFilePath, settings); } @@ -89,34 +86,32 @@ public static Dictionary Generate(IEnumerable xsdFil /// If null, uses default or /// /// is - public static IEnumerable<(string filename, TextWriter writer)> Generate(string xsdFilePath, LinqToXsdSettings? settings = null) + public static IEnumerable<(string filename, string code)> Generate(string xsdFilePath, LinqToXsdSettings? settings = null) { if (xsdFilePath.IsEmpty()) throw new ArgumentNullException(nameof(xsdFilePath)); - if (settings == null) settings = new LinqToXsdSettings(); + settings ??= new LinqToXsdSettings(); - var xmlReader = XmlReader.Create(xsdFilePath, Defaults.DefaultXmlReaderSettings); + using var xmlReader = XmlReader.Create(xsdFilePath, Defaults.DefaultXmlReaderSettings); - using (xmlReader) { - XmlSchemaSet? schemaSet = xmlReader.ToXmlSchemaSet(); + XmlSchemaSet schemaSet = xmlReader.ToXmlSchemaSet(); - string? xsdFolder = Path.GetDirectoryName(xsdFilePath); + string xsdFolder = Path.GetDirectoryName(xsdFilePath)!; - return Generate(schemaSet, settings) - .Select(x => - { - // When SplitCodeFiles by Namespace is configured, - // Generate() returns a tuple (clrNamespace, writer) per CLR namespace that we need to map to a file. - // Otherwise, Generate() returns a single (null, writer) tuple. - var filename = string.IsNullOrEmpty(x.clrNamespace) - ? xsdFilePath - : settings.NamespaceFileMap.TryGetValue(x.clrNamespace, out string nsFile) + return Generate(schemaSet, settings) + .Select(x => + { + // When SplitCodeFiles by Namespace is configured, + // Generate() returns a tuple (clrNamespace, writer) per CLR namespace that we need to map to a file. + // Otherwise, Generate() returns a single (null, writer) tuple. + var filename = string.IsNullOrEmpty(x.clrNamespace) + ? xsdFilePath + : settings.NamespaceFileMap.TryGetValue(x.clrNamespace, out string? nsFile) ? Path.Combine(xsdFolder, nsFile) : throw new LinqToXsdException( $"CLR namespace {x.clrNamespace} has no output file configured, which is required when using SplitCodeFiles by Namespace configuration."); - return (filename, x.writer); - }); - } + return (filename, x.code); + }); } /// @@ -128,10 +123,9 @@ public static Dictionary Generate(IEnumerable xsdFil /// Otherwise, one StringWriter per CLR namespace. /// /// is - public static IEnumerable<(string clrNamespace, TextWriter writer)> Generate(XmlSchemaSet schemaSet) + public static IEnumerable<(string? clrNamespace, string code)> Generate(XmlSchemaSet schemaSet) { - var settings = new LinqToXsdSettings(); - return Generate(schemaSet, settings); + return Generate(schemaSet, new LinqToXsdSettings()); } /// @@ -145,24 +139,9 @@ public static Dictionary Generate(IEnumerable xsdFil /// /// is /// is - public static IEnumerable<(string clrNamespace, TextWriter writer)> Generate(XmlSchemaSet schemaSet, LinqToXsdSettings settings) + public static IEnumerable<(string? clrNamespace, string code)> Generate(XmlSchemaSet schemaSet, LinqToXsdSettings settings) { - return GenerateCodeCompileUnits(schemaSet, settings) - .Select(x => - { - var writer = new StringWriter(new StringBuilder(x.code)); - - // TODO: put directly in template - if (settings.NullableReferences) - { - // HACK: CodeDom doesn't allow us to add #pragmas. - // In code, CS mandates a "#nullable enable" pragma. - // So we add the pragma inside the generated text directly - writer.InsertFilePragma("#nullable enable annotations"); - } - - return (x.clrNamespace, (TextWriter)writer); - }); + return GenerateCodeCompileUnits(schemaSet, settings); } /// @@ -176,7 +155,7 @@ public static Dictionary Generate(IEnumerable xsdFil /// /// is /// is - public static IEnumerable<(string clrNamespace, string code)> GenerateCodeCompileUnits(XmlSchemaSet schemaSet, LinqToXsdSettings settings) + public static IEnumerable<(string? clrNamespace, string code)> GenerateCodeCompileUnits(XmlSchemaSet schemaSet, LinqToXsdSettings settings) { if (schemaSet == null) throw new ArgumentNullException(nameof(schemaSet)); if (settings == null) throw new ArgumentNullException(nameof(settings)); @@ -189,8 +168,8 @@ public static Dictionary Generate(IEnumerable xsdFil var template = TemplateLoader.Load("file.scriban-cs"); return settings.SplitFilesByNamespace - ? namespaces.GroupBy(ns => ns.Name).Select(g => (g.Key, BuildUnit(g))) - : new[] { ((string)null, BuildUnit(namespaces)) }; + ? namespaces.GroupBy(ns => ns.Name).Select(g => ((string?)g.Key, BuildUnit(g))) + : [ (null, BuildUnit(namespaces)) ]; // TODO: rename string BuildUnit(IEnumerable namespaces) @@ -219,7 +198,7 @@ string BuildUnit(IEnumerable namespaces) /// /// /// - public static Dictionary Generate(IEnumerable schemaFiles, + public static Dictionary Generate(IEnumerable schemaFiles, IWarnableObserver? observer = null) { // xsd file paths are keys, the FileInfo's to their config files are values @@ -246,15 +225,15 @@ public static Dictionary Generate(IEnumerable schema // Multiple XSD files may import the same namespace, e.g. in case of a shared schema. // In this case we arbitrary keep the first occurence. .Distinct(new FileNameComparer()) - .ToDictionary(x => x.filename, x => x.writer); + .ToDictionary(x => x.filename, x => x.code); } - class FileNameComparer : IEqualityComparer<(string filename, TextWriter writer)> + class FileNameComparer : IEqualityComparer<(string filename, string code)> { - public bool Equals((string filename, TextWriter writer) x, (string filename, TextWriter writer) y) + public bool Equals((string filename, string code) x, (string filename, string code) y) => x.filename == y.filename; - public int GetHashCode((string filename, TextWriter writer) obj) + public int GetHashCode((string filename, string code) obj) => obj.filename?.GetHashCode() ?? 0; } } diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 840b015c..5a02ced3 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -6,6 +6,9 @@ // the code is regenerated. // //------------------------------------------------------------------------------ +{{- if Settings.NullableReferences }} +#nullable enable annotations +{{- end }} {{- for $ns in Namespaces }} From 83ee39f07a88ed5837eaff645066d98a81ce33e1 Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 10 Mar 2026 00:11:08 +0100 Subject: [PATCH 03/29] Simplify XObjectsCoreGenerator As the public apis of the generator are going to change massively, we might as well do a few binary breaking changes to the entry points. --- XObjectsCode/Extensions/CodeDomExtensions.cs | 31 -- XObjectsCode/Src/LinqToXsdSettings.cs | 231 ++++++----- XObjectsCode/Src/XObjectsCoreGenerator.cs | 365 ++++++++---------- .../Extensions/CodeDomExtensionTests.cs | 29 -- XObjectsTests/Utilities.cs | 35 +- 5 files changed, 290 insertions(+), 401 deletions(-) diff --git a/XObjectsCode/Extensions/CodeDomExtensions.cs b/XObjectsCode/Extensions/CodeDomExtensions.cs index 5e7aea81..c9c06382 100644 --- a/XObjectsCode/Extensions/CodeDomExtensions.cs +++ b/XObjectsCode/Extensions/CodeDomExtensions.cs @@ -335,37 +335,6 @@ public static string ToCodeString(this CodeTypeReferenceCollection codetyperefer return str; } - /// - /// Creates individual s for each in each - /// in the . - /// - /// - /// - public static IEnumerable ToClassStringWriters(this CodeCompileUnit current) - { - var provider = new CSharpCodeProvider(); - var codeGeneratorOptions = new CodeGeneratorOptions() { - VerbatimOrder = true - }; - - foreach (CodeNamespace ns in current.Namespaces.Cast()) { - var imports = ns.Imports.Cast().ToArray(); - var comments = ns.Comments.Cast().ToArray(); - foreach (CodeTypeDeclaration type in ns.Types) { - var classStrWriter = new StringWriter(); - - var nsCopy = ns.ShallowClone(); - nsCopy.Comments.AddRange(comments); - nsCopy.Imports.AddRange(imports); - nsCopy.Types.Add(type); - - provider.GenerateCodeFromNamespace(nsCopy, classStrWriter, codeGeneratorOptions); - - yield return classStrWriter; - } - } - } - public static CodeNamespace ShallowClone(this CodeNamespace current) => new CodeNamespace(current.Name); /// diff --git a/XObjectsCode/Src/LinqToXsdSettings.cs b/XObjectsCode/Src/LinqToXsdSettings.cs index ecf96e9c..385d8722 100644 --- a/XObjectsCode/Src/LinqToXsdSettings.cs +++ b/XObjectsCode/Src/LinqToXsdSettings.cs @@ -5,157 +5,156 @@ using System.Collections.Generic; using Xml.Schema.Linq.CodeGen; -namespace Xml.Schema.Linq +namespace Xml.Schema.Linq; + +public enum GeneratedTypesVisibility +{ + Public, + Internal +} + +public class LinqToXsdSettings { - public enum GeneratedTypesVisibility + private Dictionary namespaceMapping = new(); + public Dictionary NamespaceTypesVisibilityMap { get; } = new(); + public Dictionary NamespaceFileMap { get; } = new(); + internal XElement trafo; + private bool verifyRequired = false; + private bool enableServiceReference = false; + private readonly bool NameMangler2; + + public LinqToXsdSettings(bool nameMangler2 = false) { - Public, - Internal + NameMangler2 = nameMangler2; } - public class LinqToXsdSettings + public LinqToXsdSettings(string filePath, bool nameMangler2 = false) { - private Dictionary namespaceMapping; - public Dictionary NamespaceTypesVisibilityMap { get; } = new(); - public Dictionary NamespaceFileMap { get; } = new(); - internal XElement trafo; - private bool verifyRequired = false; - private bool enableServiceReference = false; - private readonly bool NameMangler2; - - public LinqToXsdSettings(bool nameMangler2 = false) - { - this.NameMangler2 = nameMangler2; - namespaceMapping = new Dictionary(); - } - - public LinqToXsdSettings(string filePath, bool nameMangler2 = false) - { - this.NameMangler2 = nameMangler2; - namespaceMapping = new Dictionary(); - Load(filePath); - } - - public void Load(string configFile) - { - if (string.IsNullOrEmpty(configFile)) - throw new ArgumentException("Argument configFile should be non-null and non-empty."); + NameMangler2 = nameMangler2; + Load(filePath); + } - Load(XDocument.Load(configFile)); - } + public LinqToXsdSettings Load(string configFile) + { + if (string.IsNullOrEmpty(configFile)) + throw new ArgumentException("Argument configFile should be non-null and non-empty."); - public void Load(XDocument configDocument) - { - if (configDocument?.Root == null) throw new ArgumentNullException(nameof(configDocument)); + return Load(XDocument.Load(configFile)); + } - var rootElement = configDocument.Root; + public LinqToXsdSettings Load(XDocument configDocument) + { + if (configDocument?.Root == null) throw new ArgumentNullException(nameof(configDocument)); - var namespacesElement = rootElement.Element(XName.Get("Namespaces", Constants.TypedXLinqNs)); - GenerateNamespaceMapping(namespacesElement); - GenerateNamespaceVisibilityMapping(namespacesElement); - GenerateNamespaceFileMapping(namespacesElement); + var rootElement = configDocument.Root; - var codegenElement = rootElement.Element(XName.Get("CodeGeneration", Constants.TypedXLinqNs)); + var namespacesElement = rootElement.Element(XName.Get("Namespaces", Constants.TypedXLinqNs)); + GenerateNamespaceMapping(namespacesElement); + GenerateNamespaceVisibilityMapping(namespacesElement); + GenerateNamespaceFileMapping(namespacesElement); - UseDateOnly = codegenElement?.Element(XName.Get("UseDateOnly", Constants.TypedXLinqNs))?.Value == "true"; - UseTimeOnly = codegenElement?.Element(XName.Get("UseTimeOnly", Constants.TypedXLinqNs))?.Value == "true"; - UseDateTimeOffset = codegenElement?.Element(XName.Get("UseDateTimeOffset", Constants.TypedXLinqNs))?.Value == "true"; + var codegenElement = rootElement.Element(XName.Get("CodeGeneration", Constants.TypedXLinqNs)); - var splitFilesElement = codegenElement?.Element(XName.Get("SplitCodeFiles", Constants.TypedXLinqNs)); - SplitFilesByNamespace = splitFilesElement?.Attribute("By")?.Value == "Namespace"; + UseDateOnly = codegenElement?.Element(XName.Get("UseDateOnly", Constants.TypedXLinqNs))?.Value == "true"; + UseTimeOnly = codegenElement?.Element(XName.Get("UseTimeOnly", Constants.TypedXLinqNs))?.Value == "true"; + UseDateTimeOffset = codegenElement?.Element(XName.Get("UseDateTimeOffset", Constants.TypedXLinqNs))?.Value == "true"; + var splitFilesElement = codegenElement?.Element(XName.Get("SplitCodeFiles", Constants.TypedXLinqNs)); + SplitFilesByNamespace = splitFilesElement?.Attribute("By")?.Value == "Namespace"; - var nullableRefsName = XName.Get("NullableReferences", Constants.TypedXLinqNs); - NullableReferences = - (codegenElement?.Element(nullableRefsName) ?? rootElement.Element(nullableRefsName))?.Value == "true"; - trafo = rootElement.Element(XName.Get("Transformation", Constants.FxtNs)); + var nullableRefsName = XName.Get("NullableReferences", Constants.TypedXLinqNs); + NullableReferences = + (codegenElement?.Element(nullableRefsName) ?? rootElement.Element(nullableRefsName))?.Value == "true"; - XElement validationSettings = rootElement.Element(XName.Get("Validation", Constants.TypedXLinqNs)); - if (validationSettings != null) - { - verifyRequired = - (string)validationSettings.Element(XName.Get("VerifyRequired", Constants.TypedXLinqNs)) == "true"; - } - } + trafo = rootElement.Element(XName.Get("Transformation", Constants.FxtNs)); - public string GetClrNamespace(string xmlNamespace) + XElement validationSettings = rootElement.Element(XName.Get("Validation", Constants.TypedXLinqNs)); + if (validationSettings != null) { - string clrNamespace = string.Empty; - if (xmlNamespace == null) - { - return clrNamespace; - } - - if (namespaceMapping.TryGetValue(xmlNamespace, out clrNamespace)) - { - return clrNamespace; - } - - clrNamespace = NameGenerator.MakeValidCLRNamespace( - xmlNamespace, this.NameMangler2); - namespaceMapping.Add(xmlNamespace, clrNamespace); - return clrNamespace; + verifyRequired = + (string)validationSettings.Element(XName.Get("VerifyRequired", Constants.TypedXLinqNs)) == "true"; } - public bool SplitFilesByNamespace { get; set; } + return this; + } - public bool VerifyRequired + public string GetClrNamespace(string xmlNamespace) + { + string clrNamespace = string.Empty; + if (xmlNamespace == null) { - get { return verifyRequired; } + return clrNamespace; } - public bool EnableServiceReference + if (namespaceMapping.TryGetValue(xmlNamespace, out clrNamespace)) { - get { return enableServiceReference; } - set { enableServiceReference = value; } + return clrNamespace; } - public bool UseDateOnly { get; set; } - public bool UseTimeOnly { get; set; } - public bool UseDateTimeOffset { get; set; } + clrNamespace = NameGenerator.MakeValidCLRNamespace( + xmlNamespace, this.NameMangler2); + namespaceMapping.Add(xmlNamespace, clrNamespace); + return clrNamespace; + } - public bool NullableReferences { get; set; } + public bool SplitFilesByNamespace { get; set; } - private void GenerateNamespaceMapping(XElement namespaces) - { - if (namespaces == null) return; - foreach (XElement ns in namespaces.Elements(XName.Get("Namespace", Constants.TypedXLinqNs))) { - var schemaXName = XName.Get("Schema"); - var schema = (string)ns.Attribute(schemaXName); - if (schema == null) { - ns.SetAttributeValue(schemaXName, string.Empty); - schema = string.Empty; - } - var clr = (string) ns.Attribute(XName.Get("Clr")); - namespaceMapping.Add(schema, clr); + public bool VerifyRequired + { + get { return verifyRequired; } + } + + public bool EnableServiceReference + { + get { return enableServiceReference; } + set { enableServiceReference = value; } + } + + public bool UseDateOnly { get; set; } + public bool UseTimeOnly { get; set; } + public bool UseDateTimeOffset { get; set; } + + public bool NullableReferences { get; set; } + + private void GenerateNamespaceMapping(XElement namespaces) + { + if (namespaces == null) return; + foreach (XElement ns in namespaces.Elements(XName.Get("Namespace", Constants.TypedXLinqNs))) { + var schemaXName = XName.Get("Schema"); + var schema = (string)ns.Attribute(schemaXName); + if (schema == null) { + ns.SetAttributeValue(schemaXName, string.Empty); + schema = string.Empty; } + var clr = (string) ns.Attribute(XName.Get("Clr")); + namespaceMapping.Add(schema, clr); } + } - private void GenerateNamespaceVisibilityMapping(XElement namespaces) - { - if (namespaces == null) return; - foreach (var ns in namespaces.Elements(XName.Get("Namespace", Constants.TypedXLinqNs))) { - var clrNs = (string) ns.Attribute(XName.Get("Clr")); - var visibilityValue = (string) ns.Attribute(XName.Get("DefaultVisibility")); - var visibility = visibilityValue == "internal" - ? GeneratedTypesVisibility.Internal - : GeneratedTypesVisibility.Public; - - NamespaceTypesVisibilityMap.Add(clrNs, visibility); - } + private void GenerateNamespaceVisibilityMapping(XElement namespaces) + { + if (namespaces == null) return; + foreach (var ns in namespaces.Elements(XName.Get("Namespace", Constants.TypedXLinqNs))) { + var clrNs = (string) ns.Attribute(XName.Get("Clr")); + var visibilityValue = (string) ns.Attribute(XName.Get("DefaultVisibility")); + var visibility = visibilityValue == "internal" + ? GeneratedTypesVisibility.Internal + : GeneratedTypesVisibility.Public; + + NamespaceTypesVisibilityMap.Add(clrNs, visibility); } + } - private void GenerateNamespaceFileMapping(XElement namespaces) + private void GenerateNamespaceFileMapping(XElement namespaces) + { + if (namespaces == null) return; + foreach (var ns in namespaces.Elements(XName.Get("Namespace", Constants.TypedXLinqNs))) { - if (namespaces == null) return; - foreach (var ns in namespaces.Elements(XName.Get("Namespace", Constants.TypedXLinqNs))) - { - var file = ns.Attribute(XName.Get("File"))?.Value; - if (file == null) continue; - var clrNs = ns.Attribute(XName.Get("Clr"))?.Value; - NamespaceFileMap.Add(clrNs, file); - } + var file = ns.Attribute(XName.Get("File"))?.Value; + if (file == null) continue; + var clrNs = ns.Attribute(XName.Get("Clr"))?.Value; + NamespaceFileMap.Add(clrNs, file); } } } \ No newline at end of file diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 5ff5d5c6..7d9243ad 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -1,11 +1,11 @@ #nullable enable + using System; using System.CodeDom; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; -using System.Xml.Linq; using System.Xml.Schema; using Scriban; using Scriban.Runtime; @@ -13,228 +13,185 @@ using Xml.Schema.Linq.CodeGen.Scriban; using Xml.Schema.Linq.Extensions; -namespace Xml.Schema.Linq +namespace Xml.Schema.Linq; + +/// +/// Static methods to support multiple ways of generating code. +/// +public static class XObjectsCoreGenerator { /// - /// Static methods to support multiple ways of generating code. + /// Creates a new instance of , optionally by loading from an XML file. /// - public static class XObjectsCoreGenerator + /// Null, empty or non-existent file path value will simply return a default instance. + /// + public static LinqToXsdSettings LoadLinqToXsdSettings(string? fromXmlFile = null) { - /// - /// Creates a new instance of , optionally by loading from an XML file. - /// - /// Null, empty or non-existent file path value will simply return a default instance. - /// - public static LinqToXsdSettings LoadLinqToXsdSettings(string? fromXmlFile = null) - { - var settings = new LinqToXsdSettings(); - if (fromXmlFile.IsNotEmpty() && File.Exists(fromXmlFile)) settings.Load(fromXmlFile); + return fromXmlFile.IsNotEmpty() && File.Exists(fromXmlFile) + ? new LinqToXsdSettings(fromXmlFile) + : new LinqToXsdSettings(); + } - return settings; - } + /// + /// Generates code for a sequence of file paths and an instance of a . + /// + /// + /// + /// + /// + public static Dictionary Generate( + IEnumerable xsdFilePaths, + LinqToXsdSettings settings, + IWarnableObserver? programObserver = null) + { + if (xsdFilePaths == null) throw new ArgumentNullException(nameof(xsdFilePaths)); + + return xsdFilePaths + .SelectMany(file => Generate(file, settings)) + // Multiple XSD files may import the same namespace, e.g. in case of a shared schema. + // In this case we arbitrary keep the first occurence. + .Distinct(new FileNameComparer()) + .ToDictionary(x => x.filename, x => x.code); + } - /// - /// Creates a new instance of from an already parsed . - /// - /// - public static LinqToXsdSettings LoadLinqToXsdSettings(XDocument xdoc) - { - var settings = new LinqToXsdSettings(); - settings.Load(xdoc); + /// + /// Generates code using a given , and an optionally, the file path to a configuration file. + /// + /// + /// + /// + /// is + public static IEnumerable<(string filename, string code)> Generate(string xsdFilePath, string? linqToXsdSettingsFilePath = null) + { + if (xsdFilePath.IsEmpty()) throw new ArgumentNullException(nameof(xsdFilePath)); + var settings = LoadLinqToXsdSettings(linqToXsdSettingsFilePath); + return Generate(xsdFilePath, settings); + } - return settings; - } + /// + /// Generates code using a given for a single file, and an optional instance. + /// + /// + /// If null, uses default or + /// + /// is + public static IEnumerable<(string filename, string code)> Generate(string xsdFilePath, LinqToXsdSettings? settings = null) + { + if (xsdFilePath.IsEmpty()) throw new ArgumentNullException(nameof(xsdFilePath)); + settings ??= new LinqToXsdSettings(); - /// - /// Generates code for a sequence of file paths and an instance of a . - /// - /// - /// - /// - /// - public static Dictionary Generate(IEnumerable xsdFilePaths, - LinqToXsdSettings settings, IWarnableObserver? programObserver = null) - { - if (xsdFilePaths == null) throw new ArgumentNullException(nameof(xsdFilePaths)); - - return xsdFilePaths - .SelectMany(file => Generate(file, settings)) - // Multiple XSD files may import the same namespace, e.g. in case of a shared schema. - // In this case we arbitrary keep the first occurence. - .Distinct(new FileNameComparer()) - .ToDictionary(x => x.filename, x => x.code); - } + using var xmlReader = XmlReader.Create(xsdFilePath, Defaults.DefaultXmlReaderSettings); - /// - /// Generates code using a given , and an optionally, the file path to a configuration file. - /// - /// - /// - /// - /// is - public static IEnumerable<(string filename, string code)> Generate(string xsdFilePath, string? linqToXsdSettingsFilePath = null) - { - if (xsdFilePath.IsEmpty()) throw new ArgumentNullException(nameof(xsdFilePath)); - var settings = LoadLinqToXsdSettings(linqToXsdSettingsFilePath); - return Generate(xsdFilePath, settings); - } + XmlSchemaSet schemaSet = xmlReader.ToXmlSchemaSet(); - /// - /// Generates code using a given for a single file, and an optional instance. - /// - /// - /// If null, uses default or - /// - /// is - public static IEnumerable<(string filename, string code)> Generate(string xsdFilePath, LinqToXsdSettings? settings = null) - { - if (xsdFilePath.IsEmpty()) throw new ArgumentNullException(nameof(xsdFilePath)); - settings ??= new LinqToXsdSettings(); - - using var xmlReader = XmlReader.Create(xsdFilePath, Defaults.DefaultXmlReaderSettings); - - XmlSchemaSet schemaSet = xmlReader.ToXmlSchemaSet(); - - string xsdFolder = Path.GetDirectoryName(xsdFilePath)!; - - return Generate(schemaSet, settings) - .Select(x => - { - // When SplitCodeFiles by Namespace is configured, - // Generate() returns a tuple (clrNamespace, writer) per CLR namespace that we need to map to a file. - // Otherwise, Generate() returns a single (null, writer) tuple. - var filename = string.IsNullOrEmpty(x.clrNamespace) - ? xsdFilePath - : settings.NamespaceFileMap.TryGetValue(x.clrNamespace, out string? nsFile) - ? Path.Combine(xsdFolder, nsFile) - : throw new LinqToXsdException( - $"CLR namespace {x.clrNamespace} has no output file configured, which is required when using SplitCodeFiles by Namespace configuration."); - - return (filename, x.code); - }); - } + string xsdFolder = Path.GetDirectoryName(xsdFilePath)!; - /// - /// Generates code using a given of XSDs. - /// - /// - /// - /// A single (null, StringWriter) when configuration doesn't split files per namespace. - /// Otherwise, one StringWriter per CLR namespace. - /// - /// is - public static IEnumerable<(string? clrNamespace, string code)> Generate(XmlSchemaSet schemaSet) - { - return Generate(schemaSet, new LinqToXsdSettings()); - } + return Generate(schemaSet, settings) + .Select(x => + { + // When SplitCodeFiles by Namespace is configured, + // Generate() returns a tuple (clrNamespace, writer) per CLR namespace that we need to map to a file. + // Otherwise, Generate() returns a single (null, writer) tuple. + var filename = string.IsNullOrEmpty(x.clrNamespace) + ? xsdFilePath + : settings.NamespaceFileMap.TryGetValue(x.clrNamespace, out string? nsFile) + ? Path.Combine(xsdFolder, nsFile) + : throw new LinqToXsdException( + $"CLR namespace {x.clrNamespace} has no output file configured, which is required when using SplitCodeFiles by Namespace configuration."); + + return (filename, x.code); + }); + } - /// - /// Generates code using a given of XSD's and a instance. - /// - /// - /// - /// - /// A single (null, StringWriter) when configuration doesn't split files per namespace. - /// Otherwise, one StringWriter per CLR namespace. - /// - /// is - /// is - public static IEnumerable<(string? clrNamespace, string code)> Generate(XmlSchemaSet schemaSet, LinqToXsdSettings settings) - { - return GenerateCodeCompileUnits(schemaSet, settings); - } + /// + /// Generates code using a given of XSD's and a instance. + /// + /// + /// + /// + /// A single (null, StringWriter) when configuration doesn't split files per namespace. + /// Otherwise, one StringWriter per CLR namespace. + /// + /// is + /// is + public static IEnumerable<(string? clrNamespace, string code)> Generate(XmlSchemaSet schemaSet, LinqToXsdSettings? settings = null) + { + if (schemaSet == null) throw new ArgumentNullException(nameof(schemaSet)); + settings ??= new LinqToXsdSettings(); + + var xsdConverter = new XsdToTypesConverter(settings); + ClrMappingInfo mapping = xsdConverter.GenerateMapping(schemaSet); - /// - /// Creates s from a given and . - /// - /// - /// - /// - /// A single (null, CodeCompileUnit) when configuration doesn't split files per namespaces. - /// Otherwise, one CodeCompileUnit per CLR namespace. - /// - /// is - /// is - public static IEnumerable<(string? clrNamespace, string code)> GenerateCodeCompileUnits(XmlSchemaSet schemaSet, LinqToXsdSettings settings) + var codeGenerator = new CodeDomTypesGenerator(settings); + var namespaces = codeGenerator.GenerateTypes(mapping); + + var template = TemplateLoader.Load("file.scriban-cs"); + + return settings.SplitFilesByNamespace + ? namespaces.GroupBy(ns => ns.Name).Select(g => ((string?)g.Key, RenderCodeUnit(g))) + : [ (null, RenderCodeUnit(namespaces)) ]; + + string RenderCodeUnit(IEnumerable namespaces) { - if (schemaSet == null) throw new ArgumentNullException(nameof(schemaSet)); - if (settings == null) throw new ArgumentNullException(nameof(settings)); - var xsdConverter = new XsdToTypesConverter(settings); - ClrMappingInfo mapping = xsdConverter.GenerateMapping(schemaSet); - - var codeGenerator = new CodeDomTypesGenerator(settings); - var namespaces = codeGenerator.GenerateTypes(mapping); - - var template = TemplateLoader.Load("file.scriban-cs"); - - return settings.SplitFilesByNamespace - ? namespaces.GroupBy(ns => ns.Name).Select(g => ((string?)g.Key, BuildUnit(g))) - : [ (null, BuildUnit(namespaces)) ]; - - // TODO: rename - string BuildUnit(IEnumerable namespaces) + var globals = new ScriptObject(); + globals.Import(typeof(ScribanGlobals)); + globals.Import( + new { Settings = settings, Namespaces = namespaces.ToArray() }, + renamer: m => m.Name); + + var context = new TemplateContext() { - var globals = new ScriptObject(); - globals.Import(typeof(ScribanGlobals)); - globals.Import( - new { Settings = settings, Namespaces = namespaces.ToArray() }, - renamer: m => m.Name); - - var context = new TemplateContext() - { - MemberRenamer = m => m.Name, - TemplateLoader = new TemplateLoader(), - }; - context.PushGlobal(globals); - - return template.Render(context); - } + MemberRenamer = m => m.Name, + TemplateLoader = new TemplateLoader(), + }; + context.PushGlobal(globals); + + return template.Render(context); } + } - /// - /// Generates code by searching for an accompanying configuration file, whereby each configuration file is named the same as the XSD file, but with an - /// .config extension (i.e. schemaFileName.xsd.config). Will skip over XSDs that have no accompanying .config file. - /// - /// - /// - /// - public static Dictionary Generate(IEnumerable schemaFiles, - IWarnableObserver? observer = null) - { - // xsd file paths are keys, the FileInfo's to their config files are values - List<(FileInfo xsdFile, FileInfo configFile)> dictOfSchemasAndTheirConfigs = schemaFiles - .Select(xsdFilePath => { - var configFile = new FileInfo($"{xsdFilePath}.config"); - var xsdFile = new FileInfo(xsdFilePath); - return (xsdFile, configFile); - }) - .ToList(); - - var excludeV11Xsds = dictOfSchemasAndTheirConfigs - .Where(filePairs => filePairs.xsdFile.Exists && filePairs.xsdFile.GetXmlSchemaVersion() != XmlSchemaVersion.Version1_1) - .ToList(); - - if (excludeV11Xsds.Count != dictOfSchemasAndTheirConfigs.Count) { - observer?.OnWarn("Found some XSD v1.1 schemas: this tool does not support XSD v1.1. and will ignore those."); - } - - observer?.OnNext($"Schemas to process: {excludeV11Xsds.ToDelimitedString(e => Path.GetFileName(e.xsdFile.Name), ';')}"); - - return excludeV11Xsds - .SelectMany(pair => Generate(pair.xsdFile.FullName, pair.configFile.FullName)) - // Multiple XSD files may import the same namespace, e.g. in case of a shared schema. - // In this case we arbitrary keep the first occurence. - .Distinct(new FileNameComparer()) - .ToDictionary(x => x.filename, x => x.code); + /// + /// Generates code by searching for an accompanying configuration file, whereby each configuration file is named the same as the XSD file, but with an + /// .config extension (i.e. schemaFileName.xsd.config). Will skip over XSDs that have no accompanying .config file. + /// + /// + /// + /// + public static Dictionary Generate(IEnumerable schemaFiles, IWarnableObserver? observer = null) + { + // xsd file paths are keys, the FileInfo's to their config files are values + List<(FileInfo xsdFile, FileInfo configFile)> dictOfSchemasAndTheirConfigs = schemaFiles + .Select(xsdFilePath => { + var configFile = new FileInfo($"{xsdFilePath}.config"); + var xsdFile = new FileInfo(xsdFilePath); + return (xsdFile, configFile); + }) + .ToList(); + + var excludeV11Xsds = dictOfSchemasAndTheirConfigs + .Where(filePairs => filePairs.xsdFile.Exists && filePairs.xsdFile.GetXmlSchemaVersion() != XmlSchemaVersion.Version1_1) + .ToList(); + + if (excludeV11Xsds.Count != dictOfSchemasAndTheirConfigs.Count) { + observer?.OnWarn("Found some XSD v1.1 schemas: this tool does not support XSD v1.1. and will ignore those."); } - class FileNameComparer : IEqualityComparer<(string filename, string code)> - { - public bool Equals((string filename, string code) x, (string filename, string code) y) - => x.filename == y.filename; + observer?.OnNext($"Schemas to process: {excludeV11Xsds.ToDelimitedString(e => Path.GetFileName(e.xsdFile.Name), ';')}"); - public int GetHashCode((string filename, string code) obj) - => obj.filename?.GetHashCode() ?? 0; - } + return excludeV11Xsds + .SelectMany(pair => Generate(pair.xsdFile.FullName, pair.configFile.FullName)) + // Multiple XSD files may import the same namespace, e.g. in case of a shared schema. + // In this case we arbitrary keep the first occurence. + .Distinct(new FileNameComparer()) + .ToDictionary(x => x.filename, x => x.code); + } + + class FileNameComparer : IEqualityComparer<(string filename, string code)> + { + public bool Equals((string filename, string code) x, (string filename, string code) y) + => x.filename == y.filename; + + public int GetHashCode((string filename, string code) obj) + => obj.filename?.GetHashCode() ?? 0; } } \ No newline at end of file diff --git a/XObjectsTests/Extensions/CodeDomExtensionTests.cs b/XObjectsTests/Extensions/CodeDomExtensionTests.cs index 3237025e..d4bf6110 100644 --- a/XObjectsTests/Extensions/CodeDomExtensionTests.cs +++ b/XObjectsTests/Extensions/CodeDomExtensionTests.cs @@ -1,9 +1,5 @@ using System; using System.CodeDom; -using System.IO; -using System.Linq; -using System.Xml; -using System.Xml.Resolvers; using System.Xml.Schema; using Fasterflect; using NUnit.Framework; @@ -98,30 +94,5 @@ public void IsEquivalentEnumDeclarationTestMembersCount() Assert.IsFalse(isEquivalent); } - - [Test] - public void ToClassStringWritersTest() - { - var xmlSpecXsd = @"XMLSpec\xmlspec.xsd"; - var xmlSpecXsdConfigFile = @"XMLSpec\xmlspec.xsd.config"; - var xmlSpecXsdConfig = Configuration.Load(GetFileStreamReader(xmlSpecXsdConfigFile)); - var xmlSpecSchemaSet = Utilities.GetAssemblyFileSystem(typeof(W3C.XMLSpec.listclass).Assembly).PreLoadXmlSchemas(xmlSpecXsd); - - Assert.IsNotNull(xmlSpecSchemaSet); - Assert.IsTrue(xmlSpecSchemaSet.IsCompiled); - - var ccus = XObjectsCoreGenerator.GenerateCodeCompileUnits(xmlSpecSchemaSet, - xmlSpecXsdConfig.ToLinqToXsdSettings()); - - var classStringWriters = ccus.SelectMany(x => x.unit.ToClassStringWriters()).ToList(); - - Assert.IsNotEmpty(classStringWriters); - - foreach (var one in classStringWriters) { - var classString = one.ToString(); - - Assert.IsNotEmpty(classString); - } - } } } \ No newline at end of file diff --git a/XObjectsTests/Utilities.cs b/XObjectsTests/Utilities.cs index 1c8d156e..3b681b57 100644 --- a/XObjectsTests/Utilities.cs +++ b/XObjectsTests/Utilities.cs @@ -127,17 +127,14 @@ public static SourceText GenerateSourceText(string xsdFileName, IMockFileDataAcc var possibleSettings = new MockFileInfo(fs, possibleSettingsFilePath); var schemaSet = GetXmlSchemaSet(xsdFile, fs); - IEnumerable<(string filename, TextWriter writer)> codeWriters; - if (possibleSettings.Exists) { - LinqToXsdSettings settings = XObjectsCoreGenerator.LoadLinqToXsdSettings(XDocument.Load(possibleSettings.OpenRead())); - codeWriters = XObjectsCoreGenerator.Generate(schemaSet, settings); - } else { - codeWriters = XObjectsCoreGenerator.Generate(schemaSet); - } + var settings = possibleSettings.Exists + ? new LinqToXsdSettings().Load(XDocument.Load(possibleSettings.OpenRead())) + : null; + + IEnumerable<(string? filename, string code)> codeUnits = XObjectsCoreGenerator.Generate(schemaSet, settings); // This method assumes SplitCodeFile is not used, so there's only a single writer per file. - var writer = codeWriters.Single().writer; - return SourceText.From(writer.ToString()!); + return SourceText.From(codeUnits.Single().code); } /// @@ -150,14 +147,12 @@ public static SourceText GenerateSourceText(string xsdFileName, IMockFileDataAcc public static SourceText GenerateSourceText(string xsdFileName) { var possibleSettingsFile = $"{xsdFileName}.config"; - var codeWriters = File.Exists(possibleSettingsFile) - ? XObjectsCoreGenerator.Generate(xsdFileName, possibleSettingsFile) - : XObjectsCoreGenerator.Generate(xsdFileName, default(string)); + var codeWriters = XObjectsCoreGenerator.Generate( + xsdFileName, + File.Exists(possibleSettingsFile) ? possibleSettingsFile : null); // This method assumes SplitCodeFile is not used, so there's only a single writer per file. - var writer = codeWriters.Single().writer; - - return SourceText.From(writer.ToString()); + return SourceText.From(codeWriters.Single().code); } /// @@ -176,9 +171,8 @@ public static SourceText GenerateSourceText(XmlSchemaSet xmlSchemaSet, string xs : Configuration.GetBlankConfigurationInstance(); var settings = config.ToLinqToXsdSettings(); - var code = XObjectsCoreGenerator.Generate(xmlSchemaSet, settings); - var writerText = code.Select(t => t.writer.ToString()); - var delimitedByNewLines = writerText.ToDelimitedString(Environment.NewLine); + var codeUnits = XObjectsCoreGenerator.Generate(xmlSchemaSet, settings).Select(t => t.code); + var delimitedByNewLines = codeUnits.ToDelimitedString(Environment.NewLine); return SourceText.From(delimitedByNewLines); } @@ -204,9 +198,8 @@ public static SourceText GenerateSourceText(XmlSchemaSet xmlSchemaSet, string xs var ns = config.Namespaces.Untyped; settings ??= config.ToLinqToXsdSettings(); - var code = XObjectsCoreGenerator.Generate(xmlSchemaSet, settings); - var writerText = code.Select(t => t.writer.ToString()); - var delimitedByNewLines = writerText.ToDelimitedString(Environment.NewLine); + var codeUnits = XObjectsCoreGenerator.Generate(xmlSchemaSet, settings).Select(t => t.code); + var delimitedByNewLines = codeUnits.ToDelimitedString(Environment.NewLine); return SourceText.From(delimitedByNewLines); } From 673638244677aa8eef00a747e19cee228add2eca Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 10 Mar 2026 00:32:24 +0100 Subject: [PATCH 04/29] Cleanup before starting to work on refactoring --- XObjectsCode/Src/TypesToCodeDom.cs | 133 +++++++----------------- XObjectsCode/Src/XsdToTypesConverter.cs | 83 ++++++--------- 2 files changed, 68 insertions(+), 148 deletions(-) diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index 5bafa877..4d365164 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -15,76 +15,57 @@ namespace Xml.Schema.Linq.CodeGen { public class CodeDomTypesGenerator { - LinqToXsdSettings settings; + readonly LinqToXsdSettings settings; TypeBuilder typeBuilder; - TypeBuilder emptyTypeBuilder; XmlQualifiedName rootElementName = XmlQualifiedName.Empty; CodeNamespace codeNamespace; - Dictionary codeNamespacesTable; + readonly Dictionary codeNamespacesTable = new(); Dictionary nameMappings; - Dictionary> xroots; + readonly Dictionary> xroots = new(); List wrapperRootElements; string currentNamespace; string currentFullTypeName; - static CodeStatementCollection typeDictionaryAddStatements; - static CodeStatementCollection elementDictionaryAddStatements; - static CodeStatementCollection wrapperDictionaryAddStatements; - - public CodeDomTypesGenerator(bool nameMangler2) : - this(new LinqToXsdSettings(nameMangler2)) - { - } + readonly static CodeStatementCollection typeDictionaryAddStatements = new(); + readonly static CodeStatementCollection elementDictionaryAddStatements = new(); + readonly static CodeStatementCollection wrapperDictionaryAddStatements = new(); public CodeDomTypesGenerator(LinqToXsdSettings settings) { - if (settings == null) - { - throw new ArgumentNullException("Argument setttings should not be null."); - } - + if (settings == null) throw new ArgumentNullException(nameof(settings)); this.settings = settings; - codeNamespacesTable = new Dictionary(); - xroots = new Dictionary>(); - typeDictionaryAddStatements = new CodeStatementCollection(); - elementDictionaryAddStatements = new CodeStatementCollection(); - wrapperDictionaryAddStatements = new CodeStatementCollection(); } public IEnumerable GenerateTypes(ClrMappingInfo binding) { - if (binding == null) - { - throw new ArgumentException("binding"); - } - + if (binding == null) throw new ArgumentNullException(nameof(binding)); nameMappings = binding.NameMappings; Debug.Assert(nameMappings != null); - for (int index = 0; index < binding.Types.Count; index++) { - ClrTypeInfo type = binding.Types[index]; - if (type.IsWrapper) { - if (wrapperRootElements == null) { - wrapperRootElements = new List(); - } - wrapperRootElements.Add(type as ClrWrapperTypeInfo); + for (int index = 0; index < binding.Types.Count; index++) + { + ClrTypeInfo type = binding.Types[index]; + if (type.IsWrapper) + { + wrapperRootElements ??= [ type as ClrWrapperTypeInfo ]; } else { codeNamespace = GetCodeNamespace(type.clrtypeNs); Debug.Assert(codeNamespace != null); - ClrSimpleTypeInfo stInfo = type as ClrSimpleTypeInfo; - if (stInfo != null) + if (type is ClrSimpleTypeInfo stInfo) { - if (stInfo is EnumSimpleTypeInfo enumTypeInfo) { + if (stInfo is EnumSimpleTypeInfo enumTypeInfo) + { var enumType = TypeBuilder.CreateEnumType(enumTypeInfo, settings, stInfo); codeNamespace.AddTypeWithParentNamespace(enumType); var enumsInOtherTypes = codeNamespace.DescendentTypeScopedEnumDeclarations(); // if an enum is defined in another type, remove it, if it is the same as the global (namespace scoped type) - if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) { + if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) + { var typeWithDuplicateEnum = codeNamespace.TypeWithEnumDeclaration(enumType); var duplicateEnum = typeWithDuplicateEnum.Members.OfType() .First(c => c.IsEqualEnumDeclaration(enumType)); @@ -95,14 +76,13 @@ public IEnumerable GenerateTypes(ClrMappingInfo binding) codeNamespace.AddTypeWithParentNamespace(TypeBuilder.CreateSimpleType(stInfo, nameMappings, settings)); } else { - CodeTypeDeclaration - decl = ProcessType(type as ClrContentTypeInfo, null, true); //Sets current codeNamespace + CodeTypeDeclaration decl = ProcessType(type as ClrContentTypeInfo, null, true); // Sets current codeNamespace codeNamespace.AddTypeWithParentNamespace(decl); - if (type.IsRootElement) { - List types; - - if (!xroots.TryGetValue(codeNamespace, out types)) { + if (type.IsRootElement) + { + if (!xroots.TryGetValue(codeNamespace, out var types)) + { types = new List(); xroots.Add(codeNamespace, types); } @@ -238,14 +218,6 @@ private void CreateNestedEnumType(ClrTypeReference typeRef) parentDecl.Members.Add(enumValidatorDecl); } - private IEnumerable GetAllEnumsDefinedAlready() - { - var enumsUnderNamespace = codeNamespace.DescendentTypeScopedEnumDeclarations(); - var enumsInOtherTypesUnderNamespace = codeNamespace.NamespaceScopedEnumDeclarations(); - var enumsInCurrentType = typeBuilder.TypeDeclaration.Members.OfType().Where(c => c.IsEnum); - return enumsUnderNamespace.Union(enumsInCurrentType).Union(enumsInOtherTypesUnderNamespace); - } - private static bool EnumAlreadyExistsInParent(string clrEnumTypeName, CodeTypeDeclaration parent) { return parent.Members @@ -255,20 +227,6 @@ private static bool EnumAlreadyExistsInParent(string clrEnumTypeName, CodeTypeDe .Contains(clrEnumTypeName); } - private bool EqualEnumTypeDeclarationExists(CodeTypeDeclaration ctd) - { - var allEnumsDefinedAlready = GetAllEnumsDefinedAlready(); - - return allEnumsDefinedAlready.EqualEnumDeclarationExists(ctd); - } - - private bool EquivalentEnumTypeDeclarationExists(CodeTypeDeclaration ctd) - { - var allEnumsDefinedAlready = GetAllEnumsDefinedAlready(); - - return allEnumsDefinedAlready.EquivalentEnumDeclarationExists(ctd); - } - private void ProcessGroup(GroupingInfo grouping, List annotations) { typeBuilder.StartGrouping(grouping); @@ -326,21 +284,19 @@ private void CreateXRoots() List allTypes = new List(); List allNamespaces = new List(); string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); - CodeNamespace rootCodeNamespace = null; - if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out rootCodeNamespace)) + + if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CodeNamespace rootCodeNamespace)) { //This might happen if the schema set has no global elements and only global types - rootCodeNamespace = - codeNamespacesTable.Values.FirstOrDefault(); //then you can create a root tag with xsi:type + rootCodeNamespace = codeNamespacesTable.Values.FirstOrDefault(); // then you can create a root tag with xsi:type // rootCodeNamespace may still be null if schema has only simple typed global elements or simple types which we are ignoring for now } - //Build list of types that will need to be included - //in XRoot + //Build list of types that will need to be included in XRoot var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); foreach (CodeNamespace codeNamespace in xroots.Keys) { - if (rootCodeNamespace == null) rootCodeNamespace = codeNamespace; + rootCodeNamespace ??= codeNamespace; for (int i = 0; i < xroots[codeNamespace].Count; i++) { @@ -677,20 +633,6 @@ private TypeBuilder GetTypeBuilder() return typeBuilder; } - private TypeBuilder GetEmptyTypeBuilder() - { - if (emptyTypeBuilder == null) - { - emptyTypeBuilder = new XEmptyTypedElementBuilder(settings); - } - else - { - emptyTypeBuilder.Init(); - } - - return emptyTypeBuilder; - } - private void SetFullTypeName(ClrTypeInfo typeInfo, string parentIdentifier) { if (parentIdentifier == null) @@ -710,8 +652,7 @@ private void SetFullTypeName(ClrTypeInfo typeInfo, string parentIdentifier) if (baseTypeName != XmlQualifiedName.Empty) { string clrNamespace = settings.GetClrNamespace(baseTypeName.Namespace); - string baseTypeIdentifier = null; - if (nameMappings.TryGetValue(typeInfo.baseType, out baseTypeIdentifier)) + if (nameMappings.TryGetValue(typeInfo.baseType, out string baseTypeIdentifier)) { typeInfo.baseTypeClrName = baseTypeIdentifier; typeInfo.baseTypeClrNs = clrNamespace; @@ -729,9 +670,15 @@ private ClrPropertyInfo InitializeTypedValuePropertyInfo(ClrTypeInfo typeInfo, { if (existingTypedValPropertyInfo == null) { - existingTypedValPropertyInfo = new ClrPropertyInfo(Constants.SInnerTypePropertyName, string.Empty, - Constants.SInnerTypePropertyName, Occurs.One, settings); - existingTypedValPropertyInfo.Origin = SchemaOrigin.Text; + existingTypedValPropertyInfo = new ClrPropertyInfo( + Constants.SInnerTypePropertyName, + string.Empty, + Constants.SInnerTypePropertyName, + Occurs.One, + settings) + { + Origin = SchemaOrigin.Text, + }; } else { @@ -751,9 +698,7 @@ private ClrPropertyInfo InitializeTypedValuePropertyInfo(ClrTypeInfo typeInfo, private CodeNamespace GetCodeNamespace(string clrNamespace) { if (codeNamespace != null && codeNamespace.Name == clrNamespace) - { return codeNamespace; - } if (!codeNamespacesTable.TryGetValue(clrNamespace, out CodeNamespace currentCodeNamespace)) { diff --git a/XObjectsCode/Src/XsdToTypesConverter.cs b/XObjectsCode/Src/XsdToTypesConverter.cs index a3a1e434..82874ff6 100644 --- a/XObjectsCode/Src/XsdToTypesConverter.cs +++ b/XObjectsCode/Src/XsdToTypesConverter.cs @@ -5,10 +5,7 @@ using System.Xml.Schema; using System.Collections; using System.Collections.Generic; -using System.ComponentModel; using System.Diagnostics; -using System.Linq; -using System.Reflection; using System.Text; using Xml.Schema.Linq.Extensions; using XObjects; @@ -37,11 +34,6 @@ public partial class XsdToTypesConverter Dictionary substitutionGroups; - public XsdToTypesConverter(bool nameMangler2) - : this(new LinqToXsdSettings(nameMangler2)) - { - } - public XsdToTypesConverter(LinqToXsdSettings configSettings) { this.configSettings = configSettings; @@ -54,10 +46,7 @@ public XsdToTypesConverter(LinqToXsdSettings configSettings) public ClrMappingInfo GenerateMapping(XmlSchemaSet schemas) { - if (schemas == null) - { - throw new ArgumentNullException("schemas"); - } + if (schemas == null) throw new ArgumentNullException(nameof(schemas)); schemas.ValidationEventHandler += new ValidationEventHandler(Validationcallback); if (!schemas.IsCompiled) schemas.Compile(); @@ -111,11 +100,9 @@ private void WalkSubstitutionGroup(XmlSchemaElement element, XmlSchemaElement le XmlSchemaElement head = schemas.GlobalElements[subsName] as XmlSchemaElement; if ((head.Block & XmlSchemaDerivationMethod.Substitution) == 0) { - ArrayList groupMembers = null; - if (!substitutionGroups.TryGetValue(subsName, out groupMembers)) + if (!substitutionGroups.TryGetValue(subsName, out ArrayList groupMembers)) { - groupMembers = new ArrayList(); - groupMembers.Add(head); + groupMembers = new ArrayList() { head }; substitutionGroups.Add(subsName, groupMembers); } @@ -223,28 +210,28 @@ internal void TypeToType(XmlSchemaType st) XmlSchemaSimpleType simpleType = st as XmlSchemaSimpleType; if (simpleType != null) { - this.AddSimpleType(simpleType.QualifiedName, simpleType); + AddSimpleType(simpleType.QualifiedName, simpleType); } else { - XmlSchemaComplexType ct = st as XmlSchemaComplexType; - if (ct != null && ct.TypeCode != XmlTypeCode.Item) + if (st is XmlSchemaComplexType ct && ct.TypeCode != XmlTypeCode.Item) { SymbolEntry symbol = symbolTable.AddType(ct.QualifiedName, ct); string xsdNamespace = ct.QualifiedName.Namespace; localSymbolTable.Init(symbol.identifierName); - ClrContentTypeInfo typeInfo = new ClrContentTypeInfo(); - typeInfo.IsAbstract = ct.IsAbstract; - typeInfo.IsSealed = ct.IsFinal(); - typeInfo.clrtypeName = symbol.identifierName; - typeInfo.clrtypeNs = symbol.clrNamespace; - typeInfo.schemaName = symbol.symbolName; - typeInfo.schemaNs = xsdNamespace; - - typeInfo.typeOrigin = SchemaOrigin.Fragment; - typeInfo.baseType = BaseType(ct); + ClrContentTypeInfo typeInfo = new ClrContentTypeInfo + { + IsAbstract = ct.IsAbstract, + IsSealed = ct.IsFinal(), + clrtypeName = symbol.identifierName, + clrtypeNs = symbol.clrNamespace, + schemaName = symbol.symbolName, + schemaNs = xsdNamespace, + typeOrigin = SchemaOrigin.Fragment, + baseType = BaseType(ct) + }; BuildProperties(null, ct, typeInfo); BuildNestedTypes(typeInfo); BuildAnnotationInformation(typeInfo, ct); @@ -256,21 +243,14 @@ internal void TypeToType(XmlSchemaType st) internal void TypesToTypes() { foreach (XmlSchemaType st in schemas.GlobalTypes.Values) - { TypeToType(st); - } } - private void BuildProperties(XmlSchemaElement parentElement, XmlSchemaType schemaType, - ClrContentTypeInfo typeInfo) + private void BuildProperties(XmlSchemaElement parentElement, XmlSchemaType schemaType, ClrContentTypeInfo typeInfo) { - XmlSchemaComplexType ct = schemaType as XmlSchemaComplexType; - if (ct != null) + if (schemaType is XmlSchemaComplexType ct) { - if (ct.TypeCode == XmlTypeCode.Item) - { - return; - } + if (ct.TypeCode == XmlTypeCode.Item) return; XmlSchemaParticle particleToProperties = ct.ContentTypeParticle; XmlSchemaComplexType baseType = ct.BaseXmlSchemaType as XmlSchemaComplexType; @@ -297,13 +277,9 @@ private void BuildProperties(XmlSchemaElement parentElement, XmlSchemaType schem } else { - Debug.Assert( - baseType != null); //ComplexType with complexContent is always derived from another complexType - if (ct.IsDerivedByRestriction()) - { - //Do not handle restrictions on complex content? - return; - } + Debug.Assert(baseType != null); //ComplexType with complexContent is always derived from another complexType + //Do not handle restrictions on complex content? + if (ct.IsDerivedByRestriction()) return; if (particleToProperties.GetParticleType() != ParticleType.Empty) { @@ -364,9 +340,7 @@ private void BuildNestedTypes(ClrContentTypeInfo typeInfo) } else { - ClrContentTypeInfo nestedTypeInfo = new ClrContentTypeInfo() { - Parent = typeInfo - }; + ClrContentTypeInfo nestedTypeInfo = new() { Parent = typeInfo }; localSymbolTable.Init(at.identifier); nestedTypeInfo.clrtypeName = at.identifier; nestedTypeInfo.clrtypeNs = configSettings.GetClrNamespace(qname.Namespace); @@ -405,9 +379,11 @@ private void BuildNestedTypes(ClrContentTypeInfo typeInfo) private void AppendMessage(List annotations, string section, string message) { Debug.Assert(message.Length != 0 && section.Length != 0); - ClrAnnotation clrAnn = new ClrAnnotation(); - clrAnn.Section = section; - clrAnn.Text = message; + var clrAnn = new ClrAnnotation + { + Section = section, + Text = message, + }; annotations.Add(clrAnn); } @@ -415,8 +391,7 @@ private void AppendXsdDocumentationInformation(List annotations, { XmlSchemaAnnotated annotatedObject = schemaObject as XmlSchemaAnnotated; - if (annotatedObject != null && - annotatedObject.Annotation != null) + if (annotatedObject?.Annotation != null) { XmlNode[] markup; foreach (XmlSchemaObject annot in annotatedObject.Annotation.Items) From 20864bb93cfe69928b0271ceb7a9c0cef487fd50 Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 10 Mar 2026 01:30:29 +0100 Subject: [PATCH 05/29] Initiate POCO model --- XObjectsCode/Src/Model/CNamespace.cs | 27 ++++ XObjectsCode/Src/Scriban/ScribanGlobals.cs | 13 +- XObjectsCode/Src/TypesToCodeDom.cs | 137 ++++++++++----------- XObjectsCode/Src/XObjectsCoreGenerator.cs | 4 +- XObjectsCode/Templates/file.scriban-cs | 2 +- XObjectsCode/Templates/manager.scriban-cs | 4 +- XObjectsCode/Templates/root.scriban-cs | 4 +- 7 files changed, 101 insertions(+), 90 deletions(-) create mode 100644 XObjectsCode/Src/Model/CNamespace.cs diff --git a/XObjectsCode/Src/Model/CNamespace.cs b/XObjectsCode/Src/Model/CNamespace.cs new file mode 100644 index 00000000..29760d66 --- /dev/null +++ b/XObjectsCode/Src/Model/CNamespace.cs @@ -0,0 +1,27 @@ +#nullable enable + +using System.CodeDom; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; + +namespace Xml.Schema.Linq.CodeGen.Model; + +/// +/// Represents a namespace in generated code, holding types. +/// +public class CNamespace(string name) +{ + // TODO: this is temporary to perform migration step-by-step. Must be removed. + public required CodeNamespace Dom { get; init; } + + public string Name => name; + + public IEnumerable Types => Dom.Types + .Cast() + .Where(x => x.Name is not ("XRootNamespace" or "XRoot" or "LinqToXsdTypeManager")); + + public CodeTypeDeclaration RootType => Dom.Types[0]; + + public IEnumerable Elements => Types.Where(x => !x.TypeAttributes.HasFlag(TypeAttributes.Sealed)); +} \ No newline at end of file diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index aaa31931..94df8950 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -1,4 +1,5 @@ #nullable enable + using System.CodeDom; using System.Collections.Generic; using System.Linq; @@ -231,16 +232,4 @@ public static string XmlTypeCode(object type, string? name = null) _ => "TODO", }; } - - public static IEnumerable AllTypes(CodeNamespace ns) - { - return ns.Types - .Cast() - .Where(x => x.Name is not ("XRootNamespace" or "XRoot" or "LinqToXsdTypeManager")); - } - - public static IEnumerable ElementTypes(CodeNamespace ns) - { - return AllTypes(ns).Where(x => !IsTypeDefinition(x)); - } } \ No newline at end of file diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index 4d365164..acedb6bd 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -8,6 +8,7 @@ using System.Diagnostics; using System.Linq; using System.Reflection; +using Xml.Schema.Linq.CodeGen.Model; using Xml.Schema.Linq.Extensions; using XObjects; @@ -19,11 +20,11 @@ public class CodeDomTypesGenerator TypeBuilder typeBuilder; XmlQualifiedName rootElementName = XmlQualifiedName.Empty; - CodeNamespace codeNamespace; + CNamespace cNamespace; - readonly Dictionary codeNamespacesTable = new(); + readonly Dictionary codeNamespacesTable = new(); Dictionary nameMappings; - readonly Dictionary> xroots = new(); + readonly Dictionary> xroots = new(); List wrapperRootElements; string currentNamespace; @@ -39,7 +40,7 @@ public CodeDomTypesGenerator(LinqToXsdSettings settings) this.settings = settings; } - public IEnumerable GenerateTypes(ClrMappingInfo binding) + public IEnumerable GenerateTypes(ClrMappingInfo binding) { if (binding == null) throw new ArgumentNullException(nameof(binding)); nameMappings = binding.NameMappings; @@ -50,41 +51,43 @@ public IEnumerable GenerateTypes(ClrMappingInfo binding) ClrTypeInfo type = binding.Types[index]; if (type.IsWrapper) { - wrapperRootElements ??= [ type as ClrWrapperTypeInfo ]; + wrapperRootElements ??= []; + wrapperRootElements.Add(type as ClrWrapperTypeInfo); } else { - codeNamespace = GetCodeNamespace(type.clrtypeNs); - Debug.Assert(codeNamespace != null); + cNamespace = GetCNamespace(type.clrtypeNs); + Debug.Assert(cNamespace != null); + var ns = cNamespace.Dom; if (type is ClrSimpleTypeInfo stInfo) { if (stInfo is EnumSimpleTypeInfo enumTypeInfo) { var enumType = TypeBuilder.CreateEnumType(enumTypeInfo, settings, stInfo); - codeNamespace.AddTypeWithParentNamespace(enumType); - var enumsInOtherTypes = codeNamespace.DescendentTypeScopedEnumDeclarations(); + ns.AddTypeWithParentNamespace(enumType); + var enumsInOtherTypes = ns.DescendentTypeScopedEnumDeclarations(); // if an enum is defined in another type, remove it, if it is the same as the global (namespace scoped type) if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) { - var typeWithDuplicateEnum = codeNamespace.TypeWithEnumDeclaration(enumType); + var typeWithDuplicateEnum = ns.TypeWithEnumDeclaration(enumType); var duplicateEnum = typeWithDuplicateEnum.Members.OfType() .First(c => c.IsEqualEnumDeclaration(enumType)); typeWithDuplicateEnum.Members.Remove(duplicateEnum); } } - codeNamespace.AddTypeWithParentNamespace(TypeBuilder.CreateSimpleType(stInfo, nameMappings, settings)); + ns.AddTypeWithParentNamespace(TypeBuilder.CreateSimpleType(stInfo, nameMappings, settings)); } else { CodeTypeDeclaration decl = ProcessType(type as ClrContentTypeInfo, null, true); // Sets current codeNamespace - codeNamespace.AddTypeWithParentNamespace(decl); + ns.AddTypeWithParentNamespace(decl); if (type.IsRootElement) { - if (!xroots.TryGetValue(codeNamespace, out var types)) + if (!xroots.TryGetValue(cNamespace, out var types)) { types = new List(); - xroots.Add(codeNamespace, types); + xroots.Add(cNamespace, types); } types.Add(decl); @@ -96,6 +99,7 @@ public IEnumerable GenerateTypes(ClrMappingInfo binding) ProcessWrapperTypes(); CreateTypeManager(); CreateXRoots(); + return codeNamespacesTable.Values; } @@ -104,13 +108,11 @@ private CodeTypeDeclaration ProcessType(ClrContentTypeInfo typeInfo, string pare SetFullTypeName(typeInfo, parentIdentifier); if (globalType) - { currentNamespace = typeInfo.clrtypeNs; - } //Build type using TypeBuilder typeBuilder = GetTypeBuilder(); - typeBuilder.CreateTypeDeclaration(typeInfo, this.codeNamespace); + typeBuilder.CreateTypeDeclaration(typeInfo, cNamespace.Dom); ProcessProperties(typeInfo.Content, typeInfo.Annotations); typeBuilder.CreateFunctionalConstructor(typeInfo.Annotations); typeBuilder.ImplementInterfaces(settings.EnableServiceReference); @@ -118,13 +120,9 @@ private CodeTypeDeclaration ProcessType(ClrContentTypeInfo typeInfo, string pare if (globalType) { if (typeInfo.typeOrigin == SchemaOrigin.Fragment) - { typeBuilder.AddTypeToTypeManager(typeDictionaryAddStatements, Constants.TypeDictionaryField); - } else - { typeBuilder.AddTypeToTypeManager(elementDictionaryAddStatements, Constants.ElementDictionaryField); - } } CodeTypeDeclaration builtType = typeBuilder.TypeDeclaration; @@ -281,43 +279,47 @@ private void ProcessComplexGroupProperties(GroupingInfo grouping, List allTypes = new List(); - List allNamespaces = new List(); + var allTypes = new List(); + var allNamespaces = new List(); string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); - if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CodeNamespace rootCodeNamespace)) + if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCodeNamespace)) { - //This might happen if the schema set has no global elements and only global types + // This might happen if the schema set has no global elements and only global types rootCodeNamespace = codeNamespacesTable.Values.FirstOrDefault(); // then you can create a root tag with xsi:type // rootCodeNamespace may still be null if schema has only simple typed global elements or simple types which we are ignoring for now } - //Build list of types that will need to be included in XRoot + // Build list of types that will need to be included in XRoot var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); - foreach (CodeNamespace codeNamespace in xroots.Keys) + foreach (CNamespace codeNamespace in xroots.Keys) { rootCodeNamespace ??= codeNamespace; for (int i = 0; i < xroots[codeNamespace].Count; i++) { allTypes.Add(xroots[codeNamespace][i]); - allNamespaces.Add(codeNamespace); + allNamespaces.Add(codeNamespace.Dom); } - CreateXRoot(codeNamespace, "XRootNamespace", xroots[codeNamespace], null, typeVisibility); + CreateXRoot(codeNamespace.Dom, "XRootNamespace", xroots[codeNamespace], null, typeVisibility); } if (rootCodeNamespace == null && xroots.Count == 0 && allTypes.Count == 0 && allNamespaces.Count == 0) return; - CreateXRoot(rootCodeNamespace, "XRoot", allTypes, allNamespaces, typeVisibility); + CreateXRoot(rootCodeNamespace.Dom, "XRoot", allTypes, allNamespaces, typeVisibility); } - private void CreateXRoot(CodeNamespace codeNamespace, string rootName, List elements, - List namespaces, GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) + private void CreateXRoot( + CodeNamespace codeNamespace, + string rootName, + List elements, + List namespaces, + GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) { LocalSymbolTable lst = new LocalSymbolTable(); - CodeTypeDeclaration xroot = CodeDomHelper.CreateTypeDeclaration(rootName, null, visibility, this.codeNamespace); + CodeTypeDeclaration xroot = CodeDomHelper.CreateTypeDeclaration(rootName, null, visibility, cNamespace.Dom); //Create Methods CodeMemberField docField = CodeDomHelper.CreateMemberField("doc", @@ -447,7 +449,7 @@ private void ProcessWrapperTypes() { typedValPropertyInfo = InitializeTypedValuePropertyInfo(typeInfo, typedValPropertyInfo, innerType); simpleTypeBuilder.Init(typedValPropertyInfo.ClrTypeName, innerType.IsSchemaList); - simpleTypeBuilder.CreateTypeDeclaration(typeInfo, this.codeNamespace); + simpleTypeBuilder.CreateTypeDeclaration(typeInfo, cNamespace.Dom); simpleTypeBuilder.CreateFunctionalConstructor(typeInfo.Annotations); typedValPropertyInfo.SetFixedDefaultValue(typeInfo); simpleTypeBuilder.CreateProperty(typedValPropertyInfo, typeInfo.Annotations); @@ -477,7 +479,7 @@ private void ProcessWrapperTypes() currentNamespace = typeInfo.clrtypeNs; wrapperBuilder.Init(innerTypeFullName, innerTypeNs, innerTypeAttributes); - wrapperBuilder.CreateTypeDeclaration(typeInfo, this.codeNamespace); + wrapperBuilder.CreateTypeDeclaration(typeInfo, cNamespace.Dom); wrapperBuilder.CreateFunctionalConstructor(typeInfo.Annotations); wrapperBuilder.ApplyAnnotations(typeInfo); wrapperBuilder.AddTypeToTypeManager(elementDictionaryAddStatements, wrapperDictionaryAddStatements); @@ -514,16 +516,13 @@ private void ProcessWrapperTypes() } builder.ImplementInterfaces(settings.EnableServiceReference); - codeNamespace = GetCodeNamespace(typeInfo.clrtypeNs); - codeNamespace.AddTypeWithParentNamespace(builder.TypeDeclaration); - - List types; - codeNamespace = GetCodeNamespace(typeInfo.clrtypeNs); + cNamespace = GetCNamespace(typeInfo.clrtypeNs); + cNamespace.Dom.AddTypeWithParentNamespace(builder.TypeDeclaration); - if (!xroots.TryGetValue(codeNamespace, out types)) + if (!xroots.TryGetValue(cNamespace, out List types)) { - types = new List(); - xroots.Add(codeNamespace, types); + types = []; + xroots.Add(cNamespace, types); } types.Add(builder.TypeDeclaration); @@ -534,15 +533,14 @@ private void CreateTypeManager() { string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); - CodeNamespace rootCodeNamespace = null; - if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out rootCodeNamespace)) + if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCodeNamespace)) { - //This might happen if the schema set has no global elements and only global types - rootCodeNamespace = - codeNamespacesTable.Values.FirstOrDefault(); //then you can create a root tag with xsi:type + // This might happen if the schema set has no global elements and only global types + // then you can create a root tag with xsi:type + rootCodeNamespace = codeNamespacesTable.Values.FirstOrDefault(); } - if (rootCodeNamespace != null) + if (rootCodeNamespace is { Dom: var ns }) { //It might be null if schema has only simple typed global elements or simple types which we are ignoring for now var typeManagerDeclaration = TypeBuilder.CreateTypeManager( @@ -553,23 +551,19 @@ private void CreateTypeManager() wrapperDictionaryStatements: wrapperDictionaryAddStatements, visibility: typeVisibility); - rootCodeNamespace.AddTypeWithParentNamespace(typeManagerDeclaration); + ns.AddTypeWithParentNamespace(typeManagerDeclaration); //Add using statements in the rest of the namespaces for the root namespace to avoid error on TypeManager reference //Add using statements in the root namespace for the rest of the namespaces to avoid errors while building type dictionaries - CodeNamespaceImport rootImport = new CodeNamespaceImport(rootCodeNamespace.Name); - foreach (CodeNamespace cns in codeNamespacesTable.Values) + var rootImport = new CodeNamespaceImport(rootCodeNamespace.Name); + foreach (CNamespace cns in codeNamespacesTable.Values) { if (cns != rootCodeNamespace) { if (rootCodeNamespace.Name.Length > 0) - { - cns.Imports.Add(rootImport); - } + cns.Dom.Imports.Add(rootImport); - if (cns.Name.Length > 0) - { - rootCodeNamespace.Imports.Add(new CodeNamespaceImport(cns.Name)); - } + if (rootCodeNamespace.Name.Length > 0) + ns.Imports.Add(new CodeNamespaceImport(cns.Name)); } } } @@ -622,13 +616,9 @@ private void AddDefaultImports(CodeNamespace newCodeNamespace) private TypeBuilder GetTypeBuilder() { if (typeBuilder == null) - { - typeBuilder = new XTypedElementBuilder(settings, codeNamespace); - } + typeBuilder = new XTypedElementBuilder(settings, cNamespace.Dom); else - { typeBuilder.Init(); - } return typeBuilder; } @@ -694,20 +684,25 @@ private ClrPropertyInfo InitializeTypedValuePropertyInfo(ClrTypeInfo typeInfo, existingTypedValPropertyInfo.UpdateTypeReference(currentFullTypeName, currentNamespace, nameMappings, CreateNestedEnumType); return existingTypedValPropertyInfo; } - - private CodeNamespace GetCodeNamespace(string clrNamespace) + + private CNamespace GetCNamespace(string clrNamespace) { - if (codeNamespace != null && codeNamespace.Name == clrNamespace) - return codeNamespace; + if (cNamespace != null && cNamespace.Name == clrNamespace) + return cNamespace; - if (!codeNamespacesTable.TryGetValue(clrNamespace, out CodeNamespace currentCodeNamespace)) + if (!codeNamespacesTable.TryGetValue(clrNamespace, out CNamespace currentCodeNamespace)) { - currentCodeNamespace = new CodeNamespace(clrNamespace); - AddDefaultImports(currentCodeNamespace); + currentCodeNamespace = new CNamespace(clrNamespace) + { + Dom = new CodeNamespace(clrNamespace), + }; + AddDefaultImports(currentCodeNamespace.Dom); codeNamespacesTable.Add(clrNamespace, currentCodeNamespace); } return currentCodeNamespace; } + + private CodeNamespace GetCodeNamespace(string clrNamespace) => GetCNamespace(clrNamespace).Dom; } } \ No newline at end of file diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 7d9243ad..9b49ed79 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -1,7 +1,6 @@ #nullable enable using System; -using System.CodeDom; using System.Collections.Generic; using System.IO; using System.Linq; @@ -10,6 +9,7 @@ using Scriban; using Scriban.Runtime; using Xml.Schema.Linq.CodeGen; +using Xml.Schema.Linq.CodeGen.Model; using Xml.Schema.Linq.CodeGen.Scriban; using Xml.Schema.Linq.Extensions; @@ -131,7 +131,7 @@ public static Dictionary Generate( ? namespaces.GroupBy(ns => ns.Name).Select(g => ((string?)g.Key, RenderCodeUnit(g))) : [ (null, RenderCodeUnit(namespaces)) ]; - string RenderCodeUnit(IEnumerable namespaces) + string RenderCodeUnit(IEnumerable namespaces) { var globals = new ScriptObject(); globals.Import(typeof(ScribanGlobals)); diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 5a02ced3..6fd85259 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -28,7 +28,7 @@ namespace {{ $ns.Name }} { using System.Xml.Linq; using Xml.Schema.Linq; - {{~ for $type in $ns | all_types ~}} + {{~ for $type in $ns.Types ~}} {{ if $type | is_type_definition diff --git a/XObjectsCode/Templates/manager.scriban-cs b/XObjectsCode/Templates/manager.scriban-cs index bb8a08d2..b1411574 100644 --- a/XObjectsCode/Templates/manager.scriban-cs +++ b/XObjectsCode/Templates/manager.scriban-cs @@ -6,7 +6,7 @@ public class LinqToXsdTypeManager : ILinqToXsdTypeManager { private static Dictionary elementDictionary = new Dictionary(); private static void BuildElementDictionary() { - {{- for $el in $1 | element_types }} + {{- for $el in $1.Elements }} elementDictionary.Add(System.Xml.Linq.XName.Get("{{ $el | local_name 'xName' }}", "{{ $el | namespace 'xName' }}"), typeof(global::{{ $1.Name }}.{{ $el.Name }})); {{- end }} } @@ -53,7 +53,7 @@ public class LinqToXsdTypeManager : ILinqToXsdTypeManager { } public static System.Type GetRootType() { - return elementDictionary[System.Xml.Linq.XName.Get("{{ $1.Types[0] | local_name 'xName' }}", "{{ $1.Types[0] | namespace 'xName' }}")]; + return elementDictionary[System.Xml.Linq.XName.Get("{{ $1.RootType | local_name 'xName' }}", "{{ $1.RootType | namespace 'xName' }}")]; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] diff --git a/XObjectsCode/Templates/root.scriban-cs b/XObjectsCode/Templates/root.scriban-cs index db27a620..3e043934 100644 --- a/XObjectsCode/Templates/root.scriban-cs +++ b/XObjectsCode/Templates/root.scriban-cs @@ -118,7 +118,7 @@ public partial class XRootNamespace { } } - {{- for $el in $1 | element_types }} + {{- for $el in $1.Elements }} public XRootNamespace({{ $el.Name }} root) { this.doc = new XDocument(root.Untyped); @@ -251,7 +251,7 @@ public partial class XRoot { } } - {{- for $el in $1 | element_types }} + {{- for $el in $1.Elements }} public XRoot(global::{{ $1.Name }}.{{ $el.Name }} root) { this.doc = new XDocument(root.Untyped); From 44b3dfd8b9473bcc88dc14dc0d600a9100ffb0a7 Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 10 Mar 2026 01:50:08 +0100 Subject: [PATCH 06/29] XRoot and XRootNamespace should share template --- .../Microsoft.Search.Query.xsd.cs | 2 +- XObjectsCode/Src/TypesToCodeDom.cs | 13 +- XObjectsCode/Templates/file.scriban-cs | 4 +- XObjectsCode/Templates/root.scriban-cs | 171 ++---------------- 4 files changed, 30 insertions(+), 160 deletions(-) diff --git a/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs index c928b01f..5ca76c3e 100644 --- a/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs +++ b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs @@ -5305,7 +5305,7 @@ public XRootNamespace(IncludeHighConfidenceResults root) { public IncludeHighConfidenceResults IncludeHighConfidenceResults { get {return rootObject as IncludeHighConfidenceResults; } } } - + public partial class XRoot { [DebuggerBrowsable(DebuggerBrowsableState.Never)] diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index acedb6bd..244ae013 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -283,18 +283,19 @@ private void CreateXRoots() var allNamespaces = new List(); string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); - if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCodeNamespace)) + if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCNamespace)) { // This might happen if the schema set has no global elements and only global types - rootCodeNamespace = codeNamespacesTable.Values.FirstOrDefault(); // then you can create a root tag with xsi:type - // rootCodeNamespace may still be null if schema has only simple typed global elements or simple types which we are ignoring for now + // then you can create a root tag with xsi:type + rootCNamespace = codeNamespacesTable.Values.FirstOrDefault(); + // rootCodeNamespace may still be null if schema has only simple typed global elements or simple types which we are ignoring for now } // Build list of types that will need to be included in XRoot var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); foreach (CNamespace codeNamespace in xroots.Keys) { - rootCodeNamespace ??= codeNamespace; + rootCNamespace ??= codeNamespace; for (int i = 0; i < xroots[codeNamespace].Count; i++) { @@ -305,8 +306,8 @@ private void CreateXRoots() CreateXRoot(codeNamespace.Dom, "XRootNamespace", xroots[codeNamespace], null, typeVisibility); } - if (rootCodeNamespace == null && xroots.Count == 0 && allTypes.Count == 0 && allNamespaces.Count == 0) return; - CreateXRoot(rootCodeNamespace.Dom, "XRoot", allTypes, allNamespaces, typeVisibility); + if (rootCNamespace == null && xroots.Count == 0 && allTypes.Count == 0 && allNamespaces.Count == 0) return; + CreateXRoot(rootCNamespace.Dom, "XRoot", allTypes, allNamespaces, typeVisibility); } diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 6fd85259..e896f1a5 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -41,6 +41,8 @@ namespace {{ $ns.Name }} { {{ include 'manager.scriban-cs' $ns }} - {{ include 'root.scriban-cs' $ns }} + {{ include 'root.scriban-cs' 'XRootNamespace' $ns '' }} + + {{ include 'root.scriban-cs' 'XRoot' $ns 'global::' + $ns.Name + '.' }} } {{ end }} \ No newline at end of file diff --git a/XObjectsCode/Templates/root.scriban-cs b/XObjectsCode/Templates/root.scriban-cs index 3e043934..b0989155 100644 --- a/XObjectsCode/Templates/root.scriban-cs +++ b/XObjectsCode/Templates/root.scriban-cs @@ -1,4 +1,4 @@ -public partial class XRootNamespace { +public partial class {{ $1 }} { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XDocument doc; @@ -6,11 +6,11 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - private XRootNamespace() { + private {{ $1 }}() { } - public static XRootNamespace Load(string xmlFile) { - XRootNamespace root = new XRootNamespace(); + public static {{ $1 }} Load(string xmlFile) { + {{ $1 }} root = new {{ $1 }}(); root.doc = XDocument.Load(xmlFile); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -20,8 +20,8 @@ public partial class XRootNamespace { return root; } - public static XRootNamespace Load(string xmlFile, LoadOptions options) { - XRootNamespace root = new XRootNamespace(); + public static {{ $1 }} Load(string xmlFile, LoadOptions options) { + {{ $1 }} root = new {{ $1 }}(); root.doc = XDocument.Load(xmlFile, options); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -31,8 +31,8 @@ public partial class XRootNamespace { return root; } - public static XRootNamespace Load(TextReader textReader) { - XRootNamespace root = new XRootNamespace(); + public static {{ $1 }} Load(TextReader textReader) { + {{ $1 }} root = new {{ $1 }}(); root.doc = XDocument.Load(textReader); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -42,8 +42,8 @@ public partial class XRootNamespace { return root; } - public static XRootNamespace Load(TextReader textReader, LoadOptions options) { - XRootNamespace root = new XRootNamespace(); + public static {{ $1 }} Load(TextReader textReader, LoadOptions options) { + {{ $1 }} root = new {{ $1 }}(); root.doc = XDocument.Load(textReader, options); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -53,8 +53,8 @@ public partial class XRootNamespace { return root; } - public static XRootNamespace Load(XmlReader xmlReader) { - XRootNamespace root = new XRootNamespace(); + public static {{ $1 }} Load(XmlReader xmlReader) { + {{ $1 }} root = new {{ $1 }}(); root.doc = XDocument.Load(xmlReader); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -64,8 +64,8 @@ public partial class XRootNamespace { return root; } - public static XRootNamespace Parse(string text) { - XRootNamespace root = new XRootNamespace(); + public static {{ $1 }} Parse(string text) { + {{ $1 }} root = new {{ $1 }}(); root.doc = XDocument.Parse(text); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -75,8 +75,8 @@ public partial class XRootNamespace { return root; } - public static XRootNamespace Parse(string text, LoadOptions options) { - XRootNamespace root = new XRootNamespace(); + public static {{ $1 }} Parse(string text, LoadOptions options) { + {{ $1 }} root = new {{ $1 }}(); root.doc = XDocument.Parse(text, options); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -118,148 +118,15 @@ public partial class XRootNamespace { } } - {{- for $el in $1.Elements }} + {{- for $el in $2.Elements }} - public XRootNamespace({{ $el.Name }} root) { + public {{ $1 }}({{ $3 }}{{ $el.Name }} root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public {{ $el.Name }} {{ $el.Name }} { get {return rootObject as {{ $el.Name }}; } } - - {{- end }} -} - -public partial class XRoot { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XDocument doc; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedElement rootObject; - - private XRoot() { - } - - public static XRoot Load(string xmlFile) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlFile); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(string xmlFile, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlFile, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(TextReader textReader) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(textReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(TextReader textReader, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(textReader, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(XmlReader xmlReader) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Parse(string text) { - XRoot root = new XRoot(); - root.doc = XDocument.Parse(text); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Parse(string text, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Parse(text, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public virtual void Save(string fileName) { - doc.Save(fileName); - } - - public virtual void Save(TextWriter textWriter) { - doc.Save(textWriter); - } - - public virtual void Save(XmlWriter writer) { - doc.Save(writer); - } - - public virtual void Save(TextWriter textWriter, SaveOptions options) { - doc.Save(textWriter, options); - } - - public virtual void Save(string fileName, SaveOptions options) { - doc.Save(fileName, options); - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - - {{- for $el in $1.Elements }} - - public XRoot(global::{{ $1.Name }}.{{ $el.Name }} root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - - public global::{{ $1.Name }}.{{ $el.Name }} {{ $el.Name }} { get {return rootObject as global::{{ $1.Name }}.{{ $el.Name }}; } } + public {{ $3 }}{{ $el.Name }} {{ $el.Name }} { get {return rootObject as {{ $3 }}{{ $el.Name }}; } } {{- end }} } \ No newline at end of file From 1bb3cf2899b64611be7af64278ff36bd1ccd8030 Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 10 Mar 2026 21:36:12 +0100 Subject: [PATCH 07/29] Regen abstracttest to support diff testing --- .../AbstractTypeTest/abstracttest.xsd.cs | 310 +++++++++--------- LinqToXsd/Properties/launchSettings.json | 6 + 2 files changed, 161 insertions(+), 155 deletions(-) diff --git a/GeneratedSchemaLibraries/AbstractTypeTest/abstracttest.xsd.cs b/GeneratedSchemaLibraries/AbstractTypeTest/abstracttest.xsd.cs index 18ee520f..911a0f24 100644 --- a/GeneratedSchemaLibraries/AbstractTypeTest/abstracttest.xsd.cs +++ b/GeneratedSchemaLibraries/AbstractTypeTest/abstracttest.xsd.cs @@ -28,30 +28,34 @@ namespace LinqToXsd.Schemas.AbstractTypeTest { /// public partial class Action : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ActionInfoXName = System.Xml.Linq.XName.Get("ActionInfo", "http://example.org/AbstractTest"); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CommandsXName = System.Xml.Linq.XName.Get("Commands", "http://example.org/AbstractTest"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList CommandsField; + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Action", "http://example.org/AbstractTest"); + public static Action Load(string xmlFile) { + return XTypedServices.Load(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary localElementDictionary = new Dictionary(); + public static Action Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public static Action Parse(string xml) { + return XTypedServices.Parse(xml); + } public static explicit operator Action(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Action() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ActionInfoXName), new NamedContentModelEntity(CommandsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); } /// @@ -62,6 +66,10 @@ static Action() { public Action() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ActionInfoXName = System.Xml.Linq.XName.Get("ActionInfo", "http://example.org/AbstractTest"); + /// /// /// Occurrence: required @@ -80,6 +88,13 @@ public virtual BaseInfo ActionInfo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CommandsXName = System.Xml.Linq.XName.Get("Commands", "http://example.org/AbstractTest"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList CommandsField; + /// /// /// Occurrence: optional, repeating @@ -110,6 +125,21 @@ public virtual IList Commands { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Action", "http://example.org/AbstractTest"); + + static Action() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ActionInfoXName), new NamedContentModelEntity(CommandsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary localElementDictionary = new Dictionary(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ActionInfoXName, typeof(BaseInfo)); + localElementDictionary.Add(CommandsXName, typeof(BaseCommand)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary IXMetaData.LocalElementsDictionary { get { @@ -117,6 +147,13 @@ public virtual IList Commands { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -137,52 +174,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class BaseInfo : XTypedElement, IXMetaData { - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static Action Load(string xmlFile) { - return XTypedServices.Load(xmlFile); - } - - public static Action Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load(xmlFile); - } - - public static Action Parse(string xml) { - return XTypedServices.Parse(xml); - } + public static explicit operator BaseInfo(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ActionInfoXName, typeof(BaseInfo)); - localElementDictionary.Add(CommandsXName, typeof(BaseCommand)); + return XTypedServices.CloneXTypedElement(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public BaseInfo() { } - } - - public partial class BaseInfo : XTypedElement, IXMetaData { private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BaseInfo", "http://example.org/AbstractTest"); - public static explicit operator BaseInfo(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public BaseInfo() { + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -205,25 +213,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public abstract partial class BaseCommand : XTypedElement, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BaseCommand", "http://example.org/AbstractTest"); - public static explicit operator BaseCommand(XElement xe) { return (BaseCommand)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public BaseCommand() { } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BaseCommand", "http://example.org/AbstractTest"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -244,25 +248,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class UpdateCommand : global::LinqToXsd.Schemas.AbstractTypeTest.BaseCommand, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName valueXName = System.Xml.Linq.XName.Get("value", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UpdateCommand", "http://example.org/AbstractTest"); - public static explicit operator UpdateCommand(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + public UpdateCommand() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName valueXName = System.Xml.Linq.XName.Get("value", ""); + /// /// /// Occurrence: required @@ -278,6 +280,8 @@ public virtual string value { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UpdateCommand", "http://example.org/AbstractTest"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -298,25 +302,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement(this); - } } public partial class Record : global::LinqToXsd.Schemas.AbstractTypeTest.BaseInfo, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Record", "http://example.org/AbstractTest"); - public static explicit operator Record(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement(this); + } + public Record() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// /// /// Occurrence: required @@ -332,6 +334,8 @@ public virtual string id { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Record", "http://example.org/AbstractTest"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -352,30 +356,29 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement(this); - } } public class LinqToXsdTypeManager : ILinqToXsdTypeManager { - private static Dictionary typeDictionary = new Dictionary(); + private LinqToXsdTypeManager() { + } - private static Dictionary elementDictionary = new Dictionary(); + private static Dictionary typeDictionary = new Dictionary(); - private static XmlSchemaSet schemaSet; + private static void BuildTypeDictionary() { + typeDictionary.Add(System.Xml.Linq.XName.Get("BaseInfo", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.BaseInfo)); + typeDictionary.Add(System.Xml.Linq.XName.Get("BaseCommand", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.BaseCommand)); + typeDictionary.Add(System.Xml.Linq.XName.Get("UpdateCommand", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.UpdateCommand)); + typeDictionary.Add(System.Xml.Linq.XName.Get("Record", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.Record)); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); + private static Dictionary elementDictionary = new Dictionary(); - static LinqToXsdTypeManager() { - BuildTypeDictionary(); - BuildElementDictionary(); + private static void BuildElementDictionary() { + elementDictionary.Add(System.Xml.Linq.XName.Get("Action", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.Action)); } - private LinqToXsdTypeManager() { - } + private static XmlSchemaSet schemaSet; XmlSchemaSet ILinqToXsdTypeManager.Schemas { get { @@ -390,6 +393,10 @@ XmlSchemaSet ILinqToXsdTypeManager.Schemas { } } + protected internal static void AddSchemas(XmlSchemaSet schemas) { + schemas.Add(schemaSet); + } + Dictionary ILinqToXsdTypeManager.GlobalTypeDictionary { get { return typeDictionary; @@ -408,29 +415,22 @@ XmlSchemaSet ILinqToXsdTypeManager.Schemas { } } - public static LinqToXsdTypeManager Instance { - get { - return typeManagerSingleton; - } - } - - private static void BuildTypeDictionary() { - typeDictionary.Add(System.Xml.Linq.XName.Get("BaseInfo", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.BaseInfo)); - typeDictionary.Add(System.Xml.Linq.XName.Get("BaseCommand", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.BaseCommand)); - typeDictionary.Add(System.Xml.Linq.XName.Get("UpdateCommand", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.UpdateCommand)); - typeDictionary.Add(System.Xml.Linq.XName.Get("Record", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.Record)); + static LinqToXsdTypeManager() { + BuildTypeDictionary(); + BuildElementDictionary(); } - private static void BuildElementDictionary() { - elementDictionary.Add(System.Xml.Linq.XName.Get("Action", "http://example.org/AbstractTest"), typeof(global::LinqToXsd.Schemas.AbstractTypeTest.Action)); + public static System.Type GetRootType() { + return elementDictionary[System.Xml.Linq.XName.Get("Action", "http://example.org/AbstractTest")]; } - protected internal static void AddSchemas(XmlSchemaSet schemas) { - schemas.Add(schemaSet); - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); - public static System.Type GetRootType() { - return elementDictionary[System.Xml.Linq.XName.Get("Action", "http://example.org/AbstractTest")]; + public static LinqToXsdTypeManager Instance { + get { + return typeManagerSingleton; + } } } @@ -442,29 +442,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public Action Action { get {return rootObject as Action; } } - private XRootNamespace() { } - public XRootNamespace(Action root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -561,26 +541,6 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } - } - - public partial class XRoot { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XDocument doc; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedElement rootObject; - - - public global::LinqToXsd.Schemas.AbstractTypeTest.Action Action { get {return rootObject as global::LinqToXsd.Schemas.AbstractTypeTest.Action; } } - - private XRoot() { - } - - public XRoot(global::LinqToXsd.Schemas.AbstractTypeTest.Action root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } public virtual XDocument XDocument { get { @@ -594,6 +554,26 @@ public virtual XTypedElement Root { } } + public XRootNamespace(Action root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Action Action { get {return rootObject as Action; } } + } + + public partial class XRoot { + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; + + private XRoot() { + } + public static XRoot Load(string xmlFile) { XRoot root = new XRoot(); root.doc = XDocument.Load(xmlFile); @@ -690,5 +670,25 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRoot(global::LinqToXsd.Schemas.AbstractTypeTest.Action root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::LinqToXsd.Schemas.AbstractTypeTest.Action Action { get {return rootObject as global::LinqToXsd.Schemas.AbstractTypeTest.Action; } } } } diff --git a/LinqToXsd/Properties/launchSettings.json b/LinqToXsd/Properties/launchSettings.json index 79ccacf5..b224e371 100644 --- a/LinqToXsd/Properties/launchSettings.json +++ b/LinqToXsd/Properties/launchSettings.json @@ -91,6 +91,12 @@ "workingDirectory": "..\\GeneratedSchemaLibraries\\AkomaNtoso", "hotReloadEnabled": false }, + "AbstractTypeTest": { + "commandName": "Project", + "commandLineArgs": "gen \"abstracttest.xsd\" -a", + "workingDirectory": "..\\GeneratedSchemaLibraries\\AbstractTypeTest", + "hotReloadEnabled": false + }, "ImportsXmlNamespace": { "commandName": "Project", "commandLineArgs": "gen \"ImportsXmlAttributes.xsd\" -a", From 9064133e644b467014a3f3ed7f032a8018d08c4c Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 10 Mar 2026 22:59:22 +0100 Subject: [PATCH 08/29] Fully implemented TypeManager template --- .../Microsoft.Search.Query.xsd.cs | 2 +- XObjectsCode/Src/ClrTypeInfo.cs | 6 - XObjectsCode/Src/CodeDomHelper.cs | 4 +- XObjectsCode/Src/Model/CElement.cs | 16 ++ XObjectsCode/Src/Model/CNamespace.cs | 7 +- XObjectsCode/Src/Model/CType.cs | 16 ++ XObjectsCode/Src/NameMangler.cs | 5 - XObjectsCode/Src/Polyfills.cs | 16 ++ XObjectsCode/Src/TypeBuilder.cs | 229 +----------------- XObjectsCode/Src/TypesToCodeDom.cs | 182 ++++++++------ XObjectsCode/Src/XObjectsCoreGenerator.cs | 17 +- XObjectsCode/Templates/manager.scriban-cs | 60 ++++- 12 files changed, 242 insertions(+), 318 deletions(-) create mode 100644 XObjectsCode/Src/Model/CElement.cs create mode 100644 XObjectsCode/Src/Model/CType.cs create mode 100644 XObjectsCode/Src/Polyfills.cs diff --git a/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs index 5ca76c3e..dc48251d 100644 --- a/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs +++ b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs @@ -4825,7 +4825,7 @@ private static void BuildElementDictionary() { elementDictionary.Add(System.Xml.Linq.XName.Get("IncludeRelevantResults", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.IncludeRelevantResults)); elementDictionary.Add(System.Xml.Linq.XName.Get("IncludeHighConfidenceResults", "urn:Microsoft.Search.Query"), typeof(global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults)); } - + private static XmlSchemaSet schemaSet; XmlSchemaSet ILinqToXsdTypeManager.Schemas { diff --git a/XObjectsCode/Src/ClrTypeInfo.cs b/XObjectsCode/Src/ClrTypeInfo.cs index 5472ee0d..b2ebfd2d 100644 --- a/XObjectsCode/Src/ClrTypeInfo.cs +++ b/XObjectsCode/Src/ClrTypeInfo.cs @@ -263,12 +263,6 @@ public bool HasElementWildCard } } - public bool IsRootElement - { - get { return typeOrigin == SchemaOrigin.Element; } - } - - public bool IsSubstitutionMember() { //types whose origin is element, If they have a base type its from being a member of a subst group diff --git a/XObjectsCode/Src/CodeDomHelper.cs b/XObjectsCode/Src/CodeDomHelper.cs index 04f993a7..fd8513e3 100644 --- a/XObjectsCode/Src/CodeDomHelper.cs +++ b/XObjectsCode/Src/CodeDomHelper.cs @@ -437,7 +437,7 @@ public static CodeVariableDeclarationStatement CreateCastToInterface(string inte public static CodePropertyReferenceExpression SingletonTypeManager() { return new CodePropertyReferenceExpression( - new CodeTypeReferenceExpression(NameGenerator.GetServicesClassName()), Constants.TypeManagerInstance); + new CodeTypeReferenceExpression(Constants.LinqToXsdTypeManager), Constants.TypeManagerInstance); } @@ -482,7 +482,7 @@ public static CodeSnippetTypeMember CreateCast(string typeT, string typeT1, bool CodeSnippetTypeMember castMember = new CodeSnippetTypeMember(); @namespace = @namespace.IsNotEmpty() ? $"{@namespace}." : ""; var visibilityKeyword = visibility.ToKeyword(); - var servicesClassName = @namespace + NameGenerator.GetServicesClassName(); + var servicesClassName = @namespace + Constants.LinqToXsdTypeManager; if (useAutoTyping) { castMember.Text = String.Concat($"\t\t{visibilityKeyword} static explicit operator ", typeT, "(XElement xe) { ", diff --git a/XObjectsCode/Src/Model/CElement.cs b/XObjectsCode/Src/Model/CElement.cs new file mode 100644 index 00000000..effcd2f0 --- /dev/null +++ b/XObjectsCode/Src/Model/CElement.cs @@ -0,0 +1,16 @@ +#nullable enable + +namespace Xml.Schema.Linq.Codegen.Model; + +/// +/// Represents a class depicting an xsd element in generated code +/// +public class CElement +{ + /// Fully qualified C# generated class name + public required string Name { get; init; } + /// Element namespace (from xsd) + public required string XsdNs { get; init; } + /// Element name (from xsd) + public required string XsdName { get; init; } +} \ No newline at end of file diff --git a/XObjectsCode/Src/Model/CNamespace.cs b/XObjectsCode/Src/Model/CNamespace.cs index 29760d66..76a61838 100644 --- a/XObjectsCode/Src/Model/CNamespace.cs +++ b/XObjectsCode/Src/Model/CNamespace.cs @@ -10,6 +10,7 @@ namespace Xml.Schema.Linq.CodeGen.Model; /// /// Represents a namespace in generated code, holding types. /// +/// The CLR namespace name public class CNamespace(string name) { // TODO: this is temporary to perform migration step-by-step. Must be removed. @@ -17,11 +18,11 @@ public class CNamespace(string name) public string Name => name; + public required string AccessModifier { get; init; } + public IEnumerable Types => Dom.Types .Cast() - .Where(x => x.Name is not ("XRootNamespace" or "XRoot" or "LinqToXsdTypeManager")); - - public CodeTypeDeclaration RootType => Dom.Types[0]; + .Where(x => x.Name is not ("XRootNamespace" or "XRoot")); public IEnumerable Elements => Types.Where(x => !x.TypeAttributes.HasFlag(TypeAttributes.Sealed)); } \ No newline at end of file diff --git a/XObjectsCode/Src/Model/CType.cs b/XObjectsCode/Src/Model/CType.cs new file mode 100644 index 00000000..a76a36be --- /dev/null +++ b/XObjectsCode/Src/Model/CType.cs @@ -0,0 +1,16 @@ +#nullable enable + +namespace Xml.Schema.Linq.Codegen.Model; + +/// +/// Represents a class depicting an xsd type in generated code +/// +public class CType +{ + /// Fully qualified C# generated class name + public required string Name { get; init; } + /// Type namespace (from xsd) + public required string XsdNs { get; init; } + /// Type name (from xsd) + public required string XsdName { get; init; } +} \ No newline at end of file diff --git a/XObjectsCode/Src/NameMangler.cs b/XObjectsCode/Src/NameMangler.cs index 706b996f..4109264d 100644 --- a/XObjectsCode/Src/NameMangler.cs +++ b/XObjectsCode/Src/NameMangler.cs @@ -83,11 +83,6 @@ public static string ChangeClrName(string clrName, NameOptions options) return clrName; } - public static string GetServicesClassName() - { - return Constants.LinqToXsdTypeManager; - } - public static string MakeValidCLRNamespace(string xsdNamespace, bool nameMangler2) { if (xsdNamespace == null || xsdNamespace == string.Empty) diff --git a/XObjectsCode/Src/Polyfills.cs b/XObjectsCode/Src/Polyfills.cs new file mode 100644 index 00000000..53e2e3c7 --- /dev/null +++ b/XObjectsCode/Src/Polyfills.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; + +namespace Xml.Schema.Linq.CodeGen; + +internal static class Polyfills +{ + extension (IReadOnlyDictionary src) + { + #if !NET8_0_OR_GREATER + + public TValue GetValueOrDefault(TKey key, TValue @default) + => src.TryGetValue(key, out var value) ? value : @default; + + #endif + } +} \ No newline at end of file diff --git a/XObjectsCode/Src/TypeBuilder.cs b/XObjectsCode/Src/TypeBuilder.cs index 7015ef74..ea3df145 100644 --- a/XObjectsCode/Src/TypeBuilder.cs +++ b/XObjectsCode/Src/TypeBuilder.cs @@ -1,7 +1,6 @@ //Copyright (c) Microsoft Corporation. All rights reserved. using System; -using System.Xml; using System.Xml.Schema; using System.Collections.Generic; using System.CodeDom; @@ -94,14 +93,6 @@ protected virtual void SetElementWildCardFlag(bool hasAny) //Do nothing by default } - internal void AddTypeToTypeManager(CodeStatementCollection dictionaryStatements, string dictionaryName) - { - string typeRef = "global::" + clrTypeInfo.clrFullTypeName; - dictionaryStatements.Add(CodeDomHelper.CreateMethodCallFromField(dictionaryName, "Add", - CodeDomHelper.XNameGetExpression(clrTypeInfo.schemaName, clrTypeInfo.schemaNs), - CodeDomHelper.Typeof(typeRef))); - } - internal virtual void ImplementInterfaces(bool enableServiceReference) { ImplementIXMetaData(); @@ -297,7 +288,7 @@ private void ImplementIXMetaData() private void ImplementIXmlSerializable() { string interfaceName = Constants.IXmlSerializable; - string typeManagerName = NameGenerator.GetServicesClassName(); + string typeManagerName = Constants.LinqToXsdTypeManager; string methodName = clrTypeInfo.clrtypeName + "SchemaProvider"; CodeMemberMethod schemaProviderMethod = CodeDomHelper.CreateMethod(methodName, null, DefaultVisibility.ToMemberAttribute() | MemberAttributes.Static); @@ -495,212 +486,6 @@ internal static CodeTypeMember ApplyAnnotations(CodeTypeMember typeDecl, List 0) - { - typeDictProperty = CodeDomHelper.CreateInterfaceImplProperty(Constants.GlobalTypeDictionary, - Constants.ILinqToXsdTypeManager, returnType, Constants.TypeDictionaryField, MemberAttributes.Private); - - CodeMemberField staticTypeDictionary = - CodeDomHelper.CreateDictionaryField(Constants.TypeDictionaryField, Constants.XNameType, Constants.SystemTypeName, - MemberAttributes.Private); - CodeMemberMethod buildTypeDictionary = - CodeDomHelper.CreateMethod(Constants.BuildTypeDictionary, null, privateStatic); - buildTypeDictionary.Statements.AddRange(typeDictionaryStatements); - - staticServicesConstructor.Statements.Add( - CodeDomHelper.CreateMethodCall(null, Constants.BuildTypeDictionary)); - servicesTypeDecl.Members.Add(staticTypeDictionary); - servicesTypeDecl.Members.Add(buildTypeDictionary); - } - else - { - typeDictProperty = CodeDomHelper.CreateInterfaceImplProperty(Constants.GlobalTypeDictionary, - Constants.ILinqToXsdTypeManager, returnType, MemberAttributes.Private); - typeDictProperty.GetStatements.Add( - new CodeMethodReturnStatement( - new CodeFieldReferenceExpression( - new CodeTypeReferenceExpression(Constants.XTypedServices), - Constants.EmptyDictionaryField))); - } - - //Create a dictionary of ElementName Vs System.Type - For Auto typing and substitutionGroups - CodeMemberProperty elementDictProperty = null; - if (elementDictionaryStatements.Count > 0) - { - elementDictProperty = CodeDomHelper.CreateInterfaceImplProperty(Constants.GlobalElementDictionary, - Constants.ILinqToXsdTypeManager, returnType, Constants.ElementDictionaryField, MemberAttributes.Private); - - CodeMemberField staticElementDictionary = - CodeDomHelper.CreateDictionaryField(Constants.ElementDictionaryField, Constants.XNameType, Constants.SystemTypeName, - MemberAttributes.Private); - CodeMemberMethod buildElementDictionary = - CodeDomHelper.CreateMethod(Constants.BuildElementDictionary, null, privateStatic); - buildElementDictionary.Statements.AddRange(elementDictionaryStatements); - - staticServicesConstructor.Statements.Add( - CodeDomHelper.CreateMethodCall(null, Constants.BuildElementDictionary)); - servicesTypeDecl.Members.Add(staticElementDictionary); - servicesTypeDecl.Members.Add(buildElementDictionary); - } - else - { - elementDictProperty = CodeDomHelper.CreateInterfaceImplProperty(Constants.GlobalElementDictionary, - Constants.ILinqToXsdTypeManager, returnType, MemberAttributes.Private); - elementDictProperty.GetStatements.Add( - new CodeMethodReturnStatement( - new CodeFieldReferenceExpression( - new CodeTypeReferenceExpression(Constants.XTypedServices), - Constants.EmptyDictionaryField))); - } - - //Create a dictionary of Wrapper Element Type Vs Wrapper Type - For Auto typing when casting from XElement to Type - CodeMemberProperty wrapperDictProperty = null; - if (wrapperDictionaryStatements.Count > 0) - { - wrapperDictProperty = CodeDomHelper.CreateInterfaceImplProperty(Constants.RootContentTypeMapping, - Constants.ILinqToXsdTypeManager, wrapperReturnType, Constants.WrapperDictionaryField); - - CodeMemberField staticWrapperDictionary = - CodeDomHelper.CreateDictionaryField(Constants.WrapperDictionaryField, Constants.SystemTypeName, Constants.SystemTypeName, - MemberAttributes.Private); - CodeMemberMethod buildWrapperDictionary = - CodeDomHelper.CreateMethod(Constants.BuildWrapperDictionary, null, privateStatic); - buildWrapperDictionary.Statements.AddRange(wrapperDictionaryStatements); - - staticServicesConstructor.Statements.Add( - CodeDomHelper.CreateMethodCall(null, Constants.BuildWrapperDictionary)); - servicesTypeDecl.Members.Add(staticWrapperDictionary); - servicesTypeDecl.Members.Add(buildWrapperDictionary); - } - else - { - wrapperDictProperty = CodeDomHelper.CreateInterfaceImplProperty(Constants.RootContentTypeMapping, - Constants.ILinqToXsdTypeManager, wrapperReturnType); - wrapperDictProperty.GetStatements.Add( - new CodeMethodReturnStatement( - new CodeFieldReferenceExpression( - new CodeTypeReferenceExpression(Constants.XTypedServices), - Constants.EmptyTypeMappingDictionary))); - } - - //Implement IXmlSerializable AddSchemas method for the XmlSchemaProvider method and Schemas get set property for runtime access to schemas - //if (enableServiceReference) { //Since property is on the interface, it has to be implemented; - string schemaSetFieldName = "schemaSet"; - CodeTypeReference schemaSetType = new CodeTypeReference("XmlSchemaSet"); - - CodeMemberField schemaSetField = new CodeMemberField(schemaSetType, schemaSetFieldName); - schemaSetField.Attributes = MemberAttributes.Private | MemberAttributes.Static; - - //AddSchemas method - CodeMemberMethod addSchemasMethod = CodeDomHelper.CreateMethod("AddSchemas", null, MemberAttributes.FamilyOrAssembly | MemberAttributes.Static); - addSchemasMethod.Parameters.Add(new CodeParameterDeclarationExpression("XmlSchemaSet", "schemas")); - //schemas.Add(schemaSet); - addSchemasMethod.Statements.Add(CodeDomHelper.CreateMethodCall( - new CodeVariableReferenceExpression("schemas"), "Add", - new CodeFieldReferenceExpression(null, schemaSetFieldName))); - - - CodeTypeReferenceExpression interLockedType = - new CodeTypeReferenceExpression("System.Threading.Interlocked"); - - CodeMemberProperty schemaSetProperty = - CodeDomHelper.CreateInterfaceImplProperty("Schemas", Constants.ILinqToXsdTypeManager, schemaSetType, memberVisibility); - CodeFieldReferenceExpression schemaSetFieldRef = new CodeFieldReferenceExpression(null, schemaSetFieldName); - - CodeDirectionExpression schemaSetParam = new CodeDirectionExpression(FieldDirection.Ref, schemaSetFieldRef); - - schemaSetProperty.GetStatements.Add( - new CodeConditionStatement( - new CodeBinaryOperatorExpression(schemaSetFieldRef, - CodeBinaryOperatorType.IdentityEquality, new CodePrimitiveExpression(null)), - new CodeVariableDeclarationStatement(schemaSetType, "tempSet", - new CodeObjectCreateExpression(schemaSetType)), - new CodeExpressionStatement( - CodeDomHelper.CreateMethodCall(interLockedType, "CompareExchange", - schemaSetParam, - new CodeVariableReferenceExpression("tempSet"), - new CodePrimitiveExpression(null))))); - - schemaSetProperty.GetStatements.Add( - new CodeMethodReturnStatement( - new CodeVariableReferenceExpression(schemaSetFieldName))); - - //Setter - schemaSetProperty.SetStatements.Add(new CodeAssignStatement(schemaSetFieldRef, - new CodePropertySetValueReferenceExpression())); - - servicesTypeDecl.Members.Add(schemaSetField); - servicesTypeDecl.Members.Add(schemaSetProperty); - servicesTypeDecl.Members.Add(addSchemasMethod); - //} - //Implement ILinqToXsdTypeManager - servicesTypeDecl.Members.Add(typeDictProperty); - servicesTypeDecl.Members.Add(elementDictProperty); - servicesTypeDecl.Members.Add(wrapperDictProperty); - servicesTypeDecl.BaseTypes.Add(Constants.ILinqToXsdTypeManager); - - - //Add a getter that will get the root type name - CodeMemberMethod getRootType = new CodeMemberMethod(); - getRootType.Attributes = MemberAttributes.Static | memberVisibility; - getRootType.Name = Constants.GetRootType; - getRootType.ReturnType = new CodeTypeReference(Constants.SystemTypeName); - if (rootElementName.IsEmpty) - { - getRootType.Statements.Add( - new CodeMethodReturnStatement( - CodeDomHelper.Typeof("Xml.Schema.Linq.XTypedElement"))); - } - else - { - getRootType.Statements.Add( - new CodeMethodReturnStatement( - new CodeIndexerExpression( - CodeDomHelper.CreateFieldReference(null, Constants.ElementDictionaryField), - CodeDomHelper.XNameGetExpression(rootElementName.Name, - rootElementName.Namespace)))); - } - - servicesTypeDecl.Members.Add(staticServicesConstructor); - servicesTypeDecl.Members.Add(getRootType); - servicesTypeDecl.Members.Add(singletonField); - servicesTypeDecl.Members.Add(singletonProperty); - return servicesTypeDecl; - } - public override string ToString() => $"{nameof(TypeBuilder)} ({this.clrTypeInfo})"; } @@ -1205,18 +990,6 @@ protected override void ImplementContentModelMetaData() decl.Members.Add(DefaultContentModel()); //No direct element children return Default content model } - internal void AddTypeToTypeManager(CodeStatementCollection elementDictionaryStatements, - CodeStatementCollection wrapperDictionaryStatements) - { - base.AddTypeToTypeManager(elementDictionaryStatements, Constants.ElementDictionaryField); - var innerTypeFullName = innerTypeName.Contains(innerTypeNs) - ? "global::" + innerTypeName - : "global::" + innerTypeNs + "." + innerTypeName; - - wrapperDictionaryStatements.Add(CodeDomHelper.CreateMethodCallFromField(Constants.WrapperDictionaryField, - "Add", CodeDomHelper.Typeof(clrTypeInfo.clrFullTypeName), CodeDomHelper.Typeof(innerTypeFullName))); - } - private CodeMethodInvokeExpression SetNameMethodCall() { return new CodeMethodInvokeExpression( diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index 244ae013..f68b9d74 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -11,6 +11,7 @@ using Xml.Schema.Linq.CodeGen.Model; using Xml.Schema.Linq.Extensions; using XObjects; +using Xml.Schema.Linq.Codegen.Model; namespace Xml.Schema.Linq.CodeGen { @@ -19,7 +20,10 @@ public class CodeDomTypesGenerator readonly LinqToXsdSettings settings; TypeBuilder typeBuilder; + // TODO: eventually remove XmlQualifiedName rootElementName = XmlQualifiedName.Empty; + public CodeTypeDeclaration RootElement { get; private set; } + CNamespace cNamespace; readonly Dictionary codeNamespacesTable = new(); @@ -30,9 +34,9 @@ public class CodeDomTypesGenerator string currentNamespace; string currentFullTypeName; - readonly static CodeStatementCollection typeDictionaryAddStatements = new(); - readonly static CodeStatementCollection elementDictionaryAddStatements = new(); - readonly static CodeStatementCollection wrapperDictionaryAddStatements = new(); + public readonly List AllTypes = []; + public readonly List AllElements = []; + public readonly List> AllWrappers = []; public CodeDomTypesGenerator(LinqToXsdSettings settings) { @@ -43,55 +47,58 @@ public CodeDomTypesGenerator(LinqToXsdSettings settings) public IEnumerable GenerateTypes(ClrMappingInfo binding) { if (binding == null) throw new ArgumentNullException(nameof(binding)); + nameMappings = binding.NameMappings; Debug.Assert(nameMappings != null); - for (int index = 0; index < binding.Types.Count; index++) + foreach (ClrTypeInfo type in binding.Types) { - ClrTypeInfo type = binding.Types[index]; if (type.IsWrapper) { - wrapperRootElements ??= []; + wrapperRootElements ??= []; wrapperRootElements.Add(type as ClrWrapperTypeInfo); + continue; } - else + + cNamespace = GetCNamespace(type.clrtypeNs); + Debug.Assert(cNamespace != null); + var ns = cNamespace.Dom; + + if (type is ClrSimpleTypeInfo stInfo) { - cNamespace = GetCNamespace(type.clrtypeNs); - Debug.Assert(cNamespace != null); - var ns = cNamespace.Dom; - if (type is ClrSimpleTypeInfo stInfo) + if (stInfo is EnumSimpleTypeInfo enumTypeInfo) { - if (stInfo is EnumSimpleTypeInfo enumTypeInfo) + var enumType = TypeBuilder.CreateEnumType(enumTypeInfo, settings, stInfo); + ns.AddTypeWithParentNamespace(enumType); + var enumsInOtherTypes = ns.DescendentTypeScopedEnumDeclarations(); + // if an enum is defined in another type, remove it, if it is the same as the global (namespace scoped type) + if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) { - var enumType = TypeBuilder.CreateEnumType(enumTypeInfo, settings, stInfo); - ns.AddTypeWithParentNamespace(enumType); - var enumsInOtherTypes = ns.DescendentTypeScopedEnumDeclarations(); - // if an enum is defined in another type, remove it, if it is the same as the global (namespace scoped type) - if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) - { - var typeWithDuplicateEnum = ns.TypeWithEnumDeclaration(enumType); - var duplicateEnum = typeWithDuplicateEnum.Members.OfType() - .First(c => c.IsEqualEnumDeclaration(enumType)); - typeWithDuplicateEnum.Members.Remove(duplicateEnum); - } + var typeWithDuplicateEnum = ns.TypeWithEnumDeclaration(enumType); + var duplicateEnum = typeWithDuplicateEnum.Members.OfType() + .First(c => c.IsEqualEnumDeclaration(enumType)); + typeWithDuplicateEnum.Members.Remove(duplicateEnum); } - - ns.AddTypeWithParentNamespace(TypeBuilder.CreateSimpleType(stInfo, nameMappings, settings)); } - else { - CodeTypeDeclaration decl = ProcessType(type as ClrContentTypeInfo, null, true); // Sets current codeNamespace - ns.AddTypeWithParentNamespace(decl); - if (type.IsRootElement) - { - if (!xroots.TryGetValue(cNamespace, out var types)) - { - types = new List(); - xroots.Add(cNamespace, types); - } + var decl = TypeBuilder.CreateSimpleType(stInfo, nameMappings, settings); + ns.AddTypeWithParentNamespace(decl); + } + else + { + var decl = ProcessType(type as ClrContentTypeInfo, null, true); // Sets current cNamespace + ns.AddTypeWithParentNamespace(decl); - types.Add(decl); + if (type.typeOrigin == SchemaOrigin.Element) + { + if (!xroots.TryGetValue(cNamespace, out var types)) + { + types = new List(); + xroots.Add(cNamespace, types); } + types.Add(decl); + + UpdateRootElement(type, decl); } } } @@ -119,10 +126,21 @@ private CodeTypeDeclaration ProcessType(ClrContentTypeInfo typeInfo, string pare typeBuilder.ApplyAnnotations(typeInfo); if (globalType) { + // TODO: these shouldn't be a new instances but the instance built above by TypeBuilder, when migrated if (typeInfo.typeOrigin == SchemaOrigin.Fragment) - typeBuilder.AddTypeToTypeManager(typeDictionaryAddStatements, Constants.TypeDictionaryField); + AllTypes.Add(new() + { + Name = typeInfo.clrFullTypeName, + XsdName = typeInfo.schemaName, + XsdNs = typeInfo.schemaNs, + }); else - typeBuilder.AddTypeToTypeManager(elementDictionaryAddStatements, Constants.ElementDictionaryField); + AllElements.Add(new() + { + Name = typeInfo.clrFullTypeName, + XsdName = typeInfo.schemaName, + XsdNs = typeInfo.schemaNs, + }); } CodeTypeDeclaration builtType = typeBuilder.TypeDeclaration; @@ -431,14 +449,12 @@ private void CreateXRoot( private void ProcessWrapperTypes() { + // No Globalelements with global types if (wrapperRootElements == null) - { - //No Globalelements with global types return; - } - XWrapperTypedElementBuilder wrapperBuilder = new XWrapperTypedElementBuilder(settings); - XSimpleTypedElementBuilder simpleTypeBuilder = new XSimpleTypedElementBuilder(settings); + var wrapperBuilder = new XWrapperTypedElementBuilder(settings); + var simpleTypeBuilder = new XSimpleTypedElementBuilder(settings); TypeBuilder builder = null; ClrPropertyInfo typedValPropertyInfo = null; @@ -454,10 +470,16 @@ private void ProcessWrapperTypes() simpleTypeBuilder.CreateFunctionalConstructor(typeInfo.Annotations); typedValPropertyInfo.SetFixedDefaultValue(typeInfo); simpleTypeBuilder.CreateProperty(typedValPropertyInfo, typeInfo.Annotations); - simpleTypeBuilder.AddTypeToTypeManager(elementDictionaryAddStatements, - Constants.ElementDictionaryField); simpleTypeBuilder.ApplyAnnotations(typeInfo); builder = simpleTypeBuilder; + + // TODO: should not be a new instance but rather the one produced by code above, when migrated + AllElements.Add(new() + { + Name = typeInfo.clrFullTypeName, + XsdName = typeInfo.schemaName, + XsdNs = typeInfo.schemaNs, + }); } else { @@ -483,7 +505,16 @@ private void ProcessWrapperTypes() wrapperBuilder.CreateTypeDeclaration(typeInfo, cNamespace.Dom); wrapperBuilder.CreateFunctionalConstructor(typeInfo.Annotations); wrapperBuilder.ApplyAnnotations(typeInfo); - wrapperBuilder.AddTypeToTypeManager(elementDictionaryAddStatements, wrapperDictionaryAddStatements); + + // TODO: shouldn't be a new instance but rather from wrapperBuilder when migrated + AllElements.Add(new() + { + Name = typeInfo.clrFullTypeName, + XsdName = typeInfo.schemaName, + XsdNs = typeInfo.schemaNs, + }); + + AllWrappers.Add(new(typeInfo.clrFullTypeName, innerTypeFullName)); if (!typeInfo.HasBaseContentType) { @@ -517,23 +548,28 @@ private void ProcessWrapperTypes() } builder.ImplementInterfaces(settings.EnableServiceReference); + var decl = builder.TypeDeclaration; + cNamespace = GetCNamespace(typeInfo.clrtypeNs); - cNamespace.Dom.AddTypeWithParentNamespace(builder.TypeDeclaration); + cNamespace.Dom.AddTypeWithParentNamespace(decl); if (!xroots.TryGetValue(cNamespace, out List types)) { types = []; xroots.Add(cNamespace, types); } + types.Add(decl); - types.Add(builder.TypeDeclaration); + if (typeInfo.typeOrigin == SchemaOrigin.Element) + UpdateRootElement(typeInfo, decl); } } private void CreateTypeManager() { + // TODO: Type manager inclusion and messing around usings string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); - var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); + // var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCodeNamespace)) { // This might happen if the schema set has no global elements and only global types @@ -541,30 +577,27 @@ private void CreateTypeManager() rootCodeNamespace = codeNamespacesTable.Values.FirstOrDefault(); } + // It might be null if schema has only simple typed global elements or simple types which we are ignoring for now if (rootCodeNamespace is { Dom: var ns }) { - //It might be null if schema has only simple typed global elements or simple types which we are ignoring for now - var typeManagerDeclaration = TypeBuilder.CreateTypeManager( - rootElementName: rootElementName, - enableServiceReference: settings.EnableServiceReference, - typeDictionaryStatements: typeDictionaryAddStatements, - elementDictionaryStatements: elementDictionaryAddStatements, - wrapperDictionaryStatements: wrapperDictionaryAddStatements, - visibility: typeVisibility); - - ns.AddTypeWithParentNamespace(typeManagerDeclaration); - //Add using statements in the rest of the namespaces for the root namespace to avoid error on TypeManager reference - //Add using statements in the root namespace for the rest of the namespaces to avoid errors while building type dictionaries + // var typeManagerDeclaration = TypeBuilder.CreateTypeManager( + // rootElementName: rootElementName, + // enableServiceReference: settings.EnableServiceReference, + // typeDictionaryStatements: null, //typeDictionaryAddStatements, + // elementDictionaryStatements: null, //elementDictionaryAddStatements, + // wrapperDictionaryStatements: null, // wrapperDictionaryAddStatements, + // visibility: typeVisibility); + + // ns.AddTypeWithParentNamespace(typeManagerDeclaration); + // Add using statements in the rest of the namespaces for the root namespace to avoid error on TypeManager reference + // Add using statements in the root namespace for the rest of the namespaces to avoid errors while building type dictionaries var rootImport = new CodeNamespaceImport(rootCodeNamespace.Name); foreach (CNamespace cns in codeNamespacesTable.Values) { - if (cns != rootCodeNamespace) + if (cns != rootCodeNamespace && rootCodeNamespace.Name.Length > 0) { - if (rootCodeNamespace.Name.Length > 0) - cns.Dom.Imports.Add(rootImport); - - if (rootCodeNamespace.Name.Length > 0) - ns.Imports.Add(new CodeNamespaceImport(cns.Name)); + cns.Dom.Imports.Add(rootImport); + ns.Imports.Add(new CodeNamespaceImport(cns.Name)); } } } @@ -656,6 +689,16 @@ private void SetFullTypeName(ClrTypeInfo typeInfo, string parentIdentifier) } } + private void UpdateRootElement(ClrTypeInfo info, CodeTypeDeclaration decl) + { + // The last IsRoot element is assumed to be the schema root element + // When there is no IsRoot element, then the first element in schema is the assumed root. + if (info.IsRoot) + RootElement = decl; + else + RootElement ??= decl; + } + private ClrPropertyInfo InitializeTypedValuePropertyInfo(ClrTypeInfo typeInfo, ClrPropertyInfo existingTypedValPropertyInfo, ClrTypeReference innerType) { @@ -688,7 +731,7 @@ private ClrPropertyInfo InitializeTypedValuePropertyInfo(ClrTypeInfo typeInfo, private CNamespace GetCNamespace(string clrNamespace) { - if (cNamespace != null && cNamespace.Name == clrNamespace) + if (cNamespace?.Name == clrNamespace) return cNamespace; if (!codeNamespacesTable.TryGetValue(clrNamespace, out CNamespace currentCodeNamespace)) @@ -696,6 +739,9 @@ private CNamespace GetCNamespace(string clrNamespace) currentCodeNamespace = new CNamespace(clrNamespace) { Dom = new CodeNamespace(clrNamespace), + AccessModifier = settings.NamespaceTypesVisibilityMap + .GetValueOrDefault(clrNamespace, GeneratedTypesVisibility.Public) + .ToKeyword(), }; AddDefaultImports(currentCodeNamespace.Dom); codeNamespacesTable.Add(clrNamespace, currentCodeNamespace); diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 9b49ed79..9a0cf2d8 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -133,10 +133,25 @@ public static Dictionary Generate( string RenderCodeUnit(IEnumerable namespaces) { + var nsArray = namespaces.ToArray(); + var globals = new ScriptObject(); globals.Import(typeof(ScribanGlobals)); globals.Import( - new { Settings = settings, Namespaces = namespaces.ToArray() }, + new + { + Settings = settings, + TypeManager = new + { + // TODO: when RootElement is a POCO model class, it should provide CNamespace more easily + Namespace = nsArray.FirstOrDefault(ns => ns.Dom == codeGenerator.RootElement.ParentNamespace), + RootElement = codeGenerator.RootElement, + AllTypes = codeGenerator.AllTypes, + AllElements = codeGenerator.AllElements, + AllWrappers = codeGenerator.AllWrappers, + }, + Namespaces = nsArray, + }, renamer: m => m.Name); var context = new TemplateContext() diff --git a/XObjectsCode/Templates/manager.scriban-cs b/XObjectsCode/Templates/manager.scriban-cs index b1411574..d1622d9a 100644 --- a/XObjectsCode/Templates/manager.scriban-cs +++ b/XObjectsCode/Templates/manager.scriban-cs @@ -1,16 +1,44 @@ -public class LinqToXsdTypeManager : ILinqToXsdTypeManager { +{{ TypeManager.Namespace.AccessModifier }} class LinqToXsdTypeManager : ILinqToXsdTypeManager { private LinqToXsdTypeManager() { } + + {{- if !TypeManager.AllTypes.empty? }} + + private static Dictionary typeDictionary = new Dictionary(); + + private static void BuildTypeDictionary() { + {{- for $type in TypeManager.AllTypes }} + typeDictionary.Add(System.Xml.Linq.XName.Get("{{ $type.XsdName }}", "{{ $type.XsdNs }}"), typeof(global::{{ $type.Name }})); + {{- end }} + } + + {{- end }} + + {{- if !TypeManager.AllElements.empty? }} private static Dictionary elementDictionary = new Dictionary(); private static void BuildElementDictionary() { - {{- for $el in $1.Elements }} - elementDictionary.Add(System.Xml.Linq.XName.Get("{{ $el | local_name 'xName' }}", "{{ $el | namespace 'xName' }}"), typeof(global::{{ $1.Name }}.{{ $el.Name }})); + {{- for $el in TypeManager.AllElements }} + elementDictionary.Add(System.Xml.Linq.XName.Get("{{ $el.XsdName }}", "{{ $el.XsdNs }}"), typeof(global::{{ $el.Name }})); {{- end }} } + + {{- end }} + {{- if !TypeManager.AllWrappers.empty? }} + + private static Dictionary wrapperDictionary = new Dictionary(); + + private static void BuildWrapperDictionary() { + {{- for $wrapper in TypeManager.AllWrappers }} + wrapperDictionary.Add(typeof({{ $wrapper.Key }}), typeof(global::{{ $wrapper.Value }})); + {{- end }} + } + + {{- end }} + private static XmlSchemaSet schemaSet; XmlSchemaSet ILinqToXsdTypeManager.Schemas { @@ -32,28 +60,52 @@ public class LinqToXsdTypeManager : ILinqToXsdTypeManager { Dictionary ILinqToXsdTypeManager.GlobalTypeDictionary { get { + {{- if !TypeManager.AllTypes.empty? }} + return typeDictionary; + {{- else }} return XTypedServices.EmptyDictionary; + {{- end }} } } Dictionary ILinqToXsdTypeManager.GlobalElementDictionary { get { + {{- if !TypeManager.AllElements.empty? }} return elementDictionary; + {{- else }} + return XTypedServices.EmptyDictionary; + {{- end }} } } Dictionary ILinqToXsdTypeManager.RootContentTypeMapping { get { + {{- if !TypeManager.AllWrappers.empty? }} + return wrapperDictionary; + {{- else }} return XTypedServices.EmptyTypeMappingDictionary; + {{- end }} } } static LinqToXsdTypeManager() { + {{- if !TypeManager.AllTypes.empty? }} + BuildTypeDictionary(); + {{- end }} + {{- if !TypeManager.AllElements.empty? }} BuildElementDictionary(); + {{- end }} + {{- if !TypeManager.AllWrappers.empty? }} + BuildWrapperDictionary(); + {{- end }} } public static System.Type GetRootType() { - return elementDictionary[System.Xml.Linq.XName.Get("{{ $1.RootType | local_name 'xName' }}", "{{ $1.RootType | namespace 'xName' }}")]; + {{- if TypeManager.RootElement }} + return elementDictionary[System.Xml.Linq.XName.Get("{{ TypeManager.RootElement | local_name 'xName' }}", "{{ TypeManager.RootElement | namespace 'xName' }}")]; + {{- else }} + return typeof(Xml.Schema.Linq.XTypedElement); + {{- end }} } [DebuggerBrowsable(DebuggerBrowsableState.Never)] From e8be1a93cedaa811ed417866ea6fd93890571031 Mon Sep 17 00:00:00 2001 From: jods4 Date: Thu, 12 Mar 2026 02:11:30 +0100 Subject: [PATCH 09/29] Reviewed XRoot template --- XObjectsCode/Src/CodeDomHelper.cs | 234 ------------------------- XObjectsCode/Src/Model/CNamespace.cs | 3 + XObjectsCode/Src/TypesToCodeDom.cs | 170 ++---------------- XObjectsCode/Templates/file.scriban-cs | 9 +- XObjectsCode/Templates/root.scriban-cs | 42 ++--- 5 files changed, 44 insertions(+), 414 deletions(-) diff --git a/XObjectsCode/Src/CodeDomHelper.cs b/XObjectsCode/Src/CodeDomHelper.cs index fd8513e3..9a4fbe3e 100644 --- a/XObjectsCode/Src/CodeDomHelper.cs +++ b/XObjectsCode/Src/CodeDomHelper.cs @@ -37,13 +37,6 @@ public static CodeMethodInvokeExpression CreateMethodCallFromField(string fieldN parameters); } - public static CodeIndexerExpression CreateIndexerExpression(string target, string key) - { - return new CodeIndexerExpression( - new CodeVariableReferenceExpression(target), - new CodePrimitiveExpression(key)); - } - public static CodeTypeDeclaration CreateTypeDeclaration(string clrTypeName, string innerType, GeneratedTypesVisibility generatedTypesVisibility = GeneratedTypesVisibility.Public, CodeNamespace parentNamespace = null) { @@ -132,50 +125,6 @@ public static CodeConstructor CreateConstructor(MemberAttributes memAttributes) return constructor; } - public static CodeMemberProperty CreateProperty(string propertyName, string propertyType, CodeMemberField field, - MemberAttributes attributes, bool hasSet) - { - //Build simple get set that returns and accepts fieldName - CodeTypeReference returnType = null; - if (propertyType != null) - { - returnType = new CodeTypeReference(propertyType); - } - else - { - returnType = field.Type; - } - - CodeMemberProperty valueProperty = CreateProperty(propertyName, returnType, attributes); - valueProperty.GetStatements.Add( - new CodeMethodReturnStatement( - CreateFieldReference(null, field.Name))); - - if (hasSet) - { - //Set field = value - CodeExpression rightExpression = null; - if (field.Type.BaseType != returnType.BaseType) - { - //cast RHS to field's type - rightExpression = new CodeCastExpression( - field.Type, - SetValue()); - } - else - { - rightExpression = SetValue(); - } - - valueProperty.SetStatements.Add( - new CodeAssignStatement( - CreateFieldReference("this", field.Name), - rightExpression)); - } - - return valueProperty; - } - public static CodeMemberProperty CreateProperty(string propertyName, CodeTypeReference propertyType, MemberAttributes attributes) { @@ -199,16 +148,6 @@ public static CodeMemberProperty CreateProperty(CodeTypeReference returnType, bo return clrProperty; } - public static CodeMemberProperty CreateInterfaceImplProperty(string propertyName, string interfaceName, - CodeTypeReference returnType, string fieldName, MemberAttributes attributes = MemberAttributes.Public) - { - CodeMemberProperty interfaceProperty = CreateInterfaceImplProperty(propertyName, interfaceName, returnType, attributes); - interfaceProperty.GetStatements.Add( - new CodeMethodReturnStatement( - new CodeVariableReferenceExpression(fieldName))); - return interfaceProperty; - } - public static CodeMemberProperty CreateInterfaceImplProperty(string propertyName, string interfaceName, CodeTypeReference returnType, MemberAttributes attributes = MemberAttributes.Public) { @@ -218,16 +157,6 @@ public static CodeMemberProperty CreateInterfaceImplProperty(string propertyName return interfaceProperty; } - public static CodeMemberMethod CreateInterfaceImplMethod(string methodName, string interfaceName, - MemberAttributes attributes = MemberAttributes.Public) - { - CodeMemberMethod interfaceMethod = CreateMethod(methodName, null, attributes); - CodeTypeReference interfaceType = new CodeTypeReference(interfaceName); - interfaceMethod.PrivateImplementationType = interfaceType; - interfaceMethod.ImplementationTypes.Add(interfaceType); - return interfaceMethod; - } - public static CodeMemberProperty CreateTypeManagerProperty(MemberAttributes attributes) { CodeMemberProperty property = CreateInterfaceImplProperty(Constants.TypeManager, Constants.IXMetaData, @@ -338,41 +267,6 @@ public static CodeMemberField CreateMemberField(string memberName, string typeNa return field; } - public static CodeMemberField CreateGenericMemberField(string memberName, - string typeName, - string[] typeStrParams, - MemberAttributes attributes, - bool init) - { - CodeTypeReference[] typeParams = new CodeTypeReference[typeStrParams.Length]; - int index = 0; - foreach (string str in typeStrParams) - { - typeParams[index++] = new CodeTypeReference(str); - } - - return CreateGenericMemberField(memberName, typeName, typeParams, attributes, init); - } - - - public static CodeMemberField CreateGenericMemberField(string memberName, - string typeName, - CodeTypeReference[] typeParams, - MemberAttributes attributes, - bool init) - { - CodeTypeReference typeRef = new CodeTypeReference(typeName, typeParams); - CodeMemberField field = new CodeMemberField(typeRef, memberName); - AddBrowseNever(field); - field.Attributes = attributes; - if (init) - { - field.InitExpression = new CodeObjectCreateExpression(typeRef); - } - - return field; - } - public static CodeTypeOfExpression Typeof(string typeName) { return new CodeTypeOfExpression(typeName); @@ -471,11 +365,6 @@ public static CodeFieldReferenceExpression CreateFieldReference(string typeName, return new CodeFieldReferenceExpression(targetObject, fieldName); } - public static string CreateGenericMethodName(string methodName, string typeName) - { - return String.Concat(methodName, "<", typeName, ">"); - } - public static CodeSnippetTypeMember CreateCast(string typeT, string typeT1, bool useAutoTyping, string @namespace = "", GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) { @@ -500,129 +389,6 @@ public static CodeSnippetTypeMember CreateCast(string typeT, string typeT1, bool return castMember; } - - public static CodeSnippetTypeMember CreateXRootGetter(string typeName, string fqTypeName, LocalSymbolTable lst, - GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) - { - string symbolName = lst.AddMember(typeName); - CodeSnippetTypeMember castMember = new CodeSnippetTypeMember(); - - castMember.Text = String.Concat("\r\n", $"\t\t{visibility.ToKeyword()} ", fqTypeName, " ", symbolName, " { get {", - "return rootObject as ", fqTypeName, "; } }"); - return castMember; - } - - public static CodeMemberMethod CreateXRootMethod(string returnType, string methodName, string[][] paramList, - GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) - { - CodeTypeReference xRootType = new CodeTypeReference(returnType); - - CodeMemberMethod staticMethod = new CodeMemberMethod(); - staticMethod.Name = methodName; - staticMethod.Attributes = visibility.ToMemberAttribute() | MemberAttributes.Static; - staticMethod.ReturnType = xRootType; - CodeExpression[] parameterExp = new CodeExpression[paramList.Length]; - - for (int i = 0; i < paramList.Length; i++) - { - string[] paramRef = paramList[i]; - // index 0 is the type name and index 1 is the parameter name - staticMethod.Parameters.Add(CreateParameter(paramRef[1], paramRef[0])); - parameterExp[i] = new CodeVariableReferenceExpression(paramRef[1]); - } - - CodeExpression rootExp = new CodeVariableReferenceExpression("root"); - CodeExpression doc = new CodeFieldReferenceExpression(rootExp, "doc"); - - staticMethod.Statements.Add( //XRoot root = new XRoot; - new CodeVariableDeclarationStatement(xRootType, "root", - new CodeObjectCreateExpression(xRootType))); - - staticMethod.Statements.Add( //root.doc = XDocument.Load(xmlFile); - new CodeAssignStatement( - doc, - CreateMethodCall(new CodeTypeReferenceExpression("XDocument"), methodName, - parameterExp))); - - staticMethod.Statements.Add( //XTypedElement typedRoot = XTypedServices.ToXTypedElement(....) - new CodeVariableDeclarationStatement( - Constants.XTypedElement, - "typedRoot", - CreateMethodCall( - new CodeTypeReferenceExpression(Constants.XTypedServices), - Constants.ToXTypedElement, - new CodePropertyReferenceExpression(doc, "Root"), - CodeDomHelper.SingletonTypeManager()))); - - staticMethod.Statements.Add( //if(typedRoot == null) - new CodeConditionStatement( - new CodeBinaryOperatorExpression( - new CodeVariableReferenceExpression("typedRoot"), - CodeBinaryOperatorType.IdentityEquality, - new CodePrimitiveExpression(null) - ), - new CodeThrowExceptionStatement( - new CodeObjectCreateExpression(Constants.LinqToXsdException, - new CodePrimitiveExpression("Invalid root element in xml document.")) - ))); - - staticMethod.Statements.Add( //root.rootObject = typedRoot - new CodeAssignStatement( - new CodeFieldReferenceExpression(rootExp, "rootObject"), - new CodeVariableReferenceExpression("typedRoot"))); - - staticMethod.Statements.Add( //return root; - new CodeMethodReturnStatement(rootExp)); - - return staticMethod; - } - - public static CodeMemberMethod CreateXRootSave(string[][] paramList, GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) - { - CodeMemberMethod staticMethod = new CodeMemberMethod(); - staticMethod.Name = "Save"; - staticMethod.Attributes = visibility.ToMemberAttribute(); - CodeExpression[] parameterExp = new CodeExpression[paramList.Length]; - - for (int i = 0; i < paramList.Length; i++) - { - string[] paramRef = paramList[i]; - // index 0 is the type name and index 1 is the parameter name - staticMethod.Parameters.Add(CreateParameter(paramRef[1], paramRef[0])); - parameterExp[i] = new CodeVariableReferenceExpression(paramRef[1]); - } - - CodeExpression doc = new CodeVariableReferenceExpression("doc"); - - staticMethod.Statements.Add( //root.doc = XDocument.Save(...); - CreateMethodCall(doc, "Save", parameterExp)); - - return staticMethod; - } - - - public static CodeConstructor CreateXRootFunctionalConstructor(string typeName, GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) - { - CodeConstructor constructor = CodeDomHelper.CreateConstructor(visibility.ToMemberAttribute()); - constructor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeName), "root")); - - constructor.Statements.Add( - new CodeAssignStatement( - new CodeFieldReferenceExpression(This(), "doc"), - new CodeObjectCreateExpression( - "XDocument", - new CodePropertyReferenceExpression( - new CodeVariableReferenceExpression("root"), - Constants.Untyped)))); - - constructor.Statements.Add( - new CodeAssignStatement( - new CodeFieldReferenceExpression(This(), "rootObject"), - new CodeVariableReferenceExpression("root"))); - - return constructor; - } - public static string GetInnerType(string wrappingType, string wrappedType) { if (wrappedType == null) diff --git a/XObjectsCode/Src/Model/CNamespace.cs b/XObjectsCode/Src/Model/CNamespace.cs index 76a61838..c1aeb488 100644 --- a/XObjectsCode/Src/Model/CNamespace.cs +++ b/XObjectsCode/Src/Model/CNamespace.cs @@ -20,6 +20,9 @@ public class CNamespace(string name) public required string AccessModifier { get; init; } + // List of root elements in this namespace (also found in Types and Elements) + public List Roots { get; } = []; + public IEnumerable Types => Dom.Types .Cast() .Where(x => x.Name is not ("XRootNamespace" or "XRoot")); diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index f68b9d74..c460f333 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -28,7 +28,6 @@ public class CodeDomTypesGenerator readonly Dictionary codeNamespacesTable = new(); Dictionary nameMappings; - readonly Dictionary> xroots = new(); List wrapperRootElements; string currentNamespace; @@ -91,13 +90,7 @@ public IEnumerable GenerateTypes(ClrMappingInfo binding) if (type.typeOrigin == SchemaOrigin.Element) { - if (!xroots.TryGetValue(cNamespace, out var types)) - { - types = new List(); - xroots.Add(cNamespace, types); - } - types.Add(decl); - + cNamespace.Roots.Add(decl); UpdateRootElement(type, decl); } } @@ -297,156 +290,34 @@ private void ProcessComplexGroupProperties(GroupingInfo grouping, List(); + var allRoots = new List(); var allNamespaces = new List(); string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCNamespace)) { - // This might happen if the schema set has no global elements and only global types - // then you can create a root tag with xsi:type + // This might happen if the schema set has no global elements and only global types then you can create a root tag with xsi:type rootCNamespace = codeNamespacesTable.Values.FirstOrDefault(); // rootCodeNamespace may still be null if schema has only simple typed global elements or simple types which we are ignoring for now } // Build list of types that will need to be included in XRoot - var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); - foreach (CNamespace codeNamespace in xroots.Keys) + foreach (var ns in codeNamespacesTable.Values) { - rootCNamespace ??= codeNamespace; - - for (int i = 0; i < xroots[codeNamespace].Count; i++) + rootCNamespace ??= ns; + if (ns.Roots.Count > 0) { - allTypes.Add(xroots[codeNamespace][i]); - allNamespaces.Add(codeNamespace.Dom); + allNamespaces.Add(ns.Dom); + allRoots.AddRange(ns.Roots); } - - CreateXRoot(codeNamespace.Dom, "XRootNamespace", xroots[codeNamespace], null, typeVisibility); } - if (rootCNamespace == null && xroots.Count == 0 && allTypes.Count == 0 && allNamespaces.Count == 0) return; - CreateXRoot(rootCNamespace.Dom, "XRoot", allTypes, allNamespaces, typeVisibility); + if (rootCNamespace == null && allNamespaces.Count == 0) return; +// TODO: persist allRoots, allNamespaces somewhere? + // CreateXRoot(rootCNamespace.Dom, "XRoot", allRoots, allNamespaces); } - private void CreateXRoot( - CodeNamespace codeNamespace, - string rootName, - List elements, - List namespaces, - GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) - { - LocalSymbolTable lst = new LocalSymbolTable(); - - CodeTypeDeclaration xroot = CodeDomHelper.CreateTypeDeclaration(rootName, null, visibility, cNamespace.Dom); - - //Create Methods - CodeMemberField docField = CodeDomHelper.CreateMemberField("doc", - "XDocument", - false, MemberAttributes.Private); - - CodeMemberField rootField = CodeDomHelper.CreateMemberField("rootObject", - Constants.XTypedElement, - false, MemberAttributes.Private); - - xroot.Members.Add(docField); - xroot.Members.Add(rootField); - - - lst.Init(rootName); - lst.RegisterMember("doc"); - lst.RegisterMember("rootObject"); - lst.RegisterMember("Load"); - lst.RegisterMember("Parse"); - lst.RegisterMember("Save"); - lst.RegisterMember("XDocument"); - lst.RegisterMember("Root"); - - // Constructor - xroot.Members.Add(CodeDomHelper.CreateConstructor(MemberAttributes.Private)); - - //Load Methods - xroot.Members.Add(CodeDomHelper.CreateXRootMethod(rootName, "Load", - new string[][] {new string[] {"System.String", "xmlFile"}}, visibility)); - - xroot.Members.Add(CodeDomHelper.CreateXRootMethod(rootName, "Load", new string[][] - { - new string[] {"System.String", "xmlFile"}, - new string[] {"LoadOptions", "options"} - }, visibility)); - - - xroot.Members.Add(CodeDomHelper.CreateXRootMethod(rootName, "Load", - new string[][] {new string[] {"TextReader", "textReader"}}, visibility)); - - xroot.Members.Add(CodeDomHelper.CreateXRootMethod(rootName, "Load", new string[][] - { - new string[] {"TextReader", "textReader"}, - new string[] {"LoadOptions", "options"} - }, visibility)); - - - xroot.Members.Add(CodeDomHelper.CreateXRootMethod(rootName, "Load", - new string[][] {new string[] {"XmlReader", "xmlReader"}}, visibility)); - - - //Parse Methods - xroot.Members.Add(CodeDomHelper.CreateXRootMethod(rootName, "Parse", - new string[][] {new string[] {"System.String", "text"}}, visibility)); - - xroot.Members.Add(CodeDomHelper.CreateXRootMethod(rootName, "Parse", new string[][] - { - new string[] {"System.String", "text"}, - new string[] {"LoadOptions", "options"} - }, visibility)); - - - //Save Methods - xroot.Members.Add( - CodeDomHelper.CreateXRootSave(new string[][] {new string[] {"System.String", "fileName"}}, visibility)); - xroot.Members.Add(CodeDomHelper.CreateXRootSave(new string[][] - {new string[] {"TextWriter", "textWriter"}}, visibility)); - xroot.Members.Add(CodeDomHelper.CreateXRootSave(new string[][] {new string[] {"XmlWriter", "writer"}}, visibility)); - - xroot.Members.Add(CodeDomHelper.CreateXRootSave(new string[][] - { - new string[] {"TextWriter", "textWriter"}, - new string[] {"SaveOptions", "options"} - }, visibility)); - xroot.Members.Add(CodeDomHelper.CreateXRootSave(new string[][] - { - new string[] {"System.String", "fileName"}, - new string[] {"SaveOptions", "options"} - }, visibility)); - - CodeMemberProperty docProp = CodeDomHelper.CreateProperty("XDocument", - "XDocument", - docField, - visibility.ToMemberAttribute(), - false); - xroot.Members.Add(docProp); - - CodeMemberProperty rootProp = CodeDomHelper.CreateProperty("Root", - "XTypedElement", - rootField, - visibility.ToMemberAttribute(), - false); - xroot.Members.Add(rootProp); - - for (int i = 0; i < elements.Count; i++) - { - string typeName = elements[i].Name; - string fqTypeName = (namespaces == null || namespaces[i].Name == String.Empty) - ? typeName - : "global::" + namespaces[i].Name + "." + typeName; - - xroot.Members.Add(CodeDomHelper.CreateXRootFunctionalConstructor(fqTypeName, visibility)); - xroot.Members.Add(CodeDomHelper.CreateXRootGetter(typeName, fqTypeName, lst, visibility)); - } - - codeNamespace.AddTypeWithParentNamespace(xroot); - } - private void ProcessWrapperTypes() { // No Globalelements with global types @@ -552,13 +423,7 @@ private void ProcessWrapperTypes() cNamespace = GetCNamespace(typeInfo.clrtypeNs); cNamespace.Dom.AddTypeWithParentNamespace(decl); - - if (!xroots.TryGetValue(cNamespace, out List types)) - { - types = []; - xroots.Add(cNamespace, types); - } - types.Add(decl); + cNamespace.Roots.Add(decl); if (typeInfo.typeOrigin == SchemaOrigin.Element) UpdateRootElement(typeInfo, decl); @@ -567,7 +432,7 @@ private void ProcessWrapperTypes() private void CreateTypeManager() { - // TODO: Type manager inclusion and messing around usings +// TODO: Type manager inclusion and messing around usings string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); // var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCodeNamespace)) @@ -580,15 +445,6 @@ private void CreateTypeManager() // It might be null if schema has only simple typed global elements or simple types which we are ignoring for now if (rootCodeNamespace is { Dom: var ns }) { - // var typeManagerDeclaration = TypeBuilder.CreateTypeManager( - // rootElementName: rootElementName, - // enableServiceReference: settings.EnableServiceReference, - // typeDictionaryStatements: null, //typeDictionaryAddStatements, - // elementDictionaryStatements: null, //elementDictionaryAddStatements, - // wrapperDictionaryStatements: null, // wrapperDictionaryAddStatements, - // visibility: typeVisibility); - - // ns.AddTypeWithParentNamespace(typeManagerDeclaration); // Add using statements in the rest of the namespaces for the root namespace to avoid error on TypeManager reference // Add using statements in the root namespace for the rest of the namespaces to avoid errors while building type dictionaries var rootImport = new CodeNamespaceImport(rootCodeNamespace.Name); diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index e896f1a5..8a4a7d9c 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -39,10 +39,13 @@ namespace {{ $ns.Name }} { }} {{~ end ~}} - {{ include 'manager.scriban-cs' $ns }} + {{~ ## TODO: only render once in main root namespace ~}} + {{ include 'manager.scriban-cs' }} - {{ include 'root.scriban-cs' 'XRootNamespace' $ns '' }} + {{ include 'root.scriban-cs' XRoot:'XRootNamespace' prefix:'' }} - {{ include 'root.scriban-cs' 'XRoot' $ns 'global::' + $ns.Name + '.' }} + {{~ ## TODO: only render once in main root namespace ~}} + {{~ ## TODO: should contain all roots from all namespaces ~}} + {{ include 'root.scriban-cs' XRoot:'XRoot' prefix:('global::' + $ns.Name + '.') }} } {{ end }} \ No newline at end of file diff --git a/XObjectsCode/Templates/root.scriban-cs b/XObjectsCode/Templates/root.scriban-cs index b0989155..e9309ad6 100644 --- a/XObjectsCode/Templates/root.scriban-cs +++ b/XObjectsCode/Templates/root.scriban-cs @@ -1,4 +1,4 @@ -public partial class {{ $1 }} { +{{ $ns.AccessModifier }} partial class {{ $XRoot }} { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XDocument doc; @@ -6,11 +6,11 @@ public partial class {{ $1 }} { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - private {{ $1 }}() { + private {{ $XRoot }}() { } - public static {{ $1 }} Load(string xmlFile) { - {{ $1 }} root = new {{ $1 }}(); + public static {{ $XRoot }} Load(string xmlFile) { + {{ $XRoot }} root = new {{ $XRoot }}(); root.doc = XDocument.Load(xmlFile); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -20,8 +20,8 @@ public partial class {{ $1 }} { return root; } - public static {{ $1 }} Load(string xmlFile, LoadOptions options) { - {{ $1 }} root = new {{ $1 }}(); + public static {{ $XRoot }} Load(string xmlFile, LoadOptions options) { + {{ $XRoot }} root = new {{ $XRoot }}(); root.doc = XDocument.Load(xmlFile, options); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -31,8 +31,8 @@ public partial class {{ $1 }} { return root; } - public static {{ $1 }} Load(TextReader textReader) { - {{ $1 }} root = new {{ $1 }}(); + public static {{ $XRoot }} Load(TextReader textReader) { + {{ $XRoot }} root = new {{ $XRoot }}(); root.doc = XDocument.Load(textReader); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -42,8 +42,8 @@ public partial class {{ $1 }} { return root; } - public static {{ $1 }} Load(TextReader textReader, LoadOptions options) { - {{ $1 }} root = new {{ $1 }}(); + public static {{ $XRoot }} Load(TextReader textReader, LoadOptions options) { + {{ $XRoot }} root = new {{ $XRoot }}(); root.doc = XDocument.Load(textReader, options); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -53,8 +53,8 @@ public partial class {{ $1 }} { return root; } - public static {{ $1 }} Load(XmlReader xmlReader) { - {{ $1 }} root = new {{ $1 }}(); + public static {{ $XRoot }} Load(XmlReader xmlReader) { + {{ $XRoot }} root = new {{ $XRoot }}(); root.doc = XDocument.Load(xmlReader); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -64,8 +64,8 @@ public partial class {{ $1 }} { return root; } - public static {{ $1 }} Parse(string text) { - {{ $1 }} root = new {{ $1 }}(); + public static {{ $XRoot }} Parse(string text) { + {{ $XRoot }} root = new {{ $XRoot }}(); root.doc = XDocument.Parse(text); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -75,8 +75,8 @@ public partial class {{ $1 }} { return root; } - public static {{ $1 }} Parse(string text, LoadOptions options) { - {{ $1 }} root = new {{ $1 }}(); + public static {{ $XRoot }} Parse(string text, LoadOptions options) { + {{ $XRoot }} root = new {{ $XRoot }}(); root.doc = XDocument.Parse(text, options); XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); if ((typedRoot == null)) { @@ -117,16 +117,18 @@ public partial class {{ $1 }} { return rootObject; } } - - {{- for $el in $2.Elements }} - public {{ $1 }}({{ $3 }}{{ $el.Name }} root) { + {{- for $el in $ns.Roots }} + + public {{ $XRoot }}({{ $prefix }}{{ $el.Name }} root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public {{ $3 }}{{ $el.Name }} {{ $el.Name }} { get {return rootObject as {{ $3 }}{{ $el.Name }}; } } + {{~ ## TODO: prefix should actually be "global::($el.Namespace)." for XRoot. ~}} + {{~ ## TODO: name of this property should be suffixed with 1,2.. in case of (CI) collisions ~}} + public {{ $prefix }}{{ $el.Name }} {{ $el.Name }} { get {return rootObject as {{ $prefix }}{{ $el.Name }}; } } {{- end }} } \ No newline at end of file From f2ad7f17c2c113682f79ab30a3ea52d32ba74607 Mon Sep 17 00:00:00 2001 From: jods4 Date: Mon, 16 Mar 2026 02:23:29 +0100 Subject: [PATCH 10/29] Tidy up TypeManager and XRoot templates --- .../Microsoft.Search.Query.xsd.cs | 154 +++++++++--------- XObjectsCode/Src/Scriban/Scope.cs | 26 +++ XObjectsCode/Src/Scriban/ScribanGlobals.cs | 5 + XObjectsCode/Src/TypesToCodeDom.cs | 29 +--- XObjectsCode/Src/XObjectsCoreGenerator.cs | 21 ++- XObjectsCode/Templates/file.scriban-cs | 15 +- XObjectsCode/Templates/manager.scriban-cs | 54 +++--- XObjectsCode/Templates/root.scriban-cs | 14 +- XObjectsCode/XObjectsCodeGen.csproj | 2 +- 9 files changed, 170 insertions(+), 150 deletions(-) create mode 100644 XObjectsCode/Src/Scriban/Scope.cs diff --git a/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs index dc48251d..37c4353a 100644 --- a/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs +++ b/GeneratedSchemaLibraries/Microsoft Search/Microsoft.Search.Query.xsd.cs @@ -4865,7 +4865,7 @@ protected internal static void AddSchemas(XmlSchemaSet schemas) { static LinqToXsdTypeManager() { BuildElementDictionary(); - } + } public static System.Type GetRootType() { return elementDictionary[System.Xml.Linq.XName.Get("QueryPacket", "urn:Microsoft.Search.Query")]; @@ -5005,7 +5005,7 @@ public XRootNamespace(QueryPacket root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public QueryPacket QueryPacket { get {return rootObject as QueryPacket; } } @@ -5013,7 +5013,7 @@ public XRootNamespace(QueryId root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public QueryId QueryId { get {return rootObject as QueryId; } } @@ -5021,7 +5021,7 @@ public XRootNamespace(Context root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public Context Context { get {return rootObject as Context; } } @@ -5029,7 +5029,7 @@ public XRootNamespace(QueryText root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public QueryText QueryText { get {return rootObject as QueryText; } } @@ -5037,7 +5037,7 @@ public XRootNamespace(Range root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public Range Range { get {return rootObject as Range; } } @@ -5045,7 +5045,7 @@ public XRootNamespace(Properties root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public Properties Properties { get {return rootObject as Properties; } } @@ -5053,7 +5053,7 @@ public XRootNamespace(Property root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public Property Property { get {return rootObject as Property; } } @@ -5061,7 +5061,7 @@ public XRootNamespace(SortByProperties root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public SortByProperties SortByProperties { get {return rootObject as SortByProperties; } } @@ -5069,7 +5069,7 @@ public XRootNamespace(SortByProperty root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public SortByProperty SortByProperty { get {return rootObject as SortByProperty; } } @@ -5077,7 +5077,7 @@ public XRootNamespace(RelevanceModel root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public RelevanceModel RelevanceModel { get {return rootObject as RelevanceModel; } } @@ -5085,7 +5085,7 @@ public XRootNamespace(TrimDuplicates root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public TrimDuplicates TrimDuplicates { get {return rootObject as TrimDuplicates; } } @@ -5093,7 +5093,7 @@ public XRootNamespace(ResultProvider root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public ResultProvider ResultProvider { get {return rootObject as ResultProvider; } } @@ -5101,7 +5101,7 @@ public XRootNamespace(ResubmitFlags root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public ResubmitFlags ResubmitFlags { get {return rootObject as ResubmitFlags; } } @@ -5109,7 +5109,7 @@ public XRootNamespace(ResubmitFlag root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public ResubmitFlag ResubmitFlag { get {return rootObject as ResubmitFlag; } } @@ -5117,7 +5117,7 @@ public XRootNamespace(EnableSpellcheck root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public EnableSpellcheck EnableSpellcheck { get {return rootObject as EnableSpellcheck; } } @@ -5125,7 +5125,7 @@ public XRootNamespace(UserContext root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public UserContext UserContext { get {return rootObject as UserContext; } } @@ -5133,7 +5133,7 @@ public XRootNamespace(FindSimilar root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public FindSimilar FindSimilar { get {return rootObject as FindSimilar; } } @@ -5141,7 +5141,7 @@ public XRootNamespace(SimilarType root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public SimilarType SimilarType { get {return rootObject as SimilarType; } } @@ -5149,7 +5149,7 @@ public XRootNamespace(IncludeRefinementResults root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public IncludeRefinementResults IncludeRefinementResults { get {return rootObject as IncludeRefinementResults; } } @@ -5157,7 +5157,7 @@ public XRootNamespace(Refiners root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public Refiners Refiners { get {return rootObject as Refiners; } } @@ -5165,7 +5165,7 @@ public XRootNamespace(RefinementFilters root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public RefinementFilters RefinementFilters { get {return rootObject as RefinementFilters; } } @@ -5173,7 +5173,7 @@ public XRootNamespace(StartAt root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public StartAt StartAt { get {return rootObject as StartAt; } } @@ -5181,7 +5181,7 @@ public XRootNamespace(Count root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public Count Count { get {return rootObject as Count; } } @@ -5189,7 +5189,7 @@ public XRootNamespace(ImplicitAndBehavior root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public ImplicitAndBehavior ImplicitAndBehavior { get {return rootObject as ImplicitAndBehavior; } } @@ -5197,7 +5197,7 @@ public XRootNamespace(EnableStemming root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public EnableStemming EnableStemming { get {return rootObject as EnableStemming; } } @@ -5205,7 +5205,7 @@ public XRootNamespace(IncludeSpecialTermResults root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public IncludeSpecialTermResults IncludeSpecialTermResults { get {return rootObject as IncludeSpecialTermResults; } } @@ -5213,7 +5213,7 @@ public XRootNamespace(PreQuerySuggestions root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public PreQuerySuggestions PreQuerySuggestions { get {return rootObject as PreQuerySuggestions; } } @@ -5221,7 +5221,7 @@ public XRootNamespace(HighlightQuerySuggestions root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public HighlightQuerySuggestions HighlightQuerySuggestions { get {return rootObject as HighlightQuerySuggestions; } } @@ -5229,7 +5229,7 @@ public XRootNamespace(CapitalizeFirstLetters root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public CapitalizeFirstLetters CapitalizeFirstLetters { get {return rootObject as CapitalizeFirstLetters; } } @@ -5237,7 +5237,7 @@ public XRootNamespace(UserContextData root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public UserContextData UserContextData { get {return rootObject as UserContextData; } } @@ -5245,7 +5245,7 @@ public XRootNamespace(SimilarTo root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public SimilarTo SimilarTo { get {return rootObject as SimilarTo; } } @@ -5253,7 +5253,7 @@ public XRootNamespace(SortSimilar root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public SortSimilar SortSimilar { get {return rootObject as SortSimilar; } } @@ -5261,7 +5261,7 @@ public XRootNamespace(Refiner root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public Refiner Refiner { get {return rootObject as Refiner; } } @@ -5269,7 +5269,7 @@ public XRootNamespace(MaxShallowRefinementHits root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public MaxShallowRefinementHits MaxShallowRefinementHits { get {return rootObject as MaxShallowRefinementHits; } } @@ -5277,7 +5277,7 @@ public XRootNamespace(RefinementFilter root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public RefinementFilter RefinementFilter { get {return rootObject as RefinementFilter; } } @@ -5285,7 +5285,7 @@ public XRootNamespace(IgnoreAllNoiseQuery root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public IgnoreAllNoiseQuery IgnoreAllNoiseQuery { get {return rootObject as IgnoreAllNoiseQuery; } } @@ -5293,7 +5293,7 @@ public XRootNamespace(IncludeRelevantResults root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public IncludeRelevantResults IncludeRelevantResults { get {return rootObject as IncludeRelevantResults; } } @@ -5301,7 +5301,7 @@ public XRootNamespace(IncludeHighConfidenceResults root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public IncludeHighConfidenceResults IncludeHighConfidenceResults { get {return rootObject as IncludeHighConfidenceResults; } } } @@ -5430,7 +5430,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.QueryPacket root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.QueryPacket QueryPacket { get {return rootObject as global::Microsoft.Search.Query.Schemas.QueryPacket; } } @@ -5438,7 +5438,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.QueryId root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.QueryId QueryId { get {return rootObject as global::Microsoft.Search.Query.Schemas.QueryId; } } @@ -5446,7 +5446,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.Context root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.Context Context { get {return rootObject as global::Microsoft.Search.Query.Schemas.Context; } } @@ -5454,7 +5454,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.QueryText root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.QueryText QueryText { get {return rootObject as global::Microsoft.Search.Query.Schemas.QueryText; } } @@ -5462,7 +5462,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.Range root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.Range Range { get {return rootObject as global::Microsoft.Search.Query.Schemas.Range; } } @@ -5470,7 +5470,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.Properties root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.Properties Properties { get {return rootObject as global::Microsoft.Search.Query.Schemas.Properties; } } @@ -5478,7 +5478,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.Property root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.Property Property { get {return rootObject as global::Microsoft.Search.Query.Schemas.Property; } } @@ -5486,7 +5486,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.SortByProperties root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.SortByProperties SortByProperties { get {return rootObject as global::Microsoft.Search.Query.Schemas.SortByProperties; } } @@ -5494,7 +5494,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.SortByProperty root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.SortByProperty SortByProperty { get {return rootObject as global::Microsoft.Search.Query.Schemas.SortByProperty; } } @@ -5502,7 +5502,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.RelevanceModel root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.RelevanceModel RelevanceModel { get {return rootObject as global::Microsoft.Search.Query.Schemas.RelevanceModel; } } @@ -5510,7 +5510,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.TrimDuplicates root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.TrimDuplicates TrimDuplicates { get {return rootObject as global::Microsoft.Search.Query.Schemas.TrimDuplicates; } } @@ -5518,7 +5518,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.ResultProvider root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.ResultProvider ResultProvider { get {return rootObject as global::Microsoft.Search.Query.Schemas.ResultProvider; } } @@ -5526,7 +5526,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.ResubmitFlags root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.ResubmitFlags ResubmitFlags { get {return rootObject as global::Microsoft.Search.Query.Schemas.ResubmitFlags; } } @@ -5534,7 +5534,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.ResubmitFlag root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.ResubmitFlag ResubmitFlag { get {return rootObject as global::Microsoft.Search.Query.Schemas.ResubmitFlag; } } @@ -5542,7 +5542,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.EnableSpellcheck root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.EnableSpellcheck EnableSpellcheck { get {return rootObject as global::Microsoft.Search.Query.Schemas.EnableSpellcheck; } } @@ -5550,7 +5550,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.UserContext root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.UserContext UserContext { get {return rootObject as global::Microsoft.Search.Query.Schemas.UserContext; } } @@ -5558,7 +5558,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.FindSimilar root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.FindSimilar FindSimilar { get {return rootObject as global::Microsoft.Search.Query.Schemas.FindSimilar; } } @@ -5566,7 +5566,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.SimilarType root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.SimilarType SimilarType { get {return rootObject as global::Microsoft.Search.Query.Schemas.SimilarType; } } @@ -5574,7 +5574,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.IncludeRefinementResults roo this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.IncludeRefinementResults IncludeRefinementResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeRefinementResults; } } @@ -5582,7 +5582,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.Refiners root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.Refiners Refiners { get {return rootObject as global::Microsoft.Search.Query.Schemas.Refiners; } } @@ -5590,7 +5590,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.RefinementFilters root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.RefinementFilters RefinementFilters { get {return rootObject as global::Microsoft.Search.Query.Schemas.RefinementFilters; } } @@ -5598,7 +5598,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.StartAt root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.StartAt StartAt { get {return rootObject as global::Microsoft.Search.Query.Schemas.StartAt; } } @@ -5606,7 +5606,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.Count root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.Count Count { get {return rootObject as global::Microsoft.Search.Query.Schemas.Count; } } @@ -5614,7 +5614,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.ImplicitAndBehavior root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.ImplicitAndBehavior ImplicitAndBehavior { get {return rootObject as global::Microsoft.Search.Query.Schemas.ImplicitAndBehavior; } } @@ -5622,7 +5622,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.EnableStemming root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.EnableStemming EnableStemming { get {return rootObject as global::Microsoft.Search.Query.Schemas.EnableStemming; } } @@ -5630,7 +5630,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.IncludeSpecialTermResults ro this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.IncludeSpecialTermResults IncludeSpecialTermResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeSpecialTermResults; } } @@ -5638,7 +5638,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.PreQuerySuggestions root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.PreQuerySuggestions PreQuerySuggestions { get {return rootObject as global::Microsoft.Search.Query.Schemas.PreQuerySuggestions; } } @@ -5646,7 +5646,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.HighlightQuerySuggestions ro this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.HighlightQuerySuggestions HighlightQuerySuggestions { get {return rootObject as global::Microsoft.Search.Query.Schemas.HighlightQuerySuggestions; } } @@ -5654,7 +5654,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.CapitalizeFirstLetters root) this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.CapitalizeFirstLetters CapitalizeFirstLetters { get {return rootObject as global::Microsoft.Search.Query.Schemas.CapitalizeFirstLetters; } } @@ -5662,7 +5662,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.UserContextData root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.UserContextData UserContextData { get {return rootObject as global::Microsoft.Search.Query.Schemas.UserContextData; } } @@ -5670,7 +5670,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.SimilarTo root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.SimilarTo SimilarTo { get {return rootObject as global::Microsoft.Search.Query.Schemas.SimilarTo; } } @@ -5678,7 +5678,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.SortSimilar root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.SortSimilar SortSimilar { get {return rootObject as global::Microsoft.Search.Query.Schemas.SortSimilar; } } @@ -5686,7 +5686,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.Refiner root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.Refiner Refiner { get {return rootObject as global::Microsoft.Search.Query.Schemas.Refiner; } } @@ -5694,7 +5694,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.MaxShallowRefinementHits roo this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.MaxShallowRefinementHits MaxShallowRefinementHits { get {return rootObject as global::Microsoft.Search.Query.Schemas.MaxShallowRefinementHits; } } @@ -5702,7 +5702,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.RefinementFilter root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.RefinementFilter RefinementFilter { get {return rootObject as global::Microsoft.Search.Query.Schemas.RefinementFilter; } } @@ -5710,7 +5710,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.IgnoreAllNoiseQuery root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.IgnoreAllNoiseQuery IgnoreAllNoiseQuery { get {return rootObject as global::Microsoft.Search.Query.Schemas.IgnoreAllNoiseQuery; } } @@ -5718,7 +5718,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.IncludeRelevantResults root) this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.IncludeRelevantResults IncludeRelevantResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeRelevantResults; } } @@ -5726,7 +5726,7 @@ public XRoot(global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + public global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults IncludeHighConfidenceResults { get {return rootObject as global::Microsoft.Search.Query.Schemas.IncludeHighConfidenceResults; } } } diff --git a/XObjectsCode/Src/Scriban/Scope.cs b/XObjectsCode/Src/Scriban/Scope.cs new file mode 100644 index 00000000..3f84627c --- /dev/null +++ b/XObjectsCode/Src/Scriban/Scope.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +namespace Xml.Schema.Linq.CodeGen.Scriban; + +// Can be instantiated in templates using the global Scope() function in ScribanGlobals +public class Scope() +{ + private HashSet locals = new(StringComparer.OrdinalIgnoreCase); + + public Scope Init(params string[] names) + { + foreach (var name in names) + locals.Add(name); + return this; + } + + public string Add(string name) + { + var suffixedName = name; + int suffix = 1; + while (!locals.Add(suffixedName)) + suffixedName = name + (suffix++); + return suffixedName; + } +} \ No newline at end of file diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index 94df8950..63f774ce 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -1,5 +1,6 @@ #nullable enable +using System; using System.CodeDom; using System.Collections.Generic; using System.Linq; @@ -11,6 +12,10 @@ namespace Xml.Schema.Linq.CodeGen.Scriban; static class ScribanGlobals { + private static Scope scope = new(); + public static void ScopeInit(params string[] names) => scope = new Scope().Init(names); + public static string ScopeRename(string name) => scope.Add(name); + public static void Comments(TemplateContext ctx, object target) { var comments = target switch diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index c460f333..ecb30f49 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -23,8 +23,10 @@ public class CodeDomTypesGenerator // TODO: eventually remove XmlQualifiedName rootElementName = XmlQualifiedName.Empty; public CodeTypeDeclaration RootElement { get; private set; } + public IEnumerable AllRoots => codeNamespacesTable.Values.SelectMany(ns => ns.Roots); - CNamespace cNamespace; + CNamespace cNamespace, rootNamespace; + public CNamespace RootNamespace => rootNamespace; readonly Dictionary codeNamespacesTable = new(); Dictionary nameMappings; @@ -289,35 +291,16 @@ private void ProcessComplexGroupProperties(GroupingInfo grouping, List(); - var allNamespaces = new List(); string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); - - if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCNamespace)) + if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out rootNamespace)) { // This might happen if the schema set has no global elements and only global types then you can create a root tag with xsi:type - rootCNamespace = codeNamespacesTable.Values.FirstOrDefault(); + rootNamespace = codeNamespacesTable.Values.FirstOrDefault(); // rootCodeNamespace may still be null if schema has only simple typed global elements or simple types which we are ignoring for now } - - // Build list of types that will need to be included in XRoot - foreach (var ns in codeNamespacesTable.Values) - { - rootCNamespace ??= ns; - if (ns.Roots.Count > 0) - { - allNamespaces.Add(ns.Dom); - allRoots.AddRange(ns.Roots); - } - } - - if (rootCNamespace == null && allNamespaces.Count == 0) return; -// TODO: persist allRoots, allNamespaces somewhere? - // CreateXRoot(rootCNamespace.Dom, "XRoot", allRoots, allNamespaces); + // TODO: persist allRoots somewhere? } - private void ProcessWrapperTypes() { // No Globalelements with global types diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 9a0cf2d8..29a65865 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -128,7 +128,7 @@ public static Dictionary Generate( var template = TemplateLoader.Load("file.scriban-cs"); return settings.SplitFilesByNamespace - ? namespaces.GroupBy(ns => ns.Name).Select(g => ((string?)g.Key, RenderCodeUnit(g))) + ? from ns in namespaces select ((string?)ns.Name, RenderCodeUnit([ns])) : [ (null, RenderCodeUnit(namespaces)) ]; string RenderCodeUnit(IEnumerable namespaces) @@ -141,16 +141,21 @@ string RenderCodeUnit(IEnumerable namespaces) new { Settings = settings, - TypeManager = new + Namespaces = nsArray, + TypeManager = new ScriptObject // So that we can make use of `with TypeManager` in manager.scriban-cs { // TODO: when RootElement is a POCO model class, it should provide CNamespace more easily - Namespace = nsArray.FirstOrDefault(ns => ns.Dom == codeGenerator.RootElement.ParentNamespace), - RootElement = codeGenerator.RootElement, - AllTypes = codeGenerator.AllTypes, - AllElements = codeGenerator.AllElements, - AllWrappers = codeGenerator.AllWrappers, + { "Namespace",nsArray.FirstOrDefault(ns => ns.Dom == codeGenerator.RootElement.ParentNamespace) }, + { "RootElement", codeGenerator.RootElement }, + { "AllTypes", codeGenerator.AllTypes }, + { "AllElements", codeGenerator.AllElements }, + { "AllWrappers", codeGenerator.AllWrappers }, + }, + XRoot = new + { + Namespace = codeGenerator.RootNamespace, + AllRoots = codeGenerator.AllRoots, }, - Namespaces = nsArray, }, renamer: m => m.Name); diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 8a4a7d9c..33bf43d3 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -39,13 +39,16 @@ namespace {{ $ns.Name }} { }} {{~ end ~}} - {{~ ## TODO: only render once in main root namespace ~}} - {{ include 'manager.scriban-cs' }} + {{ + if TypeManager.Namespace == $ns; include 'manager.scriban-cs'; end + }} - {{ include 'root.scriban-cs' XRoot:'XRootNamespace' prefix:'' }} + {{ include 'root.scriban-cs' XRoot:'XRootNamespace' prefix:'' roots:$ns.Roots }} - {{~ ## TODO: only render once in main root namespace ~}} - {{~ ## TODO: should contain all roots from all namespaces ~}} - {{ include 'root.scriban-cs' XRoot:'XRoot' prefix:('global::' + $ns.Name + '.') }} + {{ + if XRoot.Namespace == $ns + include 'root.scriban-cs' XRoot:'XRoot' prefix:('global::' + $ns.Name + '.') roots:XRoot.AllRoots + end + }} } {{ end }} \ No newline at end of file diff --git a/XObjectsCode/Templates/manager.scriban-cs b/XObjectsCode/Templates/manager.scriban-cs index d1622d9a..b8782aed 100644 --- a/XObjectsCode/Templates/manager.scriban-cs +++ b/XObjectsCode/Templates/manager.scriban-cs @@ -1,38 +1,42 @@ -{{ TypeManager.Namespace.AccessModifier }} class LinqToXsdTypeManager : ILinqToXsdTypeManager { +{{- + with TypeManager +-}} + +{{ Namespace.AccessModifier }} class LinqToXsdTypeManager : ILinqToXsdTypeManager { private LinqToXsdTypeManager() { } - {{- if !TypeManager.AllTypes.empty? }} + {{- if !AllTypes.empty? }} private static Dictionary typeDictionary = new Dictionary(); private static void BuildTypeDictionary() { - {{- for $type in TypeManager.AllTypes }} + {{- for $type in AllTypes }} typeDictionary.Add(System.Xml.Linq.XName.Get("{{ $type.XsdName }}", "{{ $type.XsdNs }}"), typeof(global::{{ $type.Name }})); {{- end }} } {{- end }} - {{- if !TypeManager.AllElements.empty? }} + {{- if !AllElements.empty? }} private static Dictionary elementDictionary = new Dictionary(); private static void BuildElementDictionary() { - {{- for $el in TypeManager.AllElements }} + {{- for $el in AllElements }} elementDictionary.Add(System.Xml.Linq.XName.Get("{{ $el.XsdName }}", "{{ $el.XsdNs }}"), typeof(global::{{ $el.Name }})); {{- end }} } {{- end }} - {{- if !TypeManager.AllWrappers.empty? }} + {{- if !AllWrappers.empty? }} private static Dictionary wrapperDictionary = new Dictionary(); private static void BuildWrapperDictionary() { - {{- for $wrapper in TypeManager.AllWrappers }} + {{- for $wrapper in AllWrappers }} wrapperDictionary.Add(typeof({{ $wrapper.Key }}), typeof(global::{{ $wrapper.Value }})); {{- end }} } @@ -60,48 +64,36 @@ Dictionary ILinqToXsdTypeManager.GlobalTypeDictionary { get { - {{- if !TypeManager.AllTypes.empty? }} - return typeDictionary; - {{- else }} - return XTypedServices.EmptyDictionary; - {{- end }} + return {{ AllTypes.empty? ? "XTypedServices.EmptyDictionary" : "typeDictionary" }}; } } Dictionary ILinqToXsdTypeManager.GlobalElementDictionary { get { - {{- if !TypeManager.AllElements.empty? }} - return elementDictionary; - {{- else }} - return XTypedServices.EmptyDictionary; - {{- end }} + return {{ AllElements.empty? ? "XTypedServices.EmptyDictionary" : "elementDictionary" }}; } } Dictionary ILinqToXsdTypeManager.RootContentTypeMapping { get { - {{- if !TypeManager.AllWrappers.empty? }} - return wrapperDictionary; - {{- else }} - return XTypedServices.EmptyTypeMappingDictionary; - {{- end }} + return {{ AllWrappers.empty? ? "XTypedServices.EmptyTypeMappingDictionary" : "wrapperDictionary" }}; } } static LinqToXsdTypeManager() { - {{- if !TypeManager.AllTypes.empty? }} + {{- if !AllTypes.empty? }} BuildTypeDictionary(); - {{- end }} - {{- if !TypeManager.AllElements.empty? }} + {{ end -}} + {{- if !AllElements.empty? }} BuildElementDictionary(); - {{- end }} - {{- if !TypeManager.AllWrappers.empty? }} + {{ end -}} + {{- if !AllWrappers.empty? }} BuildWrapperDictionary(); - {{- end }} + {{ end -}} } public static System.Type GetRootType() { - {{- if TypeManager.RootElement }} + {{- if RootElement }} return elementDictionary[System.Xml.Linq.XName.Get("{{ TypeManager.RootElement | local_name 'xName' }}", "{{ TypeManager.RootElement | namespace 'xName' }}")]; {{- else }} return typeof(Xml.Schema.Linq.XTypedElement); @@ -116,4 +108,6 @@ return typeManagerSingleton; } } -} \ No newline at end of file +} + +{{- end # with TypeManager -}} \ No newline at end of file diff --git a/XObjectsCode/Templates/root.scriban-cs b/XObjectsCode/Templates/root.scriban-cs index e9309ad6..a288c5ef 100644 --- a/XObjectsCode/Templates/root.scriban-cs +++ b/XObjectsCode/Templates/root.scriban-cs @@ -116,19 +116,23 @@ get { return rootObject; } - } + } - {{- for $el in $ns.Roots }} + {{- + # Elements in a namespace should already have unique names in model, but they could clash with local members above. + # When rendering XRoot (rather than XRootNamespace) elements from all namespaces are included and could clash with each other. + scope_init "doc" "rootObject" "Load" "Parse" "Save" "XDocument" "Root" + for $el in $roots + }} public {{ $XRoot }}({{ $prefix }}{{ $el.Name }} root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - + {{~ ## TODO: prefix should actually be "global::($el.Namespace)." for XRoot. ~}} - {{~ ## TODO: name of this property should be suffixed with 1,2.. in case of (CI) collisions ~}} - public {{ $prefix }}{{ $el.Name }} {{ $el.Name }} { get {return rootObject as {{ $prefix }}{{ $el.Name }}; } } + public {{ $prefix }}{{ $el.Name }} {{ $el.Name | scope_rename }} { get {return rootObject as {{ $prefix }}{{ $el.Name }}; } } {{- end }} } \ No newline at end of file diff --git a/XObjectsCode/XObjectsCodeGen.csproj b/XObjectsCode/XObjectsCodeGen.csproj index 78cd273b..ec450e7c 100644 --- a/XObjectsCode/XObjectsCodeGen.csproj +++ b/XObjectsCode/XObjectsCodeGen.csproj @@ -17,7 +17,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From ac427cff644932b277ede454c3bfab1396f03d4a Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 17 Mar 2026 22:56:07 +0100 Subject: [PATCH 11/29] Upgrade Scriban --- XObjectsCode/Extensions/CodeDomExtensions.cs | 33 -------------------- XObjectsCode/Src/ClrPropertyInfo.cs | 26 --------------- XObjectsCode/Src/Model/CNamespace.cs | 4 +-- XObjectsCode/Src/TypesToCodeDom.cs | 9 ++---- XObjectsCode/Src/XObjectsCoreGenerator.cs | 2 +- XObjectsCode/Templates/file.scriban-cs | 4 +-- XObjectsCode/Templates/manager.scriban-cs | 6 ++-- XObjectsCode/Templates/root.scriban-cs | 2 +- XObjectsCode/XObjectsCodeGen.csproj | 2 +- 9 files changed, 11 insertions(+), 77 deletions(-) diff --git a/XObjectsCode/Extensions/CodeDomExtensions.cs b/XObjectsCode/Extensions/CodeDomExtensions.cs index c9c06382..9d8159ca 100644 --- a/XObjectsCode/Extensions/CodeDomExtensions.cs +++ b/XObjectsCode/Extensions/CodeDomExtensions.cs @@ -720,11 +720,6 @@ public void SetParent(TCodeObject parent) { return co.UserData["Parent"] as TCodeObject; } - - public bool HasParent() - { - return co.UserData["Parent"] is TCodeObject; - } } extension(CodeTypeDeclaration type) @@ -738,34 +733,6 @@ public CodeNamespace? ParentNamespace set => type.SetParent(value!); } - public IEnumerable ChildProperties - { - get { - return type.Members.OfType(); - } - } - - public IEnumerable ChildTypes - { - get { - return type.Members.OfType(); - } - } - - public IEnumerable ChildEnumDeclarations - { - get { - return type.Members.OfType().Where(e => e.IsEnum); - } - } - - public IEnumerable ChildClassDeclarations - { - get { - return type.Members.OfType().Where(e => e.IsClass); - } - } - public void ChangeVisibility(TypeAttributes visibility) { if (!visibility.HasVisibilityMask()) { diff --git a/XObjectsCode/Src/ClrPropertyInfo.cs b/XObjectsCode/Src/ClrPropertyInfo.cs index d2cf76ac..066ed04d 100644 --- a/XObjectsCode/Src/ClrPropertyInfo.cs +++ b/XObjectsCode/Src/ClrPropertyInfo.cs @@ -1198,32 +1198,6 @@ protected CodeExpression GetSimpleTypeClassExpression(bool disambiguateWhenPrope return codeFieldReferenceExpression; } -#if DEBUG - /// - /// unfortuntely, this is a hack to fix a regression that left the field unset for certain enums. - /// examples of this error occuring: 'W3C XMLSchema v1.xsd' -> schema element -> attributeFormDefault attribute of type formChoice - /// - /// - private bool SetSimpleTypeClrNameForEnum() - { - bool wasSet = false; - if (this.ParentTypeDeclaration != null && this.ParentTypeDeclaration.HasParent()) { - var thisNamespace = this.ParentTypeDeclaration.GetParent(); - if (thisNamespace is not null) { - var possibleTypeValidatorClass = thisNamespace.SearchForMemberRecursively(e => - e is CodeTypeDeclaration ec && ec.Name.Contains(this.TypeReference.Name)); - - if (possibleTypeValidatorClass is not null) { - simpleTypeClrTypeName = possibleTypeValidatorClass.Name; - wasSet = true; - } - } - } - - return wasSet; - } -#endif - public void CreateXNameField(CodeTypeDeclaration typeDecl) { // HACK: CodeDom doesn't model readonly fields... but it doesn't check the type either! diff --git a/XObjectsCode/Src/Model/CNamespace.cs b/XObjectsCode/Src/Model/CNamespace.cs index c1aeb488..41d47a85 100644 --- a/XObjectsCode/Src/Model/CNamespace.cs +++ b/XObjectsCode/Src/Model/CNamespace.cs @@ -23,9 +23,7 @@ public class CNamespace(string name) // List of root elements in this namespace (also found in Types and Elements) public List Roots { get; } = []; - public IEnumerable Types => Dom.Types - .Cast() - .Where(x => x.Name is not ("XRootNamespace" or "XRoot")); + public IEnumerable Types => Dom.Types.Cast(); public IEnumerable Elements => Types.Where(x => !x.TypeAttributes.HasFlag(TypeAttributes.Sealed)); } \ No newline at end of file diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index ecb30f49..526f81fa 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -30,7 +30,7 @@ public class CodeDomTypesGenerator readonly Dictionary codeNamespacesTable = new(); Dictionary nameMappings; - List wrapperRootElements; + readonly List wrapperRootElements = []; string currentNamespace; string currentFullTypeName; @@ -56,7 +56,6 @@ public IEnumerable GenerateTypes(ClrMappingInfo binding) { if (type.IsWrapper) { - wrapperRootElements ??= []; wrapperRootElements.Add(type as ClrWrapperTypeInfo); continue; } @@ -298,14 +297,11 @@ private void CreateXRoots() rootNamespace = codeNamespacesTable.Values.FirstOrDefault(); // rootCodeNamespace may still be null if schema has only simple typed global elements or simple types which we are ignoring for now } - // TODO: persist allRoots somewhere? } private void ProcessWrapperTypes() { - // No Globalelements with global types - if (wrapperRootElements == null) - return; + if (wrapperRootElements.Count == 0) return; var wrapperBuilder = new XWrapperTypedElementBuilder(settings); var simpleTypeBuilder = new XSimpleTypedElementBuilder(settings); @@ -417,7 +413,6 @@ private void CreateTypeManager() { // TODO: Type manager inclusion and messing around usings string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); - // var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(rootClrNamespace); if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCodeNamespace)) { // This might happen if the schema set has no global elements and only global types diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 29a65865..da75757f 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -145,7 +145,7 @@ string RenderCodeUnit(IEnumerable namespaces) TypeManager = new ScriptObject // So that we can make use of `with TypeManager` in manager.scriban-cs { // TODO: when RootElement is a POCO model class, it should provide CNamespace more easily - { "Namespace",nsArray.FirstOrDefault(ns => ns.Dom == codeGenerator.RootElement.ParentNamespace) }, + { "Namespace", nsArray.FirstOrDefault(ns => ns.Dom == codeGenerator.RootElement.ParentNamespace) }, { "RootElement", codeGenerator.RootElement }, { "AllTypes", codeGenerator.AllTypes }, { "AllElements", codeGenerator.AllElements }, diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 33bf43d3..f2c70b4a 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -43,11 +43,11 @@ namespace {{ $ns.Name }} { if TypeManager.Namespace == $ns; include 'manager.scriban-cs'; end }} - {{ include 'root.scriban-cs' XRoot:'XRootNamespace' prefix:'' roots:$ns.Roots }} + {{ include 'root.scriban-cs' XRoot:'XRootNamespace' prefix:'' roots:$ns.Roots accessModifier:$ns.AccessModifier }} {{ if XRoot.Namespace == $ns - include 'root.scriban-cs' XRoot:'XRoot' prefix:('global::' + $ns.Name + '.') roots:XRoot.AllRoots + include 'root.scriban-cs' XRoot:'XRoot' prefix:('global::' + $ns.Name + '.') roots:XRoot.AllRoots accessModifier:$ns.AccessModifier end }} } diff --git a/XObjectsCode/Templates/manager.scriban-cs b/XObjectsCode/Templates/manager.scriban-cs index b8782aed..2a071535 100644 --- a/XObjectsCode/Templates/manager.scriban-cs +++ b/XObjectsCode/Templates/manager.scriban-cs @@ -83,13 +83,13 @@ static LinqToXsdTypeManager() { {{- if !AllTypes.empty? }} BuildTypeDictionary(); - {{ end -}} + {{- end -}} {{- if !AllElements.empty? }} BuildElementDictionary(); - {{ end -}} + {{- end -}} {{- if !AllWrappers.empty? }} BuildWrapperDictionary(); - {{ end -}} + {{- end }} } public static System.Type GetRootType() { diff --git a/XObjectsCode/Templates/root.scriban-cs b/XObjectsCode/Templates/root.scriban-cs index a288c5ef..122a9508 100644 --- a/XObjectsCode/Templates/root.scriban-cs +++ b/XObjectsCode/Templates/root.scriban-cs @@ -1,4 +1,4 @@ -{{ $ns.AccessModifier }} partial class {{ $XRoot }} { +{{ $accessModifier }} partial class {{ $XRoot }} { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XDocument doc; diff --git a/XObjectsCode/XObjectsCodeGen.csproj b/XObjectsCode/XObjectsCodeGen.csproj index ec450e7c..e69e1dda 100644 --- a/XObjectsCode/XObjectsCodeGen.csproj +++ b/XObjectsCode/XObjectsCodeGen.csproj @@ -17,7 +17,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 6d096010f882165b45e90ab038f11096ad039c1f Mon Sep 17 00:00:00 2001 From: jods4 Date: Wed, 18 Mar 2026 00:55:55 +0100 Subject: [PATCH 12/29] Work on simple types --- XObjectsCode/Extensions/CodeDomExtensions.cs | 13 ----- XObjectsCode/Src/Model/CClass.cs | 50 +++++++++++++++++++ XObjectsCode/Src/Model/CElement.cs | 16 ------ XObjectsCode/Src/Model/CNamespace.cs | 31 +++++++++++- XObjectsCode/Src/Model/CType.cs | 2 +- XObjectsCode/Src/Scriban/ScribanGlobals.cs | 5 -- XObjectsCode/Src/TypesToCodeDom.cs | 31 +++++++++--- XObjectsCode/Templates/file.scriban-cs | 6 +-- XObjectsCode/Templates/simple-type.scriban-cs | 21 ++++++++ XObjectsCode/Templates/type.scriban-cs | 9 ---- XObjectsTests/TestExtensionsMethods.cs | 36 ------------- 11 files changed, 128 insertions(+), 92 deletions(-) create mode 100644 XObjectsCode/Src/Model/CClass.cs delete mode 100644 XObjectsCode/Src/Model/CElement.cs create mode 100644 XObjectsCode/Templates/simple-type.scriban-cs delete mode 100644 XObjectsCode/Templates/type.scriban-cs diff --git a/XObjectsCode/Extensions/CodeDomExtensions.cs b/XObjectsCode/Extensions/CodeDomExtensions.cs index 9d8159ca..3320d955 100644 --- a/XObjectsCode/Extensions/CodeDomExtensions.cs +++ b/XObjectsCode/Extensions/CodeDomExtensions.cs @@ -610,19 +610,6 @@ CodeTypeDeclaration ToTypeDeclaration(CodeTypeReference typeRef) } } - /// - /// Adds a new to the current namespace and also retain a reference to the parent in the given - /// . This is set in the dictionary; can be set with - /// and retrieved with . - /// - /// - /// - public static void AddTypeWithParentNamespace(this CodeNamespace codeNs, CodeTypeDeclaration type) - { - codeNs.Types.Add(type); - type.SetParent(codeNs); - } - public static List FlattenAllNestedTypesRecursively(this CodeTypeDeclaration type, List? typesList = null) { typesList ??= new List(); diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs new file mode 100644 index 00000000..26a5e040 --- /dev/null +++ b/XObjectsCode/Src/Model/CClass.cs @@ -0,0 +1,50 @@ +#nullable enable + +using System.CodeDom; +using System.Collections.Generic; +using System.Linq; + +namespace Xml.Schema.Linq.CodeGen.Model; + +/// +/// Represents a class in generated code, specialized into various kind of xsd source: simple type, element. +/// +public abstract class CClass +{ + /// Parent C# namespace + public CNamespace? Namespace { get; set; } + + // This isn't great OOP design but Scriban doesn't have first-class support for OOP (no `is` operator) + public virtual bool IsSimpleType => false; +} + +/// +/// Represents a class depicting an xsd element in generated code +/// +public class CElement : CClass +{ + // TODO: Temporary, remove after full migration + public required CodeTypeDeclaration Dom { get; init; } + + /// Fully qualified C# generated class name + public required string Name { get; init; } + + /// Tag namespace (from xsd) + public required string XsdNs { get; init; } + + /// Tag name (from xsd) + public required string XsdName { get; init; } +} + +/// +/// Represents a class depicting an xsd simple type wrapper in generated code +/// +public class CSimpleType(ClrSimpleTypeInfo info) : CClass +{ + public override bool IsSimpleType => true; + + public string Name => info.clrtypeName; + + // TODO: can a.Text contain line breaks? + public IEnumerable Comments => info.Annotations?.Select(a => a.Text) ?? []; +} \ No newline at end of file diff --git a/XObjectsCode/Src/Model/CElement.cs b/XObjectsCode/Src/Model/CElement.cs deleted file mode 100644 index effcd2f0..00000000 --- a/XObjectsCode/Src/Model/CElement.cs +++ /dev/null @@ -1,16 +0,0 @@ -#nullable enable - -namespace Xml.Schema.Linq.Codegen.Model; - -/// -/// Represents a class depicting an xsd element in generated code -/// -public class CElement -{ - /// Fully qualified C# generated class name - public required string Name { get; init; } - /// Element namespace (from xsd) - public required string XsdNs { get; init; } - /// Element name (from xsd) - public required string XsdName { get; init; } -} \ No newline at end of file diff --git a/XObjectsCode/Src/Model/CNamespace.cs b/XObjectsCode/Src/Model/CNamespace.cs index 41d47a85..da94dcdd 100644 --- a/XObjectsCode/Src/Model/CNamespace.cs +++ b/XObjectsCode/Src/Model/CNamespace.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; +using Xml.Schema.Linq.CodeGen.Scriban; +using Xml.Schema.Linq.Extensions; namespace Xml.Schema.Linq.CodeGen.Model; @@ -23,7 +25,32 @@ public class CNamespace(string name) // List of root elements in this namespace (also found in Types and Elements) public List Roots { get; } = []; - public IEnumerable Types => Dom.Types.Cast(); + public List Types { get; } = []; - public IEnumerable Elements => Types.Where(x => !x.TypeAttributes.HasFlag(TypeAttributes.Sealed)); + public IEnumerable Elements => Types.OfType(); + + public void Add(CodeTypeDeclaration type) + { + // TODO: should be passed instead of CodeTypeDeclaration + CClass ctype = new CElement + { + Dom = type, + Name = type.Name, + XsdName = ScribanGlobals.LocalName(type, "xName"), + XsdNs = ScribanGlobals.Namespace(type, "xName"), + }; + + ctype.Namespace = this; + Types.Add(ctype); + + // TODO: temporary, remove after full migration + Dom.Types.Add(type); + type.SetParent(Dom); + } + + public void Add(CClass type) + { + type.Namespace = this; + Types.Add(type); + } } \ No newline at end of file diff --git a/XObjectsCode/Src/Model/CType.cs b/XObjectsCode/Src/Model/CType.cs index a76a36be..641cd251 100644 --- a/XObjectsCode/Src/Model/CType.cs +++ b/XObjectsCode/Src/Model/CType.cs @@ -1,6 +1,6 @@ #nullable enable -namespace Xml.Schema.Linq.Codegen.Model; +namespace Xml.Schema.Linq.CodeGen.Model; /// /// Represents a class depicting an xsd type in generated code diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index 63f774ce..7beafcba 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -94,11 +94,6 @@ public static bool IsOptional(CodeMemberProperty prop) .Any(x => x.Comment.Text.Contains("Occurrence: optional")); } - public static bool IsTypeDefinition(CodeTypeDeclaration type) - { - return type.TypeAttributes.HasFlag(TypeAttributes.Sealed); - } - public static string? Validator(CodeTypeDeclaration type) { var statement = type.Members diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index 526f81fa..921b7904 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -11,7 +11,6 @@ using Xml.Schema.Linq.CodeGen.Model; using Xml.Schema.Linq.Extensions; using XObjects; -using Xml.Schema.Linq.Codegen.Model; namespace Xml.Schema.Linq.CodeGen { @@ -36,6 +35,9 @@ public class CodeDomTypesGenerator string currentFullTypeName; public readonly List AllTypes = []; + // TODO: review naming, this is more an AllTypes than AllElements as it also contains wrapper classes for simple types + // but then what's the difference with AllTypes above? is AllElements only the non-nested types? + // I guess I'll figure it out after migrating more code. public readonly List AllElements = []; public readonly List> AllWrappers = []; @@ -69,7 +71,7 @@ public IEnumerable GenerateTypes(ClrMappingInfo binding) if (stInfo is EnumSimpleTypeInfo enumTypeInfo) { var enumType = TypeBuilder.CreateEnumType(enumTypeInfo, settings, stInfo); - ns.AddTypeWithParentNamespace(enumType); + cNamespace.Add(enumType); var enumsInOtherTypes = ns.DescendentTypeScopedEnumDeclarations(); // if an enum is defined in another type, remove it, if it is the same as the global (namespace scoped type) if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) @@ -81,13 +83,13 @@ public IEnumerable GenerateTypes(ClrMappingInfo binding) } } - var decl = TypeBuilder.CreateSimpleType(stInfo, nameMappings, settings); - ns.AddTypeWithParentNamespace(decl); + // TODO: for EnumSimpleTypeInfo, the name of this class should be stInfo.clrtypeName + "Validator" + cNamespace.Add(new CSimpleType(stInfo)); } else { var decl = ProcessType(type as ClrContentTypeInfo, null, true); // Sets current cNamespace - ns.AddTypeWithParentNamespace(decl); + cNamespace.Add(decl); if (type.typeOrigin == SchemaOrigin.Element) { @@ -118,6 +120,9 @@ private CodeTypeDeclaration ProcessType(ClrContentTypeInfo typeInfo, string pare typeBuilder.CreateFunctionalConstructor(typeInfo.Annotations); typeBuilder.ImplementInterfaces(settings.EnableServiceReference); typeBuilder.ApplyAnnotations(typeInfo); + + CodeTypeDeclaration builtType = typeBuilder.TypeDeclaration; + if (globalType) { // TODO: these shouldn't be a new instances but the instance built above by TypeBuilder, when migrated @@ -131,13 +136,13 @@ private CodeTypeDeclaration ProcessType(ClrContentTypeInfo typeInfo, string pare else AllElements.Add(new() { + Dom = builtType, Name = typeInfo.clrFullTypeName, XsdName = typeInfo.schemaName, XsdNs = typeInfo.schemaNs, }); } - CodeTypeDeclaration builtType = typeBuilder.TypeDeclaration; ProcessNestedTypes(typeInfo.NestedTypes, builtType, typeInfo.clrFullTypeName); return builtType; } @@ -310,6 +315,7 @@ private void ProcessWrapperTypes() ClrPropertyInfo typedValPropertyInfo = null; foreach (ClrWrapperTypeInfo typeInfo in wrapperRootElements) { + CClass cType = null; SetFullTypeName(typeInfo, null); ClrTypeReference innerType = typeInfo.InnerType; if (innerType.IsSimpleType) @@ -323,9 +329,16 @@ private void ProcessWrapperTypes() simpleTypeBuilder.ApplyAnnotations(typeInfo); builder = simpleTypeBuilder; + // cType = new CSimpleType(typeInfo) + // { + // Dom = builder.TypeDeclaration, + // Name = typeInfo.clrtypeName, + // }; + // TODO: should not be a new instance but rather the one produced by code above, when migrated AllElements.Add(new() { + Dom = builder.TypeDeclaration, Name = typeInfo.clrFullTypeName, XsdName = typeInfo.schemaName, XsdNs = typeInfo.schemaNs, @@ -359,6 +372,7 @@ private void ProcessWrapperTypes() // TODO: shouldn't be a new instance but rather from wrapperBuilder when migrated AllElements.Add(new() { + Dom = wrapperBuilder.TypeDeclaration, Name = typeInfo.clrFullTypeName, XsdName = typeInfo.schemaName, XsdNs = typeInfo.schemaNs, @@ -401,7 +415,10 @@ private void ProcessWrapperTypes() var decl = builder.TypeDeclaration; cNamespace = GetCNamespace(typeInfo.clrtypeNs); - cNamespace.Dom.AddTypeWithParentNamespace(decl); + if (cType != null) + cNamespace.Add(cType); + else + cNamespace.Add(decl); // TODO: remove at end of migration cNamespace.Roots.Add(decl); if (typeInfo.typeOrigin == SchemaOrigin.Element) diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index f2c70b4a..63012029 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -31,10 +31,10 @@ namespace {{ $ns.Name }} { {{~ for $type in $ns.Types ~}} {{ - if $type | is_type_definition - include 'type.scriban-cs' $type + if $type.IsSimpleType + include 'simple-type.scriban-cs' $type else - include 'class.scriban-cs' $type + include 'class.scriban-cs' $type.Dom end }} {{~ end ~}} diff --git a/XObjectsCode/Templates/simple-type.scriban-cs b/XObjectsCode/Templates/simple-type.scriban-cs new file mode 100644 index 00000000..227c087a --- /dev/null +++ b/XObjectsCode/Templates/simple-type.scriban-cs @@ -0,0 +1,21 @@ +{{~ if !$1.Comments.empty? ~}} +/// +{{~ for $text in $1.Comments ~}} +/// +/// {{ $text }} +/// +{{~ end ~}} +/// +{{~ end ~}} +{{ $1.Namespace.AccessModifier }} sealed class {{ $1.Name }} { + + private {{ $1.Name }}() { + } + + {{~ + # TODO: review SimpleTypeCodeDomHelper.MaterializeSimpleTypeDef for the initializer. + # It's different for atomic/list/union and picks the right type code and facets + ~}} + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); +} \ No newline at end of file diff --git a/XObjectsCode/Templates/type.scriban-cs b/XObjectsCode/Templates/type.scriban-cs deleted file mode 100644 index 5fd22998..00000000 --- a/XObjectsCode/Templates/type.scriban-cs +++ /dev/null @@ -1,9 +0,0 @@ -{{ $1 | comments -}} -public sealed class {{ $1.Name }} { - - private {{ $1.Name }}() { - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); -} \ No newline at end of file diff --git a/XObjectsTests/TestExtensionsMethods.cs b/XObjectsTests/TestExtensionsMethods.cs index ad81a010..2425945c 100644 --- a/XObjectsTests/TestExtensionsMethods.cs +++ b/XObjectsTests/TestExtensionsMethods.cs @@ -130,42 +130,6 @@ public static NamespaceDeclarationSyntax GetNamespaceRoot(this SyntaxTree tree) return namespaceNode; } - /// - /// Returns the of the current . - /// - /// - /// - /// - public static TextWriter ToTextWriter(this CodeTypeDeclaration codeObject, string namespaceName = null) - { - if (namespaceName == null) namespaceName = "DefaultCodeNamespace"; - - var ccu = new CodeCompileUnit(); - - var codeNamespace = new CodeNamespace(namespaceName); - codeNamespace.Types.Add(codeObject); - ccu.Namespaces.Add(codeNamespace); - - return ccu.ToStringWriter(); - } - - /// - /// Returns all the current as a fully formatted string. - /// - /// - /// - /// - public static string ToFullString(this IEnumerable nodes, string delimiter = "") - { - var sb = new StringBuilder(); - - foreach (var node in nodes) { - sb.Append(node.ToFullString() + delimiter); - } - - return sb.ToString(); - } - /// /// Dumps debug strings to the . /// From bf4acfe3aa2c173998f52e1c7734782b5a2e4177 Mon Sep 17 00:00:00 2001 From: jods4 Date: Tue, 24 Mar 2026 23:09:55 +0100 Subject: [PATCH 13/29] Regenerate 3dps and LandXML for reference --- .../3dps-1_0_0/3dps-all.xsd.cs | 16971 ++++--- .../LandXML/v1.2/LandXML-1.2.xsd.cs | 39358 +++++++++------- LinqToXsd/Properties/launchSettings.json | 12 + 3 files changed, 30594 insertions(+), 25747 deletions(-) diff --git a/GeneratedSchemaLibraries/3dps-1_0_0/3dps-all.xsd.cs b/GeneratedSchemaLibraries/3dps-1_0_0/3dps-all.xsd.cs index 445180d0..8739986d 100644 --- a/GeneratedSchemaLibraries/3dps-1_0_0/3dps-all.xsd.cs +++ b/GeneratedSchemaLibraries/3dps-1_0_0/3dps-all.xsd.cs @@ -29,13 +29,41 @@ namespace OpenGis.Ows { public abstract partial class AbstractMetaData : XTypedElement, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static AbstractMetaData Load(string xmlFile) { + return ((AbstractMetaData)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public static AbstractMetaData Load(System.IO.TextReader xmlFile) { + return ((AbstractMetaData)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public static AbstractMetaData Parse(string xml) { + return ((AbstractMetaData)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + } public static explicit operator AbstractMetaData(XElement xe) { return (AbstractMetaData)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public AbstractMetaData() { } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -56,6 +84,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// + /// + /// Regular expression: (Title*, Abstract*, Keywords*, ServiceType, ServiceTypeVersion+, Profile*, Fees?, AccessConstraints*) + /// + /// + public partial class ServiceIdentification : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -69,93 +105,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static AbstractMetaData Load(string xmlFile) { - return ((AbstractMetaData)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static AbstractMetaData Load(System.IO.TextReader xmlFile) { - return ((AbstractMetaData)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + public static ServiceIdentification Load(string xmlFile) { + return XTypedServices.Load(xmlFile); } - public static AbstractMetaData Parse(string xml) { - return ((AbstractMetaData)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + public static ServiceIdentification Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static ServiceIdentification Parse(string xml) { + return XTypedServices.Parse(xml); } - } - - /// - /// - /// Regular expression: (Title*, Abstract*, Keywords*, ServiceType, ServiceTypeVersion+, Profile*, Fees?, AccessConstraints*) - /// - /// - public partial class ServiceIdentification : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TitleXName = System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList TitleField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AbstractXName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Abstract> AbstractField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName KeywordsXName = System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Keywords> KeywordsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServiceTypeXName = System.Xml.Linq.XName.Get("ServiceType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServiceTypeVersionXName = System.Xml.Linq.XName.Get("ServiceTypeVersion", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> ServiceTypeVersionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<System.Uri> ProfileField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeesXName = System.Xml.Linq.XName.Get("Fees", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AccessConstraintsXName = System.Xml.Linq.XName.Get("AccessConstraints", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<AccessConstraints> AccessConstraintsField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceIdentification", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ServiceIdentification(XElement xe) { return XTypedServices.ToXTypedElement<ServiceIdentification>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ServiceIdentification() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(ServiceTypeXName), new NamedContentModelEntity(ServiceTypeVersionXName), new NamedContentModelEntity(ProfileXName), new NamedContentModelEntity(FeesXName), new NamedContentModelEntity(AccessConstraintsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ServiceIdentification>(this); } /// <summary> @@ -166,6 +131,13 @@ static ServiceIdentification() { public ServiceIdentification() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TitleXName = System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Title> TitleField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -196,6 +168,13 @@ public virtual IList<Title> Title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AbstractXName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Abstract> AbstractField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -226,6 +205,13 @@ public virtual IList<Abstract> Abstract { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName KeywordsXName = System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Keywords> KeywordsField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -256,6 +242,10 @@ public virtual IList<Keywords> Keywords { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServiceTypeXName = System.Xml.Linq.XName.Get("ServiceType", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// A service type name from a registry of @@ -281,6 +271,13 @@ public virtual CodeType ServiceType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServiceTypeVersionXName = System.Xml.Linq.XName.Get("ServiceTypeVersion", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> ServiceTypeVersionField; + /// <summary> /// <para> /// Unordered list of one or more versions of this @@ -317,6 +314,13 @@ public virtual IList<string> ServiceTypeVersion { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<System.Uri> ProfileField; + /// <summary> /// <para> /// Unordered list of identifiers of Application @@ -355,6 +359,10 @@ public virtual IList<System.Uri> Profile { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeesXName = System.Xml.Linq.XName.Get("Fees", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// If this element is omitted, no meaning is @@ -370,6 +378,9 @@ public virtual IList<System.Uri> Profile { public virtual Fees Fees { get { XElement x = this.GetElement(FeesXName); + if ((x == null)) { + return null; + } return ((Fees)(x)); } set { @@ -377,6 +388,13 @@ public virtual Fees Fees { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AccessConstraintsXName = System.Xml.Linq.XName.Get("AccessConstraints", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<AccessConstraints> AccessConstraintsField; + /// <summary> /// <para> /// Unordered list of access constraints applied to @@ -416,6 +434,27 @@ public virtual IList<AccessConstraints> AccessConstraints { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceIdentification", "http://www.opengis.net/ows/2.0"); + + static ServiceIdentification() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(ServiceTypeXName), new NamedContentModelEntity(ServiceTypeVersionXName), new NamedContentModelEntity(ProfileXName), new NamedContentModelEntity(FeesXName), new NamedContentModelEntity(AccessConstraintsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(Keywords)); + localElementDictionary.Add(ServiceTypeXName, typeof(CodeType)); + localElementDictionary.Add(ServiceTypeVersionXName, typeof(string)); + localElementDictionary.Add(ProfileXName, typeof(System.Uri)); + localElementDictionary.Add(FeesXName, typeof(Fees)); + localElementDictionary.Add(AccessConstraintsXName, typeof(AccessConstraints)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -423,6 +462,13 @@ public virtual IList<AccessConstraints> AccessConstraints { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -443,6 +489,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (ProviderName, ProviderSite?, ServiceContact) + /// </para> + /// </summary> + public partial class ServiceProvider : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -456,79 +510,35 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ServiceIdentification Load(string xmlFile) { - return XTypedServices.Load<ServiceIdentification>(xmlFile); + public static ServiceProvider Load(string xmlFile) { + return XTypedServices.Load<ServiceProvider>(xmlFile); } - public static ServiceIdentification Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ServiceIdentification>(xmlFile); + public static ServiceProvider Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ServiceProvider>(xmlFile); } - public static ServiceIdentification Parse(string xml) { - return XTypedServices.Parse<ServiceIdentification>(xml); + public static ServiceProvider Parse(string xml) { + return XTypedServices.Parse<ServiceProvider>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ServiceIdentification>(this); - } + public static explicit operator ServiceProvider(XElement xe) { return XTypedServices.ToXTypedElement<ServiceProvider>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(Keywords)); - localElementDictionary.Add(ServiceTypeXName, typeof(CodeType)); - localElementDictionary.Add(ServiceTypeVersionXName, typeof(string)); - localElementDictionary.Add(ProfileXName, typeof(System.Uri)); - localElementDictionary.Add(FeesXName, typeof(Fees)); - localElementDictionary.Add(AccessConstraintsXName, typeof(AccessConstraints)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ServiceProvider>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (ProviderName, ProviderSite?, ServiceContact) + /// </para> + /// </summary> + public ServiceProvider() { } - } - - /// <summary> - /// <para> - /// Regular expression: (ProviderName, ProviderSite?, ServiceContact) - /// </para> - /// </summary> - public partial class ServiceProvider : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProviderNameXName = System.Xml.Linq.XName.Get("ProviderName", "http://www.opengis.net/ows/2.0"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProviderSiteXName = System.Xml.Linq.XName.Get("ProviderSite", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServiceContactXName = System.Xml.Linq.XName.Get("ServiceContact", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceProvider", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator ServiceProvider(XElement xe) { return XTypedServices.ToXTypedElement<ServiceProvider>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static ServiceProvider() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ProviderNameXName), new NamedContentModelEntity(ProviderSiteXName), new NamedContentModelEntity(ServiceContactXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (ProviderName, ProviderSite?, ServiceContact) - /// </para> - /// </summary> - public ServiceProvider() { - } + protected internal static readonly System.Xml.Linq.XName ProviderNameXName = System.Xml.Linq.XName.Get("ProviderName", "http://www.opengis.net/ows/2.0"); /// <summary> /// <para> @@ -552,6 +562,10 @@ public virtual string ProviderName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProviderSiteXName = System.Xml.Linq.XName.Get("ProviderSite", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Reference to the most relevant web site of the @@ -567,6 +581,9 @@ public virtual string ProviderName { public virtual OnlineResourceType ProviderSite { get { XElement x = this.GetElement(ProviderSiteXName); + if ((x == null)) { + return null; + } return ((OnlineResourceType)(x)); } set { @@ -574,6 +591,10 @@ public virtual OnlineResourceType ProviderSite { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServiceContactXName = System.Xml.Linq.XName.Get("ServiceContact", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Information for contacting the service provider. @@ -598,6 +619,22 @@ public virtual ResponsiblePartySubsetType ServiceContact { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceProvider", "http://www.opengis.net/ows/2.0"); + + static ServiceProvider() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ProviderNameXName), new NamedContentModelEntity(ProviderSiteXName), new NamedContentModelEntity(ServiceContactXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ProviderNameXName, typeof(string)); + localElementDictionary.Add(ProviderSiteXName, typeof(OnlineResourceType)); + localElementDictionary.Add(ServiceContactXName, typeof(ResponsiblePartySubsetType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -605,6 +642,13 @@ public virtual ResponsiblePartySubsetType ServiceContact { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -625,6 +669,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AnyValue : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -638,40 +685,31 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ServiceProvider Load(string xmlFile) { - return XTypedServices.Load<ServiceProvider>(xmlFile); + public static AnyValue Load(string xmlFile) { + return XTypedServices.Load<AnyValue>(xmlFile); } - public static ServiceProvider Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ServiceProvider>(xmlFile); + public static AnyValue Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AnyValue>(xmlFile); } - public static ServiceProvider Parse(string xml) { - return XTypedServices.Parse<ServiceProvider>(xml); + public static AnyValue Parse(string xml) { + return XTypedServices.Parse<AnyValue>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ServiceProvider>(this); - } + public static explicit operator AnyValue(XElement xe) { return XTypedServices.ToXTypedElement<AnyValue>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ProviderNameXName, typeof(string)); - localElementDictionary.Add(ProviderSiteXName, typeof(OnlineResourceType)); - localElementDictionary.Add(ServiceContactXName, typeof(ResponsiblePartySubsetType)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AnyValue>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public AnyValue() { } - } - - public partial class AnyValue : XTypedElement, IXMetaData { private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AnyValue", "http://www.opengis.net/ows/2.0"); - public static explicit operator AnyValue(XElement xe) { return XTypedServices.ToXTypedElement<AnyValue>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public AnyValue() { + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -694,6 +732,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class NoValues : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -707,34 +748,31 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static AnyValue Load(string xmlFile) { - return XTypedServices.Load<AnyValue>(xmlFile); + public static NoValues Load(string xmlFile) { + return XTypedServices.Load<NoValues>(xmlFile); } - public static AnyValue Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AnyValue>(xmlFile); + public static NoValues Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<NoValues>(xmlFile); } - public static AnyValue Parse(string xml) { - return XTypedServices.Parse<AnyValue>(xml); + public static NoValues Parse(string xml) { + return XTypedServices.Parse<NoValues>(xml); } + public static explicit operator NoValues(XElement xe) { return XTypedServices.ToXTypedElement<NoValues>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AnyValue>(this); + return XTypedServices.CloneXTypedElement<NoValues>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public NoValues() { } - } - - public partial class NoValues : XTypedElement, IXMetaData { private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("NoValues", "http://www.opengis.net/ows/2.0"); - public static explicit operator NoValues(XElement xe) { return XTypedServices.ToXTypedElement<NoValues>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public NoValues() { + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -757,6 +795,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class ValuesReference : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -770,43 +811,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static NoValues Load(string xmlFile) { - return XTypedServices.Load<NoValues>(xmlFile); + public static ValuesReference Load(string xmlFile) { + return XTypedServices.Load<ValuesReference>(xmlFile); } - public static NoValues Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<NoValues>(xmlFile); + public static ValuesReference Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ValuesReference>(xmlFile); } - public static NoValues Parse(string xml) { - return XTypedServices.Parse<NoValues>(xml); + public static ValuesReference Parse(string xml) { + return XTypedServices.Parse<ValuesReference>(xml); } + public static explicit operator ValuesReference(XElement xe) { return XTypedServices.ToXTypedElement<ValuesReference>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<NoValues>(this); + return XTypedServices.CloneXTypedElement<ValuesReference>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public ValuesReference() { } - } - - public partial class ValuesReference : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName referenceXName = System.Xml.Linq.XName.Get("reference", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ValuesReference", "http://www.opengis.net/ows/2.0"); - - public static explicit operator ValuesReference(XElement xe) { return XTypedServices.ToXTypedElement<ValuesReference>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public ValuesReference() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual string TypedValue { get { @@ -818,6 +846,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName referenceXName = System.Xml.Linq.XName.Get("reference", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -833,6 +865,12 @@ public virtual System.Uri reference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ValuesReference", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -853,6 +891,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Value | Range)+ + /// </para> + /// </summary> + public partial class AllowedValues : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -866,61 +912,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ValuesReference Load(string xmlFile) { - return XTypedServices.Load<ValuesReference>(xmlFile); - } - - public static ValuesReference Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ValuesReference>(xmlFile); - } - - public static ValuesReference Parse(string xml) { - return XTypedServices.Parse<ValuesReference>(xml); + public static AllowedValues Load(string xmlFile) { + return XTypedServices.Load<AllowedValues>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ValuesReference>(this); + public static AllowedValues Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AllowedValues>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static AllowedValues Parse(string xml) { + return XTypedServices.Parse<AllowedValues>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Value | Range)+ - /// </para> - /// </summary> - public partial class AllowedValues : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Value> ValueField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RangeXName = System.Xml.Linq.XName.Get("Range", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Range> RangeField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AllowedValues", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator AllowedValues(XElement xe) { return XTypedServices.ToXTypedElement<AllowedValues>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AllowedValues() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ValueXName), new NamedContentModelEntity(RangeXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AllowedValues>(this); } /// <summary> @@ -931,6 +938,13 @@ static AllowedValues() { public AllowedValues() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Value> ValueField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -961,6 +975,13 @@ public virtual IList<Value> Value { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RangeXName = System.Xml.Linq.XName.Get("Range", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Range> RangeField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -991,6 +1012,21 @@ public virtual IList<Range> Range { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AllowedValues", "http://www.opengis.net/ows/2.0"); + + static AllowedValues() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ValueXName), new NamedContentModelEntity(RangeXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ValueXName, typeof(Value)); + localElementDictionary.Add(RangeXName, typeof(Range)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -998,6 +1034,13 @@ public virtual IList<Range> Range { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1018,43 +1061,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static AllowedValues Load(string xmlFile) { - return XTypedServices.Load<AllowedValues>(xmlFile); - } - - public static AllowedValues Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AllowedValues>(xmlFile); - } - - public static AllowedValues Parse(string xml) { - return XTypedServices.Parse<AllowedValues>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AllowedValues>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ValueXName, typeof(Value)); - localElementDictionary.Add(RangeXName, typeof(Range)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -1064,44 +1070,34 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class OperationsMetadata : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OperationXName = System.Xml.Linq.XName.Get("Operation", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Operation> OperationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParameterXName = System.Xml.Linq.XName.Get("Parameter", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DomainType> ParameterField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConstraintXName = System.Xml.Linq.XName.Get("Constraint", "http://www.opengis.net/ows/2.0"); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DomainType> ConstraintField; + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedCapabilitiesXName = System.Xml.Linq.XName.Get("ExtendedCapabilities", "http://www.opengis.net/ows/2.0"); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OperationsMetadata", "http://www.opengis.net/ows/2.0"); + public static OperationsMetadata Load(string xmlFile) { + return XTypedServices.Load<OperationsMetadata>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + public static OperationsMetadata Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OperationsMetadata>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public static OperationsMetadata Parse(string xml) { + return XTypedServices.Parse<OperationsMetadata>(xml); + } public static explicit operator OperationsMetadata(XElement xe) { return XTypedServices.ToXTypedElement<OperationsMetadata>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static OperationsMetadata() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(OperationXName), new NamedContentModelEntity(ParameterXName), new NamedContentModelEntity(ConstraintXName), new NamedContentModelEntity(ExtendedCapabilitiesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OperationsMetadata>(this); } /// <summary> @@ -1112,6 +1108,13 @@ static OperationsMetadata() { public OperationsMetadata() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OperationXName = System.Xml.Linq.XName.Get("Operation", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Operation> OperationField; + /// <summary> /// <para> /// Metadata for unordered list of all the (requests @@ -1148,6 +1151,13 @@ public virtual IList<Operation> Operation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParameterXName = System.Xml.Linq.XName.Get("Parameter", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DomainType> ParameterField; + /// <summary> /// <para> /// Optional unordered list of parameter valid domains @@ -1185,6 +1195,13 @@ public virtual IList<DomainType> Parameter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConstraintXName = System.Xml.Linq.XName.Get("Constraint", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DomainType> ConstraintField; + /// <summary> /// <para> /// Optional unordered list of valid domain constraints @@ -1221,6 +1238,10 @@ public virtual IList<DomainType> Constraint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedCapabilitiesXName = System.Xml.Linq.XName.Get("ExtendedCapabilities", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -1232,6 +1253,9 @@ public virtual IList<DomainType> Constraint { public virtual ExtendedCapabilities ExtendedCapabilities { get { XElement x = this.GetElement(ExtendedCapabilitiesXName); + if ((x == null)) { + return null; + } return ((ExtendedCapabilities)(x)); } set { @@ -1239,6 +1263,23 @@ public virtual ExtendedCapabilities ExtendedCapabilities { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OperationsMetadata", "http://www.opengis.net/ows/2.0"); + + static OperationsMetadata() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(OperationXName), new NamedContentModelEntity(ParameterXName), new NamedContentModelEntity(ConstraintXName), new NamedContentModelEntity(ExtendedCapabilitiesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(OperationXName, typeof(Operation)); + localElementDictionary.Add(ParameterXName, typeof(DomainType)); + localElementDictionary.Add(ConstraintXName, typeof(DomainType)); + localElementDictionary.Add(ExtendedCapabilitiesXName, typeof(ExtendedCapabilities)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1246,6 +1287,13 @@ public virtual ExtendedCapabilities ExtendedCapabilities { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1266,6 +1314,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class ExtendedCapabilities : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1279,41 +1330,31 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OperationsMetadata Load(string xmlFile) { - return XTypedServices.Load<OperationsMetadata>(xmlFile); + public static ExtendedCapabilities Load(string xmlFile) { + return XTypedServices.Load<ExtendedCapabilities>(xmlFile); } - public static OperationsMetadata Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OperationsMetadata>(xmlFile); + public static ExtendedCapabilities Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ExtendedCapabilities>(xmlFile); } - public static OperationsMetadata Parse(string xml) { - return XTypedServices.Parse<OperationsMetadata>(xml); + public static ExtendedCapabilities Parse(string xml) { + return XTypedServices.Parse<ExtendedCapabilities>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OperationsMetadata>(this); - } + public static explicit operator ExtendedCapabilities(XElement xe) { return XTypedServices.ToXTypedElement<ExtendedCapabilities>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(OperationXName, typeof(Operation)); - localElementDictionary.Add(ParameterXName, typeof(DomainType)); - localElementDictionary.Add(ConstraintXName, typeof(DomainType)); - localElementDictionary.Add(ExtendedCapabilitiesXName, typeof(ExtendedCapabilities)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ExtendedCapabilities>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public ExtendedCapabilities() { } - } - - public partial class ExtendedCapabilities : XTypedElement, IXMetaData { private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExtendedCapabilities", "http://www.opengis.net/ows/2.0"); - public static explicit operator ExtendedCapabilities(XElement xe) { return XTypedServices.ToXTypedElement<ExtendedCapabilities>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public ExtendedCapabilities() { + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -1336,6 +1377,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (DCP+, Parameter*, Constraint*, Metadata*) + /// </para> + /// </summary> + public partial class Operation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1349,79 +1398,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ExtendedCapabilities Load(string xmlFile) { - return XTypedServices.Load<ExtendedCapabilities>(xmlFile); - } - - public static ExtendedCapabilities Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ExtendedCapabilities>(xmlFile); - } - - public static ExtendedCapabilities Parse(string xml) { - return XTypedServices.Parse<ExtendedCapabilities>(xml); + public static Operation Load(string xmlFile) { + return XTypedServices.Load<Operation>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ExtendedCapabilities>(this); + public static Operation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Operation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Operation Parse(string xml) { + return XTypedServices.Parse<Operation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (DCP+, Parameter*, Constraint*, Metadata*) - /// </para> - /// </summary> - public partial class Operation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DCPXName = System.Xml.Linq.XName.Get("DCP", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DCP> DCPField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParameterXName = System.Xml.Linq.XName.Get("Parameter", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DomainType> ParameterField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConstraintXName = System.Xml.Linq.XName.Get("Constraint", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DomainType> ConstraintField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<Metadata> MetadataField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Operation", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Operation(XElement xe) { return XTypedServices.ToXTypedElement<Operation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Operation() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DCPXName), new NamedContentModelEntity(ParameterXName), new NamedContentModelEntity(ConstraintXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Operation>(this); } /// <summary> @@ -1432,6 +1424,13 @@ static Operation() { public Operation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DCPXName = System.Xml.Linq.XName.Get("DCP", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DCP> DCPField; + /// <summary> /// <para> /// Unordered list of Distributed Computing Platforms @@ -1467,6 +1466,13 @@ public virtual IList<DCP> DCP { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParameterXName = System.Xml.Linq.XName.Get("Parameter", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DomainType> ParameterField; + /// <summary> /// <para> /// Optional unordered list of parameter domains that @@ -1507,11 +1513,18 @@ public virtual IList<DomainType> Parameter { } } - /// <summary> - /// <para> - /// Optional unordered list of valid domain constraints - /// on non-parameter quantities that each apply to this operation. If - /// one of these Constraint elements has the same "name" attribute as + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConstraintXName = System.Xml.Linq.XName.Get("Constraint", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DomainType> ConstraintField; + + /// <summary> + /// <para> + /// Optional unordered list of valid domain constraints + /// on non-parameter quantities that each apply to this operation. If + /// one of these Constraint elements has the same "name" attribute as /// a Constraint element in the OperationsMetadata element, this /// Constraint element shall override the other one for this /// operation. The list of required and optional constraints for this @@ -1547,6 +1560,13 @@ public virtual IList<DomainType> Constraint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<Metadata> MetadataField; + /// <summary> /// <para> /// Optional unordered list of additional metadata @@ -1589,6 +1609,10 @@ public virtual IList<Metadata> Metadata { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Name or identifier of this operation (request) (for @@ -1610,6 +1634,23 @@ public virtual string name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Operation", "http://www.opengis.net/ows/2.0"); + + static Operation() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DCPXName), new NamedContentModelEntity(ParameterXName), new NamedContentModelEntity(ConstraintXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DCPXName, typeof(DCP)); + localElementDictionary.Add(ParameterXName, typeof(DomainType)); + localElementDictionary.Add(ConstraintXName, typeof(DomainType)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1617,6 +1658,13 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1637,6 +1685,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (HTTP) + /// </para> + /// </summary> + public partial class DCP : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1650,58 +1706,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Operation Load(string xmlFile) { - return XTypedServices.Load<Operation>(xmlFile); - } - - public static Operation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Operation>(xmlFile); - } - - public static Operation Parse(string xml) { - return XTypedServices.Parse<Operation>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Operation>(this); + public static DCP Load(string xmlFile) { + return XTypedServices.Load<DCP>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(DCPXName, typeof(DCP)); - localElementDictionary.Add(ParameterXName, typeof(DomainType)); - localElementDictionary.Add(ConstraintXName, typeof(DomainType)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); + public static DCP Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DCP>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DCP Parse(string xml) { + return XTypedServices.Parse<DCP>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (HTTP) - /// </para> - /// </summary> - public partial class DCP : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HTTPXName = System.Xml.Linq.XName.Get("HTTP", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DCP", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DCP(XElement xe) { return XTypedServices.ToXTypedElement<DCP>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DCP() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(HTTPXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DCP>(this); } /// <summary> @@ -1712,9 +1732,9 @@ static DCP() { public DCP() { } - public DCP(HTTP HTTP) { - this.HTTP = HTTP; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HTTPXName = System.Xml.Linq.XName.Get("HTTP", "http://www.opengis.net/ows/2.0"); /// <summary> /// <para> @@ -1727,6 +1747,9 @@ public DCP(HTTP HTTP) { public virtual HTTP HTTP { get { XElement x = this.GetElement(HTTPXName); + if ((x == null)) { + return null; + } return ((HTTP)(x)); } set { @@ -1734,6 +1757,24 @@ public virtual HTTP HTTP { } } + public DCP(HTTP HTTP) { + this.HTTP = HTTP; + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DCP", "http://www.opengis.net/ows/2.0"); + + static DCP() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(HTTPXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(HTTPXName, typeof(HTTP)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1741,6 +1782,13 @@ public virtual HTTP HTTP { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1761,6 +1809,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Get | Post)+ + /// </para> + /// </summary> + public partial class HTTP : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1774,65 +1830,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DCP Load(string xmlFile) { - return XTypedServices.Load<DCP>(xmlFile); - } - - public static DCP Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DCP>(xmlFile); - } - - public static DCP Parse(string xml) { - return XTypedServices.Parse<DCP>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DCP>(this); + public static HTTP Load(string xmlFile) { + return XTypedServices.Load<HTTP>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(HTTPXName, typeof(HTTP)); + public static HTTP Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<HTTP>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static HTTP Parse(string xml) { + return XTypedServices.Parse<HTTP>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Get | Post)+ - /// </para> - /// </summary> - public partial class HTTP : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GetXName = System.Xml.Linq.XName.Get("Get", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RequestMethodType> GetField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PostXName = System.Xml.Linq.XName.Get("Post", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RequestMethodType> PostField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HTTP", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator HTTP(XElement xe) { return XTypedServices.ToXTypedElement<HTTP>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static HTTP() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(GetXName), new NamedContentModelEntity(PostXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<HTTP>(this); } /// <summary> @@ -1843,6 +1856,13 @@ static HTTP() { public HTTP() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GetXName = System.Xml.Linq.XName.Get("Get", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RequestMethodType> GetField; + /// <summary> /// <para> /// Connect point URL prefix and any constraints for @@ -1878,6 +1898,13 @@ public virtual IList<RequestMethodType> Get { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PostXName = System.Xml.Linq.XName.Get("Post", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RequestMethodType> PostField; + /// <summary> /// <para> /// Connect point URL and any constraints for the HTTP @@ -1912,6 +1939,21 @@ public virtual IList<RequestMethodType> Post { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HTTP", "http://www.opengis.net/ows/2.0"); + + static HTTP() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(GetXName), new NamedContentModelEntity(PostXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(GetXName, typeof(RequestMethodType)); + localElementDictionary.Add(PostXName, typeof(RequestMethodType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1919,6 +1961,13 @@ public virtual IList<RequestMethodType> Post { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1939,6 +1988,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Resource : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1952,39 +2004,31 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static HTTP Load(string xmlFile) { - return XTypedServices.Load<HTTP>(xmlFile); + public static Resource Load(string xmlFile) { + return XTypedServices.Load<Resource>(xmlFile); } - public static HTTP Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<HTTP>(xmlFile); + public static Resource Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Resource>(xmlFile); } - public static HTTP Parse(string xml) { - return XTypedServices.Parse<HTTP>(xml); + public static Resource Parse(string xml) { + return XTypedServices.Parse<Resource>(xml); } + public static explicit operator Resource(XElement xe) { return XTypedServices.ToXTypedElement<Resource>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<HTTP>(this); + return XTypedServices.CloneXTypedElement<Resource>(this); } - private static void BuildElementDictionary() { - localElementDictionary.Add(GetXName, typeof(RequestMethodType)); - localElementDictionary.Add(PostXName, typeof(RequestMethodType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public Resource() { } - } - - public partial class Resource : XTypedElement, IXMetaData { private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Resource", "http://www.opengis.net/ows/2.0"); - public static explicit operator Resource(XElement xe) { return XTypedServices.ToXTypedElement<Resource>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Resource() { + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -2007,6 +2051,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Exception+) + /// </para> + /// </summary> + public partial class ExceptionReport : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -2020,62 +2072,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Resource Load(string xmlFile) { - return XTypedServices.Load<Resource>(xmlFile); - } - - public static Resource Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Resource>(xmlFile); - } - - public static Resource Parse(string xml) { - return XTypedServices.Parse<Resource>(xml); + public static ExceptionReport Load(string xmlFile) { + return XTypedServices.Load<ExceptionReport>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Resource>(this); + public static ExceptionReport Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ExceptionReport>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static ExceptionReport Parse(string xml) { + return XTypedServices.Parse<ExceptionReport>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Exception+) - /// </para> - /// </summary> - public partial class ExceptionReport : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExceptionXName = System.Xml.Linq.XName.Get("Exception", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Exception> ExceptionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName langXName = System.Xml.Linq.XName.Get("lang", "http://www.w3.org/XML/1998/namespace"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExceptionReport", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ExceptionReport(XElement xe) { return XTypedServices.ToXTypedElement<ExceptionReport>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ExceptionReport() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ExceptionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ExceptionReport>(this); } /// <summary> @@ -2086,6 +2098,13 @@ static ExceptionReport() { public ExceptionReport() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExceptionXName = System.Xml.Linq.XName.Get("Exception", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Exception> ExceptionField; + /// <summary> /// <para> /// Unordered list of one or more Exception elements @@ -2122,6 +2141,10 @@ public virtual IList<Exception> Exception { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Specification version for OWS operation. The string @@ -2149,6 +2172,10 @@ public virtual string version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName langXName = System.Xml.Linq.XName.Get("lang", "http://www.w3.org/XML/1998/namespace"); + /// <summary> /// <para> /// Identifier of the language used by all included @@ -2163,13 +2190,30 @@ public virtual string version { public virtual object lang { get { XAttribute x = this.Attribute(langXName); - return XTypedServices.ParseUnionValue(x, lang.TypeDefinition); + if ((x == null)) { + return null; + } + return XTypedServices.ParseUnionValue(x, global::OpenGis.ThreeDps.Xml1998.lang.TypeDefinition); } set { - this.SetUnionAttribute(value, "lang", this, langXName, lang.TypeDefinition); + this.SetUnionAttribute(value, "lang", this, langXName, global::OpenGis.ThreeDps.Xml1998.lang.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExceptionReport", "http://www.opengis.net/ows/2.0"); + + static ExceptionReport() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ExceptionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ExceptionXName, typeof(Exception)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2177,6 +2221,13 @@ public virtual object lang { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2197,42 +2248,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static ExceptionReport Load(string xmlFile) { - return XTypedServices.Load<ExceptionReport>(xmlFile); - } - - public static ExceptionReport Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ExceptionReport>(xmlFile); - } - - public static ExceptionReport Parse(string xml) { - return XTypedServices.Parse<ExceptionReport>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ExceptionReport>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ExceptionXName, typeof(Exception)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -2242,30 +2257,22 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class AdditionalParameter : global::OpenGis.Ows.AbstractMetaData, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<XTypedElement> ValueField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"); + public new static AdditionalParameter Load(string xmlFile) { + return XTypedServices.Load<AdditionalParameter>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + public static AdditionalParameter Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AdditionalParameter>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public new static AdditionalParameter Parse(string xml) { + return XTypedServices.Parse<AdditionalParameter>(xml); + } public static explicit operator AdditionalParameter(XElement xe) { return XTypedServices.ToXTypedElement<AdditionalParameter>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AdditionalParameter() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(NameXName), new NamedContentModelEntity(ValueXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AdditionalParameter>(this); } /// <summary> @@ -2276,6 +2283,10 @@ static AdditionalParameter() { public AdditionalParameter() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Name or identifier of this AdditionalParameter, @@ -2298,6 +2309,13 @@ public virtual CodeType Name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<XTypedElement> ValueField; + /// <summary> /// <para> /// Unordered list of one or more values of this @@ -2332,6 +2350,21 @@ public virtual IList<XTypedElement> Value { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"); + + static AdditionalParameter() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(NameXName), new NamedContentModelEntity(ValueXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(NameXName, typeof(CodeType)); + localElementDictionary.Add(ValueXName, typeof(XTypedElement)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2339,6 +2372,13 @@ public virtual IList<XTypedElement> Value { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2359,31 +2399,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public new static AdditionalParameter Load(string xmlFile) { - return XTypedServices.Load<AdditionalParameter>(xmlFile); - } - - public static AdditionalParameter Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AdditionalParameter>(xmlFile); - } - - public new static AdditionalParameter Parse(string xml) { - return XTypedServices.Parse<AdditionalParameter>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AdditionalParameter>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(NameXName, typeof(CodeType)); - localElementDictionary.Add(ValueXName, typeof(XTypedElement)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -2394,12 +2409,12 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public sealed class MimeType { + private MimeType() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(8)), null, 0, 0, null, null, 0, null, null, 0, new string[] { "(application|audio|image|text|video|message|multipart|model)/.+(;\\s*.+=.+)*"}, 0, XmlSchemaWhiteSpace.Preserve)); - - private MimeType() { - } } /// <summary> @@ -2418,12 +2433,12 @@ private MimeType() { /// </summary> public sealed class VersionType { + private VersionType() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(8)), null, 0, 0, null, null, 0, null, null, 0, new string[] { "\\d+\\.\\d?\\d\\.\\d?\\d"}, 0, XmlSchemaWhiteSpace.Preserve)); - - private VersionType() { - } } /// <summary> @@ -2444,56 +2459,11 @@ private VersionType() { /// </summary> public partial class MetadataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AbstractMetaDataXName = System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + public static explicit operator MetadataType(XElement xe) { return XTypedServices.ToXTypedElement<MetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName aboutXName = System.Xml.Linq.XName.Get("about", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MetadataType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator MetadataType(XElement xe) { return XTypedServices.ToXTypedElement<MetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static MetadataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"))); - } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<MetadataType>(this); + } /// <summary> /// <para> @@ -2514,6 +2484,10 @@ static MetadataType() { public MetadataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AbstractMetaDataXName = System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -2528,6 +2502,9 @@ public MetadataType() { public virtual AbstractMetaData AbstractMetaData { get { XTypedElement x = XTypedServices.ToSubstitutedXTypedElement(this, LinqToXsdTypeManager.Instance, System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0")); + if ((x == null)) { + return null; + } return ((AbstractMetaData)(x)); } set { @@ -2535,6 +2512,10 @@ public virtual AbstractMetaData AbstractMetaData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -2546,13 +2527,22 @@ public virtual OpenGis.ThreeDps.Xlink.typeType? type { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -2561,6 +2551,9 @@ public virtual OpenGis.ThreeDps.Xlink.typeType? type { public virtual System.Uri href { get { XAttribute x = this.Attribute(hrefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -2568,6 +2561,10 @@ public virtual System.Uri href { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -2576,6 +2573,9 @@ public virtual System.Uri href { public virtual System.Uri role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -2583,6 +2583,10 @@ public virtual System.Uri role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -2591,6 +2595,9 @@ public virtual System.Uri role { public virtual System.Uri arcrole { get { XAttribute x = this.Attribute(arcroleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -2598,6 +2605,10 @@ public virtual System.Uri arcrole { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -2606,6 +2617,9 @@ public virtual System.Uri arcrole { public virtual string title { get { XAttribute x = this.Attribute(titleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2613,21 +2627,37 @@ public virtual string title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { XAttribute x = this.Attribute(showXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if ((x == null)) { + return null; + } + return ((OpenGis.ThreeDps.Xlink.showType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.showType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(showXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(showXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(showXName, value.ToString(), "show", global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -2639,13 +2669,22 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(actuateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(actuateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(actuateXName, value.ToString(), "actuate", global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName aboutXName = System.Xml.Linq.XName.Get("about", ""); + /// <summary> /// <para> /// Optional reference to the aspect of the element which @@ -2659,6 +2698,9 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { public virtual System.Uri about { get { XAttribute x = this.Attribute(aboutXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -2666,6 +2708,20 @@ public virtual System.Uri about { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MetadataType", "http://www.opengis.net/ows/2.0"); + + static MetadataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AbstractMetaDataXName, typeof(AbstractMetaData)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2673,6 +2729,13 @@ public virtual System.Uri about { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2693,18 +2756,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<MetadataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AbstractMetaDataXName, typeof(AbstractMetaData)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -2723,35 +2774,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class BoundingBoxType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LowerCornerXName = System.Xml.Linq.XName.Get("LowerCorner", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UpperCornerXName = System.Xml.Linq.XName.Get("UpperCorner", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName crsXName = System.Xml.Linq.XName.Get("crs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dimensionsXName = System.Xml.Linq.XName.Get("dimensions", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BoundingBoxType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator BoundingBoxType(XElement xe) { return XTypedServices.ToXTypedElement<BoundingBoxType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static BoundingBoxType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LowerCornerXName), new NamedContentModelEntity(UpperCornerXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<BoundingBoxType>(this); } /// <summary> @@ -2771,6 +2797,10 @@ static BoundingBoxType() { public BoundingBoxType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LowerCornerXName = System.Xml.Linq.XName.Get("LowerCorner", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Position of the bounding box corner at which the @@ -2797,6 +2827,10 @@ public virtual IList<double> LowerCorner { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UpperCornerXName = System.Xml.Linq.XName.Get("UpperCorner", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Position of the bounding box corner at which the @@ -2823,6 +2857,10 @@ public virtual IList<double> UpperCorner { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName crsXName = System.Xml.Linq.XName.Get("crs", ""); + /// <summary> /// <para> /// Usually references the definition of a CRS, as @@ -2843,6 +2881,9 @@ public virtual IList<double> UpperCorner { public virtual System.Uri crs { get { XAttribute x = this.Attribute(crsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -2850,6 +2891,10 @@ public virtual System.Uri crs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dimensionsXName = System.Xml.Linq.XName.Get("dimensions", ""); + /// <summary> /// <para> /// The number of dimensions in this CRS (the length of a @@ -2874,6 +2919,21 @@ public virtual System.Decimal? dimensions { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BoundingBoxType", "http://www.opengis.net/ows/2.0"); + + static BoundingBoxType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LowerCornerXName), new NamedContentModelEntity(UpperCornerXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LowerCornerXName, typeof(double)); + localElementDictionary.Add(UpperCornerXName, typeof(double)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2881,6 +2941,13 @@ public virtual System.Decimal? dimensions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2901,19 +2968,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<BoundingBoxType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(LowerCornerXName, typeof(double)); - localElementDictionary.Add(UpperCornerXName, typeof(double)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -2940,11 +2994,11 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public sealed class PositionType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - private PositionType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); } /// <summary> @@ -2962,10 +3016,12 @@ private PositionType() { /// </summary> public partial class WGS84BoundingBoxType : global::OpenGis.Ows.BoundingBoxType, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WGS84BoundingBoxType", "http://www.opengis.net/ows/2.0"); - public static explicit operator WGS84BoundingBoxType(XElement xe) { return XTypedServices.ToXTypedElement<WGS84BoundingBoxType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<WGS84BoundingBoxType>(this); + } + /// <summary> /// <para> /// XML encoded minimum rectangular bounding box (or region) @@ -2982,6 +3038,8 @@ public partial class WGS84BoundingBoxType : global::OpenGis.Ows.BoundingBoxType, public WGS84BoundingBoxType() { } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WGS84BoundingBoxType", "http://www.opengis.net/ows/2.0"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3002,10 +3060,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<WGS84BoundingBoxType>(this); - } } /// <summary> @@ -3028,11 +3082,11 @@ public override XTypedElement Clone() { /// </summary> public sealed class PositionType2D { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(1)), null, 0, 2, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - private PositionType2D() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(1)), null, 0, 2, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); } /// <summary> @@ -3056,40 +3110,10 @@ private PositionType2D() { /// </summary> public partial class DescriptionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TitleXName = System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Title> TitleField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AbstractXName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Abstract> AbstractField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName KeywordsXName = System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Keywords> KeywordsField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DescriptionType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator DescriptionType(XElement xe) { return XTypedServices.ToXTypedElement<DescriptionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DescriptionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DescriptionType>(this); } /// <summary> @@ -3114,8 +3138,15 @@ static DescriptionType() { public DescriptionType() { } - /// <summary> - /// <para> + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TitleXName = System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Title> TitleField; + + /// <summary> + /// <para> /// Occurrence: optional, repeating /// </para> /// <para> @@ -3144,6 +3175,13 @@ public virtual IList<Title> Title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AbstractXName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Abstract> AbstractField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3174,6 +3212,13 @@ public virtual IList<Abstract> Abstract { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName KeywordsXName = System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Keywords> KeywordsField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3204,6 +3249,22 @@ public virtual IList<Keywords> Keywords { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DescriptionType", "http://www.opengis.net/ows/2.0"); + + static DescriptionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(Keywords)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3211,6 +3272,13 @@ public virtual IList<Keywords> Keywords { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3231,20 +3299,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DescriptionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(Keywords)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -3258,30 +3312,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class BasicIdentificationType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<Metadata> MetadataField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BasicIdentificationType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator BasicIdentificationType(XElement xe) { return XTypedServices.ToXTypedElement<BasicIdentificationType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static BasicIdentificationType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<BasicIdentificationType>(this); } /// <summary> @@ -3296,6 +3330,10 @@ static BasicIdentificationType() { public BasicIdentificationType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Optional unique identifier or name of this @@ -3311,6 +3349,9 @@ public BasicIdentificationType() { public virtual Identifier Identifier { get { XElement x = this.GetElement(IdentifierXName); + if ((x == null)) { + return null; + } return ((Identifier)(x)); } set { @@ -3318,6 +3359,13 @@ public virtual Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<Metadata> MetadataField; + /// <summary> /// <para> /// Optional unordered list of additional metadata @@ -3357,6 +3405,24 @@ public virtual IList<Metadata> Metadata { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BasicIdentificationType", "http://www.opengis.net/ows/2.0"); + + static BasicIdentificationType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(Identifier)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3364,6 +3430,13 @@ public virtual IList<Metadata> Metadata { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3384,22 +3457,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<BasicIdentificationType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(Identifier)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -3416,40 +3473,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class IdentificationType : global::OpenGis.Ows.BasicIdentificationType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<BoundingBox> BoundingBoxField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<OutputFormat> OutputFormatField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableCRSXName = System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<AvailableCRS> AvailableCRSField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IdentificationType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator IdentificationType(XElement xe) { return XTypedServices.ToXTypedElement<IdentificationType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static IdentificationType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0")), new NamedContentModelEntity(OutputFormatXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("SupportedCRS", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<IdentificationType>(this); } /// <summary> @@ -3467,6 +3494,13 @@ static IdentificationType() { public IdentificationType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<BoundingBox> BoundingBoxField; + /// <summary> /// <para> /// Unordered list of zero or more bounding boxes @@ -3505,6 +3539,13 @@ public virtual IList<BoundingBox> BoundingBox { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<OutputFormat> OutputFormatField; + /// <summary> /// <para> /// Unordered list of zero or more references to data @@ -3539,6 +3580,13 @@ public virtual IList<OutputFormat> OutputFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableCRSXName = System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<AvailableCRS> AvailableCRSField; + /// <summary> /// <para> /// Unordered list of zero or more available @@ -3576,6 +3624,27 @@ public virtual IList<AvailableCRS> AvailableCRS { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IdentificationType", "http://www.opengis.net/ows/2.0"); + + static IdentificationType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0")), new NamedContentModelEntity(OutputFormatXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("SupportedCRS", "http://www.opengis.net/ows/2.0"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(Identifier)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + localElementDictionary.Add(BoundingBoxXName, typeof(BoundingBox)); + localElementDictionary.Add(OutputFormatXName, typeof(OutputFormat)); + localElementDictionary.Add(AvailableCRSXName, typeof(AvailableCRS)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3583,6 +3652,13 @@ public virtual IList<AvailableCRS> AvailableCRS { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3603,25 +3679,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<IdentificationType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(Identifier)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - localElementDictionary.Add(BoundingBoxXName, typeof(BoundingBox)); - localElementDictionary.Add(OutputFormatXName, typeof(OutputFormat)); - localElementDictionary.Add(AvailableCRSXName, typeof(AvailableCRS)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -3635,23 +3692,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class DomainType : global::OpenGis.Ows.UnNamedDomainType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DomainType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator DomainType(XElement xe) { return XTypedServices.ToXTypedElement<DomainType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DomainType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(AllowedValuesXName), new NamedContentModelEntity(AnyValueXName), new NamedContentModelEntity(NoValuesXName), new NamedContentModelEntity(ValuesReferenceXName)), new NamedContentModelEntity(DefaultValueXName), new NamedContentModelEntity(MeaningXName), new NamedContentModelEntity(DataTypeXName), new ChoiceContentModelEntity(new NamedContentModelEntity(UOMXName), new NamedContentModelEntity(ReferenceSystemXName)), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DomainType>(this); } /// <summary> @@ -3666,6 +3710,10 @@ static DomainType() { public DomainType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Name or identifier of this @@ -3685,37 +3733,15 @@ public virtual string name { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DomainType", "http://www.opengis.net/ows/2.0"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Fragment; - } + static DomainType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(AllowedValuesXName), new NamedContentModelEntity(AnyValueXName), new NamedContentModelEntity(NoValuesXName), new NamedContentModelEntity(ValuesReferenceXName)), new NamedContentModelEntity(DefaultValueXName), new NamedContentModelEntity(MeaningXName), new NamedContentModelEntity(DataTypeXName), new ChoiceContentModelEntity(new NamedContentModelEntity(UOMXName), new NamedContentModelEntity(ReferenceSystemXName)), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DomainType>(this); - } + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); private static void BuildElementDictionary() { localElementDictionary.Add(AllowedValuesXName, typeof(AllowedValues)); @@ -3730,9 +3756,40 @@ private static void BuildElementDictionary() { localElementDictionary.Add(MetadataXName, typeof(Metadata)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + ContentModelEntity IXMetaData.GetContentModel() { return contentModel; } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Fragment; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } } /// <summary> @@ -3747,62 +3804,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class UnNamedDomainType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AllowedValuesXName = System.Xml.Linq.XName.Get("AllowedValues", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AnyValueXName = System.Xml.Linq.XName.Get("AnyValue", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NoValuesXName = System.Xml.Linq.XName.Get("NoValues", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ValuesReferenceXName = System.Xml.Linq.XName.Get("ValuesReference", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DefaultValueXName = System.Xml.Linq.XName.Get("DefaultValue", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MeaningXName = System.Xml.Linq.XName.Get("Meaning", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UOMXName = System.Xml.Linq.XName.Get("UOM", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReferenceSystemXName = System.Xml.Linq.XName.Get("ReferenceSystem", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<Metadata> MetadataField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UnNamedDomainType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator UnNamedDomainType(XElement xe) { return XTypedServices.ToXTypedElement<UnNamedDomainType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static UnNamedDomainType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(AllowedValuesXName), new NamedContentModelEntity(AnyValueXName), new NamedContentModelEntity(NoValuesXName), new NamedContentModelEntity(ValuesReferenceXName)), new NamedContentModelEntity(DefaultValueXName), new NamedContentModelEntity(MeaningXName), new NamedContentModelEntity(DataTypeXName), new ChoiceContentModelEntity(new NamedContentModelEntity(UOMXName), new NamedContentModelEntity(ReferenceSystemXName)), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<UnNamedDomainType>(this); } /// <summary> @@ -3818,6 +3823,10 @@ static UnNamedDomainType() { public UnNamedDomainType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AllowedValuesXName = System.Xml.Linq.XName.Get("AllowedValues", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -3832,6 +3841,9 @@ public UnNamedDomainType() { public virtual AllowedValues AllowedValues { get { XElement x = this.GetElement(AllowedValuesXName); + if ((x == null)) { + return null; + } return ((AllowedValues)(x)); } set { @@ -3839,6 +3851,10 @@ public virtual AllowedValues AllowedValues { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AnyValueXName = System.Xml.Linq.XName.Get("AnyValue", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -3853,6 +3869,9 @@ public virtual AllowedValues AllowedValues { public virtual AnyValue AnyValue { get { XElement x = this.GetElement(AnyValueXName); + if ((x == null)) { + return null; + } return ((AnyValue)(x)); } set { @@ -3860,6 +3879,10 @@ public virtual AnyValue AnyValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NoValuesXName = System.Xml.Linq.XName.Get("NoValues", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -3874,6 +3897,9 @@ public virtual AnyValue AnyValue { public virtual NoValues NoValues { get { XElement x = this.GetElement(NoValuesXName); + if ((x == null)) { + return null; + } return ((NoValues)(x)); } set { @@ -3881,6 +3907,10 @@ public virtual NoValues NoValues { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ValuesReferenceXName = System.Xml.Linq.XName.Get("ValuesReference", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -3895,6 +3925,9 @@ public virtual NoValues NoValues { public virtual ValuesReference ValuesReference { get { XElement x = this.GetElement(ValuesReferenceXName); + if ((x == null)) { + return null; + } return ((ValuesReference)(x)); } set { @@ -3902,6 +3935,10 @@ public virtual ValuesReference ValuesReference { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DefaultValueXName = System.Xml.Linq.XName.Get("DefaultValue", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Optional default value for this quantity, which @@ -3918,6 +3955,9 @@ public virtual ValuesReference ValuesReference { public virtual DefaultValue DefaultValue { get { XElement x = this.GetElement(DefaultValueXName); + if ((x == null)) { + return null; + } return ((DefaultValue)(x)); } set { @@ -3925,6 +3965,10 @@ public virtual DefaultValue DefaultValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MeaningXName = System.Xml.Linq.XName.Get("Meaning", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Meaning metadata should be referenced or included for @@ -3940,6 +3984,9 @@ public virtual DefaultValue DefaultValue { public virtual Meaning Meaning { get { XElement x = this.GetElement(MeaningXName); + if ((x == null)) { + return null; + } return ((Meaning)(x)); } set { @@ -3947,6 +3994,10 @@ public virtual Meaning Meaning { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// This data type metadata should be referenced or @@ -3962,6 +4013,9 @@ public virtual Meaning Meaning { public virtual DataType DataType { get { XElement x = this.GetElement(DataTypeXName); + if ((x == null)) { + return null; + } return ((DataType)(x)); } set { @@ -3969,6 +4023,10 @@ public virtual DataType DataType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UOMXName = System.Xml.Linq.XName.Get("UOM", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Identifier of unit of measure of this set of values. @@ -3988,6 +4046,9 @@ public virtual DataType DataType { public virtual UOM UOM { get { XElement x = this.GetElement(UOMXName); + if ((x == null)) { + return null; + } return ((UOM)(x)); } set { @@ -3995,6 +4056,10 @@ public virtual UOM UOM { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReferenceSystemXName = System.Xml.Linq.XName.Get("ReferenceSystem", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Identifier of reference system used by this set of @@ -4014,6 +4079,9 @@ public virtual UOM UOM { public virtual ReferenceSystem ReferenceSystem { get { XElement x = this.GetElement(ReferenceSystemXName); + if ((x == null)) { + return null; + } return ((ReferenceSystem)(x)); } set { @@ -4021,6 +4089,13 @@ public virtual ReferenceSystem ReferenceSystem { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<Metadata> MetadataField; + /// <summary> /// <para> /// Optional unordered list of other metadata about this @@ -4060,6 +4135,29 @@ public virtual IList<Metadata> Metadata { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UnNamedDomainType", "http://www.opengis.net/ows/2.0"); + + static UnNamedDomainType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(AllowedValuesXName), new NamedContentModelEntity(AnyValueXName), new NamedContentModelEntity(NoValuesXName), new NamedContentModelEntity(ValuesReferenceXName)), new NamedContentModelEntity(DefaultValueXName), new NamedContentModelEntity(MeaningXName), new NamedContentModelEntity(DataTypeXName), new ChoiceContentModelEntity(new NamedContentModelEntity(UOMXName), new NamedContentModelEntity(ReferenceSystemXName)), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AllowedValuesXName, typeof(AllowedValues)); + localElementDictionary.Add(AnyValueXName, typeof(AnyValue)); + localElementDictionary.Add(NoValuesXName, typeof(NoValues)); + localElementDictionary.Add(ValuesReferenceXName, typeof(ValuesReference)); + localElementDictionary.Add(DefaultValueXName, typeof(DefaultValue)); + localElementDictionary.Add(MeaningXName, typeof(Meaning)); + localElementDictionary.Add(DataTypeXName, typeof(DataType)); + localElementDictionary.Add(UOMXName, typeof(UOM)); + localElementDictionary.Add(ReferenceSystemXName, typeof(ReferenceSystem)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -4067,6 +4165,13 @@ public virtual IList<Metadata> Metadata { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4087,27 +4192,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<UnNamedDomainType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AllowedValuesXName, typeof(AllowedValues)); - localElementDictionary.Add(AnyValueXName, typeof(AnyValue)); - localElementDictionary.Add(NoValuesXName, typeof(NoValues)); - localElementDictionary.Add(ValuesReferenceXName, typeof(ValuesReference)); - localElementDictionary.Add(DefaultValueXName, typeof(DefaultValue)); - localElementDictionary.Add(MeaningXName, typeof(Meaning)); - localElementDictionary.Add(DataTypeXName, typeof(DataType)); - localElementDictionary.Add(UOMXName, typeof(UOM)); - localElementDictionary.Add(ReferenceSystemXName, typeof(ReferenceSystem)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -4119,14 +4203,12 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ValueType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ValueType", "http://www.opengis.net/ows/2.0"); - public static explicit operator ValueType(XElement xe) { return XTypedServices.ToXTypedElement<ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ValueType>(this); + } + /// <summary> /// <para> /// A single value, encoded as a string. This type can be @@ -4137,6 +4219,10 @@ public partial class ValueType : XTypedElement, IXMetaData { public ValueType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -4147,6 +4233,12 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ValueType", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4167,14 +4259,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ValueType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -4192,40 +4276,11 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class RangeType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MinimumValueXName = System.Xml.Linq.XName.Get("MinimumValue", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MaximumValueXName = System.Xml.Linq.XName.Get("MaximumValue", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpacingXName = System.Xml.Linq.XName.Get("Spacing", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rangeClosureXName = System.Xml.Linq.XName.Get("rangeClosure", "http://www.opengis.net/ows/2.0"); + public static explicit operator RangeType(XElement xe) { return XTypedServices.ToXTypedElement<RangeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static IList<string> rangeClosureDefaultValue = new string[] { - "closed"}; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RangeType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator RangeType(XElement xe) { return XTypedServices.ToXTypedElement<RangeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static RangeType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(MinimumValueXName), new NamedContentModelEntity(MaximumValueXName), new NamedContentModelEntity(SpacingXName)); - } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RangeType>(this); + } /// <summary> /// <para> @@ -4243,6 +4298,10 @@ static RangeType() { public RangeType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MinimumValueXName = System.Xml.Linq.XName.Get("MinimumValue", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -4254,6 +4313,9 @@ public RangeType() { public virtual MinimumValue MinimumValue { get { XElement x = this.GetElement(MinimumValueXName); + if ((x == null)) { + return null; + } return ((MinimumValue)(x)); } set { @@ -4261,6 +4323,10 @@ public virtual MinimumValue MinimumValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MaximumValueXName = System.Xml.Linq.XName.Get("MaximumValue", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -4272,6 +4338,9 @@ public virtual MinimumValue MinimumValue { public virtual MaximumValue MaximumValue { get { XElement x = this.GetElement(MaximumValueXName); + if ((x == null)) { + return null; + } return ((MaximumValue)(x)); } set { @@ -4279,6 +4348,10 @@ public virtual MaximumValue MaximumValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpacingXName = System.Xml.Linq.XName.Get("Spacing", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Shall be included when the allowed values are NOT @@ -4295,6 +4368,9 @@ public virtual MaximumValue MaximumValue { public virtual Spacing Spacing { get { XElement x = this.GetElement(SpacingXName); + if ((x == null)) { + return null; + } return ((Spacing)(x)); } set { @@ -4302,6 +4378,14 @@ public virtual Spacing Spacing { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rangeClosureXName = System.Xml.Linq.XName.Get("rangeClosure", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static IList<string> rangeClosureDefaultValue = new string[] { + "closed"}; + /// <summary> /// <para> /// Shall be included unless the default value @@ -4314,13 +4398,32 @@ public virtual Spacing Spacing { public virtual IList<string> rangeClosure { get { XAttribute x = this.Attribute(rangeClosureXName); - return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype, rangeClosureDefaultValue); + if ((x == null)) { + return rangeClosureDefaultValue; + } + return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype); } set { this.SetListAttribute(rangeClosureXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RangeType", "http://www.opengis.net/ows/2.0"); + + static RangeType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(MinimumValueXName), new NamedContentModelEntity(MaximumValueXName), new NamedContentModelEntity(SpacingXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(MinimumValueXName, typeof(MinimumValue)); + localElementDictionary.Add(MaximumValueXName, typeof(MaximumValue)); + localElementDictionary.Add(SpacingXName, typeof(Spacing)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -4328,6 +4431,13 @@ public virtual IList<string> rangeClosure { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4348,20 +4458,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RangeType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(MinimumValueXName, typeof(MinimumValue)); - localElementDictionary.Add(MaximumValueXName, typeof(MaximumValue)); - localElementDictionary.Add(SpacingXName, typeof(Spacing)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -4373,18 +4469,12 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class DomainMetadataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName referenceXName = System.Xml.Linq.XName.Get("reference", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DomainMetadataType", "http://www.opengis.net/ows/2.0"); - public static explicit operator DomainMetadataType(XElement xe) { return XTypedServices.ToXTypedElement<DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DomainMetadataType>(this); + } + /// <summary> /// <para> /// References metadata about a quantity, and provides a name @@ -4395,6 +4485,10 @@ public partial class DomainMetadataType : XTypedElement, IXMetaData { public DomainMetadataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -4405,6 +4499,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName referenceXName = System.Xml.Linq.XName.Get("reference", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -4413,6 +4511,9 @@ public virtual string TypedValue { public virtual System.Uri reference { get { XAttribute x = this.Attribute(referenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -4420,6 +4521,12 @@ public virtual System.Uri reference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DomainMetadataType", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4440,14 +4547,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DomainMetadataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -4464,26 +4563,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class RequestMethodType : global::OpenGis.Ows.OnlineResourceType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConstraintXName = System.Xml.Linq.XName.Get("Constraint", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DomainType> ConstraintField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RequestMethodType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator RequestMethodType(XElement xe) { return XTypedServices.ToXTypedElement<RequestMethodType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static RequestMethodType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ConstraintXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RequestMethodType>(this); } /// <summary> @@ -4501,6 +4584,13 @@ static RequestMethodType() { public RequestMethodType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConstraintXName = System.Xml.Linq.XName.Get("Constraint", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DomainType> ConstraintField; + /// <summary> /// <para> /// Optional unordered list of valid domain @@ -4542,6 +4632,20 @@ public virtual IList<DomainType> Constraint { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RequestMethodType", "http://www.opengis.net/ows/2.0"); + + static RequestMethodType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ConstraintXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ConstraintXName, typeof(DomainType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -4549,6 +4653,13 @@ public virtual IList<DomainType> Constraint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4569,18 +4680,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RequestMethodType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ConstraintXName, typeof(DomainType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -4606,43 +4705,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class CapabilitiesBaseType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServiceIdentificationXName = System.Xml.Linq.XName.Get("ServiceIdentification", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServiceProviderXName = System.Xml.Linq.XName.Get("ServiceProvider", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OperationsMetadataXName = System.Xml.Linq.XName.Get("OperationsMetadata", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LanguagesXName = System.Xml.Linq.XName.Get("Languages", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName updateSequenceXName = System.Xml.Linq.XName.Get("updateSequence", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CapabilitiesBaseType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator CapabilitiesBaseType(XElement xe) { return XTypedServices.ToXTypedElement<CapabilitiesBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CapabilitiesBaseType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ServiceIdentificationXName), new NamedContentModelEntity(ServiceProviderXName), new NamedContentModelEntity(OperationsMetadataXName), new NamedContentModelEntity(LanguagesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CapabilitiesBaseType>(this); } /// <summary> @@ -4669,6 +4735,10 @@ static CapabilitiesBaseType() { public CapabilitiesBaseType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServiceIdentificationXName = System.Xml.Linq.XName.Get("ServiceIdentification", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -4680,6 +4750,9 @@ public CapabilitiesBaseType() { public virtual ServiceIdentification ServiceIdentification { get { XElement x = this.GetElement(ServiceIdentificationXName); + if ((x == null)) { + return null; + } return ((ServiceIdentification)(x)); } set { @@ -4687,6 +4760,10 @@ public virtual ServiceIdentification ServiceIdentification { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServiceProviderXName = System.Xml.Linq.XName.Get("ServiceProvider", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -4698,6 +4775,9 @@ public virtual ServiceIdentification ServiceIdentification { public virtual ServiceProvider ServiceProvider { get { XElement x = this.GetElement(ServiceProviderXName); + if ((x == null)) { + return null; + } return ((ServiceProvider)(x)); } set { @@ -4705,6 +4785,10 @@ public virtual ServiceProvider ServiceProvider { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OperationsMetadataXName = System.Xml.Linq.XName.Get("OperationsMetadata", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -4716,6 +4800,9 @@ public virtual ServiceProvider ServiceProvider { public virtual OperationsMetadata OperationsMetadata { get { XElement x = this.GetElement(OperationsMetadataXName); + if ((x == null)) { + return null; + } return ((OperationsMetadata)(x)); } set { @@ -4723,6 +4810,10 @@ public virtual OperationsMetadata OperationsMetadata { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LanguagesXName = System.Xml.Linq.XName.Get("Languages", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// The list of languages that this service is able to @@ -4746,6 +4837,9 @@ public virtual OperationsMetadata OperationsMetadata { public virtual LanguagesLocalType Languages { get { XElement x = this.GetElement(LanguagesXName); + if ((x == null)) { + return null; + } return ((LanguagesLocalType)(x)); } set { @@ -4753,6 +4847,10 @@ public virtual LanguagesLocalType Languages { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4768,6 +4866,10 @@ public virtual string version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName updateSequenceXName = System.Xml.Linq.XName.Get("updateSequence", ""); + /// <summary> /// <para> /// Service metadata document version, having values that @@ -4783,6 +4885,9 @@ public virtual string version { public virtual string updateSequence { get { XAttribute x = this.Attribute(updateSequenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4790,6 +4895,23 @@ public virtual string updateSequence { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CapabilitiesBaseType", "http://www.opengis.net/ows/2.0"); + + static CapabilitiesBaseType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ServiceIdentificationXName), new NamedContentModelEntity(ServiceProviderXName), new NamedContentModelEntity(OperationsMetadataXName), new NamedContentModelEntity(LanguagesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ServiceIdentificationXName, typeof(ServiceIdentification)); + localElementDictionary.Add(ServiceProviderXName, typeof(ServiceProvider)); + localElementDictionary.Add(OperationsMetadataXName, typeof(OperationsMetadata)); + localElementDictionary.Add(LanguagesXName, typeof(LanguagesLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -4798,10 +4920,17 @@ public virtual string updateSequence { } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -4818,21 +4947,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CapabilitiesBaseType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ServiceIdentificationXName, typeof(ServiceIdentification)); - localElementDictionary.Add(ServiceProviderXName, typeof(ServiceProvider)); - localElementDictionary.Add(OperationsMetadataXName, typeof(OperationsMetadata)); - localElementDictionary.Add(LanguagesXName, typeof(LanguagesLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - /// <summary> /// <para> /// Regular expression: (Language+) @@ -4840,26 +4954,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class LanguagesLocalType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<Language> LanguageField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Languages", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator LanguagesLocalType(XElement xe) { return XTypedServices.ToXTypedElement<LanguagesLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LanguagesLocalType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LanguageXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LanguagesLocalType>(this); } /// <summary> @@ -4870,6 +4968,13 @@ static LanguagesLocalType() { public LanguagesLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<Language> LanguageField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -4900,6 +5005,20 @@ public virtual IList<Language> Language { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Languages", "http://www.opengis.net/ows/2.0"); + + static LanguagesLocalType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LanguageXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LanguageXName, typeof(Language)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -4907,6 +5026,13 @@ public virtual IList<Language> Language { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4927,18 +5053,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LanguagesLocalType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(LanguageXName, typeof(Language)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } } @@ -4958,39 +5072,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetCapabilitiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AcceptVersionsXName = System.Xml.Linq.XName.Get("AcceptVersions", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SectionsXName = System.Xml.Linq.XName.Get("Sections", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AcceptFormatsXName = System.Xml.Linq.XName.Get("AcceptFormats", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AcceptLanguagesXName = System.Xml.Linq.XName.Get("AcceptLanguages", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName updateSequenceXName = System.Xml.Linq.XName.Get("updateSequence", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetCapabilitiesType(XElement xe) { return XTypedServices.ToXTypedElement<GetCapabilitiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetCapabilitiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AcceptVersionsXName), new NamedContentModelEntity(SectionsXName), new NamedContentModelEntity(AcceptFormatsXName), new NamedContentModelEntity(AcceptLanguagesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetCapabilitiesType>(this); } /// <summary> @@ -5010,6 +5095,10 @@ static GetCapabilitiesType() { public GetCapabilitiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AcceptVersionsXName = System.Xml.Linq.XName.Get("AcceptVersions", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// When omitted, server shall return latest supported @@ -5025,6 +5114,9 @@ public GetCapabilitiesType() { public virtual AcceptVersionsType AcceptVersions { get { XElement x = this.GetElement(AcceptVersionsXName); + if ((x == null)) { + return null; + } return ((AcceptVersionsType)(x)); } set { @@ -5032,6 +5124,10 @@ public virtual AcceptVersionsType AcceptVersions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SectionsXName = System.Xml.Linq.XName.Get("Sections", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// When omitted or not supported by server, server shall @@ -5048,6 +5144,9 @@ public virtual AcceptVersionsType AcceptVersions { public virtual SectionsType Sections { get { XElement x = this.GetElement(SectionsXName); + if ((x == null)) { + return null; + } return ((SectionsType)(x)); } set { @@ -5055,6 +5154,10 @@ public virtual SectionsType Sections { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AcceptFormatsXName = System.Xml.Linq.XName.Get("AcceptFormats", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// When omitted or not supported by server, server shall @@ -5071,6 +5174,9 @@ public virtual SectionsType Sections { public virtual AcceptFormatsType AcceptFormats { get { XElement x = this.GetElement(AcceptFormatsXName); + if ((x == null)) { + return null; + } return ((AcceptFormatsType)(x)); } set { @@ -5078,6 +5184,10 @@ public virtual AcceptFormatsType AcceptFormats { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AcceptLanguagesXName = System.Xml.Linq.XName.Get("AcceptLanguages", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Ordered list of languages desired by the client for @@ -5095,6 +5205,9 @@ public virtual AcceptFormatsType AcceptFormats { public virtual AcceptLanguagesLocalType AcceptLanguages { get { XElement x = this.GetElement(AcceptLanguagesXName); + if ((x == null)) { + return null; + } return ((AcceptLanguagesLocalType)(x)); } set { @@ -5102,6 +5215,10 @@ public virtual AcceptLanguagesLocalType AcceptLanguages { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName updateSequenceXName = System.Xml.Linq.XName.Get("updateSequence", ""); + /// <summary> /// <para> /// When omitted or not supported by server, server shall @@ -5114,6 +5231,9 @@ public virtual AcceptLanguagesLocalType AcceptLanguages { public virtual string updateSequence { get { XAttribute x = this.Attribute(updateSequenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5121,6 +5241,23 @@ public virtual string updateSequence { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/ows/2.0"); + + static GetCapabilitiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AcceptVersionsXName), new NamedContentModelEntity(SectionsXName), new NamedContentModelEntity(AcceptFormatsXName), new NamedContentModelEntity(AcceptLanguagesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AcceptVersionsXName, typeof(AcceptVersionsType)); + localElementDictionary.Add(SectionsXName, typeof(SectionsType)); + localElementDictionary.Add(AcceptFormatsXName, typeof(AcceptFormatsType)); + localElementDictionary.Add(AcceptLanguagesXName, typeof(AcceptLanguagesLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5128,6 +5265,13 @@ public virtual string updateSequence { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5149,21 +5293,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetCapabilitiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AcceptVersionsXName, typeof(AcceptVersionsType)); - localElementDictionary.Add(SectionsXName, typeof(SectionsType)); - localElementDictionary.Add(AcceptFormatsXName, typeof(AcceptFormatsType)); - localElementDictionary.Add(AcceptLanguagesXName, typeof(AcceptLanguagesLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - /// <summary> /// <para> /// Regular expression: (Language+) @@ -5171,26 +5300,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class AcceptLanguagesLocalType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<Language> LanguageField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AcceptLanguages", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator AcceptLanguagesLocalType(XElement xe) { return XTypedServices.ToXTypedElement<AcceptLanguagesLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AcceptLanguagesLocalType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LanguageXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AcceptLanguagesLocalType>(this); } /// <summary> @@ -5201,6 +5314,13 @@ static AcceptLanguagesLocalType() { public AcceptLanguagesLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<Language> LanguageField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -5231,6 +5351,20 @@ public virtual IList<Language> Language { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AcceptLanguages", "http://www.opengis.net/ows/2.0"); + + static AcceptLanguagesLocalType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LanguageXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LanguageXName, typeof(Language)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5238,6 +5372,13 @@ public virtual IList<Language> Language { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5258,18 +5399,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AcceptLanguagesLocalType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(LanguageXName, typeof(Language)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } } @@ -5281,11 +5410,11 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public sealed class ServiceType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private ServiceType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -5300,27 +5429,11 @@ private ServiceType() { /// </summary> public partial class AcceptVersionsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VersionXName = System.Xml.Linq.XName.Get("Version", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> VersionField; + public static explicit operator AcceptVersionsType(XElement xe) { return XTypedServices.ToXTypedElement<AcceptVersionsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AcceptVersionsType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator AcceptVersionsType(XElement xe) { return XTypedServices.ToXTypedElement<AcceptVersionsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static AcceptVersionsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(VersionXName)); - } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AcceptVersionsType>(this); + } /// <summary> /// <para> @@ -5335,6 +5448,13 @@ static AcceptVersionsType() { public AcceptVersionsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VersionXName = System.Xml.Linq.XName.Get("Version", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> VersionField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -5365,6 +5485,20 @@ public virtual IList<string> Version { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AcceptVersionsType", "http://www.opengis.net/ows/2.0"); + + static AcceptVersionsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(VersionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(VersionXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5372,6 +5506,13 @@ public virtual IList<string> Version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5392,18 +5533,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AcceptVersionsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(VersionXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -5419,26 +5548,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class SectionsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SectionXName = System.Xml.Linq.XName.Get("Section", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> SectionField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SectionsType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SectionsType(XElement xe) { return XTypedServices.ToXTypedElement<SectionsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SectionsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SectionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SectionsType>(this); } /// <summary> @@ -5455,6 +5568,13 @@ static SectionsType() { public SectionsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SectionXName = System.Xml.Linq.XName.Get("Section", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> SectionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -5485,6 +5605,20 @@ public virtual IList<string> Section { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SectionsType", "http://www.opengis.net/ows/2.0"); + + static SectionsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SectionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SectionXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5492,6 +5626,13 @@ public virtual IList<string> Section { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5512,18 +5653,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SectionsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(SectionXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -5537,11 +5666,11 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public sealed class UpdateSequenceType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private UpdateSequenceType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -5558,26 +5687,10 @@ private UpdateSequenceType() { /// </summary> public partial class AcceptFormatsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> OutputFormatField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AcceptFormatsType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator AcceptFormatsType(XElement xe) { return XTypedServices.ToXTypedElement<AcceptFormatsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AcceptFormatsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(OutputFormatXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AcceptFormatsType>(this); } /// <summary> @@ -5595,6 +5708,13 @@ static AcceptFormatsType() { public AcceptFormatsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> OutputFormatField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -5625,6 +5745,20 @@ public virtual IList<string> OutputFormat { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AcceptFormatsType", "http://www.opengis.net/ows/2.0"); + + static AcceptFormatsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(OutputFormatXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(OutputFormatXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5632,6 +5766,13 @@ public virtual IList<string> OutputFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5652,18 +5793,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AcceptFormatsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(OutputFormatXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -5681,38 +5810,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetResourceByIdType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResourceIDXName = System.Xml.Linq.XName.Get("ResourceID", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<System.Uri> ResourceIDField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName serviceXName = System.Xml.Linq.XName.Get("service", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetResourceByIdType(XElement xe) { return XTypedServices.ToXTypedElement<GetResourceByIdType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetResourceByIdType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ResourceIDXName), new NamedContentModelEntity(OutputFormatXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetResourceByIdType>(this); } /// <summary> @@ -5731,6 +5832,13 @@ static GetResourceByIdType() { public GetResourceByIdType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResourceIDXName = System.Xml.Linq.XName.Get("ResourceID", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<System.Uri> ResourceIDField; + /// <summary> /// <para> /// Unordered list of zero or more resource identifiers. @@ -5768,6 +5876,10 @@ public virtual IList<System.Uri> ResourceID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Optional reference to the data format to be used for @@ -5786,6 +5898,9 @@ public virtual IList<System.Uri> ResourceID { public virtual OutputFormat OutputFormat { get { XElement x = this.GetElement(OutputFormatXName); + if ((x == null)) { + return null; + } return ((OutputFormat)(x)); } set { @@ -5793,6 +5908,10 @@ public virtual OutputFormat OutputFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName serviceXName = System.Xml.Linq.XName.Get("service", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5808,6 +5927,10 @@ public virtual string service { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5823,6 +5946,21 @@ public virtual string version { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/ows/2.0"); + + static GetResourceByIdType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ResourceIDXName), new NamedContentModelEntity(OutputFormatXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ResourceIDXName, typeof(System.Uri)); + localElementDictionary.Add(OutputFormatXName, typeof(OutputFormat)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5830,6 +5968,13 @@ public virtual string version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5850,19 +5995,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetResourceByIdType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ResourceIDXName, typeof(System.Uri)); - localElementDictionary.Add(OutputFormatXName, typeof(OutputFormat)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -5876,34 +6008,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ExceptionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExceptionTextXName = System.Xml.Linq.XName.Get("ExceptionText", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> ExceptionTextField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName exceptionCodeXName = System.Xml.Linq.XName.Get("exceptionCode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName locatorXName = System.Xml.Linq.XName.Get("locator", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExceptionType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ExceptionType(XElement xe) { return XTypedServices.ToXTypedElement<ExceptionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ExceptionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ExceptionTextXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ExceptionType>(this); } /// <summary> @@ -5918,6 +6026,13 @@ static ExceptionType() { public ExceptionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExceptionTextXName = System.Xml.Linq.XName.Get("ExceptionText", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> ExceptionTextField; + /// <summary> /// <para> /// Ordered sequence of text strings that describe this @@ -5958,6 +6073,10 @@ public virtual IList<string> ExceptionText { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName exceptionCodeXName = System.Xml.Linq.XName.Get("exceptionCode", ""); + /// <summary> /// <para> /// A code representing the type of this exception, which @@ -5978,6 +6097,10 @@ public virtual string exceptionCode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName locatorXName = System.Xml.Linq.XName.Get("locator", ""); + /// <summary> /// <para> /// When included, this locator shall indicate to the @@ -5995,6 +6118,9 @@ public virtual string exceptionCode { public virtual string locator { get { XAttribute x = this.Attribute(locatorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6002,6 +6128,20 @@ public virtual string locator { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExceptionType", "http://www.opengis.net/ows/2.0"); + + static ExceptionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ExceptionTextXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ExceptionTextXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -6009,6 +6149,13 @@ public virtual string locator { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6029,18 +6176,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ExceptionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ExceptionTextXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -6056,33 +6191,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ContentsBaseType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatasetDescriptionSummaryXName = System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DatasetDescriptionSummary> DatasetDescriptionSummaryField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OtherSourceXName = System.Xml.Linq.XName.Get("OtherSource", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OtherSource> OtherSourceField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContentsBaseType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ContentsBaseType(XElement xe) { return XTypedServices.ToXTypedElement<ContentsBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ContentsBaseType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DatasetDescriptionSummaryXName), new NamedContentModelEntity(OtherSourceXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ContentsBaseType>(this); } /// <summary> @@ -6099,6 +6211,13 @@ static ContentsBaseType() { public ContentsBaseType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatasetDescriptionSummaryXName = System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DatasetDescriptionSummary> DatasetDescriptionSummaryField; + /// <summary> /// <para> /// Unordered set of summary descriptions for the @@ -6135,6 +6254,13 @@ public virtual IList<DatasetDescriptionSummary> DatasetDescriptionSummary { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OtherSourceXName = System.Xml.Linq.XName.Get("OtherSource", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OtherSource> OtherSourceField; + /// <summary> /// <para> /// Unordered set of references to other sources of @@ -6170,6 +6296,21 @@ public virtual IList<OtherSource> OtherSource { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContentsBaseType", "http://www.opengis.net/ows/2.0"); + + static ContentsBaseType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DatasetDescriptionSummaryXName), new NamedContentModelEntity(OtherSourceXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(DatasetDescriptionSummary)); + localElementDictionary.Add(OtherSourceXName, typeof(OtherSource)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -6177,6 +6318,13 @@ public virtual IList<OtherSource> OtherSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6197,19 +6345,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ContentsBaseType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(DatasetDescriptionSummary)); - localElementDictionary.Add(OtherSourceXName, typeof(OtherSource)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -6225,51 +6360,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class DatasetDescriptionSummaryBaseType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WGS84BoundingBoxXName = System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<WGS84BoundingBox> WGS84BoundingBoxField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<BoundingBox> BoundingBoxField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<Metadata> MetadataField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatasetDescriptionSummaryXName = System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DatasetDescriptionSummary> DatasetDescriptionSummaryField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DatasetDescriptionSummaryBaseType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator DatasetDescriptionSummaryBaseType(XElement xe) { return XTypedServices.ToXTypedElement<DatasetDescriptionSummaryBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DatasetDescriptionSummaryBaseType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(WGS84BoundingBoxXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0")), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new NamedContentModelEntity(DatasetDescriptionSummaryXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DatasetDescriptionSummaryBaseType>(this); } /// <summary> @@ -6286,6 +6380,13 @@ static DatasetDescriptionSummaryBaseType() { public DatasetDescriptionSummaryBaseType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WGS84BoundingBoxXName = System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<WGS84BoundingBox> WGS84BoundingBoxField; + /// <summary> /// <para> /// Unordered list of zero or more minimum bounding @@ -6332,6 +6433,10 @@ public virtual IList<WGS84BoundingBox> WGS84BoundingBox { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Unambiguous identifier or name of this coverage, @@ -6354,6 +6459,13 @@ public virtual CodeType Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<BoundingBox> BoundingBoxField; + /// <summary> /// <para> /// Unordered list of zero or more minimum bounding @@ -6404,6 +6516,13 @@ public virtual IList<BoundingBox> BoundingBox { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<Metadata> MetadataField; + /// <summary> /// <para> /// Optional unordered list of additional metadata @@ -6443,6 +6562,13 @@ public virtual IList<Metadata> Metadata { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatasetDescriptionSummaryXName = System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DatasetDescriptionSummary> DatasetDescriptionSummaryField; + /// <summary> /// <para> /// Metadata describing zero or more unordered @@ -6477,6 +6603,27 @@ public virtual IList<DatasetDescriptionSummary> DatasetDescriptionSummary { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DatasetDescriptionSummaryBaseType", "http://www.opengis.net/ows/2.0"); + + static DatasetDescriptionSummaryBaseType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(WGS84BoundingBoxXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0")), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new NamedContentModelEntity(DatasetDescriptionSummaryXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(Keywords)); + localElementDictionary.Add(WGS84BoundingBoxXName, typeof(WGS84BoundingBox)); + localElementDictionary.Add(IdentifierXName, typeof(CodeType)); + localElementDictionary.Add(BoundingBoxXName, typeof(BoundingBox)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(DatasetDescriptionSummary)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -6484,6 +6631,13 @@ public virtual IList<DatasetDescriptionSummary> DatasetDescriptionSummary { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6504,74 +6658,26 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Base for a reference to a remote or local + /// resource. + /// </para> + /// <para> + /// This type contains only a restricted and annotated set of + /// the attributes from the xlink:simpleAttrs attributeGroup. + /// </para> + /// </summary> + public partial class AbstractReferenceBaseType : XTypedElement, IXMetaData { + + public static explicit operator AbstractReferenceBaseType(XElement xe) { return XTypedServices.ToXTypedElement<AbstractReferenceBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DatasetDescriptionSummaryBaseType>(this); + return XTypedServices.CloneXTypedElement<AbstractReferenceBaseType>(this); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(Keywords)); - localElementDictionary.Add(WGS84BoundingBoxXName, typeof(WGS84BoundingBox)); - localElementDictionary.Add(IdentifierXName, typeof(CodeType)); - localElementDictionary.Add(BoundingBoxXName, typeof(BoundingBox)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(DatasetDescriptionSummary)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Base for a reference to a remote or local - /// resource. - /// </para> - /// <para> - /// This type contains only a restricted and annotated set of - /// the attributes from the xlink:simpleAttrs attributeGroup. - /// </para> - /// </summary> - public partial class AbstractReferenceBaseType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string typeFixedValue = "simple"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractReferenceBaseType", "http://www.opengis.net/ows/2.0"); - - public static explicit operator AbstractReferenceBaseType(XElement xe) { return XTypedServices.ToXTypedElement<AbstractReferenceBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Base for a reference to a remote or local @@ -6585,6 +6691,13 @@ public partial class AbstractReferenceBaseType : XTypedElement, IXMetaData { public AbstractReferenceBaseType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static string typeFixedValue = "simple"; + /// <summary> /// <para> /// Occurrence: optional @@ -6595,7 +6708,7 @@ public virtual string type { return typeFixedValue; } set { - if (value.Equals(typeFixedValue)) { + if (typeFixedValue.Equals(value)) { } else { throw new Xml.Schema.Linq.LinqToXsdFixedValueException(value, typeFixedValue); @@ -6604,6 +6717,10 @@ public virtual string type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Reference to a remote resource or local payload. A @@ -6625,6 +6742,10 @@ public virtual System.Uri href { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Reference to a resource that describes the role of this @@ -6638,6 +6759,9 @@ public virtual System.Uri href { public virtual System.Uri role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -6645,6 +6769,10 @@ public virtual System.Uri role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Although allowed, this attribute is not expected to be @@ -6657,6 +6785,9 @@ public virtual System.Uri role { public virtual System.Uri arcrole { get { XAttribute x = this.Attribute(arcroleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -6664,6 +6795,10 @@ public virtual System.Uri arcrole { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Describes the meaning of the referenced resource in a @@ -6676,6 +6811,9 @@ public virtual System.Uri arcrole { public virtual string title { get { XAttribute x = this.Attribute(titleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6683,6 +6821,10 @@ public virtual string title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Although allowed, this attribute is not expected to be @@ -6692,16 +6834,28 @@ public virtual string title { /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { XAttribute x = this.Attribute(showXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if ((x == null)) { + return null; + } + return ((OpenGis.ThreeDps.Xlink.showType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.showType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(showXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(showXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(showXName, value.ToString(), "show", global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Although allowed, this attribute is not expected to be @@ -6717,13 +6871,24 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(actuateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(actuateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(actuateXName, value.ToString(), "actuate", global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractReferenceBaseType", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6744,14 +6909,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AbstractReferenceBaseType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -6765,41 +6922,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ReferenceType : global::OpenGis.Ows.AbstractReferenceBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AbstractXName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Abstract> AbstractField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<Metadata> MetadataField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ReferenceType(XElement xe) { return XTypedServices.ToXTypedElement<ReferenceType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ReferenceType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(FormatXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ReferenceType>(this); } /// <summary> @@ -6814,6 +6940,10 @@ static ReferenceType() { public ReferenceType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Optional unique identifier of the referenced @@ -6829,6 +6959,9 @@ public ReferenceType() { public virtual Identifier Identifier { get { XElement x = this.GetElement(IdentifierXName); + if ((x == null)) { + return null; + } return ((Identifier)(x)); } set { @@ -6836,6 +6969,13 @@ public virtual Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AbstractXName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Abstract> AbstractField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -6866,6 +7006,10 @@ public virtual IList<Abstract> Abstract { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// The format of the referenced resource. This @@ -6882,6 +7026,9 @@ public virtual IList<Abstract> Abstract { public virtual string Format { get { XElement x = this.GetElement(FormatXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6894,6 +7041,13 @@ public virtual string Format { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<Metadata> MetadataField; + /// <summary> /// <para> /// Optional unordered list of additional metadata @@ -6934,6 +7088,23 @@ public virtual IList<Metadata> Metadata { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceType", "http://www.opengis.net/ows/2.0"); + + static ReferenceType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(FormatXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IdentifierXName, typeof(Identifier)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(FormatXName, typeof(string)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -6941,6 +7112,13 @@ public virtual IList<Metadata> Metadata { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6961,21 +7139,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ReferenceType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(IdentifierXName, typeof(Identifier)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(FormatXName, typeof(string)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -6991,26 +7154,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ReferenceGroupType : global::OpenGis.Ows.BasicIdentificationType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AbstractReferenceBaseXName = System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedSubstitutedList<AbstractReferenceBase> AbstractReferenceBaseField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceGroupType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ReferenceGroupType(XElement xe) { return XTypedServices.ToXTypedElement<ReferenceGroupType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ReferenceGroupType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("Reference", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("ServiceReference", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ReferenceGroupType>(this); } /// <summary> @@ -7027,6 +7174,13 @@ static ReferenceGroupType() { public ReferenceGroupType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AbstractReferenceBaseXName = System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedSubstitutedList<AbstractReferenceBase> AbstractReferenceBaseField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -7060,17 +7214,43 @@ public virtual IList<AbstractReferenceBase> AbstractReferenceBase { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceGroupType", "http://www.opengis.net/ows/2.0"); + + static ReferenceGroupType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("Reference", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("ServiceReference", "http://www.opengis.net/ows/2.0"))); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(Identifier)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + localElementDictionary.Add(AbstractReferenceBaseXName, typeof(AbstractReferenceBase)); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { - return xName; + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; } } @@ -7087,23 +7267,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ReferenceGroupType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(Identifier)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - localElementDictionary.Add(AbstractReferenceBaseXName, typeof(AbstractReferenceBase)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -7117,26 +7280,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ManifestType : global::OpenGis.Ows.BasicIdentificationType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReferenceGroupXName = System.Xml.Linq.XName.Get("ReferenceGroup", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ReferenceGroup> ReferenceGroupField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ManifestType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ManifestType(XElement xe) { return XTypedServices.ToXTypedElement<ManifestType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ManifestType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new NamedContentModelEntity(ReferenceGroupXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ManifestType>(this); } /// <summary> @@ -7151,6 +7298,13 @@ static ManifestType() { public ManifestType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReferenceGroupXName = System.Xml.Linq.XName.Get("ReferenceGroup", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ReferenceGroup> ReferenceGroupField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -7181,6 +7335,25 @@ public virtual IList<ReferenceGroup> ReferenceGroup { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ManifestType", "http://www.opengis.net/ows/2.0"); + + static ManifestType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new NamedContentModelEntity(ReferenceGroupXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(Identifier)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + localElementDictionary.Add(ReferenceGroupXName, typeof(ReferenceGroup)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -7188,6 +7361,13 @@ public virtual IList<ReferenceGroup> ReferenceGroup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7208,23 +7388,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ManifestType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(Identifier)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - localElementDictionary.Add(ReferenceGroupXName, typeof(ReferenceGroup)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -7243,27 +7406,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ServiceReferenceType : global::OpenGis.Ows.ReferenceType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RequestMessageXName = System.Xml.Linq.XName.Get("RequestMessage", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RequestMessageReferenceXName = System.Xml.Linq.XName.Get("RequestMessageReference", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceReferenceType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ServiceReferenceType(XElement xe) { return XTypedServices.ToXTypedElement<ServiceReferenceType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ServiceReferenceType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(FormatXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new ChoiceContentModelEntity(new NamedContentModelEntity(RequestMessageXName), new NamedContentModelEntity(RequestMessageReferenceXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ServiceReferenceType>(this); } /// <summary> @@ -7283,6 +7429,10 @@ static ServiceReferenceType() { public ServiceReferenceType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RequestMessageXName = System.Xml.Linq.XName.Get("RequestMessage", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// The XML-encoded operation request message to be @@ -7302,6 +7452,9 @@ public ServiceReferenceType() { public virtual XTypedElement RequestMessage { get { XElement x = this.GetElement(RequestMessageXName); + if ((x == null)) { + return null; + } return ((XTypedElement)(x)); } set { @@ -7309,6 +7462,10 @@ public virtual XTypedElement RequestMessage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RequestMessageReferenceXName = System.Xml.Linq.XName.Get("RequestMessageReference", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Reference to the XML-encoded operation request @@ -7330,6 +7487,9 @@ public virtual XTypedElement RequestMessage { public virtual System.Uri RequestMessageReference { get { XElement x = this.GetElement(RequestMessageReferenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -7337,6 +7497,25 @@ public virtual System.Uri RequestMessageReference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceReferenceType", "http://www.opengis.net/ows/2.0"); + + static ServiceReferenceType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(FormatXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0")), new ChoiceContentModelEntity(new NamedContentModelEntity(RequestMessageXName), new NamedContentModelEntity(RequestMessageReferenceXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IdentifierXName, typeof(Identifier)); + localElementDictionary.Add(AbstractXName, typeof(Abstract)); + localElementDictionary.Add(FormatXName, typeof(string)); + localElementDictionary.Add(MetadataXName, typeof(Metadata)); + localElementDictionary.Add(RequestMessageXName, typeof(XTypedElement)); + localElementDictionary.Add(RequestMessageReferenceXName, typeof(System.Uri)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -7344,6 +7523,13 @@ public virtual System.Uri RequestMessageReference { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7364,34 +7550,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ServiceReferenceType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(IdentifierXName, typeof(Identifier)); - localElementDictionary.Add(AbstractXName, typeof(Abstract)); - localElementDictionary.Add(FormatXName, typeof(string)); - localElementDictionary.Add(MetadataXName, typeof(Metadata)); - localElementDictionary.Add(RequestMessageXName, typeof(XTypedElement)); - localElementDictionary.Add(RequestMessageReferenceXName, typeof(System.Uri)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class AdditionalParametersBaseType : global::OpenGis.Ows.MetadataType, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParametersBaseType", "http://www.opengis.net/ows/2.0"); - public static explicit operator AdditionalParametersBaseType(XElement xe) { return XTypedServices.ToXTypedElement<AdditionalParametersBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AdditionalParametersBaseType>(this); + } + public AdditionalParametersBaseType() { } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParametersBaseType", "http://www.opengis.net/ows/2.0"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7412,10 +7585,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AdditionalParametersBaseType>(this); - } } /// <summary> @@ -7425,26 +7594,10 @@ public override XTypedElement Clone() { /// </summary> public partial class AdditionalParametersType : global::OpenGis.Ows.AdditionalParametersBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal new static readonly System.Xml.Linq.XName AdditionalParameterXName = System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AdditionalParameter> AdditionalParameterField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParametersType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator AdditionalParametersType(XElement xe) { return XTypedServices.ToXTypedElement<AdditionalParametersType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AdditionalParametersType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AdditionalParameterXName), new NamedContentModelEntity(AdditionalParameterXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AdditionalParametersType>(this); } /// <summary> @@ -7455,6 +7608,13 @@ static AdditionalParametersType() { public AdditionalParametersType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal new static readonly System.Xml.Linq.XName AdditionalParameterXName = System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AdditionalParameter> AdditionalParameterField; + /// <summary> /// <para> /// Occurrence: required @@ -7485,6 +7645,20 @@ public AdditionalParametersType() { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParametersType", "http://www.opengis.net/ows/2.0"); + + static AdditionalParametersType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AdditionalParameterXName), new NamedContentModelEntity(AdditionalParameterXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AdditionalParameterXName, typeof(AdditionalParameter)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -7492,6 +7666,13 @@ public AdditionalParametersType() { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7512,18 +7693,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AdditionalParametersType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AdditionalParameterXName, typeof(AdditionalParameter)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -7534,14 +7703,12 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class NilValueType : global::OpenGis.Ows.CodeType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nilReasonXName = System.Xml.Linq.XName.Get("nilReason", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("NilValueType", "http://www.opengis.net/ows/2.0"); - public static explicit operator NilValueType(XElement xe) { return XTypedServices.ToXTypedElement<NilValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<NilValueType>(this); + } + /// <summary> /// <para> /// The value used (e.g. -255) to represent a nil value with @@ -7551,6 +7718,10 @@ public partial class NilValueType : global::OpenGis.Ows.CodeType, IXMetaData { public NilValueType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nilReasonXName = System.Xml.Linq.XName.Get("nilReason", ""); + /// <summary> /// <para> /// An anyURI value which refers to a resource that @@ -7563,13 +7734,18 @@ public NilValueType() { public virtual System.Uri nilReason { get { XAttribute x = this.Attribute(nilReasonXName); - return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { this.SetAttribute(nilReasonXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("NilValueType", "http://www.opengis.net/ows/2.0"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7590,10 +7766,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<NilValueType>(this); - } } /// <summary> @@ -7605,18 +7777,12 @@ public override XTypedElement Clone() { /// </summary> public partial class LanguageStringType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName langXName = System.Xml.Linq.XName.Get("lang", "http://www.w3.org/XML/1998/namespace"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LanguageStringType", "http://www.opengis.net/ows/2.0"); - public static explicit operator LanguageStringType(XElement xe) { return XTypedServices.ToXTypedElement<LanguageStringType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LanguageStringType>(this); + } + /// <summary> /// <para> /// Text string with the language of the string identified as @@ -7627,6 +7793,10 @@ public partial class LanguageStringType : XTypedElement, IXMetaData { public LanguageStringType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -7637,6 +7807,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName langXName = System.Xml.Linq.XName.Get("lang", "http://www.w3.org/XML/1998/namespace"); + /// <summary> /// <para> /// Occurrence: optional @@ -7645,13 +7819,22 @@ public virtual string TypedValue { public virtual object lang { get { XAttribute x = this.Attribute(langXName); - return XTypedServices.ParseUnionValue(x, lang.TypeDefinition); + if ((x == null)) { + return null; + } + return XTypedServices.ParseUnionValue(x, global::OpenGis.ThreeDps.Xml1998.lang.TypeDefinition); } set { - this.SetUnionAttribute(value, "lang", this, langXName, lang.TypeDefinition); + this.SetUnionAttribute(value, "lang", this, langXName, global::OpenGis.ThreeDps.Xml1998.lang.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LanguageStringType", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7672,14 +7855,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LanguageStringType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -7706,30 +7881,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class KeywordsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName KeywordXName = System.Xml.Linq.XName.Get("Keyword", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LanguageStringType> KeywordField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypeXName = System.Xml.Linq.XName.Get("Type", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("KeywordsType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator KeywordsType(XElement xe) { return XTypedServices.ToXTypedElement<KeywordsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static KeywordsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(KeywordXName), new NamedContentModelEntity(TypeXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<KeywordsType>(this); } /// <summary> @@ -7757,6 +7912,13 @@ static KeywordsType() { public KeywordsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName KeywordXName = System.Xml.Linq.XName.Get("Keyword", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LanguageStringType> KeywordField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -7787,6 +7949,10 @@ public virtual IList<LanguageStringType> Keyword { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypeXName = System.Xml.Linq.XName.Get("Type", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -7798,6 +7964,9 @@ public virtual IList<LanguageStringType> Keyword { public virtual CodeType Type { get { XElement x = this.GetElement(TypeXName); + if ((x == null)) { + return null; + } return ((CodeType)(x)); } set { @@ -7805,6 +7974,21 @@ public virtual CodeType Type { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("KeywordsType", "http://www.opengis.net/ows/2.0"); + + static KeywordsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(KeywordXName), new NamedContentModelEntity(TypeXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(KeywordXName, typeof(LanguageStringType)); + localElementDictionary.Add(TypeXName, typeof(CodeType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -7812,6 +7996,13 @@ public virtual CodeType Type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7832,19 +8023,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<KeywordsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(KeywordXName, typeof(LanguageStringType)); - localElementDictionary.Add(TypeXName, typeof(CodeType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -7863,18 +8041,12 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class CodeType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeSpaceXName = System.Xml.Linq.XName.Get("codeSpace", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CodeType", "http://www.opengis.net/ows/2.0"); - public static explicit operator CodeType(XElement xe) { return XTypedServices.ToXTypedElement<CodeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CodeType>(this); + } + /// <summary> /// <para> /// Name or code with an (optional) authority. If the @@ -7892,6 +8064,10 @@ public partial class CodeType : XTypedElement, IXMetaData { public CodeType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -7902,6 +8078,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeSpaceXName = System.Xml.Linq.XName.Get("codeSpace", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7910,6 +8090,9 @@ public virtual string TypedValue { public virtual System.Uri codeSpace { get { XAttribute x = this.Attribute(codeSpaceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -7917,6 +8100,12 @@ public virtual System.Uri codeSpace { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CodeType", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7937,14 +8126,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CodeType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -7959,39 +8140,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ResponsiblePartyType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IndividualNameXName = System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OrganisationNameXName = System.Xml.Linq.XName.Get("OrganisationName", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PositionNameXName = System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ContactInfoXName = System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RoleXName = System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ResponsiblePartyType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ResponsiblePartyType(XElement xe) { return XTypedServices.ToXTypedElement<ResponsiblePartyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ResponsiblePartyType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IndividualNameXName), new NamedContentModelEntity(OrganisationNameXName), new NamedContentModelEntity(PositionNameXName), new NamedContentModelEntity(ContactInfoXName), new NamedContentModelEntity(RoleXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ResponsiblePartyType>(this); } /// <summary> @@ -8007,6 +8159,10 @@ static ResponsiblePartyType() { public ResponsiblePartyType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IndividualNameXName = System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8018,6 +8174,9 @@ public ResponsiblePartyType() { public virtual IndividualName IndividualName { get { XElement x = this.GetElement(IndividualNameXName); + if ((x == null)) { + return null; + } return ((IndividualName)(x)); } set { @@ -8025,6 +8184,10 @@ public virtual IndividualName IndividualName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OrganisationNameXName = System.Xml.Linq.XName.Get("OrganisationName", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8036,6 +8199,9 @@ public virtual IndividualName IndividualName { public virtual OrganisationName OrganisationName { get { XElement x = this.GetElement(OrganisationNameXName); + if ((x == null)) { + return null; + } return ((OrganisationName)(x)); } set { @@ -8043,6 +8209,10 @@ public virtual OrganisationName OrganisationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PositionNameXName = System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8054,6 +8224,9 @@ public virtual OrganisationName OrganisationName { public virtual PositionName PositionName { get { XElement x = this.GetElement(PositionNameXName); + if ((x == null)) { + return null; + } return ((PositionName)(x)); } set { @@ -8061,6 +8234,10 @@ public virtual PositionName PositionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ContactInfoXName = System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8072,6 +8249,9 @@ public virtual PositionName PositionName { public virtual ContactInfo ContactInfo { get { XElement x = this.GetElement(ContactInfoXName); + if ((x == null)) { + return null; + } return ((ContactInfo)(x)); } set { @@ -8079,6 +8259,10 @@ public virtual ContactInfo ContactInfo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RoleXName = System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -8097,6 +8281,24 @@ public virtual Role Role { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ResponsiblePartyType", "http://www.opengis.net/ows/2.0"); + + static ResponsiblePartyType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IndividualNameXName), new NamedContentModelEntity(OrganisationNameXName), new NamedContentModelEntity(PositionNameXName), new NamedContentModelEntity(ContactInfoXName), new NamedContentModelEntity(RoleXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IndividualNameXName, typeof(IndividualName)); + localElementDictionary.Add(OrganisationNameXName, typeof(OrganisationName)); + localElementDictionary.Add(PositionNameXName, typeof(PositionName)); + localElementDictionary.Add(ContactInfoXName, typeof(ContactInfo)); + localElementDictionary.Add(RoleXName, typeof(Role)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -8104,6 +8306,13 @@ public virtual Role Role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8124,22 +8333,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ResponsiblePartyType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(IndividualNameXName, typeof(IndividualName)); - localElementDictionary.Add(OrganisationNameXName, typeof(OrganisationName)); - localElementDictionary.Add(PositionNameXName, typeof(PositionName)); - localElementDictionary.Add(ContactInfoXName, typeof(ContactInfo)); - localElementDictionary.Add(RoleXName, typeof(Role)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -8161,36 +8354,11 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ResponsiblePartySubsetType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IndividualNameXName = System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PositionNameXName = System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"); + public static explicit operator ResponsiblePartySubsetType(XElement xe) { return XTypedServices.ToXTypedElement<ResponsiblePartySubsetType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ContactInfoXName = System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RoleXName = System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ResponsiblePartySubsetType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator ResponsiblePartySubsetType(XElement xe) { return XTypedServices.ToXTypedElement<ResponsiblePartySubsetType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static ResponsiblePartySubsetType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IndividualNameXName), new NamedContentModelEntity(PositionNameXName), new NamedContentModelEntity(ContactInfoXName), new NamedContentModelEntity(RoleXName)); - } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ResponsiblePartySubsetType>(this); + } /// <summary> /// <para> @@ -8212,6 +8380,10 @@ static ResponsiblePartySubsetType() { public ResponsiblePartySubsetType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IndividualNameXName = System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8223,6 +8395,9 @@ public ResponsiblePartySubsetType() { public virtual IndividualName IndividualName { get { XElement x = this.GetElement(IndividualNameXName); + if ((x == null)) { + return null; + } return ((IndividualName)(x)); } set { @@ -8230,6 +8405,10 @@ public virtual IndividualName IndividualName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PositionNameXName = System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8241,6 +8420,9 @@ public virtual IndividualName IndividualName { public virtual PositionName PositionName { get { XElement x = this.GetElement(PositionNameXName); + if ((x == null)) { + return null; + } return ((PositionName)(x)); } set { @@ -8248,6 +8430,10 @@ public virtual PositionName PositionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ContactInfoXName = System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8259,6 +8445,9 @@ public virtual PositionName PositionName { public virtual ContactInfo ContactInfo { get { XElement x = this.GetElement(ContactInfoXName); + if ((x == null)) { + return null; + } return ((ContactInfo)(x)); } set { @@ -8266,6 +8455,10 @@ public virtual ContactInfo ContactInfo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RoleXName = System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -8277,6 +8470,9 @@ public virtual ContactInfo ContactInfo { public virtual Role Role { get { XElement x = this.GetElement(RoleXName); + if ((x == null)) { + return null; + } return ((Role)(x)); } set { @@ -8284,6 +8480,23 @@ public virtual Role Role { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ResponsiblePartySubsetType", "http://www.opengis.net/ows/2.0"); + + static ResponsiblePartySubsetType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IndividualNameXName), new NamedContentModelEntity(PositionNameXName), new NamedContentModelEntity(ContactInfoXName), new NamedContentModelEntity(RoleXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IndividualNameXName, typeof(IndividualName)); + localElementDictionary.Add(PositionNameXName, typeof(PositionName)); + localElementDictionary.Add(ContactInfoXName, typeof(ContactInfo)); + localElementDictionary.Add(RoleXName, typeof(Role)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -8291,6 +8504,13 @@ public virtual Role Role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8311,21 +8531,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ResponsiblePartySubsetType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(IndividualNameXName, typeof(IndividualName)); - localElementDictionary.Add(PositionNameXName, typeof(PositionName)); - localElementDictionary.Add(ContactInfoXName, typeof(ContactInfo)); - localElementDictionary.Add(RoleXName, typeof(Role)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -8344,39 +8549,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ContactType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PhoneXName = System.Xml.Linq.XName.Get("Phone", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AddressXName = System.Xml.Linq.XName.Get("Address", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OnlineResourceXName = System.Xml.Linq.XName.Get("OnlineResource", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HoursOfServiceXName = System.Xml.Linq.XName.Get("HoursOfService", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ContactInstructionsXName = System.Xml.Linq.XName.Get("ContactInstructions", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContactType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ContactType(XElement xe) { return XTypedServices.ToXTypedElement<ContactType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ContactType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PhoneXName), new NamedContentModelEntity(AddressXName), new NamedContentModelEntity(OnlineResourceXName), new NamedContentModelEntity(HoursOfServiceXName), new NamedContentModelEntity(ContactInstructionsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ContactType>(this); } /// <summary> @@ -8396,6 +8572,10 @@ static ContactType() { public ContactType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PhoneXName = System.Xml.Linq.XName.Get("Phone", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Telephone numbers at which the organization or @@ -8411,6 +8591,9 @@ public ContactType() { public virtual TelephoneType Phone { get { XElement x = this.GetElement(PhoneXName); + if ((x == null)) { + return null; + } return ((TelephoneType)(x)); } set { @@ -8418,6 +8601,10 @@ public virtual TelephoneType Phone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AddressXName = System.Xml.Linq.XName.Get("Address", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Physical and email address at which the organization @@ -8433,6 +8620,9 @@ public virtual TelephoneType Phone { public virtual AddressType Address { get { XElement x = this.GetElement(AddressXName); + if ((x == null)) { + return null; + } return ((AddressType)(x)); } set { @@ -8440,6 +8630,10 @@ public virtual AddressType Address { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OnlineResourceXName = System.Xml.Linq.XName.Get("OnlineResource", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// On-line information that can be used to contact the @@ -8462,6 +8656,9 @@ public virtual AddressType Address { public virtual OnlineResourceType OnlineResource { get { XElement x = this.GetElement(OnlineResourceXName); + if ((x == null)) { + return null; + } return ((OnlineResourceType)(x)); } set { @@ -8469,6 +8666,10 @@ public virtual OnlineResourceType OnlineResource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HoursOfServiceXName = System.Xml.Linq.XName.Get("HoursOfService", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Time period (including time zone) when individuals @@ -8484,6 +8685,9 @@ public virtual OnlineResourceType OnlineResource { public virtual string HoursOfService { get { XElement x = this.GetElement(HoursOfServiceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8491,6 +8695,10 @@ public virtual string HoursOfService { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ContactInstructionsXName = System.Xml.Linq.XName.Get("ContactInstructions", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Supplemental instructions on how or when to contact @@ -8506,6 +8714,9 @@ public virtual string HoursOfService { public virtual string ContactInstructions { get { XElement x = this.GetElement(ContactInstructionsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8513,6 +8724,24 @@ public virtual string ContactInstructions { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContactType", "http://www.opengis.net/ows/2.0"); + + static ContactType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PhoneXName), new NamedContentModelEntity(AddressXName), new NamedContentModelEntity(OnlineResourceXName), new NamedContentModelEntity(HoursOfServiceXName), new NamedContentModelEntity(ContactInstructionsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PhoneXName, typeof(TelephoneType)); + localElementDictionary.Add(AddressXName, typeof(AddressType)); + localElementDictionary.Add(OnlineResourceXName, typeof(OnlineResourceType)); + localElementDictionary.Add(HoursOfServiceXName, typeof(string)); + localElementDictionary.Add(ContactInstructionsXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -8520,6 +8749,13 @@ public virtual string ContactInstructions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8540,22 +8776,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ContactType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PhoneXName, typeof(TelephoneType)); - localElementDictionary.Add(AddressXName, typeof(AddressType)); - localElementDictionary.Add(OnlineResourceXName, typeof(OnlineResourceType)); - localElementDictionary.Add(HoursOfServiceXName, typeof(string)); - localElementDictionary.Add(ContactInstructionsXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -8571,38 +8791,12 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class OnlineResourceType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OnlineResourceType", "http://www.opengis.net/ows/2.0"); - public static explicit operator OnlineResourceType(XElement xe) { return XTypedServices.ToXTypedElement<OnlineResourceType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OnlineResourceType>(this); + } + /// <summary> /// <para> /// Reference to on-line resource from which data can be @@ -8617,6 +8811,10 @@ public partial class OnlineResourceType : XTypedElement, IXMetaData { public OnlineResourceType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -8628,13 +8826,22 @@ public virtual OpenGis.ThreeDps.Xlink.typeType? type { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -8643,6 +8850,9 @@ public virtual OpenGis.ThreeDps.Xlink.typeType? type { public virtual System.Uri href { get { XAttribute x = this.Attribute(hrefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -8650,6 +8860,10 @@ public virtual System.Uri href { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -8658,6 +8872,9 @@ public virtual System.Uri href { public virtual System.Uri role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -8665,6 +8882,10 @@ public virtual System.Uri role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -8673,6 +8894,9 @@ public virtual System.Uri role { public virtual System.Uri arcrole { get { XAttribute x = this.Attribute(arcroleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -8680,6 +8904,10 @@ public virtual System.Uri arcrole { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -8688,6 +8916,9 @@ public virtual System.Uri arcrole { public virtual string title { get { XAttribute x = this.Attribute(titleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8695,21 +8926,37 @@ public virtual string title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { XAttribute x = this.Attribute(showXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if ((x == null)) { + return null; + } + return ((OpenGis.ThreeDps.Xlink.showType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.showType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(showXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(showXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(showXName, value.ToString(), "show", global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -8721,14 +8968,25 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(actuateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(actuateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(actuateXName, value.ToString(), "actuate", global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition); + } } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OnlineResourceType", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { return xName; @@ -8748,14 +9006,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OnlineResourceType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -8769,33 +9019,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class TelephoneType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VoiceXName = System.Xml.Linq.XName.Get("Voice", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> VoiceField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FacsimileXName = System.Xml.Linq.XName.Get("Facsimile", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> FacsimileField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TelephoneType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator TelephoneType(XElement xe) { return XTypedServices.ToXTypedElement<TelephoneType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TelephoneType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(VoiceXName), new NamedContentModelEntity(FacsimileXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TelephoneType>(this); } /// <summary> @@ -8810,6 +9037,13 @@ static TelephoneType() { public TelephoneType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VoiceXName = System.Xml.Linq.XName.Get("Voice", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> VoiceField; + /// <summary> /// <para> /// Telephone number by which individuals can speak to @@ -8844,6 +9078,13 @@ public virtual IList<string> Voice { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FacsimileXName = System.Xml.Linq.XName.Get("Facsimile", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> FacsimileField; + /// <summary> /// <para> /// Telephone number of a facsimile machine for the @@ -8878,6 +9119,21 @@ public virtual IList<string> Facsimile { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TelephoneType", "http://www.opengis.net/ows/2.0"); + + static TelephoneType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(VoiceXName), new NamedContentModelEntity(FacsimileXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(VoiceXName, typeof(string)); + localElementDictionary.Add(FacsimileXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -8885,6 +9141,13 @@ public virtual IList<string> Facsimile { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8905,19 +9168,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TelephoneType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(VoiceXName, typeof(string)); - localElementDictionary.Add(FacsimileXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -8931,49 +9181,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class AddressType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DeliveryPointXName = System.Xml.Linq.XName.Get("DeliveryPoint", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> DeliveryPointField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CityXName = System.Xml.Linq.XName.Get("City", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AdministrativeAreaXName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PostalCodeXName = System.Xml.Linq.XName.Get("PostalCode", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CountryXName = System.Xml.Linq.XName.Get("Country", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ElectronicMailAddressXName = System.Xml.Linq.XName.Get("ElectronicMailAddress", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> ElectronicMailAddressField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AddressType", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator AddressType(XElement xe) { return XTypedServices.ToXTypedElement<AddressType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AddressType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DeliveryPointXName), new NamedContentModelEntity(CityXName), new NamedContentModelEntity(AdministrativeAreaXName), new NamedContentModelEntity(PostalCodeXName), new NamedContentModelEntity(CountryXName), new NamedContentModelEntity(ElectronicMailAddressXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AddressType>(this); } /// <summary> @@ -8988,6 +9199,13 @@ static AddressType() { public AddressType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DeliveryPointXName = System.Xml.Linq.XName.Get("DeliveryPoint", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> DeliveryPointField; + /// <summary> /// <para> /// Address line for the location. @@ -9021,6 +9239,10 @@ public virtual IList<string> DeliveryPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CityXName = System.Xml.Linq.XName.Get("City", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// City of the location. @@ -9035,6 +9257,9 @@ public virtual IList<string> DeliveryPoint { public virtual string City { get { XElement x = this.GetElement(CityXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9042,6 +9267,10 @@ public virtual string City { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AdministrativeAreaXName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// State or province of the location. @@ -9056,6 +9285,9 @@ public virtual string City { public virtual string AdministrativeArea { get { XElement x = this.GetElement(AdministrativeAreaXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9063,6 +9295,10 @@ public virtual string AdministrativeArea { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PostalCodeXName = System.Xml.Linq.XName.Get("PostalCode", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// ZIP or other postal code. @@ -9077,6 +9313,9 @@ public virtual string AdministrativeArea { public virtual string PostalCode { get { XElement x = this.GetElement(PostalCodeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9084,6 +9323,10 @@ public virtual string PostalCode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CountryXName = System.Xml.Linq.XName.Get("Country", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Country of the physical address. @@ -9098,6 +9341,9 @@ public virtual string PostalCode { public virtual string Country { get { XElement x = this.GetElement(CountryXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9105,6 +9351,13 @@ public virtual string Country { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ElectronicMailAddressXName = System.Xml.Linq.XName.Get("ElectronicMailAddress", "http://www.opengis.net/ows/2.0"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> ElectronicMailAddressField; + /// <summary> /// <para> /// Address of the electronic mailbox of the responsible @@ -9139,6 +9392,25 @@ public virtual IList<string> ElectronicMailAddress { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AddressType", "http://www.opengis.net/ows/2.0"); + + static AddressType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DeliveryPointXName), new NamedContentModelEntity(CityXName), new NamedContentModelEntity(AdministrativeAreaXName), new NamedContentModelEntity(PostalCodeXName), new NamedContentModelEntity(CountryXName), new NamedContentModelEntity(ElectronicMailAddressXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DeliveryPointXName, typeof(string)); + localElementDictionary.Add(CityXName, typeof(string)); + localElementDictionary.Add(AdministrativeAreaXName, typeof(string)); + localElementDictionary.Add(PostalCodeXName, typeof(string)); + localElementDictionary.Add(CountryXName, typeof(string)); + localElementDictionary.Add(ElectronicMailAddressXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -9146,6 +9418,13 @@ public virtual IList<string> ElectronicMailAddress { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9166,23 +9445,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AddressType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(DeliveryPointXName, typeof(string)); - localElementDictionary.Add(CityXName, typeof(string)); - localElementDictionary.Add(AdministrativeAreaXName, typeof(string)); - localElementDictionary.Add(PostalCodeXName, typeof(string)); - localElementDictionary.Add(CountryXName, typeof(string)); - localElementDictionary.Add(ElectronicMailAddressXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -9200,16 +9462,42 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class Metadata : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private MetadataType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Metadata Load(string xmlFile) { + return ((Metadata)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public static Metadata Load(System.IO.TextReader xmlFile) { + return ((Metadata)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public static Metadata Parse(string xml) { + return ((Metadata)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + } public static explicit operator Metadata(XElement xe) { return (Metadata)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return new Metadata(((MetadataType)(this.Content.Clone()))); + } + protected Metadata(bool setNull) { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private MetadataType ContentField; + /// <summary> /// <para> /// This element either references or contains more metadata @@ -9227,23 +9515,6 @@ public Metadata() { SetInnerType(new MetadataType()); } - /// <summary> - /// <para> - /// This element either references or contains more metadata - /// about the element that includes this element. To reference metadata - /// stored remotely, at least the xlinks:href attribute in xlink:simpleAttrs - /// shall be included. Either at least one of the attributes in - /// xlink:simpleAttrs or a substitute for the AbstractMetaData element shall - /// be included, but not both. An Implementation Specification can restrict - /// the contents of this element to always be a reference or always contain - /// metadata. (Informative: This element was adapted from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public Metadata(MetadataType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -9262,10 +9533,36 @@ public virtual MetadataType Content { } } - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> + private void SetInnerType(MetadataType ContentField) { + this.ContentField = ((MetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + protected virtual void SetSubstitutionMember(MetadataType ContentField) { + this.ContentField = ContentField; + } + + /// <summary> + /// <para> + /// This element either references or contains more metadata + /// about the element that includes this element. To reference metadata + /// stored remotely, at least the xlinks:href attribute in xlink:simpleAttrs + /// shall be included. Either at least one of the attributes in + /// xlink:simpleAttrs or a substitute for the AbstractMetaData element shall + /// be included, but not both. An Implementation Specification can restrict + /// the contents of this element to always be a reference or always contain + /// metadata. (Informative: This element was adapted from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public Metadata(MetadataType content) { + SetInnerType(content); + } + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> /// <para> /// Substitution members: AbstractMetaData, AdditionalParameter /// </para> @@ -9357,7 +9654,7 @@ public virtual string title { /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { return this.ContentField.show; } @@ -9399,6 +9696,8 @@ public virtual System.Uri about { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -9412,6 +9711,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9432,6 +9735,20 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// XML encoded minimum rectangular bounding box (or region) + /// parameter, surrounding all the associated data. + /// </para> + /// <para> + /// This type is adapted from the EnvelopeType of GML 3.1, + /// with modified contents and documentation for encoding a MINIMUM size box + /// SURROUNDING all associated data. + /// </para> + /// </summary> + public partial class BoundingBox : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -9445,59 +9762,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Metadata Load(string xmlFile) { - return ((Metadata)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static Metadata Load(System.IO.TextReader xmlFile) { - return ((Metadata)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + public static BoundingBox Load(string xmlFile) { + return ((BoundingBox)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - public static Metadata Parse(string xml) { - return ((Metadata)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + public static BoundingBox Load(System.IO.TextReader xmlFile) { + return ((BoundingBox)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - public override XTypedElement Clone() { - return new Metadata(((MetadataType)(this.Content.Clone()))); + public static BoundingBox Parse(string xml) { + return ((BoundingBox)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); } - private void SetInnerType(MetadataType ContentField) { - this.ContentField = ((MetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator BoundingBox(XElement xe) { return (BoundingBox)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - protected virtual void SetSubstitutionMember(MetadataType ContentField) { - this.ContentField = ContentField; + public override XTypedElement Clone() { + return new BoundingBox(((BoundingBoxType)(this.Content.Clone()))); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + protected BoundingBox(bool setNull) { } - } - - /// <summary> - /// <para> - /// XML encoded minimum rectangular bounding box (or region) - /// parameter, surrounding all the associated data. - /// </para> - /// <para> - /// This type is adapted from the EnvelopeType of GML 3.1, - /// with modified contents and documentation for encoding a MINIMUM size box - /// SURROUNDING all associated data. - /// </para> - /// </summary> - public partial class BoundingBox : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private BoundingBoxType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"); - - public static explicit operator BoundingBox(XElement xe) { return (BoundingBox)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - protected BoundingBox(bool setNull) { - } - /// <summary> /// <para> /// XML encoded minimum rectangular bounding box (or region) @@ -9513,21 +9801,6 @@ public BoundingBox() { SetInnerType(new BoundingBoxType()); } - /// <summary> - /// <para> - /// XML encoded minimum rectangular bounding box (or region) - /// parameter, surrounding all the associated data. - /// </para> - /// <para> - /// This type is adapted from the EnvelopeType of GML 3.1, - /// with modified contents and documentation for encoding a MINIMUM size box - /// SURROUNDING all associated data. - /// </para> - /// </summary> - public BoundingBox(BoundingBoxType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -9546,6 +9819,30 @@ public virtual BoundingBoxType Content { } } + private void SetInnerType(BoundingBoxType ContentField) { + this.ContentField = ((BoundingBoxType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + protected virtual void SetSubstitutionMember(BoundingBoxType ContentField) { + this.ContentField = ContentField; + } + + /// <summary> + /// <para> + /// XML encoded minimum rectangular bounding box (or region) + /// parameter, surrounding all the associated data. + /// </para> + /// <para> + /// This type is adapted from the EnvelopeType of GML 3.1, + /// with modified contents and documentation for encoding a MINIMUM size box + /// SURROUNDING all associated data. + /// </para> + /// </summary> + public BoundingBox(BoundingBoxType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Position of the bounding box corner at which the @@ -9642,6 +9939,8 @@ public virtual System.Decimal? dimensions { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -9655,6 +9954,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9675,47 +9978,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static BoundingBox Load(string xmlFile) { - return ((BoundingBox)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static BoundingBox Load(System.IO.TextReader xmlFile) { - return ((BoundingBox)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static BoundingBox Parse(string xml) { - return ((BoundingBox)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); - } - - public override XTypedElement Clone() { - return new BoundingBox(((BoundingBoxType)(this.Content.Clone()))); - } - - private void SetInnerType(BoundingBoxType ContentField) { - this.ContentField = ((BoundingBoxType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - protected virtual void SetSubstitutionMember(BoundingBoxType ContentField) { - this.ContentField = ContentField; - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -9733,13 +9995,27 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class WGS84BoundingBox : global::OpenGis.Ows.BoundingBox, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private WGS84BoundingBoxType ContentField; + public new static WGS84BoundingBox Load(string xmlFile) { + return XTypedServices.Load<WGS84BoundingBox, WGS84BoundingBoxType>(xmlFile, LinqToXsdTypeManager.Instance); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0"); + public static WGS84BoundingBox Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<WGS84BoundingBox, WGS84BoundingBoxType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public new static WGS84BoundingBox Parse(string xml) { + return XTypedServices.Parse<WGS84BoundingBox, WGS84BoundingBoxType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator WGS84BoundingBox(XElement xe) { return XTypedServices.ToXTypedElement<WGS84BoundingBox, WGS84BoundingBoxType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return new WGS84BoundingBox(((WGS84BoundingBoxType)(this.Content.Clone()))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private WGS84BoundingBoxType ContentField; + /// <summary> /// <para> /// XML encoded minimum rectangular bounding box (or region) @@ -9758,6 +10034,28 @@ public WGS84BoundingBox() : SetInnerType(new WGS84BoundingBoxType()); } + public override XElement Untyped { + get { + return base.Untyped; + } + set { + base.Untyped = value; + this.ContentField.Untyped = value; + } + } + + public new virtual WGS84BoundingBoxType Content { + get { + return ContentField; + } + } + + private void SetInnerType(WGS84BoundingBoxType ContentField) { + this.ContentField = ((WGS84BoundingBoxType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + base.SetSubstitutionMember(ContentField); + } + /// <summary> /// <para> /// XML encoded minimum rectangular bounding box (or region) @@ -9776,22 +10074,104 @@ public WGS84BoundingBox(WGS84BoundingBoxType content) : SetInnerType(content); } - public override XElement Untyped { + /// <summary> + /// <para> + /// Position of the bounding box corner at which the + /// value of each coordinate normally is the algebraic minimum within + /// this bounding box. In some cases, this position is normally + /// displayed at the top, such as the top left for some image + /// coordinates. For more information, see Subclauses 10.2.5 and + /// C.13. + /// </para> + /// <para> + /// Occurrence: required + /// </para> + /// <para> + /// Regular expression: (LowerCorner, UpperCorner) + /// </para> + /// </summary> + public virtual IList<double> LowerCorner { get { - return base.Untyped; + return this.ContentField.LowerCorner; } set { - base.Untyped = value; - this.ContentField.Untyped = value; - } - } - - public new virtual WGS84BoundingBoxType Content { - get { - return ContentField; + this.ContentField.LowerCorner = value; } } + /// <summary> + /// <para> + /// Position of the bounding box corner at which the + /// value of each coordinate normally is the algebraic maximum within + /// this bounding box. In some cases, this position is normally + /// displayed at the bottom, such as the bottom right for some image + /// coordinates. For more information, see Subclauses 10.2.5 and + /// C.13. + /// </para> + /// <para> + /// Occurrence: required + /// </para> + /// <para> + /// Regular expression: (LowerCorner, UpperCorner) + /// </para> + /// </summary> + public virtual IList<double> UpperCorner { + get { + return this.ContentField.UpperCorner; + } + set { + this.ContentField.UpperCorner = value; + } + } + + /// <summary> + /// <para> + /// Usually references the definition of a CRS, as + /// specified in [OGC Topic 2]. Such a CRS definition can be XML encoded + /// using the gml:CoordinateReferenceSystemType in [GML 3.1]. For well + /// known references, it is not required that a CRS definition exist at + /// the location the URI points to. If no anyURI value is included, the + /// applicable CRS must be either: a) Specified outside the bounding box, + /// but inside a data structure that includes this bounding box, as + /// specified for a specific OWS use of this bounding box type. b) Fixed + /// and specified in the Implementation Specification for a specific OWS + /// use of the bounding box type. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri crs { + get { + return this.ContentField.crs; + } + set { + this.ContentField.crs = value; + } + } + + /// <summary> + /// <para> + /// The number of dimensions in this CRS (the length of a + /// coordinate sequence in this use of the PositionType). This number is + /// specified by the CRS definition, but can also be specified + /// here. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Decimal? dimensions { + get { + return this.ContentField.dimensions; + } + set { + this.ContentField.dimensions = value; + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -9805,6 +10185,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9825,32 +10209,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public new static WGS84BoundingBox Load(string xmlFile) { - return XTypedServices.Load<WGS84BoundingBox, WGS84BoundingBoxType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static WGS84BoundingBox Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<WGS84BoundingBox, WGS84BoundingBoxType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public new static WGS84BoundingBox Parse(string xml) { - return XTypedServices.Parse<WGS84BoundingBox, WGS84BoundingBoxType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new WGS84BoundingBox(((WGS84BoundingBoxType)(this.Content.Clone()))); - } - - private void SetInnerType(WGS84BoundingBoxType ContentField) { - this.ContentField = ((WGS84BoundingBoxType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - base.SetSubstitutionMember(ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -9869,13 +10227,39 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class Identifier : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private CodeType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Identifier Load(string xmlFile) { + return XTypedServices.Load<Identifier, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Identifier Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Identifier, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Identifier Parse(string xml) { + return XTypedServices.Parse<Identifier, CodeType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator Identifier(XElement xe) { return XTypedServices.ToXTypedElement<Identifier, CodeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return new Identifier(((CodeType)(this.Content.Clone()))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private CodeType ContentField; + /// <summary> /// <para> /// Name or code with an (optional) authority. If the @@ -9894,6 +10278,27 @@ public Identifier() { SetInnerType(new CodeType()); } + public override XElement Untyped { + get { + return base.Untyped; + } + set { + base.Untyped = value; + this.ContentField.Untyped = value; + } + } + + public virtual CodeType Content { + get { + return ContentField; + } + } + + private void SetInnerType(CodeType ContentField) { + this.ContentField = ((CodeType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + /// <summary> /// <para> /// Name or code with an (optional) authority. If the @@ -9912,22 +10317,6 @@ public Identifier(CodeType content) { SetInnerType(content); } - public override XElement Untyped { - get { - return base.Untyped; - } - set { - base.Untyped = value; - this.ContentField.Untyped = value; - } - } - - public virtual CodeType Content { - get { - return ContentField; - } - } - public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -9951,6 +10340,8 @@ public virtual System.Uri codeSpace { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -9964,6 +10355,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9984,6 +10379,15 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// XML encoded identifier of a standard MIME type, possibly + /// a parameterized MIME type. + /// </para> + /// </summary> + public partial class OutputFormat : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -9997,47 +10401,23 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Identifier Load(string xmlFile) { - return XTypedServices.Load<Identifier, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Identifier Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Identifier, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); + public static OutputFormat Load(string xmlFile) { + return XTypedServices.Load<OutputFormat>(xmlFile); } - public static Identifier Parse(string xml) { - return XTypedServices.Parse<Identifier, CodeType>(xml, LinqToXsdTypeManager.Instance); + public static OutputFormat Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OutputFormat>(xmlFile); } - public override XTypedElement Clone() { - return new Identifier(((CodeType)(this.Content.Clone()))); + public static OutputFormat Parse(string xml) { + return XTypedServices.Parse<OutputFormat>(xml); } - private void SetInnerType(CodeType ContentField) { - this.ContentField = ((CodeType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator OutputFormat(XElement xe) { return XTypedServices.ToXTypedElement<OutputFormat>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OutputFormat>(this); } - } - - /// <summary> - /// <para> - /// XML encoded identifier of a standard MIME type, possibly - /// a parameterized MIME type. - /// </para> - /// </summary> - public partial class OutputFormat : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); - - public static explicit operator OutputFormat(XElement xe) { return XTypedServices.ToXTypedElement<OutputFormat>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } /// <summary> /// <para> @@ -10058,6 +10438,10 @@ public OutputFormat(string content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -10068,6 +10452,12 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10088,6 +10478,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AvailableCRS : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10101,37 +10494,24 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OutputFormat Load(string xmlFile) { - return XTypedServices.Load<OutputFormat>(xmlFile); + public static AvailableCRS Load(string xmlFile) { + return ((AvailableCRS)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - public static OutputFormat Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OutputFormat>(xmlFile); + public static AvailableCRS Load(System.IO.TextReader xmlFile) { + return ((AvailableCRS)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - public static OutputFormat Parse(string xml) { - return XTypedServices.Parse<OutputFormat>(xml); + public static AvailableCRS Parse(string xml) { + return ((AvailableCRS)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); } + public static explicit operator AvailableCRS(XElement xe) { return (AvailableCRS)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OutputFormat>(this); + return XTypedServices.CloneXTypedElement<AvailableCRS>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - public partial class AvailableCRS : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"); - - public static explicit operator AvailableCRS(XElement xe) { return (AvailableCRS)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public AvailableCRS() { } @@ -10139,16 +10519,26 @@ public AvailableCRS(System.Uri content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual System.Uri TypedValue { get { XElement x = this.Untyped; - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); + return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10169,49 +10559,27 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class SupportedCRS : global::OpenGis.Ows.AvailableCRS, IXMetaData { - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); + public new static SupportedCRS Load(string xmlFile) { + return XTypedServices.Load<SupportedCRS>(xmlFile); } - public static AvailableCRS Load(string xmlFile) { - return ((AvailableCRS)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + public static SupportedCRS Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SupportedCRS>(xmlFile); } - public static AvailableCRS Load(System.IO.TextReader xmlFile) { - return ((AvailableCRS)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + public new static SupportedCRS Parse(string xml) { + return XTypedServices.Parse<SupportedCRS>(xml); } - public static AvailableCRS Parse(string xml) { - return ((AvailableCRS)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); - } + public static explicit operator SupportedCRS(XElement xe) { return XTypedServices.ToXTypedElement<SupportedCRS>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AvailableCRS>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + return XTypedServices.CloneXTypedElement<SupportedCRS>(this); } - } - - public partial class SupportedCRS : global::OpenGis.Ows.AvailableCRS, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal new static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SupportedCRS", "http://www.opengis.net/ows/2.0"); - - public static explicit operator SupportedCRS(XElement xe) { return XTypedServices.ToXTypedElement<SupportedCRS>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public SupportedCRS() { } @@ -10220,16 +10588,26 @@ public SupportedCRS(System.Uri content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal new static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public new virtual System.Uri TypedValue { get { XElement x = this.Untyped; - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); + return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SupportedCRS", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10250,38 +10628,40 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AccessConstraints : XTypedElement, IXMetaData { - public new static SupportedCRS Load(string xmlFile) { - return XTypedServices.Load<SupportedCRS>(xmlFile); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - public static SupportedCRS Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SupportedCRS>(xmlFile); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - public new static SupportedCRS Parse(string xml) { - return XTypedServices.Parse<SupportedCRS>(xml); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SupportedCRS>(this); + public static AccessConstraints Load(string xmlFile) { + return XTypedServices.Load<AccessConstraints>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static AccessConstraints Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AccessConstraints>(xmlFile); } - } - - public partial class AccessConstraints : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AccessConstraints", "http://www.opengis.net/ows/2.0"); + public static AccessConstraints Parse(string xml) { + return XTypedServices.Parse<AccessConstraints>(xml); + } public static explicit operator AccessConstraints(XElement xe) { return XTypedServices.ToXTypedElement<AccessConstraints>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AccessConstraints>(this); + } + public AccessConstraints() { } @@ -10289,6 +10669,10 @@ public AccessConstraints(string content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -10299,6 +10683,12 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AccessConstraints", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10319,6 +10709,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Fees : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10332,36 +10725,23 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static AccessConstraints Load(string xmlFile) { - return XTypedServices.Load<AccessConstraints>(xmlFile); + public static Fees Load(string xmlFile) { + return XTypedServices.Load<Fees>(xmlFile); } - public static AccessConstraints Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AccessConstraints>(xmlFile); + public static Fees Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Fees>(xmlFile); } - public static AccessConstraints Parse(string xml) { - return XTypedServices.Parse<AccessConstraints>(xml); + public static Fees Parse(string xml) { + return XTypedServices.Parse<Fees>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AccessConstraints>(this); - } + public static explicit operator Fees(XElement xe) { return XTypedServices.ToXTypedElement<Fees>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Fees>(this); } - } - - public partial class Fees : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Fees", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Fees(XElement xe) { return XTypedServices.ToXTypedElement<Fees>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public Fees() { } @@ -10370,6 +10750,10 @@ public Fees(string content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -10380,6 +10764,12 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Fees", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10400,6 +10790,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Language : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10413,36 +10806,23 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Fees Load(string xmlFile) { - return XTypedServices.Load<Fees>(xmlFile); + public static Language Load(string xmlFile) { + return XTypedServices.Load<Language>(xmlFile); } - public static Fees Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Fees>(xmlFile); + public static Language Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Language>(xmlFile); } - public static Fees Parse(string xml) { - return XTypedServices.Parse<Fees>(xml); + public static Language Parse(string xml) { + return XTypedServices.Parse<Language>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Fees>(this); - } + public static explicit operator Language(XElement xe) { return XTypedServices.ToXTypedElement<Language>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Language>(this); } - } - - public partial class Language : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Language(XElement xe) { return XTypedServices.ToXTypedElement<Language>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public Language() { } @@ -10451,6 +10831,10 @@ public Language(string content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -10461,6 +10845,12 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10481,6 +10871,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public partial class Value : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10494,43 +10894,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Language Load(string xmlFile) { - return XTypedServices.Load<Language>(xmlFile); + public static Value Load(string xmlFile) { + return XTypedServices.Load<Value, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Language Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Language>(xmlFile); + public static Value Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Value, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Language Parse(string xml) { - return XTypedServices.Parse<Language>(xml); + public static Value Parse(string xml) { + return XTypedServices.Parse<Value, ValueType>(xml, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Language>(this); - } + public static explicit operator Value(XElement xe) { return XTypedServices.ToXTypedElement<Value, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Value(((ValueType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public partial class Value : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private ValueType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Value(XElement xe) { return XTypedServices.ToXTypedElement<Value, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// A single value, encoded as a string. This type can be @@ -10542,17 +10926,6 @@ public Value() { SetInnerType(new ValueType()); } - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public Value(ValueType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -10569,6 +10942,22 @@ public virtual ValueType Content { } } + private void SetInnerType(ValueType ContentField) { + this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public Value(ValueType content) { + SetInnerType(content); + } + public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -10578,6 +10967,8 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -10591,6 +10982,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10611,6 +11006,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public partial class DefaultValue : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10624,48 +11029,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Value Load(string xmlFile) { - return XTypedServices.Load<Value, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Value Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Value, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); + public static DefaultValue Load(string xmlFile) { + return XTypedServices.Load<DefaultValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Value Parse(string xml) { - return XTypedServices.Parse<Value, ValueType>(xml, LinqToXsdTypeManager.Instance); + public static DefaultValue Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DefaultValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Value(((ValueType)(this.Content.Clone()))); + public static DefaultValue Parse(string xml) { + return XTypedServices.Parse<DefaultValue, ValueType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ValueType ContentField) { - this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator DefaultValue(XElement xe) { return XTypedServices.ToXTypedElement<DefaultValue, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new DefaultValue(((ValueType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public partial class DefaultValue : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private ValueType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DefaultValue", "http://www.opengis.net/ows/2.0"); - - public static explicit operator DefaultValue(XElement xe) { return XTypedServices.ToXTypedElement<DefaultValue, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// A single value, encoded as a string. This type can be @@ -10677,17 +11061,6 @@ public DefaultValue() { SetInnerType(new ValueType()); } - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public DefaultValue(ValueType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -10704,6 +11077,22 @@ public virtual ValueType Content { } } + private void SetInnerType(ValueType ContentField) { + this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public DefaultValue(ValueType content) { + SetInnerType(content); + } + public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -10713,6 +11102,8 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DefaultValue", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -10726,6 +11117,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10746,6 +11141,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// A range of values of a numeric parameter. This range can + /// be continuous or discrete, defined by a fixed spacing between adjacent + /// valid values. If the MinimumValue or MaximumValue is not included, there + /// is no value limit in that direction. Inclusion of the specified minimum + /// and maximum values in the range shall be defined by the + /// rangeClosure. + /// </para> + /// </summary> + public partial class Range : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10759,51 +11167,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DefaultValue Load(string xmlFile) { - return XTypedServices.Load<DefaultValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static DefaultValue Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DefaultValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Range Load(string xmlFile) { + return XTypedServices.Load<Range, RangeType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static DefaultValue Parse(string xml) { - return XTypedServices.Parse<DefaultValue, ValueType>(xml, LinqToXsdTypeManager.Instance); + public static Range Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Range, RangeType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new DefaultValue(((ValueType)(this.Content.Clone()))); + public static Range Parse(string xml) { + return XTypedServices.Parse<Range, RangeType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ValueType ContentField) { - this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator Range(XElement xe) { return XTypedServices.ToXTypedElement<Range, RangeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Range(((RangeType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// A range of values of a numeric parameter. This range can - /// be continuous or discrete, defined by a fixed spacing between adjacent - /// valid values. If the MinimumValue or MaximumValue is not included, there - /// is no value limit in that direction. Inclusion of the specified minimum - /// and maximum values in the range shall be defined by the - /// rangeClosure. - /// </para> - /// </summary> - public partial class Range : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private RangeType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Range", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Range(XElement xe) { return XTypedServices.ToXTypedElement<Range, RangeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// A range of values of a numeric parameter. This range can @@ -10818,20 +11202,6 @@ public Range() { SetInnerType(new RangeType()); } - /// <summary> - /// <para> - /// A range of values of a numeric parameter. This range can - /// be continuous or discrete, defined by a fixed spacing between adjacent - /// valid values. If the MinimumValue or MaximumValue is not included, there - /// is no value limit in that direction. Inclusion of the specified minimum - /// and maximum values in the range shall be defined by the - /// rangeClosure. - /// </para> - /// </summary> - public Range(RangeType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -10848,6 +11218,25 @@ public virtual RangeType Content { } } + private void SetInnerType(RangeType ContentField) { + this.ContentField = ((RangeType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// A range of values of a numeric parameter. This range can + /// be continuous or discrete, defined by a fixed spacing between adjacent + /// valid values. If the MinimumValue or MaximumValue is not included, there + /// is no value limit in that direction. Inclusion of the specified minimum + /// and maximum values in the range shall be defined by the + /// rangeClosure. + /// </para> + /// </summary> + public Range(RangeType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional @@ -10922,6 +11311,8 @@ public virtual IList<string> rangeClosure { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Range", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -10935,6 +11326,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10955,6 +11350,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public partial class MinimumValue : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10968,48 +11373,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Range Load(string xmlFile) { - return XTypedServices.Load<Range, RangeType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Range Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Range, RangeType>(xmlFile, LinqToXsdTypeManager.Instance); + public static MinimumValue Load(string xmlFile) { + return XTypedServices.Load<MinimumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Range Parse(string xml) { - return XTypedServices.Parse<Range, RangeType>(xml, LinqToXsdTypeManager.Instance); + public static MinimumValue Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<MinimumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Range(((RangeType)(this.Content.Clone()))); + public static MinimumValue Parse(string xml) { + return XTypedServices.Parse<MinimumValue, ValueType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(RangeType ContentField) { - this.ContentField = ((RangeType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator MinimumValue(XElement xe) { return XTypedServices.ToXTypedElement<MinimumValue, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new MinimumValue(((ValueType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public partial class MinimumValue : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private ValueType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MinimumValue", "http://www.opengis.net/ows/2.0"); - - public static explicit operator MinimumValue(XElement xe) { return XTypedServices.ToXTypedElement<MinimumValue, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// A single value, encoded as a string. This type can be @@ -11021,17 +11405,6 @@ public MinimumValue() { SetInnerType(new ValueType()); } - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public MinimumValue(ValueType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -11048,6 +11421,22 @@ public virtual ValueType Content { } } + private void SetInnerType(ValueType ContentField) { + this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public MinimumValue(ValueType content) { + SetInnerType(content); + } + public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -11057,6 +11446,8 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MinimumValue", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -11070,6 +11461,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11090,6 +11485,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public partial class MaximumValue : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11103,48 +11508,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static MinimumValue Load(string xmlFile) { - return XTypedServices.Load<MinimumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static MinimumValue Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<MinimumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); + public static MaximumValue Load(string xmlFile) { + return XTypedServices.Load<MaximumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static MinimumValue Parse(string xml) { - return XTypedServices.Parse<MinimumValue, ValueType>(xml, LinqToXsdTypeManager.Instance); + public static MaximumValue Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<MaximumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new MinimumValue(((ValueType)(this.Content.Clone()))); + public static MaximumValue Parse(string xml) { + return XTypedServices.Parse<MaximumValue, ValueType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ValueType ContentField) { - this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator MaximumValue(XElement xe) { return XTypedServices.ToXTypedElement<MaximumValue, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new MaximumValue(((ValueType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public partial class MaximumValue : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private ValueType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MaximumValue", "http://www.opengis.net/ows/2.0"); - - public static explicit operator MaximumValue(XElement xe) { return XTypedServices.ToXTypedElement<MaximumValue, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// A single value, encoded as a string. This type can be @@ -11156,17 +11540,6 @@ public MaximumValue() { SetInnerType(new ValueType()); } - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public MaximumValue(ValueType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -11183,6 +11556,22 @@ public virtual ValueType Content { } } + private void SetInnerType(ValueType ContentField) { + this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public MaximumValue(ValueType content) { + SetInnerType(content); + } + public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -11192,6 +11581,8 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MaximumValue", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -11205,6 +11596,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11225,6 +11620,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public partial class Spacing : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11238,48 +11643,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static MaximumValue Load(string xmlFile) { - return XTypedServices.Load<MaximumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static MaximumValue Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<MaximumValue, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Spacing Load(string xmlFile) { + return XTypedServices.Load<Spacing, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static MaximumValue Parse(string xml) { - return XTypedServices.Parse<MaximumValue, ValueType>(xml, LinqToXsdTypeManager.Instance); + public static Spacing Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Spacing, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new MaximumValue(((ValueType)(this.Content.Clone()))); + public static Spacing Parse(string xml) { + return XTypedServices.Parse<Spacing, ValueType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ValueType ContentField) { - this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator Spacing(XElement xe) { return XTypedServices.ToXTypedElement<Spacing, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Spacing(((ValueType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public partial class Spacing : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private ValueType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Spacing", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Spacing(XElement xe) { return XTypedServices.ToXTypedElement<Spacing, ValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// A single value, encoded as a string. This type can be @@ -11291,17 +11675,6 @@ public Spacing() { SetInnerType(new ValueType()); } - /// <summary> - /// <para> - /// A single value, encoded as a string. This type can be - /// used for one value, for a spacing between allowed values, or for the - /// default value of a parameter. - /// </para> - /// </summary> - public Spacing(ValueType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -11318,6 +11691,22 @@ public virtual ValueType Content { } } + private void SetInnerType(ValueType ContentField) { + this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// A single value, encoded as a string. This type can be + /// used for one value, for a spacing between allowed values, or for the + /// default value of a parameter. + /// </para> + /// </summary> + public Spacing(ValueType content) { + SetInnerType(content); + } + public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -11327,6 +11716,8 @@ public virtual string TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Spacing", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -11340,6 +11731,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11360,6 +11755,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public partial class Meaning : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11373,48 +11778,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Spacing Load(string xmlFile) { - return XTypedServices.Load<Spacing, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Spacing Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Spacing, ValueType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Meaning Load(string xmlFile) { + return XTypedServices.Load<Meaning, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Spacing Parse(string xml) { - return XTypedServices.Parse<Spacing, ValueType>(xml, LinqToXsdTypeManager.Instance); + public static Meaning Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Meaning, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Spacing(((ValueType)(this.Content.Clone()))); + public static Meaning Parse(string xml) { + return XTypedServices.Parse<Meaning, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ValueType ContentField) { - this.ContentField = ((ValueType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator Meaning(XElement xe) { return XTypedServices.ToXTypedElement<Meaning, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Meaning(((DomainMetadataType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public partial class Meaning : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private DomainMetadataType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Meaning", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Meaning(XElement xe) { return XTypedServices.ToXTypedElement<Meaning, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// References metadata about a quantity, and provides a name @@ -11426,17 +11810,6 @@ public Meaning() { SetInnerType(new DomainMetadataType()); } - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public Meaning(DomainMetadataType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -11453,8 +11826,24 @@ public virtual DomainMetadataType Content { } } - public virtual string TypedValue { - get { + private void SetInnerType(DomainMetadataType ContentField) { + this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public Meaning(DomainMetadataType content) { + SetInnerType(content); + } + + public virtual string TypedValue { + get { return this.ContentField.TypedValue; } set { @@ -11476,6 +11865,8 @@ public virtual System.Uri reference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Meaning", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -11489,6 +11880,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11509,6 +11904,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public partial class DataType : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11522,48 +11927,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Meaning Load(string xmlFile) { - return XTypedServices.Load<Meaning, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Meaning Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Meaning, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); + public static DataType Load(string xmlFile) { + return XTypedServices.Load<DataType, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Meaning Parse(string xml) { - return XTypedServices.Parse<Meaning, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); + public static DataType Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DataType, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Meaning(((DomainMetadataType)(this.Content.Clone()))); + public static DataType Parse(string xml) { + return XTypedServices.Parse<DataType, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(DomainMetadataType ContentField) { - this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator DataType(XElement xe) { return XTypedServices.ToXTypedElement<DataType, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new DataType(((DomainMetadataType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public partial class DataType : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private DomainMetadataType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DataType", "http://www.opengis.net/ows/2.0"); - - public static explicit operator DataType(XElement xe) { return XTypedServices.ToXTypedElement<DataType, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// References metadata about a quantity, and provides a name @@ -11575,17 +11959,6 @@ public DataType() { SetInnerType(new DomainMetadataType()); } - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public DataType(DomainMetadataType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -11602,6 +11975,22 @@ public virtual DomainMetadataType Content { } } + private void SetInnerType(DomainMetadataType ContentField) { + this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public DataType(DomainMetadataType content) { + SetInnerType(content); + } + public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -11625,6 +12014,8 @@ public virtual System.Uri reference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DataType", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -11638,6 +12029,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11658,6 +12053,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public partial class ReferenceSystem : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11671,48 +12076,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DataType Load(string xmlFile) { - return XTypedServices.Load<DataType, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static DataType Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DataType, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); + public static ReferenceSystem Load(string xmlFile) { + return XTypedServices.Load<ReferenceSystem, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static DataType Parse(string xml) { - return XTypedServices.Parse<DataType, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); + public static ReferenceSystem Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ReferenceSystem, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new DataType(((DomainMetadataType)(this.Content.Clone()))); + public static ReferenceSystem Parse(string xml) { + return XTypedServices.Parse<ReferenceSystem, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(DomainMetadataType ContentField) { - this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator ReferenceSystem(XElement xe) { return XTypedServices.ToXTypedElement<ReferenceSystem, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new ReferenceSystem(((DomainMetadataType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public partial class ReferenceSystem : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private DomainMetadataType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceSystem", "http://www.opengis.net/ows/2.0"); - - public static explicit operator ReferenceSystem(XElement xe) { return XTypedServices.ToXTypedElement<ReferenceSystem, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// References metadata about a quantity, and provides a name @@ -11724,17 +12108,6 @@ public ReferenceSystem() { SetInnerType(new DomainMetadataType()); } - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public ReferenceSystem(DomainMetadataType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -11751,6 +12124,22 @@ public virtual DomainMetadataType Content { } } + private void SetInnerType(DomainMetadataType ContentField) { + this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public ReferenceSystem(DomainMetadataType content) { + SetInnerType(content); + } + public virtual string TypedValue { get { return this.ContentField.TypedValue; @@ -11774,6 +12163,8 @@ public virtual System.Uri reference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceSystem", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -11787,6 +12178,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11807,6 +12202,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public partial class UOM : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11820,48 +12225,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ReferenceSystem Load(string xmlFile) { - return XTypedServices.Load<ReferenceSystem, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static ReferenceSystem Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ReferenceSystem, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); + public static UOM Load(string xmlFile) { + return XTypedServices.Load<UOM, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static ReferenceSystem Parse(string xml) { - return XTypedServices.Parse<ReferenceSystem, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); + public static UOM Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<UOM, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new ReferenceSystem(((DomainMetadataType)(this.Content.Clone()))); + public static UOM Parse(string xml) { + return XTypedServices.Parse<UOM, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(DomainMetadataType ContentField) { - this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator UOM(XElement xe) { return XTypedServices.ToXTypedElement<UOM, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new UOM(((DomainMetadataType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public partial class UOM : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private DomainMetadataType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UOM", "http://www.opengis.net/ows/2.0"); - - public static explicit operator UOM(XElement xe) { return XTypedServices.ToXTypedElement<UOM, DomainMetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// References metadata about a quantity, and provides a name @@ -11873,17 +12257,6 @@ public UOM() { SetInnerType(new DomainMetadataType()); } - /// <summary> - /// <para> - /// References metadata about a quantity, and provides a name - /// for this metadata. (Informative: This element was simplified from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public UOM(DomainMetadataType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -11900,14 +12273,30 @@ public virtual DomainMetadataType Content { } } - public virtual string TypedValue { - get { - return this.ContentField.TypedValue; - } - set { - this.ContentField.TypedValue = value; - } - } + private void SetInnerType(DomainMetadataType ContentField) { + this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// References metadata about a quantity, and provides a name + /// for this metadata. (Informative: This element was simplified from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public UOM(DomainMetadataType content) { + SetInnerType(content); + } + + public virtual string TypedValue { + get { + return this.ContentField.TypedValue; + } + set { + this.ContentField.TypedValue = value; + } + } /// <summary> /// <para> @@ -11923,6 +12312,8 @@ public virtual System.Uri reference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UOM", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -11936,6 +12327,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11956,6 +12351,20 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// XML encoded GetCapabilities operation request. This + /// operation allows clients to retrieve service metadata about a specific + /// service instance. In this XML encoding, no "request" parameter is + /// included, since the element name specifies the specific operation. This + /// base type shall be extended by each specific OWS to include the + /// additional required "service" attribute, with the correct value for that + /// OWS. + /// </para> + /// </summary> + public partial class GetCapabilities : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11969,52 +12378,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static UOM Load(string xmlFile) { - return XTypedServices.Load<UOM, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static UOM Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<UOM, DomainMetadataType>(xmlFile, LinqToXsdTypeManager.Instance); + public static GetCapabilities Load(string xmlFile) { + return XTypedServices.Load<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static UOM Parse(string xml) { - return XTypedServices.Parse<UOM, DomainMetadataType>(xml, LinqToXsdTypeManager.Instance); + public static GetCapabilities Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new UOM(((DomainMetadataType)(this.Content.Clone()))); + public static GetCapabilities Parse(string xml) { + return XTypedServices.Parse<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(DomainMetadataType ContentField) { - this.ContentField = ((DomainMetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator GetCapabilities(XElement xe) { return XTypedServices.ToXTypedElement<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new GetCapabilities(((OpenGis.Ows.GetCapabilitiesType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// XML encoded GetCapabilities operation request. This - /// operation allows clients to retrieve service metadata about a specific - /// service instance. In this XML encoding, no "request" parameter is - /// included, since the element name specifies the specific operation. This - /// base type shall be extended by each specific OWS to include the - /// additional required "service" attribute, with the correct value for that - /// OWS. - /// </para> - /// </summary> - public partial class GetCapabilities : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private OpenGis.Ows.GetCapabilitiesType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetCapabilities", "http://www.opengis.net/ows/2.0"); - - public static explicit operator GetCapabilities(XElement xe) { return XTypedServices.ToXTypedElement<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// XML encoded GetCapabilities operation request. This @@ -12030,21 +12414,6 @@ public GetCapabilities() { SetInnerType(new OpenGis.Ows.GetCapabilitiesType()); } - /// <summary> - /// <para> - /// XML encoded GetCapabilities operation request. This - /// operation allows clients to retrieve service metadata about a specific - /// service instance. In this XML encoding, no "request" parameter is - /// included, since the element name specifies the specific operation. This - /// base type shall be extended by each specific OWS to include the - /// additional required "service" attribute, with the correct value for that - /// OWS. - /// </para> - /// </summary> - public GetCapabilities(OpenGis.Ows.GetCapabilitiesType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -12061,6 +12430,26 @@ public virtual OpenGis.Ows.GetCapabilitiesType Content { } } + private void SetInnerType(OpenGis.Ows.GetCapabilitiesType ContentField) { + this.ContentField = ((OpenGis.Ows.GetCapabilitiesType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// XML encoded GetCapabilities operation request. This + /// operation allows clients to retrieve service metadata about a specific + /// service instance. In this XML encoding, no "request" parameter is + /// included, since the element name specifies the specific operation. This + /// base type shall be extended by each specific OWS to include the + /// additional required "service" attribute, with the correct value for that + /// OWS. + /// </para> + /// </summary> + public GetCapabilities(OpenGis.Ows.GetCapabilitiesType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// When omitted, server shall return latest supported @@ -12167,6 +12556,8 @@ public virtual string updateSequence { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetCapabilities", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -12180,6 +12571,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12200,6 +12595,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Request to a service to perform the GetResourceByID + /// operation. This operation allows a client to retrieve one or more + /// identified resources, including datasets and resources that describe + /// datasets or parameters. In this XML encoding, no "request" parameter is + /// included, since the element name specifies the specific + /// operation. + /// </para> + /// </summary> + public partial class GetResourceByID : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12213,51 +12621,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GetCapabilities Load(string xmlFile) { - return XTypedServices.Load<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static GetCapabilities Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xmlFile, LinqToXsdTypeManager.Instance); + public static GetResourceByID Load(string xmlFile) { + return XTypedServices.Load<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static GetCapabilities Parse(string xml) { - return XTypedServices.Parse<GetCapabilities, OpenGis.Ows.GetCapabilitiesType>(xml, LinqToXsdTypeManager.Instance); + public static GetResourceByID Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new GetCapabilities(((OpenGis.Ows.GetCapabilitiesType)(this.Content.Clone()))); + public static GetResourceByID Parse(string xml) { + return XTypedServices.Parse<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(OpenGis.Ows.GetCapabilitiesType ContentField) { - this.ContentField = ((OpenGis.Ows.GetCapabilitiesType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator GetResourceByID(XElement xe) { return XTypedServices.ToXTypedElement<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new GetResourceByID(((OpenGis.Ows.GetResourceByIdType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// Request to a service to perform the GetResourceByID - /// operation. This operation allows a client to retrieve one or more - /// identified resources, including datasets and resources that describe - /// datasets or parameters. In this XML encoding, no "request" parameter is - /// included, since the element name specifies the specific - /// operation. - /// </para> - /// </summary> - public partial class GetResourceByID : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private OpenGis.Ows.GetResourceByIdType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetResourceByID", "http://www.opengis.net/ows/2.0"); - - public static explicit operator GetResourceByID(XElement xe) { return XTypedServices.ToXTypedElement<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Request to a service to perform the GetResourceByID @@ -12272,20 +12656,6 @@ public GetResourceByID() { SetInnerType(new OpenGis.Ows.GetResourceByIdType()); } - /// <summary> - /// <para> - /// Request to a service to perform the GetResourceByID - /// operation. This operation allows a client to retrieve one or more - /// identified resources, including datasets and resources that describe - /// datasets or parameters. In this XML encoding, no "request" parameter is - /// included, since the element name specifies the specific - /// operation. - /// </para> - /// </summary> - public GetResourceByID(OpenGis.Ows.GetResourceByIdType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -12302,6 +12672,25 @@ public virtual OpenGis.Ows.GetResourceByIdType Content { } } + private void SetInnerType(OpenGis.Ows.GetResourceByIdType ContentField) { + this.ContentField = ((OpenGis.Ows.GetResourceByIdType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// Request to a service to perform the GetResourceByID + /// operation. This operation allows a client to retrieve one or more + /// identified resources, including datasets and resources that describe + /// datasets or parameters. In this XML encoding, no "request" parameter is + /// included, since the element name specifies the specific + /// operation. + /// </para> + /// </summary> + public GetResourceByID(OpenGis.Ows.GetResourceByIdType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Unordered list of zero or more resource identifiers. @@ -12378,6 +12767,8 @@ public virtual string version { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetResourceByID", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -12391,6 +12782,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12411,6 +12806,15 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// An Exception element describes one detected error that a + /// server chooses to convey to the client. + /// </para> + /// </summary> + public partial class Exception : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12424,46 +12828,26 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GetResourceByID Load(string xmlFile) { - return XTypedServices.Load<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Exception Load(string xmlFile) { + return XTypedServices.Load<Exception, ExceptionType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static GetResourceByID Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Exception Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Exception, ExceptionType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static GetResourceByID Parse(string xml) { - return XTypedServices.Parse<GetResourceByID, OpenGis.Ows.GetResourceByIdType>(xml, LinqToXsdTypeManager.Instance); + public static Exception Parse(string xml) { + return XTypedServices.Parse<Exception, ExceptionType>(xml, LinqToXsdTypeManager.Instance); } + public static explicit operator Exception(XElement xe) { return XTypedServices.ToXTypedElement<Exception, ExceptionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return new GetResourceByID(((OpenGis.Ows.GetResourceByIdType)(this.Content.Clone()))); + return new Exception(((ExceptionType)(this.Content.Clone()))); } - private void SetInnerType(OpenGis.Ows.GetResourceByIdType ContentField) { - this.ContentField = ((OpenGis.Ows.GetResourceByIdType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// An Exception element describes one detected error that a - /// server chooses to convey to the client. - /// </para> - /// </summary> - public partial class Exception : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ExceptionType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exception", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Exception(XElement xe) { return XTypedServices.ToXTypedElement<Exception, ExceptionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ExceptionType ContentField; /// <summary> /// <para> @@ -12475,16 +12859,6 @@ public Exception() { SetInnerType(new ExceptionType()); } - /// <summary> - /// <para> - /// An Exception element describes one detected error that a - /// server chooses to convey to the client. - /// </para> - /// </summary> - public Exception(ExceptionType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -12501,6 +12875,21 @@ public virtual ExceptionType Content { } } + private void SetInnerType(ExceptionType ContentField) { + this.ContentField = ((ExceptionType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// An Exception element describes one detected error that a + /// server chooses to convey to the client. + /// </para> + /// </summary> + public Exception(ExceptionType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Ordered sequence of text strings that describe this @@ -12570,6 +12959,8 @@ public virtual string locator { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exception", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -12583,6 +12974,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12603,6 +12998,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// This element either references or contains more metadata + /// about the element that includes this element. To reference metadata + /// stored remotely, at least the xlinks:href attribute in xlink:simpleAttrs + /// shall be included. Either at least one of the attributes in + /// xlink:simpleAttrs or a substitute for the AbstractMetaData element shall + /// be included, but not both. An Implementation Specification can restrict + /// the contents of this element to always be a reference or always contain + /// metadata. (Informative: This element was adapted from the + /// metaDataProperty element in GML 3.0.) + /// </para> + /// </summary> + public partial class OtherSource : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12616,54 +13027,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Exception Load(string xmlFile) { - return XTypedServices.Load<Exception, ExceptionType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Exception Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Exception, ExceptionType>(xmlFile, LinqToXsdTypeManager.Instance); + public static OtherSource Load(string xmlFile) { + return XTypedServices.Load<OtherSource, MetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Exception Parse(string xml) { - return XTypedServices.Parse<Exception, ExceptionType>(xml, LinqToXsdTypeManager.Instance); + public static OtherSource Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OtherSource, MetadataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Exception(((ExceptionType)(this.Content.Clone()))); + public static OtherSource Parse(string xml) { + return XTypedServices.Parse<OtherSource, MetadataType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ExceptionType ContentField) { - this.ContentField = ((ExceptionType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator OtherSource(XElement xe) { return XTypedServices.ToXTypedElement<OtherSource, MetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new OtherSource(((MetadataType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// This element either references or contains more metadata - /// about the element that includes this element. To reference metadata - /// stored remotely, at least the xlinks:href attribute in xlink:simpleAttrs - /// shall be included. Either at least one of the attributes in - /// xlink:simpleAttrs or a substitute for the AbstractMetaData element shall - /// be included, but not both. An Implementation Specification can restrict - /// the contents of this element to always be a reference or always contain - /// metadata. (Informative: This element was adapted from the - /// metaDataProperty element in GML 3.0.) - /// </para> - /// </summary> - public partial class OtherSource : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private MetadataType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OtherSource", "http://www.opengis.net/ows/2.0"); - - public static explicit operator OtherSource(XElement xe) { return XTypedServices.ToXTypedElement<OtherSource, MetadataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// This element either references or contains more metadata @@ -12681,6 +13065,27 @@ public OtherSource() { SetInnerType(new MetadataType()); } + public override XElement Untyped { + get { + return base.Untyped; + } + set { + base.Untyped = value; + this.ContentField.Untyped = value; + } + } + + public virtual MetadataType Content { + get { + return ContentField; + } + } + + private void SetInnerType(MetadataType ContentField) { + this.ContentField = ((MetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + /// <summary> /// <para> /// This element either references or contains more metadata @@ -12698,22 +13103,6 @@ public OtherSource(MetadataType content) { SetInnerType(content); } - public override XElement Untyped { - get { - return base.Untyped; - } - set { - base.Untyped = value; - this.ContentField.Untyped = value; - } - } - - public virtual MetadataType Content { - get { - return ContentField; - } - } - /// <summary> /// <para> /// Occurrence: optional @@ -12809,7 +13198,7 @@ public virtual string title { /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { return this.ContentField.show; } @@ -12851,6 +13240,8 @@ public virtual System.Uri about { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OtherSource", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -12864,6 +13255,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12884,6 +13279,17 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Typical dataset metadata in typical Contents section of + /// an OWS service metadata (Capabilities) document. This type shall be + /// extended and/or restricted if needed for specific OWS use, to include + /// the specific Dataset description metadata needed. + /// </para> + /// </summary> + public partial class DatasetDescriptionSummary : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12897,49 +13303,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OtherSource Load(string xmlFile) { - return XTypedServices.Load<OtherSource, MetadataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static OtherSource Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OtherSource, MetadataType>(xmlFile, LinqToXsdTypeManager.Instance); + public static DatasetDescriptionSummary Load(string xmlFile) { + return XTypedServices.Load<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static OtherSource Parse(string xml) { - return XTypedServices.Parse<OtherSource, MetadataType>(xml, LinqToXsdTypeManager.Instance); + public static DatasetDescriptionSummary Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new OtherSource(((MetadataType)(this.Content.Clone()))); + public static DatasetDescriptionSummary Parse(string xml) { + return XTypedServices.Parse<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(MetadataType ContentField) { - this.ContentField = ((MetadataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator DatasetDescriptionSummary(XElement xe) { return XTypedServices.ToXTypedElement<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new DatasetDescriptionSummary(((DatasetDescriptionSummaryBaseType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// Typical dataset metadata in typical Contents section of - /// an OWS service metadata (Capabilities) document. This type shall be - /// extended and/or restricted if needed for specific OWS use, to include - /// the specific Dataset description metadata needed. - /// </para> - /// </summary> - public partial class DatasetDescriptionSummary : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private DatasetDescriptionSummaryBaseType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"); - - public static explicit operator DatasetDescriptionSummary(XElement xe) { return XTypedServices.ToXTypedElement<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Typical dataset metadata in typical Contents section of @@ -12952,18 +13336,6 @@ public DatasetDescriptionSummary() { SetInnerType(new DatasetDescriptionSummaryBaseType()); } - /// <summary> - /// <para> - /// Typical dataset metadata in typical Contents section of - /// an OWS service metadata (Capabilities) document. This type shall be - /// extended and/or restricted if needed for specific OWS use, to include - /// the specific Dataset description metadata needed. - /// </para> - /// </summary> - public DatasetDescriptionSummary(DatasetDescriptionSummaryBaseType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -12980,6 +13352,23 @@ public virtual DatasetDescriptionSummaryBaseType Content { } } + private void SetInnerType(DatasetDescriptionSummaryBaseType ContentField) { + this.ContentField = ((DatasetDescriptionSummaryBaseType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// Typical dataset metadata in typical Contents section of + /// an OWS service metadata (Capabilities) document. This type shall be + /// extended and/or restricted if needed for specific OWS use, to include + /// the specific Dataset description metadata needed. + /// </para> + /// </summary> + public DatasetDescriptionSummary(DatasetDescriptionSummaryBaseType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Unordered list of zero or more minimum bounding @@ -13118,75 +13507,95 @@ public virtual IList<DatasetDescriptionSummary> DatasetDescriptionSummary1 { } } - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) + /// </para> + /// </summary> + public virtual IList<Title> Title { get { - IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); - return schemaMetaData.LocalElementsDictionary; + return this.ContentField.Title; } - } - - XTypedElement IXMetaData.Content { - get { - return this.Content; + set { + this.ContentField.Title = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) + /// </para> + /// </summary> + public virtual IList<Abstract> Abstract { get { - return SchemaOrigin.Element; + return this.ContentField.Abstract; + } + set { + this.ContentField.Abstract = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) + /// </para> + /// </summary> + public virtual IList<Keywords> Keywords { get { - return LinqToXsdTypeManager.Instance; + return this.ContentField.Keywords; + } + set { + this.ContentField.Keywords = value; } } - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"); - public static DatasetDescriptionSummary Load(string xmlFile) { - return XTypedServices.Load<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xmlFile, LinqToXsdTypeManager.Instance); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); + return schemaMetaData.LocalElementsDictionary; + } } - public static DatasetDescriptionSummary Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xmlFile, LinqToXsdTypeManager.Instance); + XTypedElement IXMetaData.Content { + get { + return this.Content; + } } - public static DatasetDescriptionSummary Parse(string xml) { - return XTypedServices.Parse<DatasetDescriptionSummary, DatasetDescriptionSummaryBaseType>(xml, LinqToXsdTypeManager.Instance); + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } - public override XTypedElement Clone() { - return new DatasetDescriptionSummary(((DatasetDescriptionSummaryBaseType)(this.Content.Clone()))); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } } - private void SetInnerType(DatasetDescriptionSummaryBaseType ContentField) { - this.ContentField = ((DatasetDescriptionSummaryBaseType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } } @@ -13202,16 +13611,38 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public abstract partial class AbstractReferenceBase : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private AbstractReferenceBaseType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static AbstractReferenceBase Load(string xmlFile) { + return ((AbstractReferenceBase)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public static AbstractReferenceBase Load(System.IO.TextReader xmlFile) { + return ((AbstractReferenceBase)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public static AbstractReferenceBase Parse(string xml) { + return ((AbstractReferenceBase)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + } public static explicit operator AbstractReferenceBase(XElement xe) { return (AbstractReferenceBase)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } protected AbstractReferenceBase(bool setNull) { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private AbstractReferenceBaseType ContentField; + /// <summary> /// <para> /// Base for a reference to a remote or local @@ -13226,20 +13657,6 @@ public AbstractReferenceBase() { SetInnerType(new AbstractReferenceBaseType()); } - /// <summary> - /// <para> - /// Base for a reference to a remote or local - /// resource. - /// </para> - /// <para> - /// This type contains only a restricted and annotated set of - /// the attributes from the xlink:simpleAttrs attributeGroup. - /// </para> - /// </summary> - public AbstractReferenceBase(AbstractReferenceBaseType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -13258,6 +13675,29 @@ public virtual AbstractReferenceBaseType Content { } } + private void SetInnerType(AbstractReferenceBaseType ContentField) { + this.ContentField = ((AbstractReferenceBaseType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + protected virtual void SetSubstitutionMember(AbstractReferenceBaseType ContentField) { + this.ContentField = ContentField; + } + + /// <summary> + /// <para> + /// Base for a reference to a remote or local + /// resource. + /// </para> + /// <para> + /// This type contains only a restricted and annotated set of + /// the attributes from the xlink:simpleAttrs attributeGroup. + /// </para> + /// </summary> + public AbstractReferenceBase(AbstractReferenceBaseType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional @@ -13356,7 +13796,7 @@ public virtual string title { /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { return this.ContentField.show; } @@ -13383,6 +13823,8 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -13396,6 +13838,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -13416,43 +13862,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static AbstractReferenceBase Load(string xmlFile) { - return ((AbstractReferenceBase)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static AbstractReferenceBase Load(System.IO.TextReader xmlFile) { - return ((AbstractReferenceBase)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static AbstractReferenceBase Parse(string xml) { - return ((AbstractReferenceBase)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); - } - - private void SetInnerType(AbstractReferenceBaseType ContentField) { - this.ContentField = ((AbstractReferenceBaseType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - protected virtual void SetSubstitutionMember(AbstractReferenceBaseType ContentField) { - this.ContentField = ContentField; - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -13463,17 +13872,31 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class Reference : global::OpenGis.Ows.AbstractReferenceBase, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ReferenceType ContentField; + public new static Reference Load(string xmlFile) { + return ((Reference)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Reference", "http://www.opengis.net/ows/2.0"); + public static Reference Load(System.IO.TextReader xmlFile) { + return ((Reference)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public new static Reference Parse(string xml) { + return ((Reference)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + } public static explicit operator Reference(XElement xe) { return (Reference)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return new Reference(((ReferenceType)(this.Content.Clone()))); + } + protected Reference(bool setNull) : base(true) { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ReferenceType ContentField; + /// <summary> /// <para> /// Complete reference to a remote or local resource, @@ -13485,17 +13908,6 @@ public Reference() : SetInnerType(new ReferenceType()); } - /// <summary> - /// <para> - /// Complete reference to a remote or local resource, - /// allowing including metadata about that resource. - /// </para> - /// </summary> - public Reference(ReferenceType content) : - base(true) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -13514,6 +13926,28 @@ public override XElement Untyped { } } + private void SetInnerType(ReferenceType ContentField) { + this.ContentField = ((ReferenceType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + base.SetSubstitutionMember(ContentField); + } + + protected virtual void SetSubstitutionMember(ReferenceType ContentField) { + this.ContentField = ContentField; + base.SetSubstitutionMember(ContentField); + } + + /// <summary> + /// <para> + /// Complete reference to a remote or local resource, + /// allowing including metadata about that resource. + /// </para> + /// </summary> + public Reference(ReferenceType content) : + base(true) { + SetInnerType(content); + } + /// <summary> /// <para> /// Optional unique identifier of the referenced @@ -13601,149 +14035,133 @@ public virtual IList<Metadata> Metadata { } } - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual string type { get { - IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); - return schemaMetaData.LocalElementsDictionary; + return this.ContentField.type; + } + set { + this.ContentField.type = value; } } - XTypedElement IXMetaData.Content { + /// <summary> + /// <para> + /// Reference to a remote resource or local payload. A + /// remote resource is typically addressed by a URL. For a local payload + /// (such as a multipart mime message), the xlink:href must start with the + /// prefix cid:. + /// </para> + /// <para> + /// Occurrence: required + /// </para> + /// </summary> + public virtual System.Uri href { get { - return this.Content; + return this.ContentField.href; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; + set { + this.ContentField.href = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + /// <summary> + /// <para> + /// Reference to a resource that describes the role of this + /// reference. When no value is supplied, no particular role value is to + /// be inferred. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri role { get { - return SchemaOrigin.Element; + return this.ContentField.role; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; + set { + this.ContentField.role = value; } } - public new static Reference Load(string xmlFile) { - return ((Reference)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static Reference Load(System.IO.TextReader xmlFile) { - return ((Reference)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public new static Reference Parse(string xml) { - return ((Reference)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); - } - - public override XTypedElement Clone() { - return new Reference(((ReferenceType)(this.Content.Clone()))); - } - - private void SetInnerType(ReferenceType ContentField) { - this.ContentField = ((ReferenceType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - base.SetSubstitutionMember(ContentField); - } - - protected virtual void SetSubstitutionMember(ReferenceType ContentField) { - this.ContentField = ContentField; - base.SetSubstitutionMember(ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Logical group of one or more references to remote and/or - /// local resources, allowing including metadata about that group. A Group - /// can be used instead of a Manifest that can only contain one - /// group. - /// </para> - /// </summary> - public partial class ReferenceGroup : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ReferenceGroupType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceGroup", "http://www.opengis.net/ows/2.0"); - - public static explicit operator ReferenceGroup(XElement xe) { return XTypedServices.ToXTypedElement<ReferenceGroup, ReferenceGroupType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> - /// Logical group of one or more references to remote and/or - /// local resources, allowing including metadata about that group. A Group - /// can be used instead of a Manifest that can only contain one - /// group. + /// Although allowed, this attribute is not expected to be + /// useful in this application of xlink:simpleAttrs. + /// </para> + /// <para> + /// Occurrence: optional /// </para> /// </summary> - public ReferenceGroup() { - SetInnerType(new ReferenceGroupType()); + public virtual System.Uri arcrole { + get { + return this.ContentField.arcrole; + } + set { + this.ContentField.arcrole = value; + } } /// <summary> /// <para> - /// Logical group of one or more references to remote and/or - /// local resources, allowing including metadata about that group. A Group - /// can be used instead of a Manifest that can only contain one - /// group. + /// Describes the meaning of the referenced resource in a + /// human-readable fashion. + /// </para> + /// <para> + /// Occurrence: optional /// </para> /// </summary> - public ReferenceGroup(ReferenceGroupType content) { - SetInnerType(content); - } - - public override XElement Untyped { + public virtual string title { get { - return base.Untyped; + return this.ContentField.title; } set { - base.Untyped = value; - this.ContentField.Untyped = value; + this.ContentField.title = value; } } - public virtual ReferenceGroupType Content { + /// <summary> + /// <para> + /// Although allowed, this attribute is not expected to be + /// useful in this application of xlink:simpleAttrs. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { - return ContentField; + return this.ContentField.show; + } + set { + this.ContentField.show = value; } } /// <summary> /// <para> - /// Occurrence: required, repeating - /// </para> - /// <para> - /// Substitution members: AbstractReferenceBase, Reference, ServiceReference + /// Although allowed, this attribute is not expected to be + /// useful in this application of xlink:simpleAttrs. /// </para> /// <para> - /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*, AbstractReferenceBase+) + /// Occurrence: optional /// </para> /// </summary> - public virtual IList<AbstractReferenceBase> AbstractReferenceBase { + public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { get { - return this.ContentField.AbstractReferenceBase; + return this.ContentField.actuate; } set { - this.ContentField.AbstractReferenceBase = value; + this.ContentField.actuate = value; } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Reference", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -13757,6 +14175,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -13777,6 +14199,17 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Logical group of one or more references to remote and/or + /// local resources, allowing including metadata about that group. A Group + /// can be used instead of a Manifest that can only contain one + /// group. + /// </para> + /// </summary> + public partial class ReferenceGroup : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -13802,53 +14235,25 @@ public static ReferenceGroup Parse(string xml) { return XTypedServices.Parse<ReferenceGroup, ReferenceGroupType>(xml, LinqToXsdTypeManager.Instance); } + public static explicit operator ReferenceGroup(XElement xe) { return XTypedServices.ToXTypedElement<ReferenceGroup, ReferenceGroupType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return new ReferenceGroup(((ReferenceGroupType)(this.Content.Clone()))); } - private void SetInnerType(ReferenceGroupType ContentField) { - this.ContentField = ((ReferenceGroupType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. - /// </para> - /// </summary> - public partial class Manifest : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ManifestType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Manifest", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Manifest(XElement xe) { return XTypedServices.ToXTypedElement<Manifest, ManifestType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - /// <summary> - /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. - /// </para> - /// </summary> - public Manifest() { - SetInnerType(new ManifestType()); - } + private ReferenceGroupType ContentField; /// <summary> /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. + /// Logical group of one or more references to remote and/or + /// local resources, allowing including metadata about that group. A Group + /// can be used instead of a Manifest that can only contain one + /// group. /// </para> /// </summary> - public Manifest(ManifestType content) { - SetInnerType(content); + public ReferenceGroup() { + SetInnerType(new ReferenceGroupType()); } public override XElement Untyped { @@ -13861,169 +14266,149 @@ public override XElement Untyped { } } - public virtual ManifestType Content { + public virtual ReferenceGroupType Content { get { return ContentField; } } + private void SetInnerType(ReferenceGroupType ContentField) { + this.ContentField = ((ReferenceGroupType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// Logical group of one or more references to remote and/or + /// local resources, allowing including metadata about that group. A Group + /// can be used instead of a Manifest that can only contain one + /// group. + /// </para> + /// </summary> + public ReferenceGroup(ReferenceGroupType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: required, repeating /// </para> /// <para> - /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*, ReferenceGroup+) + /// Substitution members: AbstractReferenceBase, Reference, ServiceReference + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*, AbstractReferenceBase+) /// </para> /// </summary> - public virtual IList<ReferenceGroup> ReferenceGroup { + public virtual IList<AbstractReferenceBase> AbstractReferenceBase { get { - return this.ContentField.ReferenceGroup; + return this.ContentField.AbstractReferenceBase; } set { - this.ContentField.ReferenceGroup = value; + this.ContentField.AbstractReferenceBase = value; } } - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); - return schemaMetaData.LocalElementsDictionary; - } - } - - XTypedElement IXMetaData.Content { + /// <summary> + /// <para> + /// Optional unique identifier or name of this + /// dataset. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) + /// </para> + /// </summary> + public virtual Identifier Identifier { get { - return this.Content; + return this.ContentField.Identifier; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; + set { + this.ContentField.Identifier = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + /// <summary> + /// <para> + /// Optional unordered list of additional metadata + /// about this data(set). A list of optional metadata elements for + /// this data identification could be specified in the + /// Implementation Specification for this service. + /// </para> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Substitution members: Metadata, AdditionalParameters + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) + /// </para> + /// </summary> + public virtual IList<Metadata> Metadata { get { - return SchemaOrigin.Element; + return this.ContentField.Metadata; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; + set { + this.ContentField.Metadata = value; } } - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static Manifest Load(string xmlFile) { - return XTypedServices.Load<Manifest, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Manifest Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Manifest, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Manifest Parse(string xml) { - return XTypedServices.Parse<Manifest, ManifestType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new Manifest(((ManifestType)(this.Content.Clone()))); - } - - private void SetInnerType(ManifestType ContentField) { - this.ContentField = ((ManifestType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. - /// </para> - /// </summary> - public partial class OperationResponse : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ManifestType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OperationResponse", "http://www.opengis.net/ows/2.0"); - - public static explicit operator OperationResponse(XElement xe) { return XTypedServices.ToXTypedElement<OperationResponse, ManifestType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. + /// Occurrence: optional, repeating /// </para> - /// </summary> - public OperationResponse() { - SetInnerType(new ManifestType()); - } - - /// <summary> /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public OperationResponse(ManifestType content) { - SetInnerType(content); - } - - public override XElement Untyped { + public virtual IList<Title> Title { get { - return base.Untyped; + return this.ContentField.Title; } set { - base.Untyped = value; - this.ContentField.Untyped = value; + this.ContentField.Title = value; } } - public virtual ManifestType Content { + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) + /// </para> + /// </summary> + public virtual IList<Abstract> Abstract { get { - return ContentField; + return this.ContentField.Abstract; + } + set { + this.ContentField.Abstract = value; } } /// <summary> /// <para> - /// Occurrence: required, repeating + /// Occurrence: optional, repeating /// </para> /// <para> - /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*, ReferenceGroup+) + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public virtual IList<ReferenceGroup> ReferenceGroup { + public virtual IList<Keywords> Keywords { get { - return this.ContentField.ReferenceGroup; + return this.ContentField.Keywords; } set { - this.ContentField.ReferenceGroup = value; + this.ContentField.Keywords = value; } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReferenceGroup", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -14037,6 +14422,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14057,6 +14446,15 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Unordered list of one or more groups of references to + /// remote and/or local resources. + /// </para> + /// </summary> + public partial class Manifest : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -14070,67 +14468,37 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OperationResponse Load(string xmlFile) { - return XTypedServices.Load<OperationResponse, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static OperationResponse Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OperationResponse, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Manifest Load(string xmlFile) { + return XTypedServices.Load<Manifest, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static OperationResponse Parse(string xml) { - return XTypedServices.Parse<OperationResponse, ManifestType>(xml, LinqToXsdTypeManager.Instance); + public static Manifest Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Manifest, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new OperationResponse(((ManifestType)(this.Content.Clone()))); + public static Manifest Parse(string xml) { + return XTypedServices.Parse<Manifest, ManifestType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ManifestType ContentField) { - this.ContentField = ((ManifestType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator Manifest(XElement xe) { return XTypedServices.ToXTypedElement<Manifest, ManifestType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Manifest(((ManifestType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. - /// </para> - /// </summary> - public partial class InputData : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private ManifestType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InputData", "http://www.opengis.net/ows/2.0"); - - public static explicit operator InputData(XElement xe) { return XTypedServices.ToXTypedElement<InputData, ManifestType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Unordered list of one or more groups of references to /// remote and/or local resources. /// </para> /// </summary> - public InputData() { + public Manifest() { SetInnerType(new ManifestType()); } - /// <summary> - /// <para> - /// Unordered list of one or more groups of references to - /// remote and/or local resources. - /// </para> - /// </summary> - public InputData(ManifestType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -14147,6 +14515,21 @@ public virtual ManifestType Content { } } + private void SetInnerType(ManifestType ContentField) { + this.ContentField = ((ManifestType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// Unordered list of one or more groups of references to + /// remote and/or local resources. + /// </para> + /// </summary> + public Manifest(ManifestType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: required, repeating @@ -14164,198 +14547,106 @@ public virtual IList<ReferenceGroup> ReferenceGroup { } } - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + /// <summary> + /// <para> + /// Optional unique identifier or name of this + /// dataset. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) + /// </para> + /// </summary> + public virtual Identifier Identifier { get { - IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); - return schemaMetaData.LocalElementsDictionary; + return this.ContentField.Identifier; } - } - - XTypedElement IXMetaData.Content { - get { - return this.Content; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; + set { + this.ContentField.Identifier = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + /// <summary> + /// <para> + /// Optional unordered list of additional metadata + /// about this data(set). A list of optional metadata elements for + /// this data identification could be specified in the + /// Implementation Specification for this service. + /// </para> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Substitution members: Metadata, AdditionalParameters + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) + /// </para> + /// </summary> + public virtual IList<Metadata> Metadata { get { - return SchemaOrigin.Element; + return this.ContentField.Metadata; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; + set { + this.ContentField.Metadata = value; } } - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static InputData Load(string xmlFile) { - return XTypedServices.Load<InputData, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static InputData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<InputData, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static InputData Parse(string xml) { - return XTypedServices.Parse<InputData, ManifestType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new InputData(((ManifestType)(this.Content.Clone()))); - } - - private void SetInnerType(ManifestType ContentField) { - this.ContentField = ((ManifestType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Complete reference to a remote resource that needs to be - /// retrieved from an OWS using an XML-encoded operation request. This - /// element shall be used, within an InputData or Manifest element that is - /// used for input data, when that input data needs to be retrieved from - /// another web service using a XML-encoded OWS operation request. This - /// element shall not be used for local payload input data or for requesting - /// the resource from a web server using HTTP Get. - /// </para> - /// </summary> - public partial class ServiceReference : global::OpenGis.Ows.Reference, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ServiceReferenceType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceReference", "http://www.opengis.net/ows/2.0"); - - public static explicit operator ServiceReference(XElement xe) { return XTypedServices.ToXTypedElement<ServiceReference, ServiceReferenceType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> - /// Complete reference to a remote resource that needs to be - /// retrieved from an OWS using an XML-encoded operation request. This - /// element shall be used, within an InputData or Manifest element that is - /// used for input data, when that input data needs to be retrieved from - /// another web service using a XML-encoded OWS operation request. This - /// element shall not be used for local payload input data or for requesting - /// the resource from a web server using HTTP Get. + /// Occurrence: optional, repeating /// </para> - /// </summary> - public ServiceReference() : - base(true) { - SetInnerType(new ServiceReferenceType()); - } - - /// <summary> /// <para> - /// Complete reference to a remote resource that needs to be - /// retrieved from an OWS using an XML-encoded operation request. This - /// element shall be used, within an InputData or Manifest element that is - /// used for input data, when that input data needs to be retrieved from - /// another web service using a XML-encoded OWS operation request. This - /// element shall not be used for local payload input data or for requesting - /// the resource from a web server using HTTP Get. + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public ServiceReference(ServiceReferenceType content) : - base(true) { - SetInnerType(content); - } - - public override XElement Untyped { + public virtual IList<Title> Title { get { - return base.Untyped; + return this.ContentField.Title; } set { - base.Untyped = value; - this.ContentField.Untyped = value; - } - } - - public new virtual ServiceReferenceType Content { - get { - return ContentField; + this.ContentField.Title = value; } } /// <summary> /// <para> - /// The XML-encoded operation request message to be - /// sent to request this input data from another web server using - /// HTTP Post. - /// </para> - /// <para> - /// Occurrence: required, choice - /// </para> - /// <para> - /// Setter: Appends + /// Occurrence: optional, repeating /// </para> /// <para> - /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*, (RequestMessage | RequestMessageReference)) + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public virtual XTypedElement RequestMessage { + public virtual IList<Abstract> Abstract { get { - return this.ContentField.RequestMessage; + return this.ContentField.Abstract; } set { - this.ContentField.RequestMessage = value; + this.ContentField.Abstract = value; } } /// <summary> /// <para> - /// Reference to the XML-encoded operation request - /// message to be sent to request this input data from another web - /// server using HTTP Post. The referenced message shall be attached - /// to the same message (using the cid scheme), or be accessible - /// using a URL. - /// </para> - /// <para> - /// Occurrence: required, choice - /// </para> - /// <para> - /// Setter: Appends + /// Occurrence: optional, repeating /// </para> /// <para> - /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*, (RequestMessage | RequestMessageReference)) + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public virtual System.Uri RequestMessageReference { + public virtual IList<Keywords> Keywords { get { - return this.ContentField.RequestMessageReference; + return this.ContentField.Keywords; } set { - this.ContentField.RequestMessageReference = value; + this.ContentField.Keywords = value; } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Manifest", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -14369,6 +14660,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14389,51 +14684,57 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Unordered list of one or more groups of references to + /// remote and/or local resources. + /// </para> + /// </summary> + public partial class OperationResponse : XTypedElement, IXMetaData { - public new static ServiceReference Load(string xmlFile) { - return XTypedServices.Load<ServiceReference, ServiceReferenceType>(xmlFile, LinqToXsdTypeManager.Instance); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - public static ServiceReference Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ServiceReference, ServiceReferenceType>(xmlFile, LinqToXsdTypeManager.Instance); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - public new static ServiceReference Parse(string xml) { - return XTypedServices.Parse<ServiceReference, ServiceReferenceType>(xml, LinqToXsdTypeManager.Instance); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - public override XTypedElement Clone() { - return new ServiceReference(((ServiceReferenceType)(this.Content.Clone()))); + public static OperationResponse Load(string xmlFile) { + return XTypedServices.Load<OperationResponse, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ServiceReferenceType ContentField) { - this.ContentField = ((ServiceReferenceType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - base.SetSubstitutionMember(ContentField); + public static OperationResponse Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OperationResponse, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static OperationResponse Parse(string xml) { + return XTypedServices.Parse<OperationResponse, ManifestType>(xml, LinqToXsdTypeManager.Instance); } - } - - public partial class AdditionalParameters : global::OpenGis.Ows.Metadata, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private AdditionalParametersType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"); - public static explicit operator AdditionalParameters(XElement xe) { return XTypedServices.ToXTypedElement<AdditionalParameters, AdditionalParametersType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public static explicit operator OperationResponse(XElement xe) { return XTypedServices.ToXTypedElement<OperationResponse, ManifestType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public AdditionalParameters() : - base(true) { - SetInnerType(new AdditionalParametersType()); + public override XTypedElement Clone() { + return new OperationResponse(((ManifestType)(this.Content.Clone()))); } - public AdditionalParameters(AdditionalParametersType content) : - base(true) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ManifestType ContentField; + + /// <summary> + /// <para> + /// Unordered list of one or more groups of references to + /// remote and/or local resources. + /// </para> + /// </summary> + public OperationResponse() { + SetInnerType(new ManifestType()); } public override XElement Untyped { @@ -14446,159 +14747,144 @@ public override XElement Untyped { } } - public new virtual AdditionalParametersType Content { + public virtual ManifestType Content { get { return ContentField; } } + private void SetInnerType(ManifestType ContentField) { + this.ContentField = ((ManifestType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + /// <summary> /// <para> - /// Occurrence: required + /// Unordered list of one or more groups of references to + /// remote and/or local resources. /// </para> - /// <para> - /// Regular expression: (AdditionalParameter, AdditionalParameter*) + /// </summary> + public OperationResponse(ManifestType content) { + SetInnerType(content); + } + + /// <summary> + /// <para> + /// Occurrence: required, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*, ReferenceGroup+) /// </para> /// </summary> - public new virtual IList<AdditionalParameter> AdditionalParameter { + public virtual IList<ReferenceGroup> ReferenceGroup { get { - return this.ContentField.AdditionalParameter; + return this.ContentField.ReferenceGroup; } set { - this.ContentField.AdditionalParameter = value; - } - } - - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); - return schemaMetaData.LocalElementsDictionary; + this.ContentField.ReferenceGroup = value; } } - XTypedElement IXMetaData.Content { + /// <summary> + /// <para> + /// Optional unique identifier or name of this + /// dataset. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) + /// </para> + /// </summary> + public virtual Identifier Identifier { get { - return this.Content; + return this.ContentField.Identifier; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; + set { + this.ContentField.Identifier = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + /// <summary> + /// <para> + /// Optional unordered list of additional metadata + /// about this data(set). A list of optional metadata elements for + /// this data identification could be specified in the + /// Implementation Specification for this service. + /// </para> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Substitution members: Metadata, AdditionalParameters + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) + /// </para> + /// </summary> + public virtual IList<Metadata> Metadata { get { - return SchemaOrigin.Element; + return this.ContentField.Metadata; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; + set { + this.ContentField.Metadata = value; } } - public new static AdditionalParameters Load(string xmlFile) { - return XTypedServices.Load<AdditionalParameters, AdditionalParametersType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static AdditionalParameters Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AdditionalParameters, AdditionalParametersType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public new static AdditionalParameters Parse(string xml) { - return XTypedServices.Parse<AdditionalParameters, AdditionalParametersType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new AdditionalParameters(((AdditionalParametersType)(this.Content.Clone()))); - } - - private void SetInnerType(AdditionalParametersType ContentField) { - this.ContentField = ((AdditionalParametersType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - base.SetSubstitutionMember(ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// The value used (e.g. -255) to represent a nil value with - /// optional nilReason and codeSpace attributes. - /// </para> - /// </summary> - public partial class nilValue : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private NilValueType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("nilValue", "http://www.opengis.net/ows/2.0"); - - public static explicit operator nilValue(XElement xe) { return XTypedServices.ToXTypedElement<nilValue, NilValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> - /// The value used (e.g. -255) to represent a nil value with - /// optional nilReason and codeSpace attributes. + /// Occurrence: optional, repeating /// </para> - /// </summary> - public nilValue() { - SetInnerType(new NilValueType()); - } - - /// <summary> /// <para> - /// The value used (e.g. -255) to represent a nil value with - /// optional nilReason and codeSpace attributes. + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public nilValue(NilValueType content) { - SetInnerType(content); - } - - public override XElement Untyped { + public virtual IList<Title> Title { get { - return base.Untyped; + return this.ContentField.Title; } set { - base.Untyped = value; - this.ContentField.Untyped = value; + this.ContentField.Title = value; } } - public virtual NilValueType Content { + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) + /// </para> + /// </summary> + public virtual IList<Abstract> Abstract { get { - return ContentField; + return this.ContentField.Abstract; + } + set { + this.ContentField.Abstract = value; } } /// <summary> /// <para> - /// An anyURI value which refers to a resource that - /// describes the reason for the nil value + /// Occurrence: optional, repeating /// </para> /// <para> - /// Occurrence: optional + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public virtual System.Uri nilReason { + public virtual IList<Keywords> Keywords { get { - return this.ContentField.nilReason; + return this.ContentField.Keywords; } set { - this.ContentField.nilReason = value; + this.ContentField.Keywords = value; } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OperationResponse", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -14612,6 +14898,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14632,6 +14922,15 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Unordered list of one or more groups of references to + /// remote and/or local resources. + /// </para> + /// </summary> + public partial class InputData : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -14645,68 +14944,35 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static nilValue Load(string xmlFile) { - return XTypedServices.Load<nilValue, NilValueType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static nilValue Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<nilValue, NilValueType>(xmlFile, LinqToXsdTypeManager.Instance); + public static InputData Load(string xmlFile) { + return XTypedServices.Load<InputData, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static nilValue Parse(string xml) { - return XTypedServices.Parse<nilValue, NilValueType>(xml, LinqToXsdTypeManager.Instance); + public static InputData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<InputData, ManifestType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new nilValue(((NilValueType)(this.Content.Clone()))); + public static InputData Parse(string xml) { + return XTypedServices.Parse<InputData, ManifestType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(NilValueType ContentField) { - this.ContentField = ((NilValueType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator InputData(XElement xe) { return XTypedServices.ToXTypedElement<InputData, ManifestType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new InputData(((ManifestType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// Text string with the language of the string identified as - /// recommended in the XML 1.0 W3C Recommendation, section - /// 2.12. - /// </para> - /// </summary> - public partial class Title : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private LanguageStringType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Title(XElement xe) { return XTypedServices.ToXTypedElement<Title, LanguageStringType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - /// <summary> - /// <para> - /// Text string with the language of the string identified as - /// recommended in the XML 1.0 W3C Recommendation, section - /// 2.12. - /// </para> - /// </summary> - public Title() { - SetInnerType(new LanguageStringType()); - } + private ManifestType ContentField; /// <summary> /// <para> - /// Text string with the language of the string identified as - /// recommended in the XML 1.0 W3C Recommendation, section - /// 2.12. + /// Unordered list of one or more groups of references to + /// remote and/or local resources. /// </para> /// </summary> - public Title(LanguageStringType content) { - SetInnerType(content); + public InputData() { + SetInnerType(new ManifestType()); } public override XElement Untyped { @@ -14719,184 +14985,144 @@ public override XElement Untyped { } } - public virtual LanguageStringType Content { + public virtual ManifestType Content { get { return ContentField; } } - public virtual string TypedValue { - get { - return this.ContentField.TypedValue; - } - set { - this.ContentField.TypedValue = value; - } + private void SetInnerType(ManifestType ContentField) { + this.ContentField = ((ManifestType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); } /// <summary> /// <para> - /// Occurrence: optional - /// </para> + /// Unordered list of one or more groups of references to + /// remote and/or local resources. + /// </para> /// </summary> - public virtual object lang { - get { - return this.ContentField.lang; - } - set { - this.ContentField.lang = value; - } - } - - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); - return schemaMetaData.LocalElementsDictionary; - } + public InputData(ManifestType content) { + SetInnerType(content); } - XTypedElement IXMetaData.Content { + /// <summary> + /// <para> + /// Occurrence: required, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*, ReferenceGroup+) + /// </para> + /// </summary> + public virtual IList<ReferenceGroup> ReferenceGroup { get { - return this.Content; + return this.ContentField.ReferenceGroup; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; + set { + this.ContentField.ReferenceGroup = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + /// <summary> + /// <para> + /// Optional unique identifier or name of this + /// dataset. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) + /// </para> + /// </summary> + public virtual Identifier Identifier { get { - return SchemaOrigin.Element; + return this.ContentField.Identifier; } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; + set { + this.ContentField.Identifier = value; } } - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static Title Load(string xmlFile) { - return XTypedServices.Load<Title, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Title Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Title, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Title Parse(string xml) { - return XTypedServices.Parse<Title, LanguageStringType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new Title(((LanguageStringType)(this.Content.Clone()))); - } - - private void SetInnerType(LanguageStringType ContentField) { - this.ContentField = ((LanguageStringType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Text string with the language of the string identified as - /// recommended in the XML 1.0 W3C Recommendation, section - /// 2.12. - /// </para> - /// </summary> - public partial class Abstract : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private LanguageStringType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Abstract(XElement xe) { return XTypedServices.ToXTypedElement<Abstract, LanguageStringType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> - /// Text string with the language of the string identified as - /// recommended in the XML 1.0 W3C Recommendation, section - /// 2.12. + /// Optional unordered list of additional metadata + /// about this data(set). A list of optional metadata elements for + /// this data identification could be specified in the + /// Implementation Specification for this service. /// </para> - /// </summary> - public Abstract() { - SetInnerType(new LanguageStringType()); - } - - /// <summary> /// <para> - /// Text string with the language of the string identified as - /// recommended in the XML 1.0 W3C Recommendation, section - /// 2.12. + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Substitution members: Metadata, AdditionalParameters + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier?, Metadata*) /// </para> /// </summary> - public Abstract(LanguageStringType content) { - SetInnerType(content); - } - - public override XElement Untyped { + public virtual IList<Metadata> Metadata { get { - return base.Untyped; + return this.ContentField.Metadata; } set { - base.Untyped = value; - this.ContentField.Untyped = value; + this.ContentField.Metadata = value; } } - public virtual LanguageStringType Content { + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) + /// </para> + /// </summary> + public virtual IList<Title> Title { get { - return ContentField; + return this.ContentField.Title; + } + set { + this.ContentField.Title = value; } } - public virtual string TypedValue { + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) + /// </para> + /// </summary> + public virtual IList<Abstract> Abstract { get { - return this.ContentField.TypedValue; + return this.ContentField.Abstract; } set { - this.ContentField.TypedValue = value; + this.ContentField.Abstract = value; } } /// <summary> /// <para> - /// Occurrence: optional + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*) /// </para> /// </summary> - public virtual object lang { + public virtual IList<Keywords> Keywords { get { - return this.ContentField.lang; + return this.ContentField.Keywords; } set { - this.ContentField.lang = value; + this.ContentField.Keywords = value; } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InputData", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -14910,6 +15136,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14930,380 +15160,362 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Complete reference to a remote resource that needs to be + /// retrieved from an OWS using an XML-encoded operation request. This + /// element shall be used, within an InputData or Manifest element that is + /// used for input data, when that input data needs to be retrieved from + /// another web service using a XML-encoded OWS operation request. This + /// element shall not be used for local payload input data or for requesting + /// the resource from a web server using HTTP Get. + /// </para> + /// </summary> + public partial class ServiceReference : global::OpenGis.Ows.Reference, IXMetaData { - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); + public new static ServiceReference Load(string xmlFile) { + return XTypedServices.Load<ServiceReference, ServiceReferenceType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Abstract Load(string xmlFile) { - return XTypedServices.Load<Abstract, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); + public static ServiceReference Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ServiceReference, ServiceReferenceType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Abstract Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Abstract, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); + public new static ServiceReference Parse(string xml) { + return XTypedServices.Parse<ServiceReference, ServiceReferenceType>(xml, LinqToXsdTypeManager.Instance); } - public static Abstract Parse(string xml) { - return XTypedServices.Parse<Abstract, LanguageStringType>(xml, LinqToXsdTypeManager.Instance); - } + public static explicit operator ServiceReference(XElement xe) { return XTypedServices.ToXTypedElement<ServiceReference, ServiceReferenceType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return new Abstract(((LanguageStringType)(this.Content.Clone()))); + return new ServiceReference(((ServiceReferenceType)(this.Content.Clone()))); } - private void SetInnerType(LanguageStringType ContentField) { - this.ContentField = ((LanguageStringType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ServiceReferenceType ContentField; - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + /// <summary> + /// <para> + /// Complete reference to a remote resource that needs to be + /// retrieved from an OWS using an XML-encoded operation request. This + /// element shall be used, within an InputData or Manifest element that is + /// used for input data, when that input data needs to be retrieved from + /// another web service using a XML-encoded OWS operation request. This + /// element shall not be used for local payload input data or for requesting + /// the resource from a web server using HTTP Get. + /// </para> + /// </summary> + public ServiceReference() : + base(true) { + SetInnerType(new ServiceReferenceType()); } - } - - /// <summary> - /// <para> - /// Unordered list of one or more commonly used or formalised - /// word(s) or phrase(s) used to describe the subject. When needed, the - /// optional "type" can name the type of the associated list of keywords - /// that shall all have the same type. Also when needed, the codeSpace - /// attribute of that "type" can reference the type name authority and/or - /// thesaurus. If the xml:lang attribute is not included in a Keyword - /// element, then no language is specified for that element unless specified - /// by another means. All Keyword elements in the same Keywords element that - /// share the same xml:lang attribute value represent different keywords in - /// that language. - /// </para> - /// <para> - /// For OWS use, the optional thesaurusName element was - /// omitted as being complex information that could be referenced by the - /// codeSpace attribute of the Type element. - /// </para> - /// </summary> - public partial class Keywords : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private KeywordsType ContentField; + public override XElement Untyped { + get { + return base.Untyped; + } + set { + base.Untyped = value; + this.ContentField.Untyped = value; + } + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"); + public new virtual ServiceReferenceType Content { + get { + return ContentField; + } + } - public static explicit operator Keywords(XElement xe) { return XTypedServices.ToXTypedElement<Keywords, KeywordsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + private void SetInnerType(ServiceReferenceType ContentField) { + this.ContentField = ((ServiceReferenceType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + base.SetSubstitutionMember(ContentField); + } /// <summary> /// <para> - /// Unordered list of one or more commonly used or formalised - /// word(s) or phrase(s) used to describe the subject. When needed, the - /// optional "type" can name the type of the associated list of keywords - /// that shall all have the same type. Also when needed, the codeSpace - /// attribute of that "type" can reference the type name authority and/or - /// thesaurus. If the xml:lang attribute is not included in a Keyword - /// element, then no language is specified for that element unless specified - /// by another means. All Keyword elements in the same Keywords element that - /// share the same xml:lang attribute value represent different keywords in - /// that language. - /// </para> - /// <para> - /// For OWS use, the optional thesaurusName element was - /// omitted as being complex information that could be referenced by the - /// codeSpace attribute of the Type element. + /// Complete reference to a remote resource that needs to be + /// retrieved from an OWS using an XML-encoded operation request. This + /// element shall be used, within an InputData or Manifest element that is + /// used for input data, when that input data needs to be retrieved from + /// another web service using a XML-encoded OWS operation request. This + /// element shall not be used for local payload input data or for requesting + /// the resource from a web server using HTTP Get. /// </para> /// </summary> - public Keywords() { - SetInnerType(new KeywordsType()); + public ServiceReference(ServiceReferenceType content) : + base(true) { + SetInnerType(content); } /// <summary> /// <para> - /// Unordered list of one or more commonly used or formalised - /// word(s) or phrase(s) used to describe the subject. When needed, the - /// optional "type" can name the type of the associated list of keywords - /// that shall all have the same type. Also when needed, the codeSpace - /// attribute of that "type" can reference the type name authority and/or - /// thesaurus. If the xml:lang attribute is not included in a Keyword - /// element, then no language is specified for that element unless specified - /// by another means. All Keyword elements in the same Keywords element that - /// share the same xml:lang attribute value represent different keywords in - /// that language. + /// The XML-encoded operation request message to be + /// sent to request this input data from another web server using + /// HTTP Post. /// </para> /// <para> - /// For OWS use, the optional thesaurusName element was - /// omitted as being complex information that could be referenced by the - /// codeSpace attribute of the Type element. + /// Occurrence: required, choice + /// </para> + /// <para> + /// Setter: Appends + /// </para> + /// <para> + /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*, (RequestMessage | RequestMessageReference)) /// </para> /// </summary> - public Keywords(KeywordsType content) { - SetInnerType(content); - } - - public override XElement Untyped { + public virtual XTypedElement RequestMessage { get { - return base.Untyped; + return this.ContentField.RequestMessage; } set { - base.Untyped = value; - this.ContentField.Untyped = value; + this.ContentField.RequestMessage = value; } } - public virtual KeywordsType Content { + /// <summary> + /// <para> + /// Reference to the XML-encoded operation request + /// message to be sent to request this input data from another web + /// server using HTTP Post. The referenced message shall be attached + /// to the same message (using the cid scheme), or be accessible + /// using a URL. + /// </para> + /// <para> + /// Occurrence: required, choice + /// </para> + /// <para> + /// Setter: Appends + /// </para> + /// <para> + /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*, (RequestMessage | RequestMessageReference)) + /// </para> + /// </summary> + public virtual System.Uri RequestMessageReference { get { - return ContentField; + return this.ContentField.RequestMessageReference; + } + set { + this.ContentField.RequestMessageReference = value; } } /// <summary> /// <para> - /// Occurrence: required, repeating + /// Optional unique identifier of the referenced + /// resource. /// </para> /// <para> - /// Regular expression: (Keyword+, Type?) + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*) /// </para> /// </summary> - public virtual IList<LanguageStringType> Keyword { + public virtual Identifier Identifier { get { - return this.ContentField.Keyword; + return this.ContentField.Identifier; } set { - this.ContentField.Keyword = value; + this.ContentField.Identifier = value; } } /// <summary> /// <para> - /// Occurrence: optional + /// Occurrence: optional, repeating /// </para> /// <para> - /// Regular expression: (Keyword+, Type?) + /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*) /// </para> /// </summary> - public virtual CodeType Type { + public virtual IList<Abstract> Abstract { get { - return this.ContentField.Type; + return this.ContentField.Abstract; } set { - this.ContentField.Type = value; + this.ContentField.Abstract = value; } } - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + /// <summary> + /// <para> + /// The format of the referenced resource. This + /// element is omitted when the mime type is indicated in the http + /// header of the reference. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*) + /// </para> + /// </summary> + public virtual string Format { get { - IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); - return schemaMetaData.LocalElementsDictionary; + return this.ContentField.Format; + } + set { + this.ContentField.Format = value; } } - XTypedElement IXMetaData.Content { + /// <summary> + /// <para> + /// Optional unordered list of additional metadata + /// about this resource. A list of optional metadata elements for + /// this ReferenceType could be specified in the Implementation + /// Specification for each use of this type in a specific + /// OWS. + /// </para> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Substitution members: Metadata, AdditionalParameters + /// </para> + /// <para> + /// Regular expression: (Identifier?, Abstract*, Format?, Metadata*) + /// </para> + /// </summary> + public virtual IList<Metadata> Metadata { get { - return this.Content; + return this.ContentField.Metadata; + } + set { + this.ContentField.Metadata = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual string type { get { - return xName; + return this.ContentField.type; + } + set { + this.ContentField.type = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + /// <summary> + /// <para> + /// Reference to a remote resource or local payload. A + /// remote resource is typically addressed by a URL. For a local payload + /// (such as a multipart mime message), the xlink:href must start with the + /// prefix cid:. + /// </para> + /// <para> + /// Occurrence: required + /// </para> + /// </summary> + public virtual System.Uri href { get { - return SchemaOrigin.Element; + return this.ContentField.href; + } + set { + this.ContentField.href = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { + /// <summary> + /// <para> + /// Reference to a resource that describes the role of this + /// reference. When no value is supplied, no particular role value is to + /// be inferred. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri role { get { - return LinqToXsdTypeManager.Instance; + return this.ContentField.role; + } + set { + this.ContentField.role = value; } - } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static Keywords Load(string xmlFile) { - return XTypedServices.Load<Keywords, KeywordsType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Keywords Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Keywords, KeywordsType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Keywords Parse(string xml) { - return XTypedServices.Parse<Keywords, KeywordsType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new Keywords(((KeywordsType)(this.Content.Clone()))); - } - - private void SetInnerType(KeywordsType ContentField) { - this.ContentField = ((KeywordsType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Identification of, and means of communication with, - /// person responsible for the server. At least one of IndividualName, - /// OrganisationName, or PositionName shall be included. - /// </para> - /// </summary> - public partial class PointOfContact : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ResponsiblePartyType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointOfContact", "http://www.opengis.net/ows/2.0"); - - public static explicit operator PointOfContact(XElement xe) { return XTypedServices.ToXTypedElement<PointOfContact, ResponsiblePartyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - /// <summary> - /// <para> - /// Identification of, and means of communication with, - /// person responsible for the server. At least one of IndividualName, - /// OrganisationName, or PositionName shall be included. - /// </para> - /// </summary> - public PointOfContact() { - SetInnerType(new ResponsiblePartyType()); } /// <summary> /// <para> - /// Identification of, and means of communication with, - /// person responsible for the server. At least one of IndividualName, - /// OrganisationName, or PositionName shall be included. + /// Although allowed, this attribute is not expected to be + /// useful in this application of xlink:simpleAttrs. /// </para> - /// </summary> - public PointOfContact(ResponsiblePartyType content) { - SetInnerType(content); - } - - public override XElement Untyped { - get { - return base.Untyped; - } - set { - base.Untyped = value; - this.ContentField.Untyped = value; - } - } - - public virtual ResponsiblePartyType Content { - get { - return ContentField; - } - } - - /// <summary> /// <para> /// Occurrence: optional /// </para> - /// <para> - /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) - /// </para> /// </summary> - public virtual IndividualName IndividualName { + public virtual System.Uri arcrole { get { - return this.ContentField.IndividualName; + return this.ContentField.arcrole; } set { - this.ContentField.IndividualName = value; + this.ContentField.arcrole = value; } } /// <summary> /// <para> - /// Occurrence: optional - /// </para> - /// <para> - /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// Describes the meaning of the referenced resource in a + /// human-readable fashion. /// </para> - /// </summary> - public virtual OrganisationName OrganisationName { - get { - return this.ContentField.OrganisationName; - } - set { - this.ContentField.OrganisationName = value; - } - } - - /// <summary> /// <para> /// Occurrence: optional /// </para> - /// <para> - /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) - /// </para> /// </summary> - public virtual PositionName PositionName { + public virtual string title { get { - return this.ContentField.PositionName; + return this.ContentField.title; } set { - this.ContentField.PositionName = value; + this.ContentField.title = value; } } /// <summary> /// <para> - /// Occurrence: optional + /// Although allowed, this attribute is not expected to be + /// useful in this application of xlink:simpleAttrs. /// </para> /// <para> - /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// Occurrence: optional /// </para> /// </summary> - public virtual ContactInfo ContactInfo { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { - return this.ContentField.ContactInfo; + return this.ContentField.show; } set { - this.ContentField.ContactInfo = value; + this.ContentField.show = value; } } /// <summary> /// <para> - /// Occurrence: required + /// Although allowed, this attribute is not expected to be + /// useful in this application of xlink:simpleAttrs. /// </para> /// <para> - /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// Occurrence: optional /// </para> /// </summary> - public virtual Role Role { + public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { get { - return this.ContentField.Role; + return this.ContentField.actuate; } set { - this.ContentField.Role = value; + this.ContentField.actuate = value; } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ServiceReference", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -15317,6 +15529,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15337,153 +15553,236 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AdditionalParameters : global::OpenGis.Ows.Metadata, IXMetaData { - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); + public new static AdditionalParameters Load(string xmlFile) { + return XTypedServices.Load<AdditionalParameters, AdditionalParametersType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static PointOfContact Load(string xmlFile) { - return XTypedServices.Load<PointOfContact, ResponsiblePartyType>(xmlFile, LinqToXsdTypeManager.Instance); + public static AdditionalParameters Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AdditionalParameters, AdditionalParametersType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static PointOfContact Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PointOfContact, ResponsiblePartyType>(xmlFile, LinqToXsdTypeManager.Instance); + public new static AdditionalParameters Parse(string xml) { + return XTypedServices.Parse<AdditionalParameters, AdditionalParametersType>(xml, LinqToXsdTypeManager.Instance); } - public static PointOfContact Parse(string xml) { - return XTypedServices.Parse<PointOfContact, ResponsiblePartyType>(xml, LinqToXsdTypeManager.Instance); - } + public static explicit operator AdditionalParameters(XElement xe) { return XTypedServices.ToXTypedElement<AdditionalParameters, AdditionalParametersType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return new PointOfContact(((ResponsiblePartyType)(this.Content.Clone()))); - } - - private void SetInnerType(ResponsiblePartyType ContentField) { - this.ContentField = ((ResponsiblePartyType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + return new AdditionalParameters(((AdditionalParametersType)(this.Content.Clone()))); } - } - - public partial class IndividualName : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"); - - public static explicit operator IndividualName(XElement xe) { return XTypedServices.ToXTypedElement<IndividualName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public IndividualName() { - } + private AdditionalParametersType ContentField; - public IndividualName(string content) { - this.TypedValue = content; + public AdditionalParameters() : + base(true) { + SetInnerType(new AdditionalParametersType()); } - public virtual string TypedValue { + public override XElement Untyped { get { - XElement x = this.Untyped; - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return base.Untyped; } set { - this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; + base.Untyped = value; + this.ContentField.Untyped = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { + public new virtual AdditionalParametersType Content { get { - return SchemaOrigin.Element; + return ContentField; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } + private void SetInnerType(AdditionalParametersType ContentField) { + this.ContentField = ((AdditionalParametersType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + base.SetSubstitutionMember(ContentField); } - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); + public AdditionalParameters(AdditionalParametersType content) : + base(true) { + SetInnerType(content); } - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// <para> + /// Regular expression: (AdditionalParameter, AdditionalParameter*) + /// </para> + /// </summary> + public new virtual IList<AdditionalParameter> AdditionalParameter { + get { + return this.ContentField.AdditionalParameter; + } + set { + this.ContentField.AdditionalParameter = value; + } } - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Substitution members: AbstractMetaData, AdditionalParameter + /// </para> + /// <para> + /// Regular expression: (AbstractMetaData?) + /// </para> + /// </summary> + public virtual AbstractMetaData AbstractMetaData { + get { + return this.ContentField.AbstractMetaData; + } + set { + this.ContentField.AbstractMetaData = value; + } } - public static IndividualName Load(string xmlFile) { - return XTypedServices.Load<IndividualName>(xmlFile); + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual OpenGis.ThreeDps.Xlink.typeType? type { + get { + return this.ContentField.type; + } + set { + this.ContentField.type = value; + } } - public static IndividualName Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<IndividualName>(xmlFile); + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri href { + get { + return this.ContentField.href; + } + set { + this.ContentField.href = value; + } } - public static IndividualName Parse(string xml) { - return XTypedServices.Parse<IndividualName>(xml); + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri role { + get { + return this.ContentField.role; + } + set { + this.ContentField.role = value; + } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<IndividualName>(this); + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri arcrole { + get { + return this.ContentField.arcrole; + } + set { + this.ContentField.arcrole = value; + } } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual string title { + get { + return this.ContentField.title; + } + set { + this.ContentField.title = value; + } } - } - - public partial class OrganisationName : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OrganisationName", "http://www.opengis.net/ows/2.0"); - - public static explicit operator OrganisationName(XElement xe) { return XTypedServices.ToXTypedElement<OrganisationName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public OrganisationName() { + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual OpenGis.ThreeDps.Xlink.showType? show { + get { + return this.ContentField.show; + } + set { + this.ContentField.show = value; + } } - public OrganisationName(string content) { - this.TypedValue = content; + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { + get { + return this.ContentField.actuate; + } + set { + this.ContentField.actuate = value; + } } - public virtual string TypedValue { + /// <summary> + /// <para> + /// Optional reference to the aspect of the element which + /// includes this "metadata" element that this metadata provides more + /// information about. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri about { get { - XElement x = this.Untyped; - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return this.ContentField.about; } set { - this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.ContentField.about = value; + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"); + + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); + return schemaMetaData.LocalElementsDictionary; + } + } + + XTypedElement IXMetaData.Content { + get { + return this.Content; } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15504,6 +15803,15 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// The value used (e.g. -255) to represent a nil value with + /// optional nilReason and codeSpace attributes. + /// </para> + /// </summary> + public partial class nilValue : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -15517,180 +15825,83 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OrganisationName Load(string xmlFile) { - return XTypedServices.Load<OrganisationName>(xmlFile); + public static nilValue Load(string xmlFile) { + return XTypedServices.Load<nilValue, NilValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static OrganisationName Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OrganisationName>(xmlFile); + public static nilValue Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<nilValue, NilValueType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static OrganisationName Parse(string xml) { - return XTypedServices.Parse<OrganisationName>(xml); + public static nilValue Parse(string xml) { + return XTypedServices.Parse<nilValue, NilValueType>(xml, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OrganisationName>(this); - } + public static explicit operator nilValue(XElement xe) { return XTypedServices.ToXTypedElement<nilValue, NilValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new nilValue(((NilValueType)(this.Content.Clone()))); } - } - - public partial class PositionName : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"); - - public static explicit operator PositionName(XElement xe) { return XTypedServices.ToXTypedElement<PositionName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PositionName() { - } + private NilValueType ContentField; - public PositionName(string content) { - this.TypedValue = content; + /// <summary> + /// <para> + /// The value used (e.g. -255) to represent a nil value with + /// optional nilReason and codeSpace attributes. + /// </para> + /// </summary> + public nilValue() { + SetInnerType(new NilValueType()); } - public virtual string TypedValue { + public override XElement Untyped { get { - XElement x = this.Untyped; - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return base.Untyped; } set { - this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Element; + base.Untyped = value; + this.ContentField.Untyped = value; } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { + public virtual NilValueType Content { get { - return LinqToXsdTypeManager.Instance; + return ContentField; } } - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); + private void SetInnerType(NilValueType ContentField) { + this.ContentField = ((NilValueType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); } - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static PositionName Load(string xmlFile) { - return XTypedServices.Load<PositionName>(xmlFile); - } - - public static PositionName Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PositionName>(xmlFile); - } - - public static PositionName Parse(string xml) { - return XTypedServices.Parse<PositionName>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PositionName>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Name or code with an (optional) authority. If the - /// codeSpace attribute is present, its value shall reference a dictionary, - /// thesaurus, or authority for the name or code, such as the organisation - /// who assigned the value, or the dictionary from which it is - /// taken. - /// </para> - /// <para> - /// Type copied from basicTypes.xsd of GML 3 with - /// documentation edited, for possible use outside the ServiceIdentification - /// section of a service metadata document. - /// </para> - /// </summary> - public partial class Role : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private CodeType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"); - - public static explicit operator Role(XElement xe) { return XTypedServices.ToXTypedElement<Role, CodeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - /// <summary> - /// <para> - /// Name or code with an (optional) authority. If the - /// codeSpace attribute is present, its value shall reference a dictionary, - /// thesaurus, or authority for the name or code, such as the organisation - /// who assigned the value, or the dictionary from which it is - /// taken. - /// </para> - /// <para> - /// Type copied from basicTypes.xsd of GML 3 with - /// documentation edited, for possible use outside the ServiceIdentification - /// section of a service metadata document. - /// </para> - /// </summary> - public Role() { - SetInnerType(new CodeType()); + /// <summary> + /// <para> + /// The value used (e.g. -255) to represent a nil value with + /// optional nilReason and codeSpace attributes. + /// </para> + /// </summary> + public nilValue(NilValueType content) { + SetInnerType(content); } /// <summary> /// <para> - /// Name or code with an (optional) authority. If the - /// codeSpace attribute is present, its value shall reference a dictionary, - /// thesaurus, or authority for the name or code, such as the organisation - /// who assigned the value, or the dictionary from which it is - /// taken. + /// An anyURI value which refers to a resource that + /// describes the reason for the nil value /// </para> /// <para> - /// Type copied from basicTypes.xsd of GML 3 with - /// documentation edited, for possible use outside the ServiceIdentification - /// section of a service metadata document. + /// Occurrence: optional /// </para> /// </summary> - public Role(CodeType content) { - SetInnerType(content); - } - - public override XElement Untyped { + public virtual System.Uri nilReason { get { - return base.Untyped; + return this.ContentField.nilReason; } set { - base.Untyped = value; - this.ContentField.Untyped = value; - } - } - - public virtual CodeType Content { - get { - return ContentField; + this.ContentField.nilReason = value; } } @@ -15717,6 +15928,8 @@ public virtual System.Uri codeSpace { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("nilValue", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -15730,6 +15943,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15750,6 +15967,16 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Text string with the language of the string identified as + /// recommended in the XML 1.0 W3C Recommendation, section + /// 2.12. + /// </para> + /// </summary> + public partial class Title : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -15763,80 +15990,36 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Role Load(string xmlFile) { - return XTypedServices.Load<Role, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Role Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Role, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Title Load(string xmlFile) { + return XTypedServices.Load<Title, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Role Parse(string xml) { - return XTypedServices.Parse<Role, CodeType>(xml, LinqToXsdTypeManager.Instance); + public static Title Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Title, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Role(((CodeType)(this.Content.Clone()))); + public static Title Parse(string xml) { + return XTypedServices.Parse<Title, LanguageStringType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(CodeType ContentField) { - this.ContentField = ((CodeType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator Title(XElement xe) { return XTypedServices.ToXTypedElement<Title, LanguageStringType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Title(((LanguageStringType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// Information required to enable contact with the - /// responsible person and/or organization. - /// </para> - /// <para> - /// For OWS use in the service metadata document, the - /// optional hoursOfService and contactInstructions elements were retained, - /// as possibly being useful in the ServiceProvider section. - /// </para> - /// </summary> - public partial class ContactInfo : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ContactType ContentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"); - - public static explicit operator ContactInfo(XElement xe) { return XTypedServices.ToXTypedElement<ContactInfo, ContactType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - /// <summary> - /// <para> - /// Information required to enable contact with the - /// responsible person and/or organization. - /// </para> - /// <para> - /// For OWS use in the service metadata document, the - /// optional hoursOfService and contactInstructions elements were retained, - /// as possibly being useful in the ServiceProvider section. - /// </para> - /// </summary> - public ContactInfo() { - SetInnerType(new ContactType()); - } + private LanguageStringType ContentField; /// <summary> /// <para> - /// Information required to enable contact with the - /// responsible person and/or organization. - /// </para> - /// <para> - /// For OWS use in the service metadata document, the - /// optional hoursOfService and contactInstructions elements were retained, - /// as possibly being useful in the ServiceProvider section. + /// Text string with the language of the string identified as + /// recommended in the XML 1.0 W3C Recommendation, section + /// 2.12. /// </para> /// </summary> - public ContactInfo(ContactType content) { - SetInnerType(content); + public Title() { + SetInnerType(new LanguageStringType()); } public override XElement Untyped { @@ -15849,124 +16032,202 @@ public override XElement Untyped { } } - public virtual ContactType Content { + public virtual LanguageStringType Content { get { return ContentField; } } + private void SetInnerType(LanguageStringType ContentField) { + this.ContentField = ((LanguageStringType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + /// <summary> /// <para> - /// Telephone numbers at which the organization or - /// individual may be contacted. - /// </para> - /// <para> - /// Occurrence: optional - /// </para> - /// <para> - /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) + /// Text string with the language of the string identified as + /// recommended in the XML 1.0 W3C Recommendation, section + /// 2.12. /// </para> /// </summary> - public virtual TelephoneType Phone { + public Title(LanguageStringType content) { + SetInnerType(content); + } + + public virtual string TypedValue { get { - return this.ContentField.Phone; + return this.ContentField.TypedValue; } set { - this.ContentField.Phone = value; + this.ContentField.TypedValue = value; } } /// <summary> /// <para> - /// Physical and email address at which the organization - /// or individual may be contacted. - /// </para> - /// <para> /// Occurrence: optional /// </para> - /// <para> - /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) - /// </para> /// </summary> - public virtual AddressType Address { + public virtual object lang { get { - return this.ContentField.Address; + return this.ContentField.lang; } set { - this.ContentField.Address = value; + this.ContentField.lang = value; } } - /// <summary> - /// <para> - /// On-line information that can be used to contact the - /// individual or organization. OWS specifics: The xlink:href attribute - /// in the xlink:simpleAttrs attribute group shall be used to reference - /// this resource. Whenever practical, the xlink:href attribute with - /// type anyURI should be a URL from which more contact information can - /// be electronically retrieved. The xlink:title attribute with type - /// "string" can be used to name this set of information. The other - /// attributes in the xlink:simpleAttrs attribute group should not be - /// used. - /// </para> - /// <para> - /// Occurrence: optional - /// </para> - /// <para> - /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) - /// </para> - /// </summary> - public virtual OnlineResourceType OnlineResource { + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"); + + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { - return this.ContentField.OnlineResource; + IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); + return schemaMetaData.LocalElementsDictionary; } - set { - this.ContentField.OnlineResource = value; + } + + XTypedElement IXMetaData.Content { + get { + return this.Content; } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// <summary> + /// <para> + /// Text string with the language of the string identified as + /// recommended in the XML 1.0 W3C Recommendation, section + /// 2.12. + /// </para> + /// </summary> + public partial class Abstract : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Abstract Load(string xmlFile) { + return XTypedServices.Load<Abstract, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Abstract Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Abstract, LanguageStringType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Abstract Parse(string xml) { + return XTypedServices.Parse<Abstract, LanguageStringType>(xml, LinqToXsdTypeManager.Instance); + } + + public static explicit operator Abstract(XElement xe) { return XTypedServices.ToXTypedElement<Abstract, LanguageStringType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return new Abstract(((LanguageStringType)(this.Content.Clone()))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private LanguageStringType ContentField; + /// <summary> /// <para> - /// Time period (including time zone) when individuals - /// can contact the organization or individual. - /// </para> - /// <para> - /// Occurrence: optional - /// </para> - /// <para> - /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) + /// Text string with the language of the string identified as + /// recommended in the XML 1.0 W3C Recommendation, section + /// 2.12. /// </para> /// </summary> - public virtual string HoursOfService { + public Abstract() { + SetInnerType(new LanguageStringType()); + } + + public override XElement Untyped { get { - return this.ContentField.HoursOfService; + return base.Untyped; } set { - this.ContentField.HoursOfService = value; + base.Untyped = value; + this.ContentField.Untyped = value; + } + } + + public virtual LanguageStringType Content { + get { + return ContentField; } } + private void SetInnerType(LanguageStringType ContentField) { + this.ContentField = ((LanguageStringType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + /// <summary> /// <para> - /// Supplemental instructions on how or when to contact - /// the individual or organization. + /// Text string with the language of the string identified as + /// recommended in the XML 1.0 W3C Recommendation, section + /// 2.12. /// </para> + /// </summary> + public Abstract(LanguageStringType content) { + SetInnerType(content); + } + + public virtual string TypedValue { + get { + return this.ContentField.TypedValue; + } + set { + this.ContentField.TypedValue = value; + } + } + + /// <summary> /// <para> /// Occurrence: optional /// </para> - /// <para> - /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) - /// </para> /// </summary> - public virtual string ContactInstructions { + public virtual object lang { get { - return this.ContentField.ContactInstructions; + return this.ContentField.lang; } set { - this.ContentField.ContactInstructions = value; + this.ContentField.lang = value; } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -15980,6 +16241,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16000,6 +16265,28 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Unordered list of one or more commonly used or formalised + /// word(s) or phrase(s) used to describe the subject. When needed, the + /// optional "type" can name the type of the associated list of keywords + /// that shall all have the same type. Also when needed, the codeSpace + /// attribute of that "type" can reference the type name authority and/or + /// thesaurus. If the xml:lang attribute is not included in a Keyword + /// element, then no language is specified for that element unless specified + /// by another means. All Keyword elements in the same Keywords element that + /// share the same xml:lang attribute value represent different keywords in + /// that language. + /// </para> + /// <para> + /// For OWS use, the optional thesaurusName element was + /// omitted as being complex information that could be referenced by the + /// codeSpace attribute of the Type element. + /// </para> + /// </summary> + public partial class Keywords : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -16013,725 +16300,1317 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ContactInfo Load(string xmlFile) { - return XTypedServices.Load<ContactInfo, ContactType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static ContactInfo Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ContactInfo, ContactType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Keywords Load(string xmlFile) { + return XTypedServices.Load<Keywords, KeywordsType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static ContactInfo Parse(string xml) { - return XTypedServices.Parse<ContactInfo, ContactType>(xml, LinqToXsdTypeManager.Instance); + public static Keywords Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Keywords, KeywordsType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new ContactInfo(((ContactType)(this.Content.Clone()))); + public static Keywords Parse(string xml) { + return XTypedServices.Parse<Keywords, KeywordsType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ContactType ContentField) { - this.ContentField = ((ContactType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator Keywords(XElement xe) { return XTypedServices.ToXTypedElement<Keywords, KeywordsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Keywords(((KeywordsType)(this.Content.Clone()))); } - } - - public class LinqToXsdTypeManager : ILinqToXsdTypeManager { - - private static Dictionary<System.Xml.Linq.XName, System.Type> typeDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - private static Dictionary<System.Xml.Linq.XName, System.Type> elementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - private static Dictionary<System.Type, System.Type> wrapperDictionary = new Dictionary<System.Type, System.Type>(); - - private static XmlSchemaSet schemaSet; [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); - - static LinqToXsdTypeManager() { - BuildTypeDictionary(); - BuildElementDictionary(); - BuildWrapperDictionary(); - } + private KeywordsType ContentField; - private LinqToXsdTypeManager() { + /// <summary> + /// <para> + /// Unordered list of one or more commonly used or formalised + /// word(s) or phrase(s) used to describe the subject. When needed, the + /// optional "type" can name the type of the associated list of keywords + /// that shall all have the same type. Also when needed, the codeSpace + /// attribute of that "type" can reference the type name authority and/or + /// thesaurus. If the xml:lang attribute is not included in a Keyword + /// element, then no language is specified for that element unless specified + /// by another means. All Keyword elements in the same Keywords element that + /// share the same xml:lang attribute value represent different keywords in + /// that language. + /// </para> + /// <para> + /// For OWS use, the optional thesaurusName element was + /// omitted as being complex information that could be referenced by the + /// codeSpace attribute of the Type element. + /// </para> + /// </summary> + public Keywords() { + SetInnerType(new KeywordsType()); } - XmlSchemaSet ILinqToXsdTypeManager.Schemas { + public override XElement Untyped { get { - if ((schemaSet == null)) { - XmlSchemaSet tempSet = new XmlSchemaSet(); - System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); - } - return schemaSet; + return base.Untyped; } set { - schemaSet = value; - } - } - - Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalTypeDictionary { - get { - return typeDictionary; + base.Untyped = value; + this.ContentField.Untyped = value; } } - Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalElementDictionary { + public virtual KeywordsType Content { get { - return elementDictionary; + return ContentField; } } - Dictionary<System.Type, System.Type> ILinqToXsdTypeManager.RootContentTypeMapping { - get { - return wrapperDictionary; - } + private void SetInnerType(KeywordsType ContentField) { + this.ContentField = ((KeywordsType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); } - public static LinqToXsdTypeManager Instance { - get { - return typeManagerSingleton; - } + /// <summary> + /// <para> + /// Unordered list of one or more commonly used or formalised + /// word(s) or phrase(s) used to describe the subject. When needed, the + /// optional "type" can name the type of the associated list of keywords + /// that shall all have the same type. Also when needed, the codeSpace + /// attribute of that "type" can reference the type name authority and/or + /// thesaurus. If the xml:lang attribute is not included in a Keyword + /// element, then no language is specified for that element unless specified + /// by another means. All Keyword elements in the same Keywords element that + /// share the same xml:lang attribute value represent different keywords in + /// that language. + /// </para> + /// <para> + /// For OWS use, the optional thesaurusName element was + /// omitted as being complex information that could be referenced by the + /// codeSpace attribute of the Type element. + /// </para> + /// </summary> + public Keywords(KeywordsType content) { + SetInnerType(content); + } + + /// <summary> + /// <para> + /// Occurrence: required, repeating + /// </para> + /// <para> + /// Regular expression: (Keyword+, Type?) + /// </para> + /// </summary> + public virtual IList<LanguageStringType> Keyword { + get { + return this.ContentField.Keyword; + } + set { + this.ContentField.Keyword = value; + } + } + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Keyword+, Type?) + /// </para> + /// </summary> + public virtual CodeType Type { + get { + return this.ContentField.Type; + } + set { + this.ContentField.Type = value; + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"); + + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); + return schemaMetaData.LocalElementsDictionary; + } + } + + XTypedElement IXMetaData.Content { + get { + return this.Content; + } + } + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// <summary> + /// <para> + /// Identification of, and means of communication with, + /// person responsible for the server. At least one of IndividualName, + /// OrganisationName, or PositionName shall be included. + /// </para> + /// </summary> + public partial class PointOfContact : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static PointOfContact Load(string xmlFile) { + return XTypedServices.Load<PointOfContact, ResponsiblePartyType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static PointOfContact Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PointOfContact, ResponsiblePartyType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static PointOfContact Parse(string xml) { + return XTypedServices.Parse<PointOfContact, ResponsiblePartyType>(xml, LinqToXsdTypeManager.Instance); + } + + public static explicit operator PointOfContact(XElement xe) { return XTypedServices.ToXTypedElement<PointOfContact, ResponsiblePartyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return new PointOfContact(((ResponsiblePartyType)(this.Content.Clone()))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ResponsiblePartyType ContentField; + + /// <summary> + /// <para> + /// Identification of, and means of communication with, + /// person responsible for the server. At least one of IndividualName, + /// OrganisationName, or PositionName shall be included. + /// </para> + /// </summary> + public PointOfContact() { + SetInnerType(new ResponsiblePartyType()); + } + + public override XElement Untyped { + get { + return base.Untyped; + } + set { + base.Untyped = value; + this.ContentField.Untyped = value; + } + } + + public virtual ResponsiblePartyType Content { + get { + return ContentField; + } + } + + private void SetInnerType(ResponsiblePartyType ContentField) { + this.ContentField = ((ResponsiblePartyType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// Identification of, and means of communication with, + /// person responsible for the server. At least one of IndividualName, + /// OrganisationName, or PositionName shall be included. + /// </para> + /// </summary> + public PointOfContact(ResponsiblePartyType content) { + SetInnerType(content); + } + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// </para> + /// </summary> + public virtual IndividualName IndividualName { + get { + return this.ContentField.IndividualName; + } + set { + this.ContentField.IndividualName = value; + } + } + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// </para> + /// </summary> + public virtual OrganisationName OrganisationName { + get { + return this.ContentField.OrganisationName; + } + set { + this.ContentField.OrganisationName = value; + } + } + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// </para> + /// </summary> + public virtual PositionName PositionName { + get { + return this.ContentField.PositionName; + } + set { + this.ContentField.PositionName = value; + } + } + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// </para> + /// </summary> + public virtual ContactInfo ContactInfo { + get { + return this.ContentField.ContactInfo; + } + set { + this.ContentField.ContactInfo = value; + } + } + + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// <para> + /// Regular expression: (IndividualName?, OrganisationName?, PositionName?, ContactInfo?, Role) + /// </para> + /// </summary> + public virtual Role Role { + get { + return this.ContentField.Role; + } + set { + this.ContentField.Role = value; + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointOfContact", "http://www.opengis.net/ows/2.0"); + + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); + return schemaMetaData.LocalElementsDictionary; + } + } + + XTypedElement IXMetaData.Content { + get { + return this.Content; + } + } + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class IndividualName : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static IndividualName Load(string xmlFile) { + return XTypedServices.Load<IndividualName>(xmlFile); } - private static void BuildTypeDictionary() { - typeDictionary.Add(System.Xml.Linq.XName.Get("SceneLayerExtensionType", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.SceneLayerExtensionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetSceneType", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.GetSceneType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ScenePortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.ScenePortrayalCapabilitiesExtensionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("MetadataType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.MetadataType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("BoundingBoxType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.BoundingBoxType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("WGS84BoundingBoxType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.WGS84BoundingBoxType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("DescriptionType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DescriptionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("BasicIdentificationType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.BasicIdentificationType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("IdentificationType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.IdentificationType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("DomainType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DomainType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("UnNamedDomainType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.UnNamedDomainType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ValueType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ValueType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("RangeType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.RangeType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("DomainMetadataType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DomainMetadataType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("RequestMethodType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.RequestMethodType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("CapabilitiesBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.CapabilitiesBaseType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetCapabilitiesType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AcceptVersionsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AcceptVersionsType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("SectionsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.SectionsType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AcceptFormatsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AcceptFormatsType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetResourceByIdType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ExceptionType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ExceptionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ContentsBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ContentsBaseType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("DatasetDescriptionSummaryBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DatasetDescriptionSummaryBaseType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AbstractReferenceBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AbstractReferenceBaseType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ReferenceType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ReferenceGroupType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceGroupType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ManifestType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ManifestType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ServiceReferenceType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceReferenceType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParametersBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParametersBaseType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParametersType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParametersType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("NilValueType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.NilValueType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("LanguageStringType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.LanguageStringType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("KeywordsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.KeywordsType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("CodeType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.CodeType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ResponsiblePartyType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ResponsiblePartyType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ResponsiblePartySubsetType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ResponsiblePartySubsetType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ContactType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ContactType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("OnlineResourceType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OnlineResourceType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("TelephoneType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.TelephoneType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AddressType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AddressType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("simple", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.simple)); - typeDictionary.Add(System.Xml.Linq.XName.Get("extended", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.extended)); - typeDictionary.Add(System.Xml.Linq.XName.Get("titleEltType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.titleEltType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("resourceType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.resourceType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("locatorType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.locatorType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("arcType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.arcType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AbstractGetPortrayalType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.AbstractGetPortrayalType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("CapabilitiesType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.CapabilitiesType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("RequestBaseType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.RequestBaseType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("DeliveryOptionType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.DeliveryOptionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ViewpointHintType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.ViewpointHintType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("PortrayalCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.PortrayalCapabilitiesType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("LODSchemeType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.LODSchemeType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("LayerType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.LayerType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.GetResourceByIdType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("Position3DType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.Position3DType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ContentsType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.ContentsType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.GetCapabilitiesType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("OverallStyleType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.OverallStyleType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("BackgroundType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.BackgroundType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("StyleType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.StyleType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("Position2DType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.Position2DType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("OWSContentsBaseRestrictionType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.OWSContentsBaseRestrictionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("InfoLayerExtensionType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.InfoLayerExtensionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AbstractGetFeatureInfoType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.AbstractGetFeatureInfoType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetFeatureInfoByRayType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.GetFeatureInfoByRayType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetFeatureInfoByPositionType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.GetFeatureInfoByPositionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetFeatureInfoByObjectIdType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.GetFeatureInfoByObjectIdType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ViewLayerExtensionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ViewLayerExtensionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("GetViewType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.GetViewType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("PortrayalListType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PortrayalListType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("PerspectiveProjectionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PerspectiveProjectionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ViewPortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ViewPortrayalCapabilitiesExtensionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("OrthographicProjectionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.OrthographicProjectionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ProjectionBaseType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ProjectionBaseType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ImageLayerType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ImageLayerType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("AvailableProjectionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.AvailableProjectionType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("ProjectionParameterType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ProjectionParameterType)); - typeDictionary.Add(System.Xml.Linq.XName.Get("PortrayalType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PortrayalType)); + public static IndividualName Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<IndividualName>(xmlFile); } - private static void BuildElementDictionary() { - elementDictionary.Add(System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AbstractMetaData)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ServiceIdentification", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceIdentification)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ServiceProvider", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceProvider)); - elementDictionary.Add(System.Xml.Linq.XName.Get("AnyValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AnyValue)); - elementDictionary.Add(System.Xml.Linq.XName.Get("NoValues", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.NoValues)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ValuesReference", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ValuesReference)); - elementDictionary.Add(System.Xml.Linq.XName.Get("AllowedValues", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AllowedValues)); - elementDictionary.Add(System.Xml.Linq.XName.Get("OperationsMetadata", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OperationsMetadata)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ExtendedCapabilities", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ExtendedCapabilities)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Operation", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Operation)); - elementDictionary.Add(System.Xml.Linq.XName.Get("DCP", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DCP)); - elementDictionary.Add(System.Xml.Linq.XName.Get("HTTP", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.HTTP)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Resource", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Resource)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ExceptionReport", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ExceptionReport)); - elementDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParameter)); - elementDictionary.Add(System.Xml.Linq.XName.Get("SceneLayerExtension", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.SceneLayerExtension)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Metadata)); - elementDictionary.Add(System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.BoundingBox)); - elementDictionary.Add(System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.WGS84BoundingBox)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Identifier)); - elementDictionary.Add(System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OutputFormat)); - elementDictionary.Add(System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AvailableCRS)); - elementDictionary.Add(System.Xml.Linq.XName.Get("SupportedCRS", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.SupportedCRS)); - elementDictionary.Add(System.Xml.Linq.XName.Get("AccessConstraints", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AccessConstraints)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Fees", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Fees)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Language)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Value)); - elementDictionary.Add(System.Xml.Linq.XName.Get("DefaultValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DefaultValue)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Range", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Range)); - elementDictionary.Add(System.Xml.Linq.XName.Get("MinimumValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.MinimumValue)); - elementDictionary.Add(System.Xml.Linq.XName.Get("MaximumValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.MaximumValue)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Spacing", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Spacing)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Meaning", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Meaning)); - elementDictionary.Add(System.Xml.Linq.XName.Get("DataType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DataType)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ReferenceSystem", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceSystem)); - elementDictionary.Add(System.Xml.Linq.XName.Get("UOM", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.UOM)); - elementDictionary.Add(System.Xml.Linq.XName.Get("GetCapabilities", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetCapabilities)); - elementDictionary.Add(System.Xml.Linq.XName.Get("GetResourceByID", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetResourceByID)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Exception", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Exception)); - elementDictionary.Add(System.Xml.Linq.XName.Get("OtherSource", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OtherSource)); - elementDictionary.Add(System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DatasetDescriptionSummary)); - elementDictionary.Add(System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AbstractReferenceBase)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Reference", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Reference)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ReferenceGroup", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceGroup)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Manifest", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Manifest)); - elementDictionary.Add(System.Xml.Linq.XName.Get("OperationResponse", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OperationResponse)); - elementDictionary.Add(System.Xml.Linq.XName.Get("InputData", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.InputData)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ServiceReference", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceReference)); - elementDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParameters)); - elementDictionary.Add(System.Xml.Linq.XName.Get("nilValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.nilValue)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Title)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Abstract)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Keywords)); - elementDictionary.Add(System.Xml.Linq.XName.Get("PointOfContact", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.PointOfContact)); - elementDictionary.Add(System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.IndividualName)); - elementDictionary.Add(System.Xml.Linq.XName.Get("OrganisationName", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OrganisationName)); - elementDictionary.Add(System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.PositionName)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Role)); - elementDictionary.Add(System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ContactInfo)); - elementDictionary.Add(System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.title)); - elementDictionary.Add(System.Xml.Linq.XName.Get("resource", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.resource)); - elementDictionary.Add(System.Xml.Linq.XName.Get("locator", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.locator)); - elementDictionary.Add(System.Xml.Linq.XName.Get("arc", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.arc)); - elementDictionary.Add(System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.Projection)); - elementDictionary.Add(System.Xml.Linq.XName.Get("PerspectiveProjection", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PerspectiveProjection)); - elementDictionary.Add(System.Xml.Linq.XName.Get("OrthographicProjection", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.OrthographicProjection)); + public static IndividualName Parse(string xml) { + return XTypedServices.Parse<IndividualName>(xml); + } + + public static explicit operator IndividualName(XElement xe) { return XTypedServices.ToXTypedElement<IndividualName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<IndividualName>(this); + } + + public IndividualName() { + } + + public IndividualName(string content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual string TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class OrganisationName : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static OrganisationName Load(string xmlFile) { + return XTypedServices.Load<OrganisationName>(xmlFile); + } + + public static OrganisationName Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OrganisationName>(xmlFile); + } + + public static OrganisationName Parse(string xml) { + return XTypedServices.Parse<OrganisationName>(xml); + } + + public static explicit operator OrganisationName(XElement xe) { return XTypedServices.ToXTypedElement<OrganisationName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OrganisationName>(this); + } + + public OrganisationName() { + } + + public OrganisationName(string content) { + this.TypedValue = content; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual string TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } } - private static void BuildWrapperDictionary() { - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Scene.SceneLayerExtension), typeof(global::OpenGis.ThreeDps.Scene.SceneLayerExtensionType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Metadata), typeof(global::OpenGis.Ows.MetadataType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.BoundingBox), typeof(global::OpenGis.Ows.BoundingBoxType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.WGS84BoundingBox), typeof(global::OpenGis.Ows.WGS84BoundingBoxType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Identifier), typeof(global::OpenGis.Ows.CodeType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Value), typeof(global::OpenGis.Ows.ValueType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.DefaultValue), typeof(global::OpenGis.Ows.ValueType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Range), typeof(global::OpenGis.Ows.RangeType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.MinimumValue), typeof(global::OpenGis.Ows.ValueType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.MaximumValue), typeof(global::OpenGis.Ows.ValueType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Spacing), typeof(global::OpenGis.Ows.ValueType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Meaning), typeof(global::OpenGis.Ows.DomainMetadataType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.DataType), typeof(global::OpenGis.Ows.DomainMetadataType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.ReferenceSystem), typeof(global::OpenGis.Ows.DomainMetadataType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.UOM), typeof(global::OpenGis.Ows.DomainMetadataType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.GetCapabilities), typeof(global::OpenGis.Ows.GetCapabilitiesType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.GetResourceByID), typeof(global::OpenGis.Ows.GetResourceByIdType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Exception), typeof(global::OpenGis.Ows.ExceptionType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.OtherSource), typeof(global::OpenGis.Ows.MetadataType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.DatasetDescriptionSummary), typeof(global::OpenGis.Ows.DatasetDescriptionSummaryBaseType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.AbstractReferenceBase), typeof(global::OpenGis.Ows.AbstractReferenceBaseType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Reference), typeof(global::OpenGis.Ows.ReferenceType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.ReferenceGroup), typeof(global::OpenGis.Ows.ReferenceGroupType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Manifest), typeof(global::OpenGis.Ows.ManifestType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.OperationResponse), typeof(global::OpenGis.Ows.ManifestType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.InputData), typeof(global::OpenGis.Ows.ManifestType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.ServiceReference), typeof(global::OpenGis.Ows.ServiceReferenceType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.AdditionalParameters), typeof(global::OpenGis.Ows.AdditionalParametersType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.nilValue), typeof(global::OpenGis.Ows.NilValueType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Title), typeof(global::OpenGis.Ows.LanguageStringType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Abstract), typeof(global::OpenGis.Ows.LanguageStringType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Keywords), typeof(global::OpenGis.Ows.KeywordsType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.PointOfContact), typeof(global::OpenGis.Ows.ResponsiblePartyType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.Role), typeof(global::OpenGis.Ows.CodeType)); - wrapperDictionary.Add(typeof(OpenGis.Ows.ContactInfo), typeof(global::OpenGis.Ows.ContactType)); - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.title), typeof(global::OpenGis.ThreeDps.Xlink.titleEltType)); - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.resource), typeof(global::OpenGis.ThreeDps.Xlink.resourceType)); - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.locator), typeof(global::OpenGis.ThreeDps.Xlink.locatorType)); - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.arc), typeof(global::OpenGis.ThreeDps.Xlink.arcType)); - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.View.Projection), typeof(global::OpenGis.ThreeDps.View.ProjectionBaseType)); - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.View.PerspectiveProjection), typeof(global::OpenGis.ThreeDps.View.PerspectiveProjectionType)); - wrapperDictionary.Add(typeof(OpenGis.ThreeDps.View.OrthographicProjection), typeof(global::OpenGis.ThreeDps.View.OrthographicProjectionType)); + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OrganisationName", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } - protected internal static void AddSchemas(XmlSchemaSet schemas) { - schemas.Add(schemaSet); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } } - public static System.Type GetRootType() { - return elementDictionary[System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0")]; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } } - public partial class XRootNamespace { + public partial class PositionName : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static PositionName Load(string xmlFile) { + return XTypedServices.Load<PositionName>(xmlFile); + } + + public static PositionName Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PositionName>(xmlFile); + } + + public static PositionName Parse(string xml) { + return XTypedServices.Parse<PositionName>(xml); + } + + public static explicit operator PositionName(XElement xe) { return XTypedServices.ToXTypedElement<PositionName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PositionName>(this); + } + + public PositionName() { + } + + public PositionName(string content) { + this.TypedValue = content; + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XDocument doc; + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual string TypedValue { + get { + XElement x = this.Untyped; + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedElement rootObject; + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } - - public AbstractMetaData AbstractMetaData { get {return rootObject as AbstractMetaData; } } - - public ServiceIdentification ServiceIdentification { get {return rootObject as ServiceIdentification; } } - - public ServiceProvider ServiceProvider { get {return rootObject as ServiceProvider; } } - - public AnyValue AnyValue { get {return rootObject as AnyValue; } } - - public NoValues NoValues { get {return rootObject as NoValues; } } - - public ValuesReference ValuesReference { get {return rootObject as ValuesReference; } } - - public AllowedValues AllowedValues { get {return rootObject as AllowedValues; } } - - public OperationsMetadata OperationsMetadata { get {return rootObject as OperationsMetadata; } } - - public ExtendedCapabilities ExtendedCapabilities { get {return rootObject as ExtendedCapabilities; } } - - public Operation Operation { get {return rootObject as Operation; } } - - public DCP DCP { get {return rootObject as DCP; } } - - public HTTP HTTP { get {return rootObject as HTTP; } } - - public Resource Resource { get {return rootObject as Resource; } } - - public ExceptionReport ExceptionReport { get {return rootObject as ExceptionReport; } } - - public AdditionalParameter AdditionalParameter { get {return rootObject as AdditionalParameter; } } - - public Metadata Metadata { get {return rootObject as Metadata; } } - - public BoundingBox BoundingBox { get {return rootObject as BoundingBox; } } - - public WGS84BoundingBox WGS84BoundingBox { get {return rootObject as WGS84BoundingBox; } } - - public Identifier Identifier { get {return rootObject as Identifier; } } - - public OutputFormat OutputFormat { get {return rootObject as OutputFormat; } } - - public AvailableCRS AvailableCRS { get {return rootObject as AvailableCRS; } } - - public SupportedCRS SupportedCRS { get {return rootObject as SupportedCRS; } } - - public AccessConstraints AccessConstraints { get {return rootObject as AccessConstraints; } } - - public Fees Fees { get {return rootObject as Fees; } } - - public Language Language { get {return rootObject as Language; } } - - public Value Value { get {return rootObject as Value; } } - - public DefaultValue DefaultValue { get {return rootObject as DefaultValue; } } - - public Range Range { get {return rootObject as Range; } } - - public MinimumValue MinimumValue { get {return rootObject as MinimumValue; } } - - public MaximumValue MaximumValue { get {return rootObject as MaximumValue; } } - - public Spacing Spacing { get {return rootObject as Spacing; } } - - public Meaning Meaning { get {return rootObject as Meaning; } } - - public DataType DataType { get {return rootObject as DataType; } } - - public ReferenceSystem ReferenceSystem { get {return rootObject as ReferenceSystem; } } - - public UOM UOM { get {return rootObject as UOM; } } - - public GetCapabilities GetCapabilities { get {return rootObject as GetCapabilities; } } - - public GetResourceByID GetResourceByID { get {return rootObject as GetResourceByID; } } - - public Exception Exception { get {return rootObject as Exception; } } - - public OtherSource OtherSource { get {return rootObject as OtherSource; } } - - public DatasetDescriptionSummary DatasetDescriptionSummary { get {return rootObject as DatasetDescriptionSummary; } } - - public AbstractReferenceBase AbstractReferenceBase { get {return rootObject as AbstractReferenceBase; } } - - public Reference Reference { get {return rootObject as Reference; } } - - public ReferenceGroup ReferenceGroup { get {return rootObject as ReferenceGroup; } } - - public Manifest Manifest { get {return rootObject as Manifest; } } - - public OperationResponse OperationResponse { get {return rootObject as OperationResponse; } } - - public InputData InputData { get {return rootObject as InputData; } } - - public ServiceReference ServiceReference { get {return rootObject as ServiceReference; } } - - public AdditionalParameters AdditionalParameters { get {return rootObject as AdditionalParameters; } } - - public nilValue nilValue { get {return rootObject as nilValue; } } - - public Title Title { get {return rootObject as Title; } } - - public Abstract Abstract { get {return rootObject as Abstract; } } - - public Keywords Keywords { get {return rootObject as Keywords; } } - - public PointOfContact PointOfContact { get {return rootObject as PointOfContact; } } - - public IndividualName IndividualName { get {return rootObject as IndividualName; } } - - public OrganisationName OrganisationName { get {return rootObject as OrganisationName; } } - - public PositionName PositionName { get {return rootObject as PositionName; } } - - public Role Role { get {return rootObject as Role; } } - - public ContactInfo ContactInfo { get {return rootObject as ContactInfo; } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } - private XRootNamespace() { + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } + } + + /// <summary> + /// <para> + /// Name or code with an (optional) authority. If the + /// codeSpace attribute is present, its value shall reference a dictionary, + /// thesaurus, or authority for the name or code, such as the organisation + /// who assigned the value, or the dictionary from which it is + /// taken. + /// </para> + /// <para> + /// Type copied from basicTypes.xsd of GML 3 with + /// documentation edited, for possible use outside the ServiceIdentification + /// section of a service metadata document. + /// </para> + /// </summary> + public partial class Role : XTypedElement, IXMetaData { - public XRootNamespace(AbstractMetaData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - public XRootNamespace(ServiceIdentification root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - public XRootNamespace(ServiceProvider root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - public XRootNamespace(AnyValue root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public static Role Load(string xmlFile) { + return XTypedServices.Load<Role, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); } - public XRootNamespace(NoValues root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public static Role Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Role, CodeType>(xmlFile, LinqToXsdTypeManager.Instance); } - public XRootNamespace(ValuesReference root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public static Role Parse(string xml) { + return XTypedServices.Parse<Role, CodeType>(xml, LinqToXsdTypeManager.Instance); } - public XRootNamespace(AllowedValues root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public static explicit operator Role(XElement xe) { return XTypedServices.ToXTypedElement<Role, CodeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return new Role(((CodeType)(this.Content.Clone()))); } - public XRootNamespace(OperationsMetadata root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private CodeType ContentField; + + /// <summary> + /// <para> + /// Name or code with an (optional) authority. If the + /// codeSpace attribute is present, its value shall reference a dictionary, + /// thesaurus, or authority for the name or code, such as the organisation + /// who assigned the value, or the dictionary from which it is + /// taken. + /// </para> + /// <para> + /// Type copied from basicTypes.xsd of GML 3 with + /// documentation edited, for possible use outside the ServiceIdentification + /// section of a service metadata document. + /// </para> + /// </summary> + public Role() { + SetInnerType(new CodeType()); } - public XRootNamespace(ExtendedCapabilities root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public override XElement Untyped { + get { + return base.Untyped; + } + set { + base.Untyped = value; + this.ContentField.Untyped = value; + } } - public XRootNamespace(Operation root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public virtual CodeType Content { + get { + return ContentField; + } } - public XRootNamespace(DCP root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + private void SetInnerType(CodeType ContentField) { + this.ContentField = ((CodeType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); } - public XRootNamespace(HTTP root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// Name or code with an (optional) authority. If the + /// codeSpace attribute is present, its value shall reference a dictionary, + /// thesaurus, or authority for the name or code, such as the organisation + /// who assigned the value, or the dictionary from which it is + /// taken. + /// </para> + /// <para> + /// Type copied from basicTypes.xsd of GML 3 with + /// documentation edited, for possible use outside the ServiceIdentification + /// section of a service metadata document. + /// </para> + /// </summary> + public Role(CodeType content) { + SetInnerType(content); } - public XRootNamespace(Resource root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public virtual string TypedValue { + get { + return this.ContentField.TypedValue; + } + set { + this.ContentField.TypedValue = value; + } } - public XRootNamespace(ExceptionReport root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Uri codeSpace { + get { + return this.ContentField.codeSpace; + } + set { + this.ContentField.codeSpace = value; + } } - public XRootNamespace(AdditionalParameter root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"); + + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); + return schemaMetaData.LocalElementsDictionary; + } } - public XRootNamespace(Metadata root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + XTypedElement IXMetaData.Content { + get { + return this.Content; + } } - public XRootNamespace(BoundingBox root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } - public XRootNamespace(WGS84BoundingBox root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } } - public XRootNamespace(Identifier root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } } - public XRootNamespace(OutputFormat root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } + } + + /// <summary> + /// <para> + /// Information required to enable contact with the + /// responsible person and/or organization. + /// </para> + /// <para> + /// For OWS use in the service metadata document, the + /// optional hoursOfService and contactInstructions elements were retained, + /// as possibly being useful in the ServiceProvider section. + /// </para> + /// </summary> + public partial class ContactInfo : XTypedElement, IXMetaData { - public XRootNamespace(AvailableCRS root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - public XRootNamespace(SupportedCRS root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - public XRootNamespace(AccessConstraints root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - public XRootNamespace(Fees root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public static ContactInfo Load(string xmlFile) { + return XTypedServices.Load<ContactInfo, ContactType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static ContactInfo Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ContactInfo, ContactType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static ContactInfo Parse(string xml) { + return XTypedServices.Parse<ContactInfo, ContactType>(xml, LinqToXsdTypeManager.Instance); + } + + public static explicit operator ContactInfo(XElement xe) { return XTypedServices.ToXTypedElement<ContactInfo, ContactType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return new ContactInfo(((ContactType)(this.Content.Clone()))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ContactType ContentField; + + /// <summary> + /// <para> + /// Information required to enable contact with the + /// responsible person and/or organization. + /// </para> + /// <para> + /// For OWS use in the service metadata document, the + /// optional hoursOfService and contactInstructions elements were retained, + /// as possibly being useful in the ServiceProvider section. + /// </para> + /// </summary> + public ContactInfo() { + SetInnerType(new ContactType()); } - public XRootNamespace(Language root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public override XElement Untyped { + get { + return base.Untyped; + } + set { + base.Untyped = value; + this.ContentField.Untyped = value; + } } - public XRootNamespace(Value root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public virtual ContactType Content { + get { + return ContentField; + } } - public XRootNamespace(DefaultValue root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + private void SetInnerType(ContactType ContentField) { + this.ContentField = ((ContactType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); } - public XRootNamespace(Range root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// Information required to enable contact with the + /// responsible person and/or organization. + /// </para> + /// <para> + /// For OWS use in the service metadata document, the + /// optional hoursOfService and contactInstructions elements were retained, + /// as possibly being useful in the ServiceProvider section. + /// </para> + /// </summary> + public ContactInfo(ContactType content) { + SetInnerType(content); } - public XRootNamespace(MinimumValue root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// Telephone numbers at which the organization or + /// individual may be contacted. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) + /// </para> + /// </summary> + public virtual TelephoneType Phone { + get { + return this.ContentField.Phone; + } + set { + this.ContentField.Phone = value; + } } - public XRootNamespace(MaximumValue root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// Physical and email address at which the organization + /// or individual may be contacted. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) + /// </para> + /// </summary> + public virtual AddressType Address { + get { + return this.ContentField.Address; + } + set { + this.ContentField.Address = value; + } } - public XRootNamespace(Spacing root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// On-line information that can be used to contact the + /// individual or organization. OWS specifics: The xlink:href attribute + /// in the xlink:simpleAttrs attribute group shall be used to reference + /// this resource. Whenever practical, the xlink:href attribute with + /// type anyURI should be a URL from which more contact information can + /// be electronically retrieved. The xlink:title attribute with type + /// "string" can be used to name this set of information. The other + /// attributes in the xlink:simpleAttrs attribute group should not be + /// used. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) + /// </para> + /// </summary> + public virtual OnlineResourceType OnlineResource { + get { + return this.ContentField.OnlineResource; + } + set { + this.ContentField.OnlineResource = value; + } } - public XRootNamespace(Meaning root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// Time period (including time zone) when individuals + /// can contact the organization or individual. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) + /// </para> + /// </summary> + public virtual string HoursOfService { + get { + return this.ContentField.HoursOfService; + } + set { + this.ContentField.HoursOfService = value; + } } - public XRootNamespace(DataType root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + /// <summary> + /// <para> + /// Supplemental instructions on how or when to contact + /// the individual or organization. + /// </para> + /// <para> + /// Occurrence: optional + /// </para> + /// <para> + /// Regular expression: (Phone?, Address?, OnlineResource?, HoursOfService?, ContactInstructions?) + /// </para> + /// </summary> + public virtual string ContactInstructions { + get { + return this.ContentField.ContactInstructions; + } + set { + this.ContentField.ContactInstructions = value; + } } - public XRootNamespace(ReferenceSystem root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"); - public XRootNamespace(UOM root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); + return schemaMetaData.LocalElementsDictionary; + } } - public XRootNamespace(GetCapabilities root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + XTypedElement IXMetaData.Content { + get { + return this.Content; + } } - public XRootNamespace(GetResourceByID root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } - public XRootNamespace(Exception root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } } - public XRootNamespace(OtherSource root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } } - public XRootNamespace(DatasetDescriptionSummary root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } + } + + public class LinqToXsdTypeManager : ILinqToXsdTypeManager { - public XRootNamespace(AbstractReferenceBase root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + private LinqToXsdTypeManager() { } - public XRootNamespace(Reference root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + private static Dictionary<System.Xml.Linq.XName, System.Type> typeDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - public XRootNamespace(ReferenceGroup root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + private static void BuildTypeDictionary() { + typeDictionary.Add(System.Xml.Linq.XName.Get("SceneLayerExtensionType", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.SceneLayerExtensionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetSceneType", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.GetSceneType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ScenePortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.ScenePortrayalCapabilitiesExtensionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("MetadataType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.MetadataType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("BoundingBoxType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.BoundingBoxType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("WGS84BoundingBoxType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.WGS84BoundingBoxType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("DescriptionType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DescriptionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("BasicIdentificationType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.BasicIdentificationType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("IdentificationType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.IdentificationType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("DomainType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DomainType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("UnNamedDomainType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.UnNamedDomainType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ValueType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ValueType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("RangeType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.RangeType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("DomainMetadataType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DomainMetadataType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("RequestMethodType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.RequestMethodType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("CapabilitiesBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.CapabilitiesBaseType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetCapabilitiesType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AcceptVersionsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AcceptVersionsType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("SectionsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.SectionsType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AcceptFormatsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AcceptFormatsType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetResourceByIdType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ExceptionType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ExceptionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ContentsBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ContentsBaseType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("DatasetDescriptionSummaryBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DatasetDescriptionSummaryBaseType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AbstractReferenceBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AbstractReferenceBaseType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ReferenceType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ReferenceGroupType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceGroupType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ManifestType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ManifestType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ServiceReferenceType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceReferenceType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParametersBaseType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParametersBaseType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParametersType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParametersType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("NilValueType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.NilValueType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("LanguageStringType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.LanguageStringType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("KeywordsType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.KeywordsType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("CodeType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.CodeType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ResponsiblePartyType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ResponsiblePartyType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ResponsiblePartySubsetType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ResponsiblePartySubsetType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ContactType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ContactType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("OnlineResourceType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OnlineResourceType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("TelephoneType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.TelephoneType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AddressType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AddressType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("simple", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.simple)); + typeDictionary.Add(System.Xml.Linq.XName.Get("extended", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.extended)); + typeDictionary.Add(System.Xml.Linq.XName.Get("titleEltType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.titleEltType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("resourceType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.resourceType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("locatorType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.locatorType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("arcType", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.arcType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AbstractGetPortrayalType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.AbstractGetPortrayalType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("CapabilitiesType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.CapabilitiesType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("RequestBaseType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.RequestBaseType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("DeliveryOptionType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.DeliveryOptionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ViewpointHintType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.ViewpointHintType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("PortrayalCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.PortrayalCapabilitiesType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("LODSchemeType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.LODSchemeType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("LayerType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.LayerType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.GetResourceByIdType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("Position3DType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.Position3DType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ContentsType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.ContentsType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.GetCapabilitiesType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("OverallStyleType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.OverallStyleType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("BackgroundType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.BackgroundType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("StyleType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.StyleType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("Position2DType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.Position2DType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("OWSContentsBaseRestrictionType", "http://www.opengis.net/3dps/1.0/core"), typeof(global::OpenGis.ThreeDps.Core.OWSContentsBaseRestrictionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("InfoLayerExtensionType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.InfoLayerExtensionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AbstractGetFeatureInfoType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.AbstractGetFeatureInfoType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetFeatureInfoByRayType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.GetFeatureInfoByRayType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetFeatureInfoByPositionType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.GetFeatureInfoByPositionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetFeatureInfoByObjectIdType", "http://www.opengis.net/3dps/1.0/info"), typeof(global::OpenGis.ThreeDps.Info.GetFeatureInfoByObjectIdType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ViewLayerExtensionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ViewLayerExtensionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("GetViewType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.GetViewType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("PortrayalListType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PortrayalListType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("PerspectiveProjectionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PerspectiveProjectionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ViewPortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ViewPortrayalCapabilitiesExtensionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("OrthographicProjectionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.OrthographicProjectionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ProjectionBaseType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ProjectionBaseType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ImageLayerType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ImageLayerType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("AvailableProjectionType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.AvailableProjectionType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("ProjectionParameterType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.ProjectionParameterType)); + typeDictionary.Add(System.Xml.Linq.XName.Get("PortrayalType", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PortrayalType)); } - public XRootNamespace(Manifest root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + private static Dictionary<System.Xml.Linq.XName, System.Type> elementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - public XRootNamespace(OperationResponse root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + private static void BuildElementDictionary() { + elementDictionary.Add(System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AbstractMetaData)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ServiceIdentification", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceIdentification)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ServiceProvider", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceProvider)); + elementDictionary.Add(System.Xml.Linq.XName.Get("AnyValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AnyValue)); + elementDictionary.Add(System.Xml.Linq.XName.Get("NoValues", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.NoValues)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ValuesReference", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ValuesReference)); + elementDictionary.Add(System.Xml.Linq.XName.Get("AllowedValues", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AllowedValues)); + elementDictionary.Add(System.Xml.Linq.XName.Get("OperationsMetadata", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OperationsMetadata)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ExtendedCapabilities", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ExtendedCapabilities)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Operation", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Operation)); + elementDictionary.Add(System.Xml.Linq.XName.Get("DCP", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DCP)); + elementDictionary.Add(System.Xml.Linq.XName.Get("HTTP", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.HTTP)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Resource", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Resource)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ExceptionReport", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ExceptionReport)); + elementDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParameter", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParameter)); + elementDictionary.Add(System.Xml.Linq.XName.Get("SceneLayerExtension", "http://www.opengis.net/3dps/1.0/scene"), typeof(global::OpenGis.ThreeDps.Scene.SceneLayerExtension)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Metadata)); + elementDictionary.Add(System.Xml.Linq.XName.Get("BoundingBox", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.BoundingBox)); + elementDictionary.Add(System.Xml.Linq.XName.Get("WGS84BoundingBox", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.WGS84BoundingBox)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Identifier)); + elementDictionary.Add(System.Xml.Linq.XName.Get("OutputFormat", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OutputFormat)); + elementDictionary.Add(System.Xml.Linq.XName.Get("AvailableCRS", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AvailableCRS)); + elementDictionary.Add(System.Xml.Linq.XName.Get("SupportedCRS", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.SupportedCRS)); + elementDictionary.Add(System.Xml.Linq.XName.Get("AccessConstraints", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AccessConstraints)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Fees", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Fees)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Language", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Language)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Value", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Value)); + elementDictionary.Add(System.Xml.Linq.XName.Get("DefaultValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DefaultValue)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Range", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Range)); + elementDictionary.Add(System.Xml.Linq.XName.Get("MinimumValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.MinimumValue)); + elementDictionary.Add(System.Xml.Linq.XName.Get("MaximumValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.MaximumValue)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Spacing", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Spacing)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Meaning", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Meaning)); + elementDictionary.Add(System.Xml.Linq.XName.Get("DataType", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DataType)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ReferenceSystem", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceSystem)); + elementDictionary.Add(System.Xml.Linq.XName.Get("UOM", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.UOM)); + elementDictionary.Add(System.Xml.Linq.XName.Get("GetCapabilities", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetCapabilities)); + elementDictionary.Add(System.Xml.Linq.XName.Get("GetResourceByID", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.GetResourceByID)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Exception", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Exception)); + elementDictionary.Add(System.Xml.Linq.XName.Get("OtherSource", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OtherSource)); + elementDictionary.Add(System.Xml.Linq.XName.Get("DatasetDescriptionSummary", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.DatasetDescriptionSummary)); + elementDictionary.Add(System.Xml.Linq.XName.Get("AbstractReferenceBase", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AbstractReferenceBase)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Reference", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Reference)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ReferenceGroup", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ReferenceGroup)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Manifest", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Manifest)); + elementDictionary.Add(System.Xml.Linq.XName.Get("OperationResponse", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OperationResponse)); + elementDictionary.Add(System.Xml.Linq.XName.Get("InputData", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.InputData)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ServiceReference", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ServiceReference)); + elementDictionary.Add(System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.AdditionalParameters)); + elementDictionary.Add(System.Xml.Linq.XName.Get("nilValue", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.nilValue)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Title", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Title)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Abstract", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Abstract)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Keywords", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Keywords)); + elementDictionary.Add(System.Xml.Linq.XName.Get("PointOfContact", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.PointOfContact)); + elementDictionary.Add(System.Xml.Linq.XName.Get("IndividualName", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.IndividualName)); + elementDictionary.Add(System.Xml.Linq.XName.Get("OrganisationName", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.OrganisationName)); + elementDictionary.Add(System.Xml.Linq.XName.Get("PositionName", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.PositionName)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Role", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.Role)); + elementDictionary.Add(System.Xml.Linq.XName.Get("ContactInfo", "http://www.opengis.net/ows/2.0"), typeof(global::OpenGis.Ows.ContactInfo)); + elementDictionary.Add(System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.title)); + elementDictionary.Add(System.Xml.Linq.XName.Get("resource", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.resource)); + elementDictionary.Add(System.Xml.Linq.XName.Get("locator", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.locator)); + elementDictionary.Add(System.Xml.Linq.XName.Get("arc", "http://www.w3.org/1999/xlink"), typeof(global::OpenGis.ThreeDps.Xlink.arc)); + elementDictionary.Add(System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.Projection)); + elementDictionary.Add(System.Xml.Linq.XName.Get("PerspectiveProjection", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.PerspectiveProjection)); + elementDictionary.Add(System.Xml.Linq.XName.Get("OrthographicProjection", "http://www.opengis.net/3dps/1.0/view"), typeof(global::OpenGis.ThreeDps.View.OrthographicProjection)); } - public XRootNamespace(InputData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + private static Dictionary<System.Type, System.Type> wrapperDictionary = new Dictionary<System.Type, System.Type>(); - public XRootNamespace(ServiceReference root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + private static void BuildWrapperDictionary() { + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Scene.SceneLayerExtension), typeof(global::OpenGis.ThreeDps.Scene.SceneLayerExtensionType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Metadata), typeof(global::OpenGis.Ows.MetadataType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.BoundingBox), typeof(global::OpenGis.Ows.BoundingBoxType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.WGS84BoundingBox), typeof(global::OpenGis.Ows.WGS84BoundingBoxType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Identifier), typeof(global::OpenGis.Ows.CodeType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Value), typeof(global::OpenGis.Ows.ValueType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.DefaultValue), typeof(global::OpenGis.Ows.ValueType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Range), typeof(global::OpenGis.Ows.RangeType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.MinimumValue), typeof(global::OpenGis.Ows.ValueType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.MaximumValue), typeof(global::OpenGis.Ows.ValueType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Spacing), typeof(global::OpenGis.Ows.ValueType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Meaning), typeof(global::OpenGis.Ows.DomainMetadataType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.DataType), typeof(global::OpenGis.Ows.DomainMetadataType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.ReferenceSystem), typeof(global::OpenGis.Ows.DomainMetadataType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.UOM), typeof(global::OpenGis.Ows.DomainMetadataType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.GetCapabilities), typeof(global::OpenGis.Ows.GetCapabilitiesType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.GetResourceByID), typeof(global::OpenGis.Ows.GetResourceByIdType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Exception), typeof(global::OpenGis.Ows.ExceptionType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.OtherSource), typeof(global::OpenGis.Ows.MetadataType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.DatasetDescriptionSummary), typeof(global::OpenGis.Ows.DatasetDescriptionSummaryBaseType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.AbstractReferenceBase), typeof(global::OpenGis.Ows.AbstractReferenceBaseType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Reference), typeof(global::OpenGis.Ows.ReferenceType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.ReferenceGroup), typeof(global::OpenGis.Ows.ReferenceGroupType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Manifest), typeof(global::OpenGis.Ows.ManifestType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.OperationResponse), typeof(global::OpenGis.Ows.ManifestType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.InputData), typeof(global::OpenGis.Ows.ManifestType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.ServiceReference), typeof(global::OpenGis.Ows.ServiceReferenceType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.AdditionalParameters), typeof(global::OpenGis.Ows.AdditionalParametersType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.nilValue), typeof(global::OpenGis.Ows.NilValueType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Title), typeof(global::OpenGis.Ows.LanguageStringType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Abstract), typeof(global::OpenGis.Ows.LanguageStringType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Keywords), typeof(global::OpenGis.Ows.KeywordsType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.PointOfContact), typeof(global::OpenGis.Ows.ResponsiblePartyType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.Role), typeof(global::OpenGis.Ows.CodeType)); + wrapperDictionary.Add(typeof(OpenGis.Ows.ContactInfo), typeof(global::OpenGis.Ows.ContactType)); + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.title), typeof(global::OpenGis.ThreeDps.Xlink.titleEltType)); + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.resource), typeof(global::OpenGis.ThreeDps.Xlink.resourceType)); + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.locator), typeof(global::OpenGis.ThreeDps.Xlink.locatorType)); + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.Xlink.arc), typeof(global::OpenGis.ThreeDps.Xlink.arcType)); + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.View.Projection), typeof(global::OpenGis.ThreeDps.View.ProjectionBaseType)); + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.View.PerspectiveProjection), typeof(global::OpenGis.ThreeDps.View.PerspectiveProjectionType)); + wrapperDictionary.Add(typeof(OpenGis.ThreeDps.View.OrthographicProjection), typeof(global::OpenGis.ThreeDps.View.OrthographicProjectionType)); } - public XRootNamespace(AdditionalParameters root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + private static XmlSchemaSet schemaSet; - public XRootNamespace(nilValue root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + XmlSchemaSet ILinqToXsdTypeManager.Schemas { + get { + if ((schemaSet == null)) { + XmlSchemaSet tempSet = new XmlSchemaSet(); + System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); + } + return schemaSet; + } + set { + schemaSet = value; + } } - public XRootNamespace(Title root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + protected internal static void AddSchemas(XmlSchemaSet schemas) { + schemas.Add(schemaSet); } - public XRootNamespace(Abstract root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalTypeDictionary { + get { + return typeDictionary; + } } - public XRootNamespace(Keywords root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalElementDictionary { + get { + return elementDictionary; + } } - public XRootNamespace(PointOfContact root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + Dictionary<System.Type, System.Type> ILinqToXsdTypeManager.RootContentTypeMapping { + get { + return wrapperDictionary; + } } - public XRootNamespace(IndividualName root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + static LinqToXsdTypeManager() { + BuildTypeDictionary(); + BuildElementDictionary(); + BuildWrapperDictionary(); } - public XRootNamespace(OrganisationName root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public static System.Type GetRootType() { + return elementDictionary[System.Xml.Linq.XName.Get("AbstractMetaData", "http://www.opengis.net/ows/2.0")]; } - public XRootNamespace(PositionName root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); - public XRootNamespace(Role root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public static LinqToXsdTypeManager Instance { + get { + return typeManagerSingleton; + } } + } + + public partial class XRootNamespace { - public XRootNamespace(ContactInfo root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; - public virtual XDocument XDocument { - get { - return doc; - } - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; - public virtual XTypedElement Root { - get { - return rootObject; - } + private XRootNamespace() { } public static XRootNamespace Load(string xmlFile) { @@ -16830,590 +17709,1131 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } - } - - public partial class XRoot { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XDocument doc; + public virtual XDocument XDocument { + get { + return doc; + } + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedElement rootObject; + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(AbstractMetaData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } - public global::OpenGis.Ows.AbstractMetaData AbstractMetaData { get {return rootObject as global::OpenGis.Ows.AbstractMetaData; } } - - public global::OpenGis.Ows.ServiceIdentification ServiceIdentification { get {return rootObject as global::OpenGis.Ows.ServiceIdentification; } } - - public global::OpenGis.Ows.ServiceProvider ServiceProvider { get {return rootObject as global::OpenGis.Ows.ServiceProvider; } } - - public global::OpenGis.Ows.AnyValue AnyValue { get {return rootObject as global::OpenGis.Ows.AnyValue; } } - - public global::OpenGis.Ows.NoValues NoValues { get {return rootObject as global::OpenGis.Ows.NoValues; } } - - public global::OpenGis.Ows.ValuesReference ValuesReference { get {return rootObject as global::OpenGis.Ows.ValuesReference; } } - - public global::OpenGis.Ows.AllowedValues AllowedValues { get {return rootObject as global::OpenGis.Ows.AllowedValues; } } - - public global::OpenGis.Ows.OperationsMetadata OperationsMetadata { get {return rootObject as global::OpenGis.Ows.OperationsMetadata; } } - - public global::OpenGis.Ows.ExtendedCapabilities ExtendedCapabilities { get {return rootObject as global::OpenGis.Ows.ExtendedCapabilities; } } + public AbstractMetaData AbstractMetaData { get {return rootObject as AbstractMetaData; } } + + public XRootNamespace(ServiceIdentification root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Operation Operation { get {return rootObject as global::OpenGis.Ows.Operation; } } + public ServiceIdentification ServiceIdentification { get {return rootObject as ServiceIdentification; } } + + public XRootNamespace(ServiceProvider root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.DCP DCP { get {return rootObject as global::OpenGis.Ows.DCP; } } + public ServiceProvider ServiceProvider { get {return rootObject as ServiceProvider; } } + + public XRootNamespace(AnyValue root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.HTTP HTTP { get {return rootObject as global::OpenGis.Ows.HTTP; } } + public AnyValue AnyValue { get {return rootObject as AnyValue; } } + + public XRootNamespace(NoValues root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Resource Resource { get {return rootObject as global::OpenGis.Ows.Resource; } } + public NoValues NoValues { get {return rootObject as NoValues; } } + + public XRootNamespace(ValuesReference root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.ExceptionReport ExceptionReport { get {return rootObject as global::OpenGis.Ows.ExceptionReport; } } + public ValuesReference ValuesReference { get {return rootObject as ValuesReference; } } + + public XRootNamespace(AllowedValues root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.AdditionalParameter AdditionalParameter { get {return rootObject as global::OpenGis.Ows.AdditionalParameter; } } + public AllowedValues AllowedValues { get {return rootObject as AllowedValues; } } + + public XRootNamespace(OperationsMetadata root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Metadata Metadata { get {return rootObject as global::OpenGis.Ows.Metadata; } } + public OperationsMetadata OperationsMetadata { get {return rootObject as OperationsMetadata; } } + + public XRootNamespace(ExtendedCapabilities root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.BoundingBox BoundingBox { get {return rootObject as global::OpenGis.Ows.BoundingBox; } } + public ExtendedCapabilities ExtendedCapabilities { get {return rootObject as ExtendedCapabilities; } } + + public XRootNamespace(Operation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.WGS84BoundingBox WGS84BoundingBox { get {return rootObject as global::OpenGis.Ows.WGS84BoundingBox; } } + public Operation Operation { get {return rootObject as Operation; } } + + public XRootNamespace(DCP root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Identifier Identifier { get {return rootObject as global::OpenGis.Ows.Identifier; } } + public DCP DCP { get {return rootObject as DCP; } } + + public XRootNamespace(HTTP root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.OutputFormat OutputFormat { get {return rootObject as global::OpenGis.Ows.OutputFormat; } } + public HTTP HTTP { get {return rootObject as HTTP; } } + + public XRootNamespace(Resource root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.AvailableCRS AvailableCRS { get {return rootObject as global::OpenGis.Ows.AvailableCRS; } } + public Resource Resource { get {return rootObject as Resource; } } + + public XRootNamespace(ExceptionReport root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.SupportedCRS SupportedCRS { get {return rootObject as global::OpenGis.Ows.SupportedCRS; } } + public ExceptionReport ExceptionReport { get {return rootObject as ExceptionReport; } } + + public XRootNamespace(AdditionalParameter root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.AccessConstraints AccessConstraints { get {return rootObject as global::OpenGis.Ows.AccessConstraints; } } + public AdditionalParameter AdditionalParameter { get {return rootObject as AdditionalParameter; } } + + public XRootNamespace(Metadata root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Fees Fees { get {return rootObject as global::OpenGis.Ows.Fees; } } + public Metadata Metadata { get {return rootObject as Metadata; } } + + public XRootNamespace(BoundingBox root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Language Language { get {return rootObject as global::OpenGis.Ows.Language; } } + public BoundingBox BoundingBox { get {return rootObject as BoundingBox; } } + + public XRootNamespace(WGS84BoundingBox root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Value Value { get {return rootObject as global::OpenGis.Ows.Value; } } + public WGS84BoundingBox WGS84BoundingBox { get {return rootObject as WGS84BoundingBox; } } + + public XRootNamespace(Identifier root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.DefaultValue DefaultValue { get {return rootObject as global::OpenGis.Ows.DefaultValue; } } + public Identifier Identifier { get {return rootObject as Identifier; } } + + public XRootNamespace(OutputFormat root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Range Range { get {return rootObject as global::OpenGis.Ows.Range; } } + public OutputFormat OutputFormat { get {return rootObject as OutputFormat; } } + + public XRootNamespace(AvailableCRS root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.MinimumValue MinimumValue { get {return rootObject as global::OpenGis.Ows.MinimumValue; } } + public AvailableCRS AvailableCRS { get {return rootObject as AvailableCRS; } } + + public XRootNamespace(SupportedCRS root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.MaximumValue MaximumValue { get {return rootObject as global::OpenGis.Ows.MaximumValue; } } + public SupportedCRS SupportedCRS { get {return rootObject as SupportedCRS; } } + + public XRootNamespace(AccessConstraints root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Spacing Spacing { get {return rootObject as global::OpenGis.Ows.Spacing; } } + public AccessConstraints AccessConstraints { get {return rootObject as AccessConstraints; } } + + public XRootNamespace(Fees root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Meaning Meaning { get {return rootObject as global::OpenGis.Ows.Meaning; } } + public Fees Fees { get {return rootObject as Fees; } } + + public XRootNamespace(Language root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.DataType DataType { get {return rootObject as global::OpenGis.Ows.DataType; } } + public Language Language { get {return rootObject as Language; } } + + public XRootNamespace(Value root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.ReferenceSystem ReferenceSystem { get {return rootObject as global::OpenGis.Ows.ReferenceSystem; } } + public Value Value { get {return rootObject as Value; } } + + public XRootNamespace(DefaultValue root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.UOM UOM { get {return rootObject as global::OpenGis.Ows.UOM; } } + public DefaultValue DefaultValue { get {return rootObject as DefaultValue; } } + + public XRootNamespace(Range root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.GetCapabilities GetCapabilities { get {return rootObject as global::OpenGis.Ows.GetCapabilities; } } + public Range Range { get {return rootObject as Range; } } + + public XRootNamespace(MinimumValue root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.GetResourceByID GetResourceByID { get {return rootObject as global::OpenGis.Ows.GetResourceByID; } } + public MinimumValue MinimumValue { get {return rootObject as MinimumValue; } } + + public XRootNamespace(MaximumValue root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Exception Exception { get {return rootObject as global::OpenGis.Ows.Exception; } } + public MaximumValue MaximumValue { get {return rootObject as MaximumValue; } } + + public XRootNamespace(Spacing root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.OtherSource OtherSource { get {return rootObject as global::OpenGis.Ows.OtherSource; } } + public Spacing Spacing { get {return rootObject as Spacing; } } + + public XRootNamespace(Meaning root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.DatasetDescriptionSummary DatasetDescriptionSummary { get {return rootObject as global::OpenGis.Ows.DatasetDescriptionSummary; } } + public Meaning Meaning { get {return rootObject as Meaning; } } + + public XRootNamespace(DataType root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.AbstractReferenceBase AbstractReferenceBase { get {return rootObject as global::OpenGis.Ows.AbstractReferenceBase; } } + public DataType DataType { get {return rootObject as DataType; } } + + public XRootNamespace(ReferenceSystem root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Reference Reference { get {return rootObject as global::OpenGis.Ows.Reference; } } + public ReferenceSystem ReferenceSystem { get {return rootObject as ReferenceSystem; } } + + public XRootNamespace(UOM root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.ReferenceGroup ReferenceGroup { get {return rootObject as global::OpenGis.Ows.ReferenceGroup; } } + public UOM UOM { get {return rootObject as UOM; } } + + public XRootNamespace(GetCapabilities root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Manifest Manifest { get {return rootObject as global::OpenGis.Ows.Manifest; } } + public GetCapabilities GetCapabilities { get {return rootObject as GetCapabilities; } } + + public XRootNamespace(GetResourceByID root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.OperationResponse OperationResponse { get {return rootObject as global::OpenGis.Ows.OperationResponse; } } + public GetResourceByID GetResourceByID { get {return rootObject as GetResourceByID; } } + + public XRootNamespace(Exception root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.InputData InputData { get {return rootObject as global::OpenGis.Ows.InputData; } } + public Exception Exception { get {return rootObject as Exception; } } + + public XRootNamespace(OtherSource root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.ServiceReference ServiceReference { get {return rootObject as global::OpenGis.Ows.ServiceReference; } } + public OtherSource OtherSource { get {return rootObject as OtherSource; } } + + public XRootNamespace(DatasetDescriptionSummary root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.AdditionalParameters AdditionalParameters { get {return rootObject as global::OpenGis.Ows.AdditionalParameters; } } + public DatasetDescriptionSummary DatasetDescriptionSummary { get {return rootObject as DatasetDescriptionSummary; } } + + public XRootNamespace(AbstractReferenceBase root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.nilValue nilValue { get {return rootObject as global::OpenGis.Ows.nilValue; } } + public AbstractReferenceBase AbstractReferenceBase { get {return rootObject as AbstractReferenceBase; } } + + public XRootNamespace(Reference root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Title Title { get {return rootObject as global::OpenGis.Ows.Title; } } + public Reference Reference { get {return rootObject as Reference; } } + + public XRootNamespace(ReferenceGroup root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Abstract Abstract { get {return rootObject as global::OpenGis.Ows.Abstract; } } + public ReferenceGroup ReferenceGroup { get {return rootObject as ReferenceGroup; } } + + public XRootNamespace(Manifest root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Keywords Keywords { get {return rootObject as global::OpenGis.Ows.Keywords; } } + public Manifest Manifest { get {return rootObject as Manifest; } } + + public XRootNamespace(OperationResponse root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.PointOfContact PointOfContact { get {return rootObject as global::OpenGis.Ows.PointOfContact; } } + public OperationResponse OperationResponse { get {return rootObject as OperationResponse; } } + + public XRootNamespace(InputData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.IndividualName IndividualName { get {return rootObject as global::OpenGis.Ows.IndividualName; } } + public InputData InputData { get {return rootObject as InputData; } } + + public XRootNamespace(ServiceReference root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.OrganisationName OrganisationName { get {return rootObject as global::OpenGis.Ows.OrganisationName; } } + public ServiceReference ServiceReference { get {return rootObject as ServiceReference; } } + + public XRootNamespace(AdditionalParameters root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.PositionName PositionName { get {return rootObject as global::OpenGis.Ows.PositionName; } } + public AdditionalParameters AdditionalParameters { get {return rootObject as AdditionalParameters; } } + + public XRootNamespace(nilValue root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.Role Role { get {return rootObject as global::OpenGis.Ows.Role; } } + public nilValue nilValue { get {return rootObject as nilValue; } } + + public XRootNamespace(Title root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.Ows.ContactInfo ContactInfo { get {return rootObject as global::OpenGis.Ows.ContactInfo; } } + public Title Title { get {return rootObject as Title; } } + + public XRootNamespace(Abstract root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.Scene.SceneLayerExtension SceneLayerExtension { get {return rootObject as global::OpenGis.ThreeDps.Scene.SceneLayerExtension; } } + public Abstract Abstract { get {return rootObject as Abstract; } } + + public XRootNamespace(Keywords root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.Xlink.title title1 { get {return rootObject as global::OpenGis.ThreeDps.Xlink.title; } } + public Keywords Keywords { get {return rootObject as Keywords; } } + + public XRootNamespace(PointOfContact root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.Xlink.resource resource1 { get {return rootObject as global::OpenGis.ThreeDps.Xlink.resource; } } + public PointOfContact PointOfContact { get {return rootObject as PointOfContact; } } + + public XRootNamespace(IndividualName root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.Xlink.locator locator { get {return rootObject as global::OpenGis.ThreeDps.Xlink.locator; } } + public IndividualName IndividualName { get {return rootObject as IndividualName; } } + + public XRootNamespace(OrganisationName root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.Xlink.arc arc { get {return rootObject as global::OpenGis.ThreeDps.Xlink.arc; } } + public OrganisationName OrganisationName { get {return rootObject as OrganisationName; } } + + public XRootNamespace(PositionName root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.View.Projection Projection { get {return rootObject as global::OpenGis.ThreeDps.View.Projection; } } + public PositionName PositionName { get {return rootObject as PositionName; } } + + public XRootNamespace(Role root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.View.PerspectiveProjection PerspectiveProjection { get {return rootObject as global::OpenGis.ThreeDps.View.PerspectiveProjection; } } + public Role Role { get {return rootObject as Role; } } + + public XRootNamespace(ContactInfo root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::OpenGis.ThreeDps.View.OrthographicProjection OrthographicProjection { get {return rootObject as global::OpenGis.ThreeDps.View.OrthographicProjection; } } + public ContactInfo ContactInfo { get {return rootObject as ContactInfo; } } + } + + public partial class XRoot { + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; private XRoot() { } + public static XRoot Load(string xmlFile) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(string xmlFile, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(XmlReader xmlReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public virtual void Save(string fileName) { + doc.Save(fileName); + } + + public virtual void Save(TextWriter textWriter) { + doc.Save(textWriter); + } + + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + public XRoot(global::OpenGis.Ows.AbstractMetaData root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AbstractMetaData AbstractMetaData { get {return rootObject as global::OpenGis.Ows.AbstractMetaData; } } + public XRoot(global::OpenGis.Ows.ServiceIdentification root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ServiceIdentification ServiceIdentification { get {return rootObject as global::OpenGis.Ows.ServiceIdentification; } } + public XRoot(global::OpenGis.Ows.ServiceProvider root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ServiceProvider ServiceProvider { get {return rootObject as global::OpenGis.Ows.ServiceProvider; } } + public XRoot(global::OpenGis.Ows.AnyValue root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AnyValue AnyValue { get {return rootObject as global::OpenGis.Ows.AnyValue; } } + public XRoot(global::OpenGis.Ows.NoValues root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.NoValues NoValues { get {return rootObject as global::OpenGis.Ows.NoValues; } } + public XRoot(global::OpenGis.Ows.ValuesReference root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ValuesReference ValuesReference { get {return rootObject as global::OpenGis.Ows.ValuesReference; } } + public XRoot(global::OpenGis.Ows.AllowedValues root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AllowedValues AllowedValues { get {return rootObject as global::OpenGis.Ows.AllowedValues; } } + public XRoot(global::OpenGis.Ows.OperationsMetadata root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.OperationsMetadata OperationsMetadata { get {return rootObject as global::OpenGis.Ows.OperationsMetadata; } } + public XRoot(global::OpenGis.Ows.ExtendedCapabilities root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ExtendedCapabilities ExtendedCapabilities { get {return rootObject as global::OpenGis.Ows.ExtendedCapabilities; } } + public XRoot(global::OpenGis.Ows.Operation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Operation Operation { get {return rootObject as global::OpenGis.Ows.Operation; } } + public XRoot(global::OpenGis.Ows.DCP root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.DCP DCP { get {return rootObject as global::OpenGis.Ows.DCP; } } + public XRoot(global::OpenGis.Ows.HTTP root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.HTTP HTTP { get {return rootObject as global::OpenGis.Ows.HTTP; } } + public XRoot(global::OpenGis.Ows.Resource root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Resource Resource { get {return rootObject as global::OpenGis.Ows.Resource; } } + public XRoot(global::OpenGis.Ows.ExceptionReport root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ExceptionReport ExceptionReport { get {return rootObject as global::OpenGis.Ows.ExceptionReport; } } + public XRoot(global::OpenGis.Ows.AdditionalParameter root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AdditionalParameter AdditionalParameter { get {return rootObject as global::OpenGis.Ows.AdditionalParameter; } } + public XRoot(global::OpenGis.Ows.Metadata root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Metadata Metadata { get {return rootObject as global::OpenGis.Ows.Metadata; } } + public XRoot(global::OpenGis.Ows.BoundingBox root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.BoundingBox BoundingBox { get {return rootObject as global::OpenGis.Ows.BoundingBox; } } + public XRoot(global::OpenGis.Ows.WGS84BoundingBox root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.WGS84BoundingBox WGS84BoundingBox { get {return rootObject as global::OpenGis.Ows.WGS84BoundingBox; } } + public XRoot(global::OpenGis.Ows.Identifier root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Identifier Identifier { get {return rootObject as global::OpenGis.Ows.Identifier; } } + public XRoot(global::OpenGis.Ows.OutputFormat root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.OutputFormat OutputFormat { get {return rootObject as global::OpenGis.Ows.OutputFormat; } } + public XRoot(global::OpenGis.Ows.AvailableCRS root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AvailableCRS AvailableCRS { get {return rootObject as global::OpenGis.Ows.AvailableCRS; } } + public XRoot(global::OpenGis.Ows.SupportedCRS root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.SupportedCRS SupportedCRS { get {return rootObject as global::OpenGis.Ows.SupportedCRS; } } + public XRoot(global::OpenGis.Ows.AccessConstraints root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AccessConstraints AccessConstraints { get {return rootObject as global::OpenGis.Ows.AccessConstraints; } } + public XRoot(global::OpenGis.Ows.Fees root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Fees Fees { get {return rootObject as global::OpenGis.Ows.Fees; } } + public XRoot(global::OpenGis.Ows.Language root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Language Language { get {return rootObject as global::OpenGis.Ows.Language; } } + public XRoot(global::OpenGis.Ows.Value root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Value Value { get {return rootObject as global::OpenGis.Ows.Value; } } + public XRoot(global::OpenGis.Ows.DefaultValue root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.DefaultValue DefaultValue { get {return rootObject as global::OpenGis.Ows.DefaultValue; } } + public XRoot(global::OpenGis.Ows.Range root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Range Range { get {return rootObject as global::OpenGis.Ows.Range; } } + public XRoot(global::OpenGis.Ows.MinimumValue root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.MinimumValue MinimumValue { get {return rootObject as global::OpenGis.Ows.MinimumValue; } } + public XRoot(global::OpenGis.Ows.MaximumValue root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.MaximumValue MaximumValue { get {return rootObject as global::OpenGis.Ows.MaximumValue; } } + public XRoot(global::OpenGis.Ows.Spacing root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Spacing Spacing { get {return rootObject as global::OpenGis.Ows.Spacing; } } + public XRoot(global::OpenGis.Ows.Meaning root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Meaning Meaning { get {return rootObject as global::OpenGis.Ows.Meaning; } } + public XRoot(global::OpenGis.Ows.DataType root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.DataType DataType { get {return rootObject as global::OpenGis.Ows.DataType; } } + public XRoot(global::OpenGis.Ows.ReferenceSystem root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ReferenceSystem ReferenceSystem { get {return rootObject as global::OpenGis.Ows.ReferenceSystem; } } + public XRoot(global::OpenGis.Ows.UOM root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.UOM UOM { get {return rootObject as global::OpenGis.Ows.UOM; } } + public XRoot(global::OpenGis.Ows.GetCapabilities root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.GetCapabilities GetCapabilities { get {return rootObject as global::OpenGis.Ows.GetCapabilities; } } + public XRoot(global::OpenGis.Ows.GetResourceByID root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.GetResourceByID GetResourceByID { get {return rootObject as global::OpenGis.Ows.GetResourceByID; } } + public XRoot(global::OpenGis.Ows.Exception root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Exception Exception { get {return rootObject as global::OpenGis.Ows.Exception; } } + public XRoot(global::OpenGis.Ows.OtherSource root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.OtherSource OtherSource { get {return rootObject as global::OpenGis.Ows.OtherSource; } } + public XRoot(global::OpenGis.Ows.DatasetDescriptionSummary root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.DatasetDescriptionSummary DatasetDescriptionSummary { get {return rootObject as global::OpenGis.Ows.DatasetDescriptionSummary; } } + public XRoot(global::OpenGis.Ows.AbstractReferenceBase root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AbstractReferenceBase AbstractReferenceBase { get {return rootObject as global::OpenGis.Ows.AbstractReferenceBase; } } + public XRoot(global::OpenGis.Ows.Reference root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Reference Reference { get {return rootObject as global::OpenGis.Ows.Reference; } } + public XRoot(global::OpenGis.Ows.ReferenceGroup root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ReferenceGroup ReferenceGroup { get {return rootObject as global::OpenGis.Ows.ReferenceGroup; } } + public XRoot(global::OpenGis.Ows.Manifest root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Manifest Manifest { get {return rootObject as global::OpenGis.Ows.Manifest; } } + public XRoot(global::OpenGis.Ows.OperationResponse root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.OperationResponse OperationResponse { get {return rootObject as global::OpenGis.Ows.OperationResponse; } } + public XRoot(global::OpenGis.Ows.InputData root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.InputData InputData { get {return rootObject as global::OpenGis.Ows.InputData; } } + public XRoot(global::OpenGis.Ows.ServiceReference root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ServiceReference ServiceReference { get {return rootObject as global::OpenGis.Ows.ServiceReference; } } + public XRoot(global::OpenGis.Ows.AdditionalParameters root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.AdditionalParameters AdditionalParameters { get {return rootObject as global::OpenGis.Ows.AdditionalParameters; } } + public XRoot(global::OpenGis.Ows.nilValue root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.nilValue nilValue { get {return rootObject as global::OpenGis.Ows.nilValue; } } + public XRoot(global::OpenGis.Ows.Title root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Title Title { get {return rootObject as global::OpenGis.Ows.Title; } } + public XRoot(global::OpenGis.Ows.Abstract root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Abstract Abstract { get {return rootObject as global::OpenGis.Ows.Abstract; } } + public XRoot(global::OpenGis.Ows.Keywords root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Keywords Keywords { get {return rootObject as global::OpenGis.Ows.Keywords; } } + public XRoot(global::OpenGis.Ows.PointOfContact root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.PointOfContact PointOfContact { get {return rootObject as global::OpenGis.Ows.PointOfContact; } } + public XRoot(global::OpenGis.Ows.IndividualName root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.IndividualName IndividualName { get {return rootObject as global::OpenGis.Ows.IndividualName; } } + public XRoot(global::OpenGis.Ows.OrganisationName root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.OrganisationName OrganisationName { get {return rootObject as global::OpenGis.Ows.OrganisationName; } } + public XRoot(global::OpenGis.Ows.PositionName root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.PositionName PositionName { get {return rootObject as global::OpenGis.Ows.PositionName; } } + public XRoot(global::OpenGis.Ows.Role root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.Role Role { get {return rootObject as global::OpenGis.Ows.Role; } } + public XRoot(global::OpenGis.Ows.ContactInfo root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.Ows.ContactInfo ContactInfo { get {return rootObject as global::OpenGis.Ows.ContactInfo; } } + public XRoot(global::OpenGis.ThreeDps.Scene.SceneLayerExtension root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.ThreeDps.Scene.SceneLayerExtension SceneLayerExtension { get {return rootObject as global::OpenGis.ThreeDps.Scene.SceneLayerExtension; } } + public XRoot(global::OpenGis.ThreeDps.Xlink.title root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.ThreeDps.Xlink.title title1 { get {return rootObject as global::OpenGis.ThreeDps.Xlink.title; } } + public XRoot(global::OpenGis.ThreeDps.Xlink.resource root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.ThreeDps.Xlink.resource resource1 { get {return rootObject as global::OpenGis.ThreeDps.Xlink.resource; } } + public XRoot(global::OpenGis.ThreeDps.Xlink.locator root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.ThreeDps.Xlink.locator locator { get {return rootObject as global::OpenGis.ThreeDps.Xlink.locator; } } + public XRoot(global::OpenGis.ThreeDps.Xlink.arc root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.ThreeDps.Xlink.arc arc { get {return rootObject as global::OpenGis.ThreeDps.Xlink.arc; } } + public XRoot(global::OpenGis.ThreeDps.View.Projection root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.ThreeDps.View.Projection Projection { get {return rootObject as global::OpenGis.ThreeDps.View.Projection; } } + public XRoot(global::OpenGis.ThreeDps.View.PerspectiveProjection root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::OpenGis.ThreeDps.View.PerspectiveProjection PerspectiveProjection { get {return rootObject as global::OpenGis.ThreeDps.View.PerspectiveProjection; } } + public XRoot(global::OpenGis.ThreeDps.View.OrthographicProjection root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - - public static XRoot Load(string xmlFile) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlFile); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(string xmlFile, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlFile, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(TextReader textReader) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(textReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(TextReader textReader, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(textReader, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(XmlReader xmlReader) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Parse(string text) { - XRoot root = new XRoot(); - root.doc = XDocument.Parse(text); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Parse(string text, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Parse(text, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public virtual void Save(string fileName) { - doc.Save(fileName); - } - - public virtual void Save(TextWriter textWriter) { - doc.Save(textWriter); - } - - public virtual void Save(XmlWriter writer) { - doc.Save(writer); - } - - public virtual void Save(TextWriter textWriter, SaveOptions options) { - doc.Save(textWriter, options); - } - - public virtual void Save(string fileName, SaveOptions options) { - doc.Save(fileName, options); - } + + public global::OpenGis.ThreeDps.View.OrthographicProjection OrthographicProjection { get {return rootObject as global::OpenGis.ThreeDps.View.OrthographicProjection; } } } } namespace OpenGis.ThreeDps.Xml1998 { @@ -17433,14 +18853,14 @@ namespace OpenGis.ThreeDps.Xml1998 { public sealed class lang { + private lang() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Language), null), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { ""}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private lang() { - } } } namespace OpenGis.ThreeDps.Scene { @@ -17465,40 +18885,10 @@ namespace OpenGis.ThreeDps.Scene { /// </summary> public partial class SceneLayerExtensionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableFormatXName = System.Xml.Linq.XName.Get("AvailableFormat", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> AvailableFormatField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableOffsetXName = System.Xml.Linq.XName.Get("AvailableOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OpenGis.ThreeDps.Core.Position3DType> AvailableOffsetField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableOffsetModeXName = System.Xml.Linq.XName.Get("AvailableOffsetMode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> AvailableOffsetModeField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SceneLayerExtensionType", "http://www.opengis.net/3dps/1.0/scene"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SceneLayerExtensionType(XElement xe) { return XTypedServices.ToXTypedElement<SceneLayerExtensionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SceneLayerExtensionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AvailableFormatXName), new NamedContentModelEntity(AvailableOffsetXName), new NamedContentModelEntity(AvailableOffsetModeXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SceneLayerExtensionType>(this); } /// <summary> @@ -17509,6 +18899,13 @@ static SceneLayerExtensionType() { public SceneLayerExtensionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableFormatXName = System.Xml.Linq.XName.Get("AvailableFormat", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> AvailableFormatField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -17539,6 +18936,13 @@ public virtual IList<string> AvailableFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableOffsetXName = System.Xml.Linq.XName.Get("AvailableOffset", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OpenGis.ThreeDps.Core.Position3DType> AvailableOffsetField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -17569,6 +18973,13 @@ public virtual IList<OpenGis.ThreeDps.Core.Position3DType> AvailableOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableOffsetModeXName = System.Xml.Linq.XName.Get("AvailableOffsetMode", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> AvailableOffsetModeField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -17599,6 +19010,22 @@ public virtual IList<string> AvailableOffsetMode { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SceneLayerExtensionType", "http://www.opengis.net/3dps/1.0/scene"); + + static SceneLayerExtensionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AvailableFormatXName), new NamedContentModelEntity(AvailableOffsetXName), new NamedContentModelEntity(AvailableOffsetModeXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AvailableFormatXName, typeof(string)); + localElementDictionary.Add(AvailableOffsetXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(AvailableOffsetModeXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -17606,6 +19033,13 @@ public virtual IList<string> AvailableOffsetMode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17626,20 +19060,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SceneLayerExtensionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AvailableFormatXName, typeof(string)); - localElementDictionary.Add(AvailableOffsetXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(AvailableOffsetModeXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -17649,35 +19069,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetSceneType : global::OpenGis.ThreeDps.Core.AbstractGetPortrayalType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetXName = System.Xml.Linq.XName.Get("Offset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetModeXName = System.Xml.Linq.XName.Get("OffsetMode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ViewpointsXName = System.Xml.Linq.XName.Get("Viewpoints", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetSceneType", "http://www.opengis.net/3dps/1.0/scene"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetSceneType(XElement xe) { return XTypedServices.ToXTypedElement<GetSceneType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetSceneType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(BoundingBoxXName), new NamedContentModelEntity(SpatialSelectionXName), new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(StylesXName), new NamedContentModelEntity(BackgroundXName), new NamedContentModelEntity(LODsXName), new NamedContentModelEntity(LODSelectionXName), new NamedContentModelEntity(OverallStylesXName), new NamedContentModelEntity(DeliveryOptionsXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(OffsetXName), new NamedContentModelEntity(OffsetModeXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ViewpointsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetSceneType>(this); } /// <summary> @@ -17688,6 +19083,10 @@ static GetSceneType() { public GetSceneType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetXName = System.Xml.Linq.XName.Get("Offset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17699,6 +19098,9 @@ public GetSceneType() { public virtual OpenGis.ThreeDps.Core.Position3DType Offset { get { XElement x = this.GetElement(OffsetXName); + if ((x == null)) { + return null; + } return ((OpenGis.ThreeDps.Core.Position3DType)(x)); } set { @@ -17706,6 +19108,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType Offset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetModeXName = System.Xml.Linq.XName.Get("OffsetMode", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17717,6 +19123,9 @@ public virtual OpenGis.ThreeDps.Core.Position3DType Offset { public virtual string OffsetMode { get { XElement x = this.GetElement(OffsetModeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17724,6 +19133,10 @@ public virtual string OffsetMode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", ""); + /// <summary> /// <para> /// Occurrence: required @@ -17742,6 +19155,10 @@ public virtual string Format { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ViewpointsXName = System.Xml.Linq.XName.Get("Viewpoints", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17753,6 +19170,9 @@ public virtual string Format { public virtual string Viewpoints { get { XElement x = this.GetElement(ViewpointsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17760,6 +19180,34 @@ public virtual string Viewpoints { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetSceneType", "http://www.opengis.net/3dps/1.0/scene"); + + static GetSceneType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(BoundingBoxXName), new NamedContentModelEntity(SpatialSelectionXName), new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(StylesXName), new NamedContentModelEntity(BackgroundXName), new NamedContentModelEntity(LODsXName), new NamedContentModelEntity(LODSelectionXName), new NamedContentModelEntity(OverallStylesXName), new NamedContentModelEntity(DeliveryOptionsXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(OffsetXName), new NamedContentModelEntity(OffsetModeXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ViewpointsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CRSXName, typeof(System.Uri)); + localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); + localElementDictionary.Add(SpatialSelectionXName, typeof(string)); + localElementDictionary.Add(LayersXName, typeof(string)); + localElementDictionary.Add(StylesXName, typeof(string)); + localElementDictionary.Add(BackgroundXName, typeof(string)); + localElementDictionary.Add(LODsXName, typeof(string)); + localElementDictionary.Add(LODSelectionXName, typeof(string)); + localElementDictionary.Add(OverallStylesXName, typeof(string)); + localElementDictionary.Add(DeliveryOptionsXName, typeof(string)); + localElementDictionary.Add(ExceptionsXName, typeof(string)); + localElementDictionary.Add(OffsetXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(OffsetModeXName, typeof(string)); + localElementDictionary.Add(FormatXName, typeof(string)); + localElementDictionary.Add(ViewpointsXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -17767,6 +19215,13 @@ public virtual string Viewpoints { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17787,32 +19242,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetSceneType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(CRSXName, typeof(System.Uri)); - localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); - localElementDictionary.Add(SpatialSelectionXName, typeof(string)); - localElementDictionary.Add(LayersXName, typeof(string)); - localElementDictionary.Add(StylesXName, typeof(string)); - localElementDictionary.Add(BackgroundXName, typeof(string)); - localElementDictionary.Add(LODsXName, typeof(string)); - localElementDictionary.Add(LODSelectionXName, typeof(string)); - localElementDictionary.Add(OverallStylesXName, typeof(string)); - localElementDictionary.Add(DeliveryOptionsXName, typeof(string)); - localElementDictionary.Add(ExceptionsXName, typeof(string)); - localElementDictionary.Add(OffsetXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(OffsetModeXName, typeof(string)); - localElementDictionary.Add(FormatXName, typeof(string)); - localElementDictionary.Add(ViewpointsXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -17822,23 +19251,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ScenePortrayalCapabilitiesExtensionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SupportsArbitraryOffsetXName = System.Xml.Linq.XName.Get("SupportsArbitraryOffset", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScenePortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/scene"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ScenePortrayalCapabilitiesExtensionType(XElement xe) { return XTypedServices.ToXTypedElement<ScenePortrayalCapabilitiesExtensionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ScenePortrayalCapabilitiesExtensionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SupportsArbitraryOffsetXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ScenePortrayalCapabilitiesExtensionType>(this); } /// <summary> @@ -17849,6 +19265,10 @@ static ScenePortrayalCapabilitiesExtensionType() { public ScenePortrayalCapabilitiesExtensionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SupportsArbitraryOffsetXName = System.Xml.Linq.XName.Get("SupportsArbitraryOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17870,6 +19290,20 @@ public virtual System.Boolean? SupportsArbitraryOffset { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScenePortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/scene"); + + static ScenePortrayalCapabilitiesExtensionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SupportsArbitraryOffsetXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SupportsArbitraryOffsetXName, typeof(bool)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -17877,6 +19311,13 @@ public virtual System.Boolean? SupportsArbitraryOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17897,35 +19338,45 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class SceneLayerExtension : XTypedElement, IXMetaData { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ScenePortrayalCapabilitiesExtensionType>(this); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SupportsArbitraryOffsetXName, typeof(bool)); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - } - - public partial class SceneLayerExtension : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private SceneLayerExtensionType ContentField; + public static SceneLayerExtension Load(string xmlFile) { + return XTypedServices.Load<SceneLayerExtension, SceneLayerExtensionType>(xmlFile, LinqToXsdTypeManager.Instance); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SceneLayerExtension", "http://www.opengis.net/3dps/1.0/scene"); + public static SceneLayerExtension Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SceneLayerExtension, SceneLayerExtensionType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static SceneLayerExtension Parse(string xml) { + return XTypedServices.Parse<SceneLayerExtension, SceneLayerExtensionType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator SceneLayerExtension(XElement xe) { return XTypedServices.ToXTypedElement<SceneLayerExtension, SceneLayerExtensionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public SceneLayerExtension() { - SetInnerType(new SceneLayerExtensionType()); + public override XTypedElement Clone() { + return new SceneLayerExtension(((SceneLayerExtensionType)(this.Content.Clone()))); } - public SceneLayerExtension(SceneLayerExtensionType content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private SceneLayerExtensionType ContentField; + + public SceneLayerExtension() { + SetInnerType(new SceneLayerExtensionType()); } public override XElement Untyped { @@ -17944,6 +19395,15 @@ public virtual SceneLayerExtensionType Content { } } + private void SetInnerType(SceneLayerExtensionType ContentField) { + this.ContentField = ((SceneLayerExtensionType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public SceneLayerExtension(SceneLayerExtensionType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -17995,6 +19455,8 @@ public virtual IList<string> AvailableOffsetMode { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SceneLayerExtension", "http://www.opengis.net/3dps/1.0/scene"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -18008,6 +19470,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18028,74 +19494,17 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static SceneLayerExtension Load(string xmlFile) { - return XTypedServices.Load<SceneLayerExtension, SceneLayerExtensionType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static SceneLayerExtension Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SceneLayerExtension, SceneLayerExtensionType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static SceneLayerExtension Parse(string xml) { - return XTypedServices.Parse<SceneLayerExtension, SceneLayerExtensionType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new SceneLayerExtension(((SceneLayerExtensionType)(this.Content.Clone()))); - } - - private void SetInnerType(SceneLayerExtensionType ContentField) { - this.ContentField = ((SceneLayerExtensionType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XDocument doc; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedElement rootObject; - - - public SceneLayerExtension SceneLayerExtension { get {return rootObject as SceneLayerExtension; } } - - private XRootNamespace() { - } - - public XRootNamespace(SceneLayerExtension root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + private XDocument doc; - public virtual XDocument XDocument { - get { - return doc; - } - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; - public virtual XTypedElement Root { - get { - return rootObject; - } + private XRootNamespace() { } public static XRootNamespace Load(string xmlFile) { @@ -18194,6 +19603,26 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(SceneLayerExtension root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SceneLayerExtension SceneLayerExtension { get {return rootObject as SceneLayerExtension; } } } } namespace OpenGis.ThreeDps.Xlink { @@ -18228,6 +19657,9 @@ public enum typeType { public sealed class typeTypeValidator { + private typeTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "simple", @@ -18236,59 +19668,69 @@ public sealed class typeTypeValidator { "resource", "locator", "arc"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - - private typeTypeValidator() { - } } public sealed class hrefType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), null); - private hrefType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), null); } public sealed class roleType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(2)), null, 0, 0, null, null, 0, null, null, 1, null, 0, XmlSchemaWhiteSpace.Collapse)); - private roleType() { } - } - - public sealed class arcroleType { [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(2)), null, 0, 0, null, null, 0, null, null, 1, null, 0, XmlSchemaWhiteSpace.Collapse)); + } + + public sealed class arcroleType { private arcroleType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(2)), null, 0, 0, null, null, 0, null, null, 1, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class titleAttrType { + private titleAttrType() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); + } + + public enum showType { - private titleAttrType() { - } + @new, + + replace, + + embed, + + other, + + none, } - public sealed class showType { + public sealed class showTypeValidator { + + private showTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "new", + "new:@new", "replace", "embed", "other", "none"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - - private showType() { - } } public enum actuateType { @@ -18304,42 +19746,42 @@ public enum actuateType { public sealed class actuateTypeValidator { + private actuateTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "onLoad", "onRequest", "other", "none"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - - private actuateTypeValidator() { - } } public sealed class labelType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName), null); - private labelType() { } - } - - public sealed class fromType { [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName), null); + } + + public sealed class fromType { private fromType() { } - } - - public sealed class toType { [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName), null); + } + + public sealed class toType { private toType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName), null); } /// <summary> @@ -18353,43 +19795,10 @@ private toType() { /// </summary> public partial class simple : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("simple", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; - public static explicit operator simple(XElement xe) { return XTypedServices.ToXTypedElement<simple>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static simple() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<simple>(this); } /// <summary> @@ -18415,6 +19824,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18426,13 +19839,22 @@ public virtual OpenGis.ThreeDps.Xlink.typeType? type { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18441,6 +19863,9 @@ public virtual OpenGis.ThreeDps.Xlink.typeType? type { public virtual System.Uri href { get { XAttribute x = this.Attribute(hrefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -18448,6 +19873,10 @@ public virtual System.Uri href { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18456,6 +19885,9 @@ public virtual System.Uri href { public virtual System.Uri role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -18463,6 +19895,10 @@ public virtual System.Uri role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18471,6 +19907,9 @@ public virtual System.Uri role { public virtual System.Uri arcrole { get { XAttribute x = this.Attribute(arcroleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -18478,6 +19917,10 @@ public virtual System.Uri arcrole { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18486,6 +19929,9 @@ public virtual System.Uri arcrole { public virtual string title { get { XAttribute x = this.Attribute(titleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -18493,21 +19939,37 @@ public virtual string title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { XAttribute x = this.Attribute(showXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if ((x == null)) { + return null; + } + return ((OpenGis.ThreeDps.Xlink.showType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.showType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(showXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(showXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(showXName, value.ToString(), "show", global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18519,13 +19981,37 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(actuateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(actuateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(actuateXName, value.ToString(), "actuate", global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("simple", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "http://www.w3.org/1999/xlink"), 1))); + validationStates = new FSM(1, new Set<int>(1), transitions); + } + + static simple() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18546,20 +20032,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<simple>(this); - } - - FSM IXMetaData.GetValidationStates() { - return validationStates; - } - - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "http://www.w3.org/1999/xlink"), 1))); - validationStates = new FSM(1, new Set<int>(1), transitions); - } } /// <summary> @@ -18569,66 +20041,17 @@ private static void InitFSM() { /// are all abstract. The intention is that by simply declaring elements with these /// as their substitutionGroup, all the right things will happen. /// - /// </para> - /// <para> - /// Regular expression: (title | resource | locator | arc)* - /// </para> - /// </summary> - public partial class extended : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<title> titleField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName resourceXName = System.Xml.Linq.XName.Get("resource", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<resource> resourceField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName locatorXName = System.Xml.Linq.XName.Get("locator", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<locator> locatorField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcXName = System.Xml.Linq.XName.Get("arc", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<arc> arcField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName title1XName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("extended", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + /// </para> + /// <para> + /// Regular expression: (title | resource | locator | arc)* + /// </para> + /// </summary> + public partial class extended : XTypedElement, IXMetaData { public static explicit operator extended(XElement xe) { return XTypedServices.ToXTypedElement<extended>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static extended() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(titleXName), new NamedContentModelEntity(resourceXName), new NamedContentModelEntity(locatorXName), new NamedContentModelEntity(arcXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<extended>(this); } /// <summary> @@ -18646,6 +20069,13 @@ static extended() { public extended() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<title> titleField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -18676,6 +20106,13 @@ public virtual IList<title> title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName resourceXName = System.Xml.Linq.XName.Get("resource", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<resource> resourceField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -18706,6 +20143,13 @@ public virtual IList<resource> resource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName locatorXName = System.Xml.Linq.XName.Get("locator", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<locator> locatorField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -18736,6 +20180,13 @@ public virtual IList<locator> locator { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcXName = System.Xml.Linq.XName.Get("arc", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<arc> arcField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -18766,6 +20217,10 @@ public virtual IList<arc> arc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: required @@ -18774,13 +20229,17 @@ public virtual IList<arc> arc { public virtual OpenGis.ThreeDps.Xlink.typeType type { get { XAttribute x = this.Attribute(typeXName); - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18789,6 +20248,9 @@ public virtual OpenGis.ThreeDps.Xlink.typeType type { public virtual System.Uri role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -18796,6 +20258,10 @@ public virtual System.Uri role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName title1XName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -18804,6 +20270,9 @@ public virtual System.Uri role { public virtual string title1 { get { XAttribute x = this.Attribute(title1XName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -18811,6 +20280,23 @@ public virtual string title1 { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("extended", "http://www.w3.org/1999/xlink"); + + static extended() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(titleXName), new NamedContentModelEntity(resourceXName), new NamedContentModelEntity(locatorXName), new NamedContentModelEntity(arcXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(titleXName, typeof(title)); + localElementDictionary.Add(resourceXName, typeof(resource)); + localElementDictionary.Add(locatorXName, typeof(locator)); + localElementDictionary.Add(arcXName, typeof(arc)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -18818,6 +20304,13 @@ public virtual string title1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18838,21 +20331,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<extended>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(titleXName, typeof(title)); - localElementDictionary.Add(resourceXName, typeof(resource)); - localElementDictionary.Add(locatorXName, typeof(locator)); - localElementDictionary.Add(arcXName, typeof(arc)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -18862,23 +20340,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class titleEltType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName langXName = System.Xml.Linq.XName.Get("lang", "http://www.w3.org/XML/1998/namespace"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("titleEltType", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; - public static explicit operator titleEltType(XElement xe) { return XTypedServices.ToXTypedElement<titleEltType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static titleEltType() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<titleEltType>(this); } /// <summary> @@ -18900,6 +20365,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: required @@ -18908,13 +20377,17 @@ public virtual IEnumerable<XElement> Any { public virtual OpenGis.ThreeDps.Xlink.typeType type { get { XAttribute x = this.Attribute(typeXName); - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName langXName = System.Xml.Linq.XName.Get("lang", "http://www.w3.org/XML/1998/namespace"); + /// <summary> /// <para> /// xml:lang is not required, but provides much of the @@ -18928,13 +20401,35 @@ public virtual OpenGis.ThreeDps.Xlink.typeType type { public virtual object lang { get { XAttribute x = this.Attribute(langXName); - return XTypedServices.ParseUnionValue(x, lang.TypeDefinition); + if ((x == null)) { + return null; + } + return XTypedServices.ParseUnionValue(x, global::OpenGis.ThreeDps.Xml1998.lang.TypeDefinition); } set { - this.SetUnionAttribute(value, "lang", this, langXName, lang.TypeDefinition); + this.SetUnionAttribute(value, "lang", this, langXName, global::OpenGis.ThreeDps.Xml1998.lang.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("titleEltType", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "http://www.w3.org/1999/xlink"), 1))); + validationStates = new FSM(1, new Set<int>(1), transitions); + } + + static titleEltType() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18955,20 +20450,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<titleEltType>(this); - } - - FSM IXMetaData.GetValidationStates() { - return validationStates; - } - - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "http://www.w3.org/1999/xlink"), 1))); - validationStates = new FSM(1, new Set<int>(1), transitions); - } } /// <summary> @@ -18978,31 +20459,10 @@ private static void InitFSM() { /// </summary> public partial class resourceType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName labelXName = System.Xml.Linq.XName.Get("label", "http://www.w3.org/1999/xlink"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("resourceType", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; - public static explicit operator resourceType(XElement xe) { return XTypedServices.ToXTypedElement<resourceType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static resourceType() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<resourceType>(this); } /// <summary> @@ -19024,6 +20484,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: required @@ -19032,13 +20496,17 @@ public virtual IEnumerable<XElement> Any { public virtual OpenGis.ThreeDps.Xlink.typeType type { get { XAttribute x = this.Attribute(typeXName); - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19047,6 +20515,9 @@ public virtual OpenGis.ThreeDps.Xlink.typeType type { public virtual System.Uri role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -19054,6 +20525,10 @@ public virtual System.Uri role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19062,6 +20537,9 @@ public virtual System.Uri role { public virtual string title { get { XAttribute x = this.Attribute(titleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -19069,6 +20547,10 @@ public virtual string title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName labelXName = System.Xml.Linq.XName.Get("label", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19077,6 +20559,9 @@ public virtual string title { public virtual string label { get { XAttribute x = this.Attribute(labelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName).Datatype); } set { @@ -19084,30 +20569,10 @@ public virtual string label { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Fragment; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("resourceType", "http://www.w3.org/1999/xlink"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<resourceType>(this); - } + private static FSM validationStates; FSM IXMetaData.GetValidationStates() { return validationStates; @@ -19118,55 +20583,44 @@ private static void InitFSM() { transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "http://www.w3.org/1999/xlink"), 1))); validationStates = new FSM(1, new Set<int>(1), transitions); } - } - - /// <summary> - /// <para> - /// Regular expression: (title*) - /// </para> - /// </summary> - public partial class locatorType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<title> titleField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName title1XName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + static resourceType() { + InitFSM(); + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName labelXName = System.Xml.Linq.XName.Get("label", "http://www.w3.org/1999/xlink"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("locatorType", "http://www.w3.org/1999/xlink"); + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Fragment; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// <summary> + /// <para> + /// Regular expression: (title*) + /// </para> + /// </summary> + public partial class locatorType : XTypedElement, IXMetaData { public static explicit operator locatorType(XElement xe) { return XTypedServices.ToXTypedElement<locatorType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static locatorType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(titleXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<locatorType>(this); } /// <summary> @@ -19177,6 +20631,13 @@ static locatorType() { public locatorType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<title> titleField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -19207,6 +20668,10 @@ public virtual IList<title> title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: required @@ -19215,13 +20680,17 @@ public virtual IList<title> title { public virtual OpenGis.ThreeDps.Xlink.typeType type { get { XAttribute x = this.Attribute(typeXName); - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hrefXName = System.Xml.Linq.XName.Get("href", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: required @@ -19237,6 +20706,10 @@ public virtual System.Uri href { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19245,6 +20718,9 @@ public virtual System.Uri href { public virtual System.Uri role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -19252,6 +20728,10 @@ public virtual System.Uri role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName title1XName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19260,6 +20740,9 @@ public virtual System.Uri role { public virtual string title1 { get { XAttribute x = this.Attribute(title1XName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -19267,6 +20750,10 @@ public virtual string title1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName labelXName = System.Xml.Linq.XName.Get("label", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// label is not required, but locators have no particular @@ -19279,6 +20766,9 @@ public virtual string title1 { public virtual string label { get { XAttribute x = this.Attribute(labelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName).Datatype); } set { @@ -19286,6 +20776,20 @@ public virtual string label { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("locatorType", "http://www.w3.org/1999/xlink"); + + static locatorType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(titleXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(titleXName, typeof(title)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19293,6 +20797,13 @@ public virtual string label { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19313,18 +20824,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<locatorType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(titleXName, typeof(title)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -19334,54 +20833,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class arcType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<title> titleField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName title1XName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fromXName = System.Xml.Linq.XName.Get("from", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName toXName = System.Xml.Linq.XName.Get("to", "http://www.w3.org/1999/xlink"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("arcType", "http://www.w3.org/1999/xlink"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator arcType(XElement xe) { return XTypedServices.ToXTypedElement<arcType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static arcType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(titleXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<arcType>(this); } /// <summary> @@ -19392,6 +20847,13 @@ static arcType() { public arcType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleXName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<title> titleField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -19422,6 +20884,10 @@ public virtual IList<title> title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: required @@ -19430,13 +20896,17 @@ public virtual IList<title> title { public virtual OpenGis.ThreeDps.Xlink.typeType type { get { XAttribute x = this.Attribute(typeXName); - return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.typeType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.typeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::OpenGis.ThreeDps.Xlink.typeTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcroleXName = System.Xml.Linq.XName.Get("arcrole", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19445,6 +20915,9 @@ public virtual OpenGis.ThreeDps.Xlink.typeType type { public virtual System.Uri arcrole { get { XAttribute x = this.Attribute(arcroleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -19452,6 +20925,10 @@ public virtual System.Uri arcrole { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName title1XName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19460,6 +20937,9 @@ public virtual System.Uri arcrole { public virtual string title1 { get { XAttribute x = this.Attribute(title1XName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -19467,21 +20947,37 @@ public virtual string title1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName showXName = System.Xml.Linq.XName.Get("show", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { XAttribute x = this.Attribute(showXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if ((x == null)) { + return null; + } + return ((OpenGis.ThreeDps.Xlink.showType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.showType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(showXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(showXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(showXName, value.ToString(), "show", global::OpenGis.ThreeDps.Xlink.showTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName actuateXName = System.Xml.Linq.XName.Get("actuate", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19493,13 +20989,22 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { if ((x == null)) { return null; } - return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype)))); + return ((OpenGis.ThreeDps.Xlink.actuateType)(Enum.Parse(typeof(OpenGis.ThreeDps.Xlink.actuateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype, global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(actuateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + if (value == null) { + this.SetAttribute(actuateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Token).Datatype); + } + else { + this.SetAttributeWithValidation(actuateXName, value.ToString(), "actuate", global::OpenGis.ThreeDps.Xlink.actuateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fromXName = System.Xml.Linq.XName.Get("from", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// Occurrence: optional @@ -19508,6 +21013,9 @@ public virtual OpenGis.ThreeDps.Xlink.actuateType? actuate { public virtual string from { get { XAttribute x = this.Attribute(fromXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName).Datatype); } set { @@ -19515,6 +21023,10 @@ public virtual string from { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName toXName = System.Xml.Linq.XName.Get("to", "http://www.w3.org/1999/xlink"); + /// <summary> /// <para> /// from and to have default behavior when values are missing @@ -19527,6 +21039,9 @@ public virtual string from { public virtual string to { get { XAttribute x = this.Attribute(toXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NCName).Datatype); } set { @@ -19534,6 +21049,20 @@ public virtual string to { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("arcType", "http://www.w3.org/1999/xlink"); + + static arcType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(titleXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(titleXName, typeof(title)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19541,6 +21070,13 @@ public virtual string to { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19561,37 +21097,43 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public abstract partial class title : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<arcType>(this); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - private static void BuildElementDictionary() { - localElementDictionary.Add(titleXName, typeof(title)); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static title Load(string xmlFile) { + return ((title)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - } - - public abstract partial class title : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private titleEltType ContentField; + public static title Load(System.IO.TextReader xmlFile) { + return ((title)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + public static title Parse(string xml) { + return ((title)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + } public static explicit operator title(XElement xe) { return (title)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private titleEltType ContentField; + public title() { SetInnerType(new titleEltType()); } - public title(titleEltType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -19608,6 +21150,15 @@ public virtual titleEltType Content { } } + private void SetInnerType(titleEltType ContentField) { + this.ContentField = ((titleEltType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public title(titleEltType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Regular expression: (any) @@ -19652,6 +21203,8 @@ public virtual object lang { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("title", "http://www.w3.org/1999/xlink"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -19665,6 +21218,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19685,58 +21242,43 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public abstract partial class resource : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); } public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static title Load(string xmlFile) { - return ((title)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + XTypedServices.Save(tw, Untyped); } - public static title Load(System.IO.TextReader xmlFile) { - return ((title)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - public static title Parse(string xml) { - return ((title)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + public static resource Load(string xmlFile) { + return ((resource)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - private void SetInnerType(titleEltType ContentField) { - this.ContentField = ((titleEltType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + public static resource Load(System.IO.TextReader xmlFile) { + return ((resource)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static resource Parse(string xml) { + return ((resource)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); } - } - - public abstract partial class resource : XTypedElement, IXMetaData { + + public static explicit operator resource(XElement xe) { return (resource)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private resourceType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("resource", "http://www.w3.org/1999/xlink"); - - public static explicit operator resource(XElement xe) { return (resource)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public resource() { SetInnerType(new resourceType()); } - public resource(resourceType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -19753,6 +21295,15 @@ public virtual resourceType Content { } } + private void SetInnerType(resourceType ContentField) { + this.ContentField = ((resourceType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public resource(resourceType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Regular expression: (any) @@ -19820,6 +21371,8 @@ public virtual string label { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("resource", "http://www.w3.org/1999/xlink"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -19833,6 +21386,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19853,6 +21410,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public abstract partial class locator : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -19866,45 +21426,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static resource Load(string xmlFile) { - return ((resource)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static resource Load(System.IO.TextReader xmlFile) { - return ((resource)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + public static locator Load(string xmlFile) { + return ((locator)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - public static resource Parse(string xml) { - return ((resource)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + public static locator Load(System.IO.TextReader xmlFile) { + return ((locator)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - private void SetInnerType(resourceType ContentField) { - this.ContentField = ((resourceType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + public static locator Parse(string xml) { + return ((locator)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - public abstract partial class locator : XTypedElement, IXMetaData { + public static explicit operator locator(XElement xe) { return (locator)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private locatorType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("locator", "http://www.w3.org/1999/xlink"); - - public static explicit operator locator(XElement xe) { return (locator)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public locator() { SetInnerType(new locatorType()); } - public locator(locatorType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -19921,6 +21463,15 @@ public virtual locatorType Content { } } + private void SetInnerType(locatorType ContentField) { + this.ContentField = ((locatorType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public locator(locatorType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -20012,6 +21563,8 @@ public virtual string label { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("locator", "http://www.w3.org/1999/xlink"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -20025,6 +21578,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20045,6 +21602,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public abstract partial class arc : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -20058,45 +21618,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static locator Load(string xmlFile) { - return ((locator)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static locator Load(System.IO.TextReader xmlFile) { - return ((locator)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + public static arc Load(string xmlFile) { + return ((arc)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - public static locator Parse(string xml) { - return ((locator)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + public static arc Load(System.IO.TextReader xmlFile) { + return ((arc)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } - private void SetInnerType(locatorType ContentField) { - this.ContentField = ((locatorType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + public static arc Parse(string xml) { + return ((arc)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - public abstract partial class arc : XTypedElement, IXMetaData { + public static explicit operator arc(XElement xe) { return (arc)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] private arcType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("arc", "http://www.w3.org/1999/xlink"); - - public static explicit operator arc(XElement xe) { return (arc)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public arc() { SetInnerType(new arcType()); } - public arc(arcType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -20113,6 +21655,15 @@ public virtual arcType Content { } } + private void SetInnerType(arcType ContentField) { + this.ContentField = ((arcType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public arc(arcType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -20177,7 +21728,7 @@ public virtual string title1 { /// Occurrence: optional /// </para> /// </summary> - public virtual string show { + public virtual OpenGis.ThreeDps.Xlink.showType? show { get { return this.ContentField.show; } @@ -20232,6 +21783,8 @@ public virtual string to { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("arc", "http://www.w3.org/1999/xlink"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -20245,6 +21798,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20265,39 +21822,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static arc Load(string xmlFile) { - return ((arc)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static arc Load(System.IO.TextReader xmlFile) { - return ((arc)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); - } - - public static arc Parse(string xml) { - return ((arc)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); - } - - private void SetInnerType(arcType ContentField) { - this.ContentField = ((arcType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -20308,50 +21832,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public title title { get {return rootObject as title; } } - - public resource resource { get {return rootObject as resource; } } - - public locator locator { get {return rootObject as locator; } } - - public arc arc { get {return rootObject as arc; } } - private XRootNamespace() { } - public XRootNamespace(title root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(resource root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(locator root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(arc root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -20437,17 +21920,61 @@ public virtual void Save(TextWriter textWriter) { doc.Save(textWriter); } - public virtual void Save(XmlWriter writer) { - doc.Save(writer); - } + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(title root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public title title { get {return rootObject as title; } } + + public XRootNamespace(resource root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public resource resource { get {return rootObject as resource; } } - public virtual void Save(TextWriter textWriter, SaveOptions options) { - doc.Save(textWriter, options); + public XRootNamespace(locator root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; } - public virtual void Save(string fileName, SaveOptions options) { - doc.Save(fileName, options); + + public locator locator { get {return rootObject as locator; } } + + public XRootNamespace(arc root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; } + + + public arc arc { get {return rootObject as arc; } } } } namespace OpenGis.ThreeDps.Core { @@ -20472,68 +21999,8 @@ namespace OpenGis.ThreeDps.Core { /// </summary> public abstract partial class AbstractGetPortrayalType : global::OpenGis.ThreeDps.Core.RequestBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CRSXName = System.Xml.Linq.XName.Get("CRS", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpatialSelectionXName = System.Xml.Linq.XName.Get("SpatialSelection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LayersXName = System.Xml.Linq.XName.Get("Layers", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StylesXName = System.Xml.Linq.XName.Get("Styles", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackgroundXName = System.Xml.Linq.XName.Get("Background", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LODsXName = System.Xml.Linq.XName.Get("LODs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LODSelectionXName = System.Xml.Linq.XName.Get("LODSelection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OverallStylesXName = System.Xml.Linq.XName.Get("OverallStyles", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DeliveryOptionsXName = System.Xml.Linq.XName.Get("DeliveryOptions", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> DeliveryOptionsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExceptionsXName = System.Xml.Linq.XName.Get("Exceptions", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractGetPortrayalType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator AbstractGetPortrayalType(XElement xe) { return (AbstractGetPortrayalType)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AbstractGetPortrayalType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(BoundingBoxXName), new NamedContentModelEntity(SpatialSelectionXName), new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(StylesXName), new NamedContentModelEntity(BackgroundXName), new NamedContentModelEntity(LODsXName), new NamedContentModelEntity(LODSelectionXName), new NamedContentModelEntity(OverallStylesXName), new NamedContentModelEntity(DeliveryOptionsXName), new NamedContentModelEntity(ExceptionsXName)); - } - /// <summary> /// <para> /// Regular expression: (CRS, BoundingBox, SpatialSelection?, Layers, Styles?, Background?, LODs?, LODSelection?, OverallStyles?, DeliveryOptions*, Exceptions?) @@ -20542,6 +22009,10 @@ static AbstractGetPortrayalType() { public AbstractGetPortrayalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CRSXName = System.Xml.Linq.XName.Get("CRS", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20560,6 +22031,10 @@ public virtual System.Uri CRS { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20578,6 +22053,10 @@ public virtual OpenGis.Ows.BoundingBoxType BoundingBox { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpatialSelectionXName = System.Xml.Linq.XName.Get("SpatialSelection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20589,6 +22068,9 @@ public virtual OpenGis.Ows.BoundingBoxType BoundingBox { public virtual string SpatialSelection { get { XElement x = this.GetElement(SpatialSelectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20596,6 +22078,10 @@ public virtual string SpatialSelection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LayersXName = System.Xml.Linq.XName.Get("Layers", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20614,6 +22100,10 @@ public virtual string Layers { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StylesXName = System.Xml.Linq.XName.Get("Styles", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20625,6 +22115,9 @@ public virtual string Layers { public virtual string Styles { get { XElement x = this.GetElement(StylesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20632,6 +22125,10 @@ public virtual string Styles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackgroundXName = System.Xml.Linq.XName.Get("Background", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20643,6 +22140,9 @@ public virtual string Styles { public virtual string Background { get { XElement x = this.GetElement(BackgroundXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20650,6 +22150,10 @@ public virtual string Background { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LODsXName = System.Xml.Linq.XName.Get("LODs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20661,6 +22165,9 @@ public virtual string Background { public virtual string LODs { get { XElement x = this.GetElement(LODsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20668,6 +22175,10 @@ public virtual string LODs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LODSelectionXName = System.Xml.Linq.XName.Get("LODSelection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20679,6 +22190,9 @@ public virtual string LODs { public virtual string LODSelection { get { XElement x = this.GetElement(LODSelectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20686,6 +22200,10 @@ public virtual string LODSelection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OverallStylesXName = System.Xml.Linq.XName.Get("OverallStyles", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20697,6 +22215,9 @@ public virtual string LODSelection { public virtual string OverallStyles { get { XElement x = this.GetElement(OverallStylesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20704,6 +22225,13 @@ public virtual string OverallStyles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DeliveryOptionsXName = System.Xml.Linq.XName.Get("DeliveryOptions", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> DeliveryOptionsField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -20734,6 +22262,10 @@ public virtual IList<string> DeliveryOptions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExceptionsXName = System.Xml.Linq.XName.Get("Exceptions", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20745,6 +22277,9 @@ public virtual IList<string> DeliveryOptions { public virtual string Exceptions { get { XElement x = this.GetElement(ExceptionsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20752,6 +22287,30 @@ public virtual string Exceptions { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractGetPortrayalType", "http://www.opengis.net/3dps/1.0/core"); + + static AbstractGetPortrayalType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(BoundingBoxXName), new NamedContentModelEntity(SpatialSelectionXName), new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(StylesXName), new NamedContentModelEntity(BackgroundXName), new NamedContentModelEntity(LODsXName), new NamedContentModelEntity(LODSelectionXName), new NamedContentModelEntity(OverallStylesXName), new NamedContentModelEntity(DeliveryOptionsXName), new NamedContentModelEntity(ExceptionsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CRSXName, typeof(System.Uri)); + localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); + localElementDictionary.Add(SpatialSelectionXName, typeof(string)); + localElementDictionary.Add(LayersXName, typeof(string)); + localElementDictionary.Add(StylesXName, typeof(string)); + localElementDictionary.Add(BackgroundXName, typeof(string)); + localElementDictionary.Add(LODsXName, typeof(string)); + localElementDictionary.Add(LODSelectionXName, typeof(string)); + localElementDictionary.Add(OverallStylesXName, typeof(string)); + localElementDictionary.Add(DeliveryOptionsXName, typeof(string)); + localElementDictionary.Add(ExceptionsXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20759,6 +22318,13 @@ public virtual string Exceptions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20779,24 +22345,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - private static void BuildElementDictionary() { - localElementDictionary.Add(CRSXName, typeof(System.Uri)); - localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); - localElementDictionary.Add(SpatialSelectionXName, typeof(string)); - localElementDictionary.Add(LayersXName, typeof(string)); - localElementDictionary.Add(StylesXName, typeof(string)); - localElementDictionary.Add(BackgroundXName, typeof(string)); - localElementDictionary.Add(LODsXName, typeof(string)); - localElementDictionary.Add(LODSelectionXName, typeof(string)); - localElementDictionary.Add(OverallStylesXName, typeof(string)); - localElementDictionary.Add(DeliveryOptionsXName, typeof(string)); - localElementDictionary.Add(ExceptionsXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -20806,27 +22354,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class CapabilitiesType : global::OpenGis.Ows.CapabilitiesBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ContentsXName = System.Xml.Linq.XName.Get("Contents", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PortrayalCapabilitiesXName = System.Xml.Linq.XName.Get("PortrayalCapabilities", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CapabilitiesType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator CapabilitiesType(XElement xe) { return XTypedServices.ToXTypedElement<CapabilitiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CapabilitiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ServiceIdentificationXName), new NamedContentModelEntity(ServiceProviderXName), new NamedContentModelEntity(OperationsMetadataXName), new NamedContentModelEntity(LanguagesXName), new NamedContentModelEntity(ContentsXName), new NamedContentModelEntity(PortrayalCapabilitiesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CapabilitiesType>(this); } /// <summary> @@ -20837,6 +22368,10 @@ static CapabilitiesType() { public CapabilitiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ContentsXName = System.Xml.Linq.XName.Get("Contents", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20848,6 +22383,9 @@ public CapabilitiesType() { public virtual ContentsType Contents { get { XElement x = this.GetElement(ContentsXName); + if ((x == null)) { + return null; + } return ((ContentsType)(x)); } set { @@ -20855,6 +22393,10 @@ public virtual ContentsType Contents { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PortrayalCapabilitiesXName = System.Xml.Linq.XName.Get("PortrayalCapabilities", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20866,6 +22408,9 @@ public virtual ContentsType Contents { public virtual PortrayalCapabilitiesType PortrayalCapabilities { get { XElement x = this.GetElement(PortrayalCapabilitiesXName); + if ((x == null)) { + return null; + } return ((PortrayalCapabilitiesType)(x)); } set { @@ -20873,6 +22418,25 @@ public virtual PortrayalCapabilitiesType PortrayalCapabilities { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CapabilitiesType", "http://www.opengis.net/3dps/1.0/core"); + + static CapabilitiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ServiceIdentificationXName), new NamedContentModelEntity(ServiceProviderXName), new NamedContentModelEntity(OperationsMetadataXName), new NamedContentModelEntity(LanguagesXName), new NamedContentModelEntity(ContentsXName), new NamedContentModelEntity(PortrayalCapabilitiesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ServiceIdentificationXName, typeof(OpenGis.Ows.ServiceIdentification)); + localElementDictionary.Add(ServiceProviderXName, typeof(OpenGis.Ows.ServiceProvider)); + localElementDictionary.Add(OperationsMetadataXName, typeof(OpenGis.Ows.OperationsMetadata)); + localElementDictionary.Add(LanguagesXName, typeof(void)); + localElementDictionary.Add(ContentsXName, typeof(ContentsType)); + localElementDictionary.Add(PortrayalCapabilitiesXName, typeof(PortrayalCapabilitiesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20880,6 +22444,13 @@ public virtual PortrayalCapabilitiesType PortrayalCapabilities { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20894,52 +22465,25 @@ SchemaOrigin IXMetaData.TypeOrigin { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CapabilitiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ServiceIdentificationXName, typeof(OpenGis.Ows.ServiceIdentification)); - localElementDictionary.Add(ServiceProviderXName, typeof(OpenGis.Ows.ServiceProvider)); - localElementDictionary.Add(OperationsMetadataXName, typeof(OpenGis.Ows.OperationsMetadata)); - localElementDictionary.Add(LanguagesXName, typeof(void)); - localElementDictionary.Add(ContentsXName, typeof(ContentsType)); - localElementDictionary.Add(PortrayalCapabilitiesXName, typeof(PortrayalCapabilitiesType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } } public abstract partial class RequestBaseType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName serviceXName = System.Xml.Linq.XName.Get("service", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName requestXName = System.Xml.Linq.XName.Get("request", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RequestBaseType", "http://www.opengis.net/3dps/1.0/core"); - public static explicit operator RequestBaseType(XElement xe) { return (RequestBaseType)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public RequestBaseType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName serviceXName = System.Xml.Linq.XName.Get("service", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20955,6 +22499,10 @@ public virtual string service { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName requestXName = System.Xml.Linq.XName.Get("request", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20970,6 +22518,10 @@ public virtual string request { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20985,6 +22537,12 @@ public virtual string version { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RequestBaseType", "http://www.opengis.net/3dps/1.0/core"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -21005,10 +22563,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -21018,30 +22572,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class DeliveryOptionType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> FormatField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DeliveryOptionType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator DeliveryOptionType(XElement xe) { return XTypedServices.ToXTypedElement<DeliveryOptionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DeliveryOptionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(FormatXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DeliveryOptionType>(this); } /// <summary> @@ -21052,6 +22586,10 @@ static DeliveryOptionType() { public DeliveryOptionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -21070,6 +22608,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> FormatField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21100,6 +22645,24 @@ public virtual IList<string> Format { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DeliveryOptionType", "http://www.opengis.net/3dps/1.0/core"); + + static DeliveryOptionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(FormatXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + localElementDictionary.Add(FormatXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -21107,6 +22670,13 @@ public virtual IList<string> Format { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -21127,22 +22697,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DeliveryOptionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - localElementDictionary.Add(FormatXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -21152,35 +22706,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ViewpointHintType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName POCXName = System.Xml.Linq.XName.Get("POC", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName POIXName = System.Xml.Linq.XName.Get("POI", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UPXName = System.Xml.Linq.XName.Get("UP", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FOVXXName = System.Xml.Linq.XName.Get("FOVX", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ViewpointHintType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ViewpointHintType(XElement xe) { return XTypedServices.ToXTypedElement<ViewpointHintType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ViewpointHintType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(POCXName), new NamedContentModelEntity(POIXName), new NamedContentModelEntity(UPXName), new NamedContentModelEntity(FOVXXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ViewpointHintType>(this); } /// <summary> @@ -21191,6 +22720,10 @@ static ViewpointHintType() { public ViewpointHintType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName POCXName = System.Xml.Linq.XName.Get("POC", ""); + /// <summary> /// <para> /// Occurrence: required @@ -21209,6 +22742,10 @@ public virtual Position3DType POC { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName POIXName = System.Xml.Linq.XName.Get("POI", ""); + /// <summary> /// <para> /// Occurrence: required @@ -21227,6 +22764,10 @@ public virtual Position3DType POI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UPXName = System.Xml.Linq.XName.Get("UP", ""); + /// <summary> /// <para> /// Occurrence: required @@ -21245,6 +22786,10 @@ public virtual Position3DType UP { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FOVXXName = System.Xml.Linq.XName.Get("FOVX", ""); + /// <summary> /// <para> /// Occurrence: required @@ -21263,6 +22808,26 @@ public virtual double FOVX { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ViewpointHintType", "http://www.opengis.net/3dps/1.0/core"); + + static ViewpointHintType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(POCXName), new NamedContentModelEntity(POIXName), new NamedContentModelEntity(UPXName), new NamedContentModelEntity(FOVXXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(POCXName, typeof(Position3DType)); + localElementDictionary.Add(POIXName, typeof(Position3DType)); + localElementDictionary.Add(UPXName, typeof(Position3DType)); + localElementDictionary.Add(FOVXXName, typeof(double)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -21270,6 +22835,13 @@ public virtual double FOVX { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -21290,132 +22862,52 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ViewpointHintType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(POCXName, typeof(Position3DType)); - localElementDictionary.Add(POIXName, typeof(Position3DType)); - localElementDictionary.Add(UPXName, typeof(Position3DType)); - localElementDictionary.Add(FOVXXName, typeof(double)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public enum Section { - ServiceIdentification, - - ServiceProvider, - - OperationsMetadata, - - Languages, - - Contents, - - PortrayalCapabilities, - - All, - } - - public sealed class SectionValidator { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "ServiceIdentification", - "ServiceProvider", - "OperationsMetadata", - "Languages", - "Contents", - "PortrayalCapabilities", - "All"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private SectionValidator() { - } - } - - /// <summary> - /// <para> - /// Regular expression: (AvailableSpatialSelection*, AvailableLODSelection*, SupportsBoundingBoxConversion?, AvailableLODScheme*, ViewpointHint*, DeliveryOption*, OverallStyle*, Background*) - /// </para> - /// </summary> - public partial class PortrayalCapabilitiesType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableSpatialSelectionXName = System.Xml.Linq.XName.Get("AvailableSpatialSelection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> AvailableSpatialSelectionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableLODSelectionXName = System.Xml.Linq.XName.Get("AvailableLODSelection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> AvailableLODSelectionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SupportsBoundingBoxConversionXName = System.Xml.Linq.XName.Get("SupportsBoundingBoxConversion", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableLODSchemeXName = System.Xml.Linq.XName.Get("AvailableLODScheme", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LODSchemeType> AvailableLODSchemeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ViewpointHintXName = System.Xml.Linq.XName.Get("ViewpointHint", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ViewpointHintType> ViewpointHintField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DeliveryOptionXName = System.Xml.Linq.XName.Get("DeliveryOption", ""); + ServiceIdentification, - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DeliveryOptionType> DeliveryOptionField; + ServiceProvider, - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OverallStyleXName = System.Xml.Linq.XName.Get("OverallStyle", ""); + OperationsMetadata, - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OverallStyleType> OverallStyleField; + Languages, - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackgroundXName = System.Xml.Linq.XName.Get("Background", ""); + Contents, - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<BackgroundType> BackgroundField; + PortrayalCapabilities, - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PortrayalCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"); + All, + } + + public sealed class SectionValidator { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + private SectionValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "ServiceIdentification", + "ServiceProvider", + "OperationsMetadata", + "Languages", + "Contents", + "PortrayalCapabilities", + "All"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// Regular expression: (AvailableSpatialSelection*, AvailableLODSelection*, SupportsBoundingBoxConversion?, AvailableLODScheme*, ViewpointHint*, DeliveryOption*, OverallStyle*, Background*) + /// </para> + /// </summary> + public partial class PortrayalCapabilitiesType : XTypedElement, IXMetaData { public static explicit operator PortrayalCapabilitiesType(XElement xe) { return XTypedServices.ToXTypedElement<PortrayalCapabilitiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PortrayalCapabilitiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AvailableSpatialSelectionXName), new NamedContentModelEntity(AvailableLODSelectionXName), new NamedContentModelEntity(SupportsBoundingBoxConversionXName), new NamedContentModelEntity(AvailableLODSchemeXName), new NamedContentModelEntity(ViewpointHintXName), new NamedContentModelEntity(DeliveryOptionXName), new NamedContentModelEntity(OverallStyleXName), new NamedContentModelEntity(BackgroundXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PortrayalCapabilitiesType>(this); } /// <summary> @@ -21426,6 +22918,13 @@ static PortrayalCapabilitiesType() { public PortrayalCapabilitiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableSpatialSelectionXName = System.Xml.Linq.XName.Get("AvailableSpatialSelection", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> AvailableSpatialSelectionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21456,6 +22955,13 @@ public virtual IList<string> AvailableSpatialSelection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableLODSelectionXName = System.Xml.Linq.XName.Get("AvailableLODSelection", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> AvailableLODSelectionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21486,6 +22992,10 @@ public virtual IList<string> AvailableLODSelection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SupportsBoundingBoxConversionXName = System.Xml.Linq.XName.Get("SupportsBoundingBoxConversion", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21507,6 +23017,13 @@ public virtual System.Boolean? SupportsBoundingBoxConversion { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableLODSchemeXName = System.Xml.Linq.XName.Get("AvailableLODScheme", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LODSchemeType> AvailableLODSchemeField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21537,6 +23054,13 @@ public virtual IList<LODSchemeType> AvailableLODScheme { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ViewpointHintXName = System.Xml.Linq.XName.Get("ViewpointHint", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ViewpointHintType> ViewpointHintField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21567,6 +23091,13 @@ public virtual IList<ViewpointHintType> ViewpointHint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DeliveryOptionXName = System.Xml.Linq.XName.Get("DeliveryOption", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DeliveryOptionType> DeliveryOptionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21597,6 +23128,13 @@ public virtual IList<DeliveryOptionType> DeliveryOption { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OverallStyleXName = System.Xml.Linq.XName.Get("OverallStyle", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OverallStyleType> OverallStyleField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21627,6 +23165,13 @@ public virtual IList<OverallStyleType> OverallStyle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackgroundXName = System.Xml.Linq.XName.Get("Background", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<BackgroundType> BackgroundField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -21657,6 +23202,27 @@ public virtual IList<BackgroundType> Background { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PortrayalCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"); + + static PortrayalCapabilitiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AvailableSpatialSelectionXName), new NamedContentModelEntity(AvailableLODSelectionXName), new NamedContentModelEntity(SupportsBoundingBoxConversionXName), new NamedContentModelEntity(AvailableLODSchemeXName), new NamedContentModelEntity(ViewpointHintXName), new NamedContentModelEntity(DeliveryOptionXName), new NamedContentModelEntity(OverallStyleXName), new NamedContentModelEntity(BackgroundXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AvailableSpatialSelectionXName, typeof(string)); + localElementDictionary.Add(AvailableLODSelectionXName, typeof(string)); + localElementDictionary.Add(SupportsBoundingBoxConversionXName, typeof(bool)); + localElementDictionary.Add(AvailableLODSchemeXName, typeof(LODSchemeType)); + localElementDictionary.Add(ViewpointHintXName, typeof(ViewpointHintType)); + localElementDictionary.Add(DeliveryOptionXName, typeof(DeliveryOptionType)); + localElementDictionary.Add(OverallStyleXName, typeof(OverallStyleType)); + localElementDictionary.Add(BackgroundXName, typeof(BackgroundType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -21664,6 +23230,13 @@ public virtual IList<BackgroundType> Background { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -21684,25 +23257,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PortrayalCapabilitiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AvailableSpatialSelectionXName, typeof(string)); - localElementDictionary.Add(AvailableLODSelectionXName, typeof(string)); - localElementDictionary.Add(SupportsBoundingBoxConversionXName, typeof(bool)); - localElementDictionary.Add(AvailableLODSchemeXName, typeof(LODSchemeType)); - localElementDictionary.Add(ViewpointHintXName, typeof(ViewpointHintType)); - localElementDictionary.Add(DeliveryOptionXName, typeof(DeliveryOptionType)); - localElementDictionary.Add(OverallStyleXName, typeof(OverallStyleType)); - localElementDictionary.Add(BackgroundXName, typeof(BackgroundType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -21712,30 +23266,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class LODSchemeType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LODXName = System.Xml.Linq.XName.Get("LOD", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<System.Xml.XmlQualifiedName> LODField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LODSchemeType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator LODSchemeType(XElement xe) { return XTypedServices.ToXTypedElement<LODSchemeType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LODSchemeType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(LODXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LODSchemeType>(this); } /// <summary> @@ -21746,6 +23280,10 @@ static LODSchemeType() { public LODSchemeType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -21764,6 +23302,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LODXName = System.Xml.Linq.XName.Get("LOD", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<System.Xml.XmlQualifiedName> LODField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -21786,139 +23331,79 @@ public virtual IList<System.Xml.XmlQualifiedName> LOD { else { if ((this.LODField == null)) { this.LODField = XSimpleList<System.Xml.XmlQualifiedName>.Initialize(this, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.QName).Datatype, value, LODXName); - } - else { - XTypedServices.SetList<System.Xml.XmlQualifiedName>(this.LODField, value); - } - } - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Fragment; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LODSchemeType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - localElementDictionary.Add(LODXName, typeof(System.Xml.XmlQualifiedName)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Regular expression: (Title*, Abstract*, Keywords*, Identifier, AvailableCRS+, AvailableLOD*, DeliveryOption*, Layer*, AvailableStyle*, WGS84BoundingBox*, Metadata*, BoundingBox*) - /// </para> - /// </summary> - public partial class LayerType : global::OpenGis.Ows.DescriptionType, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableCRSXName = System.Xml.Linq.XName.Get("AvailableCRS", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<System.Uri> AvailableCRSField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableLODXName = System.Xml.Linq.XName.Get("AvailableLOD", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> AvailableLODField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DeliveryOptionXName = System.Xml.Linq.XName.Get("DeliveryOption", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> DeliveryOptionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LayerXName = System.Xml.Linq.XName.Get("Layer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LayerType> LayerField; + } + else { + XTypedServices.SetList<System.Xml.XmlQualifiedName>(this.LODField, value); + } + } + } + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableStyleXName = System.Xml.Linq.XName.Get("AvailableStyle", ""); + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LODSchemeType", "http://www.opengis.net/3dps/1.0/core"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<StyleType> AvailableStyleField; + static LODSchemeType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(LODXName)); + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WGS84BoundingBoxXName = System.Xml.Linq.XName.Get("WGS84BoundingBox", ""); + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OpenGis.Ows.WGS84BoundingBoxType> WGS84BoundingBoxField; + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + localElementDictionary.Add(LODXName, typeof(System.Xml.XmlQualifiedName)); + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", ""); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OpenGis.Ows.MetadataType> MetadataField; + private static ContentModelEntity contentModel; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", ""); + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OpenGis.Ows.BoundingBoxType> BoundingBoxField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LayerType", "http://www.opengis.net/3dps/1.0/core"); + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Fragment; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// <summary> + /// <para> + /// Regular expression: (Title*, Abstract*, Keywords*, Identifier, AvailableCRS+, AvailableLOD*, DeliveryOption*, Layer*, AvailableStyle*, WGS84BoundingBox*, Metadata*, BoundingBox*) + /// </para> + /// </summary> + public partial class LayerType : global::OpenGis.Ows.DescriptionType, IXMetaData { public static explicit operator LayerType(XElement xe) { return XTypedServices.ToXTypedElement<LayerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LayerType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AvailableCRSXName), new NamedContentModelEntity(AvailableLODXName), new NamedContentModelEntity(DeliveryOptionXName), new NamedContentModelEntity(LayerXName), new NamedContentModelEntity(AvailableStyleXName), new NamedContentModelEntity(WGS84BoundingBoxXName), new NamedContentModelEntity(MetadataXName), new NamedContentModelEntity(BoundingBoxXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LayerType>(this); } /// <summary> @@ -21929,6 +23414,10 @@ static LayerType() { public LayerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -21947,6 +23436,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableCRSXName = System.Xml.Linq.XName.Get("AvailableCRS", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<System.Uri> AvailableCRSField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -21977,6 +23473,13 @@ public virtual IList<System.Uri> AvailableCRS { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableLODXName = System.Xml.Linq.XName.Get("AvailableLOD", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> AvailableLODField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22007,6 +23510,13 @@ public virtual IList<string> AvailableLOD { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DeliveryOptionXName = System.Xml.Linq.XName.Get("DeliveryOption", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> DeliveryOptionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22037,6 +23547,13 @@ public virtual IList<string> DeliveryOption { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LayerXName = System.Xml.Linq.XName.Get("Layer", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LayerType> LayerField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22067,6 +23584,13 @@ public virtual IList<LayerType> Layer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableStyleXName = System.Xml.Linq.XName.Get("AvailableStyle", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<StyleType> AvailableStyleField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22097,6 +23621,13 @@ public virtual IList<StyleType> AvailableStyle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WGS84BoundingBoxXName = System.Xml.Linq.XName.Get("WGS84BoundingBox", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OpenGis.Ows.WGS84BoundingBoxType> WGS84BoundingBoxField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22127,6 +23658,13 @@ public virtual IList<OpenGis.Ows.WGS84BoundingBoxType> WGS84BoundingBox { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MetadataXName = System.Xml.Linq.XName.Get("Metadata", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OpenGis.Ows.MetadataType> MetadataField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22157,6 +23695,13 @@ public virtual IList<OpenGis.Ows.MetadataType> Metadata { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BoundingBoxXName = System.Xml.Linq.XName.Get("BoundingBox", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OpenGis.Ows.BoundingBoxType> BoundingBoxField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22187,6 +23732,31 @@ public virtual IList<OpenGis.Ows.BoundingBoxType> BoundingBox { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LayerType", "http://www.opengis.net/3dps/1.0/core"); + + static LayerType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AvailableCRSXName), new NamedContentModelEntity(AvailableLODXName), new NamedContentModelEntity(DeliveryOptionXName), new NamedContentModelEntity(LayerXName), new NamedContentModelEntity(AvailableStyleXName), new NamedContentModelEntity(WGS84BoundingBoxXName), new NamedContentModelEntity(MetadataXName), new NamedContentModelEntity(BoundingBoxXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + localElementDictionary.Add(AvailableCRSXName, typeof(System.Uri)); + localElementDictionary.Add(AvailableLODXName, typeof(string)); + localElementDictionary.Add(DeliveryOptionXName, typeof(string)); + localElementDictionary.Add(LayerXName, typeof(LayerType)); + localElementDictionary.Add(AvailableStyleXName, typeof(StyleType)); + localElementDictionary.Add(WGS84BoundingBoxXName, typeof(OpenGis.Ows.WGS84BoundingBoxType)); + localElementDictionary.Add(MetadataXName, typeof(OpenGis.Ows.MetadataType)); + localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22194,6 +23764,13 @@ public virtual IList<OpenGis.Ows.BoundingBoxType> BoundingBox { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22214,29 +23791,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LayerType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - localElementDictionary.Add(AvailableCRSXName, typeof(System.Uri)); - localElementDictionary.Add(AvailableLODXName, typeof(string)); - localElementDictionary.Add(DeliveryOptionXName, typeof(string)); - localElementDictionary.Add(LayerXName, typeof(LayerType)); - localElementDictionary.Add(AvailableStyleXName, typeof(StyleType)); - localElementDictionary.Add(WGS84BoundingBoxXName, typeof(OpenGis.Ows.WGS84BoundingBoxType)); - localElementDictionary.Add(MetadataXName, typeof(OpenGis.Ows.MetadataType)); - localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22246,27 +23800,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetResourceByIdType : global::OpenGis.ThreeDps.Core.RequestBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResourceIDXName = System.Xml.Linq.XName.Get("ResourceID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetResourceByIdType(XElement xe) { return XTypedServices.ToXTypedElement<GetResourceByIdType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetResourceByIdType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ResourceIDXName), new NamedContentModelEntity(OutputFormatXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetResourceByIdType>(this); } /// <summary> @@ -22277,6 +23814,10 @@ static GetResourceByIdType() { public GetResourceByIdType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResourceIDXName = System.Xml.Linq.XName.Get("ResourceID", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22295,6 +23836,10 @@ public virtual System.Uri ResourceID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputFormatXName = System.Xml.Linq.XName.Get("OutputFormat", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22313,6 +23858,21 @@ public virtual string OutputFormat { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetResourceByIdType", "http://www.opengis.net/3dps/1.0/core"); + + static GetResourceByIdType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ResourceIDXName), new NamedContentModelEntity(OutputFormatXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ResourceIDXName, typeof(System.Uri)); + localElementDictionary.Add(OutputFormatXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22320,6 +23880,13 @@ public virtual string OutputFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22340,19 +23907,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetResourceByIdType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ResourceIDXName, typeof(System.Uri)); - localElementDictionary.Add(OutputFormatXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22362,31 +23916,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class Position3DType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName X1XName = System.Xml.Linq.XName.Get("X1", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName X2XName = System.Xml.Linq.XName.Get("X2", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName X3XName = System.Xml.Linq.XName.Get("X3", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Position3DType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator Position3DType(XElement xe) { return XTypedServices.ToXTypedElement<Position3DType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Position3DType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(X1XName), new NamedContentModelEntity(X2XName), new NamedContentModelEntity(X3XName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Position3DType>(this); } /// <summary> @@ -22397,6 +23930,10 @@ static Position3DType() { public Position3DType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName X1XName = System.Xml.Linq.XName.Get("X1", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22415,6 +23952,10 @@ public virtual double X1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName X2XName = System.Xml.Linq.XName.Get("X2", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22433,6 +23974,10 @@ public virtual double X2 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName X3XName = System.Xml.Linq.XName.Get("X3", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22451,6 +23996,22 @@ public virtual double X3 { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Position3DType", "http://www.opengis.net/3dps/1.0/core"); + + static Position3DType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(X1XName), new NamedContentModelEntity(X2XName), new NamedContentModelEntity(X3XName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(X1XName, typeof(double)); + localElementDictionary.Add(X2XName, typeof(double)); + localElementDictionary.Add(X3XName, typeof(double)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22458,6 +24019,13 @@ public virtual double X3 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22478,20 +24046,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Position3DType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(X1XName, typeof(double)); - localElementDictionary.Add(X2XName, typeof(double)); - localElementDictionary.Add(X3XName, typeof(double)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22501,26 +24055,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ContentsType : global::OpenGis.ThreeDps.Core.OWSContentsBaseRestrictionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LayerXName = System.Xml.Linq.XName.Get("Layer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LayerType> LayerField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContentsType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ContentsType(XElement xe) { return XTypedServices.ToXTypedElement<ContentsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ContentsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DatasetDescriptionSummaryXName), new NamedContentModelEntity(OtherSourceXName), new SequenceContentModelEntity(new NamedContentModelEntity(LayerXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ContentsType>(this); } /// <summary> @@ -22531,6 +24069,13 @@ static ContentsType() { public ContentsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LayerXName = System.Xml.Linq.XName.Get("Layer", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LayerType> LayerField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -22564,6 +24109,22 @@ public virtual IList<LayerType> Layer { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ContentsType", "http://www.opengis.net/3dps/1.0/core"); + + static ContentsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DatasetDescriptionSummaryXName), new NamedContentModelEntity(OtherSourceXName), new SequenceContentModelEntity(new NamedContentModelEntity(LayerXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(OpenGis.Ows.DatasetDescriptionSummary)); + localElementDictionary.Add(OtherSourceXName, typeof(OpenGis.Ows.OtherSource)); + localElementDictionary.Add(LayerXName, typeof(LayerType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22571,6 +24132,13 @@ public virtual IList<LayerType> Layer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22591,20 +24159,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ContentsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(OpenGis.Ows.DatasetDescriptionSummary)); - localElementDictionary.Add(OtherSourceXName, typeof(OpenGis.Ows.OtherSource)); - localElementDictionary.Add(LayerXName, typeof(LayerType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22614,23 +24168,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetCapabilitiesType : global::OpenGis.Ows.GetCapabilitiesType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName serviceXName = System.Xml.Linq.XName.Get("service", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetCapabilitiesType(XElement xe) { return XTypedServices.ToXTypedElement<GetCapabilitiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetCapabilitiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AcceptVersionsXName), new NamedContentModelEntity(SectionsXName), new NamedContentModelEntity(AcceptFormatsXName), new NamedContentModelEntity(AcceptLanguagesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetCapabilitiesType>(this); } /// <summary> @@ -22641,6 +24182,10 @@ static GetCapabilitiesType() { public GetCapabilitiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName serviceXName = System.Xml.Linq.XName.Get("service", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22649,6 +24194,9 @@ public GetCapabilitiesType() { public virtual string service { get { XAttribute x = this.Attribute(serviceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22656,6 +24204,23 @@ public virtual string service { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetCapabilitiesType", "http://www.opengis.net/3dps/1.0/core"); + + static GetCapabilitiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AcceptVersionsXName), new NamedContentModelEntity(SectionsXName), new NamedContentModelEntity(AcceptFormatsXName), new NamedContentModelEntity(AcceptLanguagesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AcceptVersionsXName, typeof(OpenGis.Ows.AcceptVersionsType)); + localElementDictionary.Add(SectionsXName, typeof(OpenGis.Ows.SectionsType)); + localElementDictionary.Add(AcceptFormatsXName, typeof(OpenGis.Ows.AcceptFormatsType)); + localElementDictionary.Add(AcceptLanguagesXName, typeof(void)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22663,6 +24228,13 @@ public virtual string service { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22683,21 +24255,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetCapabilitiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AcceptVersionsXName, typeof(OpenGis.Ows.AcceptVersionsType)); - localElementDictionary.Add(SectionsXName, typeof(OpenGis.Ows.SectionsType)); - localElementDictionary.Add(AcceptFormatsXName, typeof(OpenGis.Ows.AcceptFormatsType)); - localElementDictionary.Add(AcceptLanguagesXName, typeof(void)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22707,23 +24264,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class OverallStyleType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OverallStyleType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator OverallStyleType(XElement xe) { return XTypedServices.ToXTypedElement<OverallStyleType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static OverallStyleType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OverallStyleType>(this); } /// <summary> @@ -22734,6 +24278,10 @@ static OverallStyleType() { public OverallStyleType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -22752,6 +24300,23 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OverallStyleType", "http://www.opengis.net/3dps/1.0/core"); + + static OverallStyleType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22759,6 +24324,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22779,21 +24351,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OverallStyleType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22803,23 +24360,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class BackgroundType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BackgroundType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator BackgroundType(XElement xe) { return XTypedServices.ToXTypedElement<BackgroundType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static BackgroundType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<BackgroundType>(this); } /// <summary> @@ -22830,6 +24374,10 @@ static BackgroundType() { public BackgroundType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -22848,6 +24396,23 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BackgroundType", "http://www.opengis.net/3dps/1.0/core"); + + static BackgroundType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22855,6 +24420,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22875,21 +24447,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<BackgroundType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22899,23 +24456,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class StyleType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StyleType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator StyleType(XElement xe) { return XTypedServices.ToXTypedElement<StyleType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static StyleType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<StyleType>(this); } /// <summary> @@ -22926,6 +24470,10 @@ static StyleType() { public StyleType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -22944,6 +24492,23 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StyleType", "http://www.opengis.net/3dps/1.0/core"); + + static StyleType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22951,6 +24516,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22971,21 +24543,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<StyleType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22995,27 +24552,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class Position2DType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName X1XName = System.Xml.Linq.XName.Get("X1", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName X2XName = System.Xml.Linq.XName.Get("X2", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Position2DType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator Position2DType(XElement xe) { return XTypedServices.ToXTypedElement<Position2DType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Position2DType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(X1XName), new NamedContentModelEntity(X2XName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Position2DType>(this); } /// <summary> @@ -23026,6 +24566,10 @@ static Position2DType() { public Position2DType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName X1XName = System.Xml.Linq.XName.Get("X1", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23044,6 +24588,10 @@ public virtual double X1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName X2XName = System.Xml.Linq.XName.Get("X2", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23062,6 +24610,21 @@ public virtual double X2 { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Position2DType", "http://www.opengis.net/3dps/1.0/core"); + + static Position2DType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(X1XName), new NamedContentModelEntity(X2XName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(X1XName, typeof(double)); + localElementDictionary.Add(X2XName, typeof(double)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23069,6 +24632,13 @@ public virtual double X2 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23089,19 +24659,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Position2DType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(X1XName, typeof(double)); - localElementDictionary.Add(X2XName, typeof(double)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -23111,19 +24668,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class OWSContentsBaseRestrictionType : global::OpenGis.Ows.ContentsBaseType, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OWSContentsBaseRestrictionType", "http://www.opengis.net/3dps/1.0/core"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator OWSContentsBaseRestrictionType(XElement xe) { return XTypedServices.ToXTypedElement<OWSContentsBaseRestrictionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static OWSContentsBaseRestrictionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DatasetDescriptionSummaryXName), new NamedContentModelEntity(OtherSourceXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OWSContentsBaseRestrictionType>(this); } /// <summary> @@ -23134,6 +24682,21 @@ static OWSContentsBaseRestrictionType() { public OWSContentsBaseRestrictionType() { } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OWSContentsBaseRestrictionType", "http://www.opengis.net/3dps/1.0/core"); + + static OWSContentsBaseRestrictionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DatasetDescriptionSummaryXName), new NamedContentModelEntity(OtherSourceXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(OpenGis.Ows.DatasetDescriptionSummary)); + localElementDictionary.Add(OtherSourceXName, typeof(OpenGis.Ows.OtherSource)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23141,6 +24704,13 @@ public OWSContentsBaseRestrictionType() { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23161,19 +24731,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OWSContentsBaseRestrictionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(DatasetDescriptionSummaryXName, typeof(OpenGis.Ows.DatasetDescriptionSummary)); - localElementDictionary.Add(OtherSourceXName, typeof(OpenGis.Ows.OtherSource)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } } namespace OpenGis.ThreeDps.Info { @@ -23193,17 +24750,19 @@ namespace OpenGis.ThreeDps.Info { public partial class InfoLayerExtensionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName queryableXName = System.Xml.Linq.XName.Get("queryable", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InfoLayerExtensionType", "http://www.opengis.net/3dps/1.0/info"); - public static explicit operator InfoLayerExtensionType(XElement xe) { return XTypedServices.ToXTypedElement<InfoLayerExtensionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<InfoLayerExtensionType>(this); + } + public InfoLayerExtensionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName queryableXName = System.Xml.Linq.XName.Get("queryable", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23222,6 +24781,12 @@ public virtual System.Boolean? queryable { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InfoLayerExtensionType", "http://www.opengis.net/3dps/1.0/info"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23242,58 +24807,17 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<InfoLayerExtensionType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } - - /// <summary> - /// <para> - /// Regular expression: (Layers, FeatureCount?, IdOnly?, Format, Exceptions?) - /// </para> - /// </summary> - public abstract partial class AbstractGetFeatureInfoType : global::OpenGis.ThreeDps.Core.RequestBaseType, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LayersXName = System.Xml.Linq.XName.Get("Layers", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureCountXName = System.Xml.Linq.XName.Get("FeatureCount", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdOnlyXName = System.Xml.Linq.XName.Get("IdOnly", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExceptionsXName = System.Xml.Linq.XName.Get("Exceptions", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractGetFeatureInfoType", "http://www.opengis.net/3dps/1.0/info"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + + /// <summary> + /// <para> + /// Regular expression: (Layers, FeatureCount?, IdOnly?, Format, Exceptions?) + /// </para> + /// </summary> + public abstract partial class AbstractGetFeatureInfoType : global::OpenGis.ThreeDps.Core.RequestBaseType, IXMetaData { public static explicit operator AbstractGetFeatureInfoType(XElement xe) { return (AbstractGetFeatureInfoType)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AbstractGetFeatureInfoType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName)); - } - /// <summary> /// <para> /// Regular expression: (Layers, FeatureCount?, IdOnly?, Format, Exceptions?) @@ -23302,6 +24826,10 @@ static AbstractGetFeatureInfoType() { public AbstractGetFeatureInfoType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LayersXName = System.Xml.Linq.XName.Get("Layers", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23320,6 +24848,10 @@ public virtual string Layers { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureCountXName = System.Xml.Linq.XName.Get("FeatureCount", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23341,6 +24873,10 @@ public virtual System.Decimal? FeatureCount { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdOnlyXName = System.Xml.Linq.XName.Get("IdOnly", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23362,6 +24898,10 @@ public virtual System.Boolean? IdOnly { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FormatXName = System.Xml.Linq.XName.Get("Format", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23380,6 +24920,10 @@ public virtual string Format { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExceptionsXName = System.Xml.Linq.XName.Get("Exceptions", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23391,6 +24935,9 @@ public virtual string Format { public virtual string Exceptions { get { XElement x = this.GetElement(ExceptionsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23403,6 +24950,24 @@ public virtual string Exceptions { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AbstractGetFeatureInfoType", "http://www.opengis.net/3dps/1.0/info"); + + static AbstractGetFeatureInfoType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LayersXName, typeof(string)); + localElementDictionary.Add(FeatureCountXName, typeof(decimal)); + localElementDictionary.Add(IdOnlyXName, typeof(bool)); + localElementDictionary.Add(FormatXName, typeof(string)); + localElementDictionary.Add(ExceptionsXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23410,6 +24975,13 @@ public virtual string Exceptions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23430,18 +25002,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - private static void BuildElementDictionary() { - localElementDictionary.Add(LayersXName, typeof(string)); - localElementDictionary.Add(FeatureCountXName, typeof(decimal)); - localElementDictionary.Add(IdOnlyXName, typeof(bool)); - localElementDictionary.Add(FormatXName, typeof(string)); - localElementDictionary.Add(ExceptionsXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -23451,39 +25011,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetFeatureInfoByRayType : global::OpenGis.ThreeDps.Info.AbstractGetFeatureInfoType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CRSXName = System.Xml.Linq.XName.Get("CRS", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HeightXName = System.Xml.Linq.XName.Get("Height", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WidthXName = System.Xml.Linq.XName.Get("Width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProjectionXName = System.Xml.Linq.XName.Get("Projection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ImagePositionXName = System.Xml.Linq.XName.Get("ImagePosition", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetFeatureInfoByRayType", "http://www.opengis.net/3dps/1.0/info"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetFeatureInfoByRayType(XElement xe) { return XTypedServices.ToXTypedElement<GetFeatureInfoByRayType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetFeatureInfoByRayType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(HeightXName), new NamedContentModelEntity(WidthXName), new NamedContentModelEntity(ProjectionXName), new NamedContentModelEntity(ImagePositionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetFeatureInfoByRayType>(this); } /// <summary> @@ -23494,6 +25025,10 @@ static GetFeatureInfoByRayType() { public GetFeatureInfoByRayType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CRSXName = System.Xml.Linq.XName.Get("CRS", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23512,6 +25047,10 @@ public virtual System.Uri CRS { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HeightXName = System.Xml.Linq.XName.Get("Height", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23530,6 +25069,10 @@ public virtual decimal Height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WidthXName = System.Xml.Linq.XName.Get("Width", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23548,6 +25091,10 @@ public virtual decimal Width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProjectionXName = System.Xml.Linq.XName.Get("Projection", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23566,6 +25113,10 @@ public virtual OpenGis.ThreeDps.View.ProjectionBaseType Projection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ImagePositionXName = System.Xml.Linq.XName.Get("ImagePosition", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23584,6 +25135,29 @@ public virtual OpenGis.ThreeDps.Core.Position2DType ImagePosition { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetFeatureInfoByRayType", "http://www.opengis.net/3dps/1.0/info"); + + static GetFeatureInfoByRayType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(HeightXName), new NamedContentModelEntity(WidthXName), new NamedContentModelEntity(ProjectionXName), new NamedContentModelEntity(ImagePositionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LayersXName, typeof(string)); + localElementDictionary.Add(FeatureCountXName, typeof(decimal)); + localElementDictionary.Add(IdOnlyXName, typeof(bool)); + localElementDictionary.Add(FormatXName, typeof(string)); + localElementDictionary.Add(ExceptionsXName, typeof(string)); + localElementDictionary.Add(CRSXName, typeof(System.Uri)); + localElementDictionary.Add(HeightXName, typeof(decimal)); + localElementDictionary.Add(WidthXName, typeof(decimal)); + localElementDictionary.Add(ProjectionXName, typeof(OpenGis.ThreeDps.View.ProjectionBaseType)); + localElementDictionary.Add(ImagePositionXName, typeof(OpenGis.ThreeDps.Core.Position2DType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23591,6 +25165,13 @@ public virtual OpenGis.ThreeDps.Core.Position2DType ImagePosition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23611,27 +25192,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetFeatureInfoByRayType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(LayersXName, typeof(string)); - localElementDictionary.Add(FeatureCountXName, typeof(decimal)); - localElementDictionary.Add(IdOnlyXName, typeof(bool)); - localElementDictionary.Add(FormatXName, typeof(string)); - localElementDictionary.Add(ExceptionsXName, typeof(string)); - localElementDictionary.Add(CRSXName, typeof(System.Uri)); - localElementDictionary.Add(HeightXName, typeof(decimal)); - localElementDictionary.Add(WidthXName, typeof(decimal)); - localElementDictionary.Add(ProjectionXName, typeof(OpenGis.ThreeDps.View.ProjectionBaseType)); - localElementDictionary.Add(ImagePositionXName, typeof(OpenGis.ThreeDps.Core.Position2DType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -23641,31 +25201,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetFeatureInfoByPositionType : global::OpenGis.ThreeDps.Info.AbstractGetFeatureInfoType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CRSXName = System.Xml.Linq.XName.Get("CRS", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CoordinateXName = System.Xml.Linq.XName.Get("Coordinate", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ToleranceXName = System.Xml.Linq.XName.Get("Tolerance", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetFeatureInfoByPositionType", "http://www.opengis.net/3dps/1.0/info"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetFeatureInfoByPositionType(XElement xe) { return XTypedServices.ToXTypedElement<GetFeatureInfoByPositionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetFeatureInfoByPositionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(CoordinateXName), new NamedContentModelEntity(ToleranceXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetFeatureInfoByPositionType>(this); } /// <summary> @@ -23676,6 +25215,10 @@ static GetFeatureInfoByPositionType() { public GetFeatureInfoByPositionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CRSXName = System.Xml.Linq.XName.Get("CRS", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23694,6 +25237,10 @@ public virtual System.Uri CRS { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CoordinateXName = System.Xml.Linq.XName.Get("Coordinate", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23712,6 +25259,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType Coordinate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ToleranceXName = System.Xml.Linq.XName.Get("Tolerance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23733,6 +25284,27 @@ public virtual System.Single? Tolerance { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetFeatureInfoByPositionType", "http://www.opengis.net/3dps/1.0/info"); + + static GetFeatureInfoByPositionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(CoordinateXName), new NamedContentModelEntity(ToleranceXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LayersXName, typeof(string)); + localElementDictionary.Add(FeatureCountXName, typeof(decimal)); + localElementDictionary.Add(IdOnlyXName, typeof(bool)); + localElementDictionary.Add(FormatXName, typeof(string)); + localElementDictionary.Add(ExceptionsXName, typeof(string)); + localElementDictionary.Add(CRSXName, typeof(System.Uri)); + localElementDictionary.Add(CoordinateXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(ToleranceXName, typeof(float)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23740,6 +25312,13 @@ public virtual System.Single? Tolerance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23760,25 +25339,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetFeatureInfoByPositionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(LayersXName, typeof(string)); - localElementDictionary.Add(FeatureCountXName, typeof(decimal)); - localElementDictionary.Add(IdOnlyXName, typeof(bool)); - localElementDictionary.Add(FormatXName, typeof(string)); - localElementDictionary.Add(ExceptionsXName, typeof(string)); - localElementDictionary.Add(CRSXName, typeof(System.Uri)); - localElementDictionary.Add(CoordinateXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(ToleranceXName, typeof(float)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -23788,26 +25348,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetFeatureInfoByObjectIdType : global::OpenGis.ThreeDps.Info.AbstractGetFeatureInfoType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObjectIdXName = System.Xml.Linq.XName.Get("ObjectId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<System.Uri> ObjectIdField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetFeatureInfoByObjectIdType", "http://www.opengis.net/3dps/1.0/info"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetFeatureInfoByObjectIdType(XElement xe) { return XTypedServices.ToXTypedElement<GetFeatureInfoByObjectIdType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetFeatureInfoByObjectIdType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(ObjectIdXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetFeatureInfoByObjectIdType>(this); } /// <summary> @@ -23818,6 +25362,13 @@ static GetFeatureInfoByObjectIdType() { public GetFeatureInfoByObjectIdType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObjectIdXName = System.Xml.Linq.XName.Get("ObjectId", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<System.Uri> ObjectIdField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -23848,6 +25399,25 @@ public virtual IList<System.Uri> ObjectId { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetFeatureInfoByObjectIdType", "http://www.opengis.net/3dps/1.0/info"); + + static GetFeatureInfoByObjectIdType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(FeatureCountXName), new NamedContentModelEntity(IdOnlyXName), new NamedContentModelEntity(FormatXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(ObjectIdXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LayersXName, typeof(string)); + localElementDictionary.Add(FeatureCountXName, typeof(decimal)); + localElementDictionary.Add(IdOnlyXName, typeof(bool)); + localElementDictionary.Add(FormatXName, typeof(string)); + localElementDictionary.Add(ExceptionsXName, typeof(string)); + localElementDictionary.Add(ObjectIdXName, typeof(System.Uri)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23855,6 +25425,13 @@ public virtual IList<System.Uri> ObjectId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23875,23 +25452,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetFeatureInfoByObjectIdType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(LayersXName, typeof(string)); - localElementDictionary.Add(FeatureCountXName, typeof(decimal)); - localElementDictionary.Add(IdOnlyXName, typeof(bool)); - localElementDictionary.Add(FormatXName, typeof(string)); - localElementDictionary.Add(ExceptionsXName, typeof(string)); - localElementDictionary.Add(ObjectIdXName, typeof(System.Uri)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } } namespace OpenGis.ThreeDps.View { @@ -23911,13 +25471,21 @@ namespace OpenGis.ThreeDps.View { public partial class ViewLayerExtensionType : XTypedElement, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ViewLayerExtensionType", "http://www.opengis.net/3dps/1.0/view"); - public static explicit operator ViewLayerExtensionType(XElement xe) { return XTypedServices.ToXTypedElement<ViewLayerExtensionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ViewLayerExtensionType>(this); + } + public ViewLayerExtensionType() { } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ViewLayerExtensionType", "http://www.opengis.net/3dps/1.0/view"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23938,14 +25506,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ViewLayerExtensionType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -23955,31 +25515,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class GetViewType : global::OpenGis.ThreeDps.Core.AbstractGetPortrayalType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackgroundColorXName = System.Xml.Linq.XName.Get("BackgroundColor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransparentBackgroundXName = System.Xml.Linq.XName.Get("TransparentBackground", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PortrayalsXName = System.Xml.Linq.XName.Get("Portrayals", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetViewType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator GetViewType(XElement xe) { return XTypedServices.ToXTypedElement<GetViewType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GetViewType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(BoundingBoxXName), new NamedContentModelEntity(SpatialSelectionXName), new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(StylesXName), new NamedContentModelEntity(BackgroundXName), new NamedContentModelEntity(LODsXName), new NamedContentModelEntity(LODSelectionXName), new NamedContentModelEntity(OverallStylesXName), new NamedContentModelEntity(DeliveryOptionsXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(BackgroundColorXName), new NamedContentModelEntity(TransparentBackgroundXName), new NamedContentModelEntity(PortrayalsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GetViewType>(this); } /// <summary> @@ -23990,6 +25529,10 @@ static GetViewType() { public GetViewType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackgroundColorXName = System.Xml.Linq.XName.Get("BackgroundColor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24001,6 +25544,9 @@ public GetViewType() { public virtual string BackgroundColor { get { XElement x = this.GetElement(BackgroundColorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24008,6 +25554,10 @@ public virtual string BackgroundColor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TransparentBackgroundXName = System.Xml.Linq.XName.Get("TransparentBackground", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24029,6 +25579,10 @@ public virtual System.Boolean? TransparentBackground { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PortrayalsXName = System.Xml.Linq.XName.Get("Portrayals", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24047,6 +25601,33 @@ public virtual PortrayalListType Portrayals { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GetViewType", "http://www.opengis.net/3dps/1.0/view"); + + static GetViewType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CRSXName), new NamedContentModelEntity(BoundingBoxXName), new NamedContentModelEntity(SpatialSelectionXName), new NamedContentModelEntity(LayersXName), new NamedContentModelEntity(StylesXName), new NamedContentModelEntity(BackgroundXName), new NamedContentModelEntity(LODsXName), new NamedContentModelEntity(LODSelectionXName), new NamedContentModelEntity(OverallStylesXName), new NamedContentModelEntity(DeliveryOptionsXName), new NamedContentModelEntity(ExceptionsXName), new NamedContentModelEntity(BackgroundColorXName), new NamedContentModelEntity(TransparentBackgroundXName), new NamedContentModelEntity(PortrayalsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CRSXName, typeof(System.Uri)); + localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); + localElementDictionary.Add(SpatialSelectionXName, typeof(string)); + localElementDictionary.Add(LayersXName, typeof(string)); + localElementDictionary.Add(StylesXName, typeof(string)); + localElementDictionary.Add(BackgroundXName, typeof(string)); + localElementDictionary.Add(LODsXName, typeof(string)); + localElementDictionary.Add(LODSelectionXName, typeof(string)); + localElementDictionary.Add(OverallStylesXName, typeof(string)); + localElementDictionary.Add(DeliveryOptionsXName, typeof(string)); + localElementDictionary.Add(ExceptionsXName, typeof(string)); + localElementDictionary.Add(BackgroundColorXName, typeof(string)); + localElementDictionary.Add(TransparentBackgroundXName, typeof(bool)); + localElementDictionary.Add(PortrayalsXName, typeof(PortrayalListType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24054,6 +25635,13 @@ public virtual PortrayalListType Portrayals { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24074,31 +25662,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GetViewType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(CRSXName, typeof(System.Uri)); - localElementDictionary.Add(BoundingBoxXName, typeof(OpenGis.Ows.BoundingBoxType)); - localElementDictionary.Add(SpatialSelectionXName, typeof(string)); - localElementDictionary.Add(LayersXName, typeof(string)); - localElementDictionary.Add(StylesXName, typeof(string)); - localElementDictionary.Add(BackgroundXName, typeof(string)); - localElementDictionary.Add(LODsXName, typeof(string)); - localElementDictionary.Add(LODSelectionXName, typeof(string)); - localElementDictionary.Add(OverallStylesXName, typeof(string)); - localElementDictionary.Add(DeliveryOptionsXName, typeof(string)); - localElementDictionary.Add(ExceptionsXName, typeof(string)); - localElementDictionary.Add(BackgroundColorXName, typeof(string)); - localElementDictionary.Add(TransparentBackgroundXName, typeof(bool)); - localElementDictionary.Add(PortrayalsXName, typeof(PortrayalListType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -24108,26 +25671,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PortrayalListType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PortrayalXName = System.Xml.Linq.XName.Get("Portrayal", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PortrayalType> PortrayalField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PortrayalListType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PortrayalListType(XElement xe) { return XTypedServices.ToXTypedElement<PortrayalListType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PortrayalListType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PortrayalXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PortrayalListType>(this); } /// <summary> @@ -24138,6 +25685,13 @@ static PortrayalListType() { public PortrayalListType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PortrayalXName = System.Xml.Linq.XName.Get("Portrayal", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PortrayalType> PortrayalField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -24168,95 +25722,67 @@ public virtual IList<PortrayalType> Portrayal { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PortrayalListType", "http://www.opengis.net/3dps/1.0/view"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } + static PortrayalListType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PortrayalXName)); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Fragment; - } + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PortrayalXName, typeof(PortrayalType)); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { - return LinqToXsdTypeManager.Instance; + return localElementDictionary; } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PortrayalListType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PortrayalXName, typeof(PortrayalType)); - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; ContentModelEntity IXMetaData.GetContentModel() { return contentModel; } - } - - /// <summary> - /// <para> - /// Regular expression: (Identifier, POC, POI, UP, FOVX?, FOVY?, NearPlane?, FarPlane?) - /// </para> - /// </summary> - public partial class PerspectiveProjectionType : global::OpenGis.ThreeDps.View.ProjectionBaseType, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName POCXName = System.Xml.Linq.XName.Get("POC", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName POIXName = System.Xml.Linq.XName.Get("POI", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UPXName = System.Xml.Linq.XName.Get("UP", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FOVXXName = System.Xml.Linq.XName.Get("FOVX", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FOVYXName = System.Xml.Linq.XName.Get("FOVY", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NearPlaneXName = System.Xml.Linq.XName.Get("NearPlane", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FarPlaneXName = System.Xml.Linq.XName.Get("FarPlane", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PerspectiveProjectionType", "http://www.opengis.net/3dps/1.0/view"); + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Fragment; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// <summary> + /// <para> + /// Regular expression: (Identifier, POC, POI, UP, FOVX?, FOVY?, NearPlane?, FarPlane?) + /// </para> + /// </summary> + public partial class PerspectiveProjectionType : global::OpenGis.ThreeDps.View.ProjectionBaseType, IXMetaData { public static explicit operator PerspectiveProjectionType(XElement xe) { return XTypedServices.ToXTypedElement<PerspectiveProjectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PerspectiveProjectionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(POCXName), new NamedContentModelEntity(POIXName), new NamedContentModelEntity(UPXName), new NamedContentModelEntity(FOVXXName), new NamedContentModelEntity(FOVYXName), new NamedContentModelEntity(NearPlaneXName), new NamedContentModelEntity(FarPlaneXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PerspectiveProjectionType>(this); } /// <summary> @@ -24267,6 +25793,10 @@ static PerspectiveProjectionType() { public PerspectiveProjectionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName POCXName = System.Xml.Linq.XName.Get("POC", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24285,6 +25815,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType POC { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName POIXName = System.Xml.Linq.XName.Get("POI", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24303,6 +25837,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType POI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UPXName = System.Xml.Linq.XName.Get("UP", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24321,6 +25859,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType UP { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FOVXXName = System.Xml.Linq.XName.Get("FOVX", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24342,6 +25884,10 @@ public virtual System.Double? FOVX { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FOVYXName = System.Xml.Linq.XName.Get("FOVY", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24363,6 +25909,10 @@ public virtual System.Double? FOVY { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NearPlaneXName = System.Xml.Linq.XName.Get("NearPlane", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24384,6 +25934,10 @@ public virtual System.Double? NearPlane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FarPlaneXName = System.Xml.Linq.XName.Get("FarPlane", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24405,6 +25959,27 @@ public virtual System.Double? FarPlane { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PerspectiveProjectionType", "http://www.opengis.net/3dps/1.0/view"); + + static PerspectiveProjectionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(POCXName), new NamedContentModelEntity(POIXName), new NamedContentModelEntity(UPXName), new NamedContentModelEntity(FOVXXName), new NamedContentModelEntity(FOVYXName), new NamedContentModelEntity(NearPlaneXName), new NamedContentModelEntity(FarPlaneXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + localElementDictionary.Add(POCXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(POIXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(UPXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(FOVXXName, typeof(double)); + localElementDictionary.Add(FOVYXName, typeof(double)); + localElementDictionary.Add(NearPlaneXName, typeof(double)); + localElementDictionary.Add(FarPlaneXName, typeof(double)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24412,6 +25987,13 @@ public virtual System.Double? FarPlane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24432,25 +26014,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PerspectiveProjectionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - localElementDictionary.Add(POCXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(POIXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(UPXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(FOVXXName, typeof(double)); - localElementDictionary.Add(FOVYXName, typeof(double)); - localElementDictionary.Add(NearPlaneXName, typeof(double)); - localElementDictionary.Add(FarPlaneXName, typeof(double)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -24460,45 +26023,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ViewPortrayalCapabilitiesExtensionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName farPlaneHintXName = System.Xml.Linq.XName.Get("farPlaneHint", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nearPlaneHintXName = System.Xml.Linq.XName.Get("nearPlaneHint", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName supportsMultipleViewsXName = System.Xml.Linq.XName.Get("supportsMultipleViews", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableImageLayerXName = System.Xml.Linq.XName.Get("AvailableImageLayer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ImageLayerType> AvailableImageLayerField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableProjectionXName = System.Xml.Linq.XName.Get("AvailableProjection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AvailableProjectionType> AvailableProjectionField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ViewPortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ViewPortrayalCapabilitiesExtensionType(XElement xe) { return XTypedServices.ToXTypedElement<ViewPortrayalCapabilitiesExtensionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ViewPortrayalCapabilitiesExtensionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(farPlaneHintXName), new NamedContentModelEntity(nearPlaneHintXName), new NamedContentModelEntity(supportsMultipleViewsXName), new NamedContentModelEntity(AvailableImageLayerXName), new NamedContentModelEntity(AvailableProjectionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ViewPortrayalCapabilitiesExtensionType>(this); } /// <summary> @@ -24509,6 +26037,10 @@ static ViewPortrayalCapabilitiesExtensionType() { public ViewPortrayalCapabilitiesExtensionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName farPlaneHintXName = System.Xml.Linq.XName.Get("farPlaneHint", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24527,6 +26059,10 @@ public virtual double farPlaneHint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nearPlaneHintXName = System.Xml.Linq.XName.Get("nearPlaneHint", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24545,6 +26081,10 @@ public virtual double nearPlaneHint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName supportsMultipleViewsXName = System.Xml.Linq.XName.Get("supportsMultipleViews", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24563,6 +26103,13 @@ public virtual bool supportsMultipleViews { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableImageLayerXName = System.Xml.Linq.XName.Get("AvailableImageLayer", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ImageLayerType> AvailableImageLayerField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -24593,6 +26140,13 @@ public virtual IList<ImageLayerType> AvailableImageLayer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableProjectionXName = System.Xml.Linq.XName.Get("AvailableProjection", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AvailableProjectionType> AvailableProjectionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -24623,6 +26177,24 @@ public virtual IList<AvailableProjectionType> AvailableProjection { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ViewPortrayalCapabilitiesExtensionType", "http://www.opengis.net/3dps/1.0/view"); + + static ViewPortrayalCapabilitiesExtensionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(farPlaneHintXName), new NamedContentModelEntity(nearPlaneHintXName), new NamedContentModelEntity(supportsMultipleViewsXName), new NamedContentModelEntity(AvailableImageLayerXName), new NamedContentModelEntity(AvailableProjectionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(farPlaneHintXName, typeof(double)); + localElementDictionary.Add(nearPlaneHintXName, typeof(double)); + localElementDictionary.Add(supportsMultipleViewsXName, typeof(bool)); + localElementDictionary.Add(AvailableImageLayerXName, typeof(ImageLayerType)); + localElementDictionary.Add(AvailableProjectionXName, typeof(AvailableProjectionType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24630,6 +26202,13 @@ public virtual IList<AvailableProjectionType> AvailableProjection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24650,22 +26229,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ViewPortrayalCapabilitiesExtensionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(farPlaneHintXName, typeof(double)); - localElementDictionary.Add(nearPlaneHintXName, typeof(double)); - localElementDictionary.Add(supportsMultipleViewsXName, typeof(bool)); - localElementDictionary.Add(AvailableImageLayerXName, typeof(ImageLayerType)); - localElementDictionary.Add(AvailableProjectionXName, typeof(AvailableProjectionType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -24675,55 +26238,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class OrthographicProjectionType : global::OpenGis.ThreeDps.View.ProjectionBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName POCXName = System.Xml.Linq.XName.Get("POC", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName POIXName = System.Xml.Linq.XName.Get("POI", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UPXName = System.Xml.Linq.XName.Get("UP", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LeftXName = System.Xml.Linq.XName.Get("Left", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RightXName = System.Xml.Linq.XName.Get("Right", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BottomXName = System.Xml.Linq.XName.Get("Bottom", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TopXName = System.Xml.Linq.XName.Get("Top", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NearPlaneXName = System.Xml.Linq.XName.Get("NearPlane", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FarPlaneXName = System.Xml.Linq.XName.Get("FarPlane", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OrthographicProjectionType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator OrthographicProjectionType(XElement xe) { return XTypedServices.ToXTypedElement<OrthographicProjectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static OrthographicProjectionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(POCXName), new NamedContentModelEntity(POIXName), new NamedContentModelEntity(UPXName), new NamedContentModelEntity(LeftXName), new NamedContentModelEntity(RightXName), new NamedContentModelEntity(BottomXName), new NamedContentModelEntity(TopXName), new NamedContentModelEntity(NearPlaneXName), new NamedContentModelEntity(FarPlaneXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OrthographicProjectionType>(this); } /// <summary> @@ -24734,6 +26252,10 @@ static OrthographicProjectionType() { public OrthographicProjectionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName POCXName = System.Xml.Linq.XName.Get("POC", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24752,6 +26274,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType POC { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName POIXName = System.Xml.Linq.XName.Get("POI", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24770,6 +26296,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType POI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UPXName = System.Xml.Linq.XName.Get("UP", ""); + /// <summary> /// <para> /// Occurrence: required @@ -24788,6 +26318,10 @@ public virtual OpenGis.ThreeDps.Core.Position3DType UP { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LeftXName = System.Xml.Linq.XName.Get("Left", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24809,6 +26343,10 @@ public virtual System.Double? Left { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RightXName = System.Xml.Linq.XName.Get("Right", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24830,6 +26368,10 @@ public virtual System.Double? Right { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BottomXName = System.Xml.Linq.XName.Get("Bottom", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24851,6 +26393,10 @@ public virtual System.Double? Bottom { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TopXName = System.Xml.Linq.XName.Get("Top", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24872,6 +26418,10 @@ public virtual System.Double? Top { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NearPlaneXName = System.Xml.Linq.XName.Get("NearPlane", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24893,6 +26443,10 @@ public virtual System.Double? NearPlane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FarPlaneXName = System.Xml.Linq.XName.Get("FarPlane", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24914,6 +26468,29 @@ public virtual System.Double? FarPlane { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OrthographicProjectionType", "http://www.opengis.net/3dps/1.0/view"); + + static OrthographicProjectionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(POCXName), new NamedContentModelEntity(POIXName), new NamedContentModelEntity(UPXName), new NamedContentModelEntity(LeftXName), new NamedContentModelEntity(RightXName), new NamedContentModelEntity(BottomXName), new NamedContentModelEntity(TopXName), new NamedContentModelEntity(NearPlaneXName), new NamedContentModelEntity(FarPlaneXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + localElementDictionary.Add(POCXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(POIXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(UPXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); + localElementDictionary.Add(LeftXName, typeof(double)); + localElementDictionary.Add(RightXName, typeof(double)); + localElementDictionary.Add(BottomXName, typeof(double)); + localElementDictionary.Add(TopXName, typeof(double)); + localElementDictionary.Add(NearPlaneXName, typeof(double)); + localElementDictionary.Add(FarPlaneXName, typeof(double)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24921,6 +26498,13 @@ public virtual System.Double? FarPlane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24941,27 +26525,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OrthographicProjectionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - localElementDictionary.Add(POCXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(POIXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(UPXName, typeof(OpenGis.ThreeDps.Core.Position3DType)); - localElementDictionary.Add(LeftXName, typeof(double)); - localElementDictionary.Add(RightXName, typeof(double)); - localElementDictionary.Add(BottomXName, typeof(double)); - localElementDictionary.Add(TopXName, typeof(double)); - localElementDictionary.Add(NearPlaneXName, typeof(double)); - localElementDictionary.Add(FarPlaneXName, typeof(double)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -24971,23 +26534,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ProjectionBaseType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProjectionBaseType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ProjectionBaseType(XElement xe) { return XTypedServices.ToXTypedElement<ProjectionBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ProjectionBaseType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ProjectionBaseType>(this); } /// <summary> @@ -24998,6 +26548,10 @@ static ProjectionBaseType() { public ProjectionBaseType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -25016,6 +26570,20 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProjectionBaseType", "http://www.opengis.net/3dps/1.0/view"); + + static ProjectionBaseType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(IdentifierXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25023,6 +26591,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25043,18 +26618,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ProjectionBaseType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -25064,30 +26627,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ImageLayerType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AvailableFormatXName = System.Xml.Linq.XName.Get("AvailableFormat", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<string> AvailableFormatField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ImageLayerType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ImageLayerType(XElement xe) { return XTypedServices.ToXTypedElement<ImageLayerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ImageLayerType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AvailableFormatXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ImageLayerType>(this); } /// <summary> @@ -25098,6 +26641,10 @@ static ImageLayerType() { public ImageLayerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", ""); + /// <summary> /// <para> /// Occurrence: required @@ -25116,6 +26663,13 @@ public virtual OpenGis.Ows.CodeType Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AvailableFormatXName = System.Xml.Linq.XName.Get("AvailableFormat", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<string> AvailableFormatField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -25146,6 +26700,24 @@ public virtual IList<string> AvailableFormat { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ImageLayerType", "http://www.opengis.net/3dps/1.0/view"); + + static ImageLayerType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(AvailableFormatXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.CodeType)); + localElementDictionary.Add(AvailableFormatXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25153,6 +26725,13 @@ public virtual IList<string> AvailableFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25173,22 +26752,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ImageLayerType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.CodeType)); - localElementDictionary.Add(AvailableFormatXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -25198,30 +26761,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class AvailableProjectionType : global::OpenGis.Ows.DescriptionType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProjectionParameterXName = System.Xml.Linq.XName.Get("ProjectionParameter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ProjectionParameterType> ProjectionParameterField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AvailableProjectionType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator AvailableProjectionType(XElement xe) { return XTypedServices.ToXTypedElement<AvailableProjectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AvailableProjectionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(ProjectionParameterXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AvailableProjectionType>(this); } /// <summary> @@ -25232,6 +26775,10 @@ static AvailableProjectionType() { public AvailableProjectionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IdentifierXName = System.Xml.Linq.XName.Get("Identifier", "http://www.opengis.net/ows/2.0"); + /// <summary> /// <para> /// Occurrence: required @@ -25250,6 +26797,13 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProjectionParameterXName = System.Xml.Linq.XName.Get("ProjectionParameter", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ProjectionParameterType> ProjectionParameterField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -25280,6 +26834,24 @@ public virtual IList<ProjectionParameterType> ProjectionParameter { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AvailableProjectionType", "http://www.opengis.net/3dps/1.0/view"); + + static AvailableProjectionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(AbstractXName), new NamedContentModelEntity(KeywordsXName), new NamedContentModelEntity(IdentifierXName), new NamedContentModelEntity(ProjectionParameterXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); + localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); + localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); + localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); + localElementDictionary.Add(ProjectionParameterXName, typeof(ProjectionParameterType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25287,6 +26859,13 @@ public virtual IList<ProjectionParameterType> ProjectionParameter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25300,28 +26879,12 @@ SchemaOrigin IXMetaData.TypeOrigin { return SchemaOrigin.Fragment; } } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AvailableProjectionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TitleXName, typeof(OpenGis.Ows.Title)); - localElementDictionary.Add(AbstractXName, typeof(OpenGis.Ows.Abstract)); - localElementDictionary.Add(KeywordsXName, typeof(OpenGis.Ows.Keywords)); - localElementDictionary.Add(IdentifierXName, typeof(OpenGis.Ows.Identifier)); - localElementDictionary.Add(ProjectionParameterXName, typeof(ProjectionParameterType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } } @@ -25332,23 +26895,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ProjectionParameterType : global::OpenGis.Ows.DomainType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName requiredXName = System.Xml.Linq.XName.Get("required", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProjectionParameterType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ProjectionParameterType(XElement xe) { return XTypedServices.ToXTypedElement<ProjectionParameterType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ProjectionParameterType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(AllowedValuesXName), new NamedContentModelEntity(AnyValueXName), new NamedContentModelEntity(NoValuesXName), new NamedContentModelEntity(ValuesReferenceXName)), new NamedContentModelEntity(DefaultValueXName), new NamedContentModelEntity(MeaningXName), new NamedContentModelEntity(DataTypeXName), new ChoiceContentModelEntity(new NamedContentModelEntity(UOMXName), new NamedContentModelEntity(ReferenceSystemXName)), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ProjectionParameterType>(this); } /// <summary> @@ -25359,6 +26909,10 @@ static ProjectionParameterType() { public ProjectionParameterType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName requiredXName = System.Xml.Linq.XName.Get("required", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25377,6 +26931,29 @@ public virtual System.Boolean? required { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProjectionParameterType", "http://www.opengis.net/3dps/1.0/view"); + + static ProjectionParameterType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(AllowedValuesXName), new NamedContentModelEntity(AnyValueXName), new NamedContentModelEntity(NoValuesXName), new NamedContentModelEntity(ValuesReferenceXName)), new NamedContentModelEntity(DefaultValueXName), new NamedContentModelEntity(MeaningXName), new NamedContentModelEntity(DataTypeXName), new ChoiceContentModelEntity(new NamedContentModelEntity(UOMXName), new NamedContentModelEntity(ReferenceSystemXName)), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Metadata", "http://www.opengis.net/ows/2.0"), System.Xml.Linq.XName.Get("AdditionalParameters", "http://www.opengis.net/ows/2.0"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AllowedValuesXName, typeof(OpenGis.Ows.AllowedValues)); + localElementDictionary.Add(AnyValueXName, typeof(OpenGis.Ows.AnyValue)); + localElementDictionary.Add(NoValuesXName, typeof(OpenGis.Ows.NoValues)); + localElementDictionary.Add(ValuesReferenceXName, typeof(OpenGis.Ows.ValuesReference)); + localElementDictionary.Add(DefaultValueXName, typeof(OpenGis.Ows.DefaultValue)); + localElementDictionary.Add(MeaningXName, typeof(OpenGis.Ows.Meaning)); + localElementDictionary.Add(DataTypeXName, typeof(OpenGis.Ows.DataType)); + localElementDictionary.Add(UOMXName, typeof(OpenGis.Ows.UOM)); + localElementDictionary.Add(ReferenceSystemXName, typeof(OpenGis.Ows.ReferenceSystem)); + localElementDictionary.Add(MetadataXName, typeof(OpenGis.Ows.Metadata)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25384,6 +26961,13 @@ public virtual System.Boolean? required { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25404,27 +26988,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ProjectionParameterType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AllowedValuesXName, typeof(OpenGis.Ows.AllowedValues)); - localElementDictionary.Add(AnyValueXName, typeof(OpenGis.Ows.AnyValue)); - localElementDictionary.Add(NoValuesXName, typeof(OpenGis.Ows.NoValues)); - localElementDictionary.Add(ValuesReferenceXName, typeof(OpenGis.Ows.ValuesReference)); - localElementDictionary.Add(DefaultValueXName, typeof(OpenGis.Ows.DefaultValue)); - localElementDictionary.Add(MeaningXName, typeof(OpenGis.Ows.Meaning)); - localElementDictionary.Add(DataTypeXName, typeof(OpenGis.Ows.DataType)); - localElementDictionary.Add(UOMXName, typeof(OpenGis.Ows.UOM)); - localElementDictionary.Add(ReferenceSystemXName, typeof(OpenGis.Ows.ReferenceSystem)); - localElementDictionary.Add(MetadataXName, typeof(OpenGis.Ows.Metadata)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -25434,49 +26997,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PortrayalType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WidthXName = System.Xml.Linq.XName.Get("Width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<int> WidthField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HeightXName = System.Xml.Linq.XName.Get("Height", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<int> HeightField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ImageLayersXName = System.Xml.Linq.XName.Get("ImageLayers", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FormatsXName = System.Xml.Linq.XName.Get("Formats", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName QualitiesXName = System.Xml.Linq.XName.Get("Qualities", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProjectionXName = System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PortrayalType", "http://www.opengis.net/3dps/1.0/view"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PortrayalType(XElement xe) { return XTypedServices.ToXTypedElement<PortrayalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PortrayalType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(WidthXName), new NamedContentModelEntity(HeightXName), new NamedContentModelEntity(ImageLayersXName), new NamedContentModelEntity(FormatsXName), new NamedContentModelEntity(QualitiesXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"), System.Xml.Linq.XName.Get("PerspectiveProjection", "http://www.opengis.net/3dps/1.0/view"), System.Xml.Linq.XName.Get("OrthographicProjection", "http://www.opengis.net/3dps/1.0/view"))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PortrayalType>(this); } /// <summary> @@ -25487,6 +27011,13 @@ static PortrayalType() { public PortrayalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WidthXName = System.Xml.Linq.XName.Get("Width", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<int> WidthField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -25517,6 +27048,13 @@ public virtual IList<int> Width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HeightXName = System.Xml.Linq.XName.Get("Height", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<int> HeightField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -25547,6 +27085,10 @@ public virtual IList<int> Height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ImageLayersXName = System.Xml.Linq.XName.Get("ImageLayers", ""); + /// <summary> /// <para> /// Occurrence: required @@ -25565,6 +27107,10 @@ public virtual string ImageLayers { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FormatsXName = System.Xml.Linq.XName.Get("Formats", ""); + /// <summary> /// <para> /// Occurrence: required @@ -25583,6 +27129,10 @@ public virtual string Formats { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QualitiesXName = System.Xml.Linq.XName.Get("Qualities", ""); + /// <summary> /// <para> /// Occurrence: required @@ -25601,6 +27151,10 @@ public virtual string Qualities { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProjectionXName = System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"); + /// <summary> /// <para> /// Occurrence: required @@ -25622,6 +27176,25 @@ public virtual Projection Projection { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PortrayalType", "http://www.opengis.net/3dps/1.0/view"); + + static PortrayalType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(WidthXName), new NamedContentModelEntity(HeightXName), new NamedContentModelEntity(ImageLayersXName), new NamedContentModelEntity(FormatsXName), new NamedContentModelEntity(QualitiesXName), new SubstitutedContentModelEntity(System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"), System.Xml.Linq.XName.Get("PerspectiveProjection", "http://www.opengis.net/3dps/1.0/view"), System.Xml.Linq.XName.Get("OrthographicProjection", "http://www.opengis.net/3dps/1.0/view"))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(WidthXName, typeof(int)); + localElementDictionary.Add(HeightXName, typeof(int)); + localElementDictionary.Add(ImageLayersXName, typeof(string)); + localElementDictionary.Add(FormatsXName, typeof(string)); + localElementDictionary.Add(QualitiesXName, typeof(string)); + localElementDictionary.Add(ProjectionXName, typeof(Projection)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25629,6 +27202,13 @@ public virtual Projection Projection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25649,45 +27229,50 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Projection : XTypedElement, IXMetaData { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PortrayalType>(this); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - private static void BuildElementDictionary() { - localElementDictionary.Add(WidthXName, typeof(int)); - localElementDictionary.Add(HeightXName, typeof(int)); - localElementDictionary.Add(ImageLayersXName, typeof(string)); - localElementDictionary.Add(FormatsXName, typeof(string)); - localElementDictionary.Add(QualitiesXName, typeof(string)); - localElementDictionary.Add(ProjectionXName, typeof(Projection)); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - } - - public partial class Projection : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ProjectionBaseType ContentField; + public static Projection Load(string xmlFile) { + return ((Projection)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"); + public static Projection Load(System.IO.TextReader xmlFile) { + return ((Projection)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + } + + public static Projection Parse(string xml) { + return ((Projection)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + } public static explicit operator Projection(XElement xe) { return (Projection)XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return new Projection(((ProjectionBaseType)(this.Content.Clone()))); + } + protected Projection(bool setNull) { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ProjectionBaseType ContentField; + public Projection() { SetInnerType(new ProjectionBaseType()); } - public Projection(ProjectionBaseType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -25706,6 +27291,19 @@ public virtual ProjectionBaseType Content { } } + private void SetInnerType(ProjectionBaseType ContentField) { + this.ContentField = ((ProjectionBaseType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + protected virtual void SetSubstitutionMember(ProjectionBaseType ContentField) { + this.ContentField = ContentField; + } + + public Projection(ProjectionBaseType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: required @@ -25723,6 +27321,8 @@ public virtual OpenGis.Ows.Identifier Identifier { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Projection", "http://www.opengis.net/3dps/1.0/view"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -25736,88 +27336,60 @@ XTypedElement IXMetaData.Content { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Element; - } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { + System.Xml.Linq.XName IXMetaData.SchemaName { get { - return LinqToXsdTypeManager.Instance; - } - } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); + return xName; + } } - public static Projection Load(string xmlFile) { - return ((Projection)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } } - public static Projection Load(System.IO.TextReader xmlFile) { - return ((Projection)(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } } + } + + public partial class PerspectiveProjection : global::OpenGis.ThreeDps.View.Projection, IXMetaData { - public static Projection Parse(string xml) { - return ((Projection)(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); + public new static PerspectiveProjection Load(string xmlFile) { + return XTypedServices.Load<PerspectiveProjection, PerspectiveProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Projection(((ProjectionBaseType)(this.Content.Clone()))); + public static PerspectiveProjection Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PerspectiveProjection, PerspectiveProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); } - private void SetInnerType(ProjectionBaseType ContentField) { - this.ContentField = ((ProjectionBaseType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + public new static PerspectiveProjection Parse(string xml) { + return XTypedServices.Parse<PerspectiveProjection, PerspectiveProjectionType>(xml, LinqToXsdTypeManager.Instance); } - protected virtual void SetSubstitutionMember(ProjectionBaseType ContentField) { - this.ContentField = ContentField; - } + public static explicit operator PerspectiveProjection(XElement xe) { return XTypedServices.ToXTypedElement<PerspectiveProjection, PerspectiveProjectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new PerspectiveProjection(((PerspectiveProjectionType)(this.Content.Clone()))); } - } - - public partial class PerspectiveProjection : global::OpenGis.ThreeDps.View.Projection, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PerspectiveProjectionType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PerspectiveProjection", "http://www.opengis.net/3dps/1.0/view"); - - public static explicit operator PerspectiveProjection(XElement xe) { return XTypedServices.ToXTypedElement<PerspectiveProjection, PerspectiveProjectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public PerspectiveProjection() : base(true) { SetInnerType(new PerspectiveProjectionType()); } - public PerspectiveProjection(PerspectiveProjectionType content) : - base(true) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -25834,6 +27406,17 @@ public override XElement Untyped { } } + private void SetInnerType(PerspectiveProjectionType ContentField) { + this.ContentField = ((PerspectiveProjectionType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + base.SetSubstitutionMember(ContentField); + } + + public PerspectiveProjection(PerspectiveProjectionType content) : + base(true) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: required @@ -25953,6 +27536,25 @@ public virtual System.Double? FarPlane { } } + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// <para> + /// Regular expression: (Identifier) + /// </para> + /// </summary> + public virtual OpenGis.Ows.Identifier Identifier { + get { + return this.ContentField.Identifier; + } + set { + this.ContentField.Identifier = value; + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PerspectiveProjection", "http://www.opengis.net/3dps/1.0/view"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -25966,6 +27568,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25986,53 +27592,36 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class OrthographicProjection : global::OpenGis.ThreeDps.View.Projection, IXMetaData { - public new static PerspectiveProjection Load(string xmlFile) { - return XTypedServices.Load<PerspectiveProjection, PerspectiveProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static PerspectiveProjection Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PerspectiveProjection, PerspectiveProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); + public new static OrthographicProjection Load(string xmlFile) { + return XTypedServices.Load<OrthographicProjection, OrthographicProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); } - public new static PerspectiveProjection Parse(string xml) { - return XTypedServices.Parse<PerspectiveProjection, PerspectiveProjectionType>(xml, LinqToXsdTypeManager.Instance); + public static OrthographicProjection Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OrthographicProjection, OrthographicProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new PerspectiveProjection(((PerspectiveProjectionType)(this.Content.Clone()))); + public new static OrthographicProjection Parse(string xml) { + return XTypedServices.Parse<OrthographicProjection, OrthographicProjectionType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(PerspectiveProjectionType ContentField) { - this.ContentField = ((PerspectiveProjectionType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - base.SetSubstitutionMember(ContentField); - } + public static explicit operator OrthographicProjection(XElement xe) { return XTypedServices.ToXTypedElement<OrthographicProjection, OrthographicProjectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new OrthographicProjection(((OrthographicProjectionType)(this.Content.Clone()))); } - } - - public partial class OrthographicProjection : global::OpenGis.ThreeDps.View.Projection, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private OrthographicProjectionType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OrthographicProjection", "http://www.opengis.net/3dps/1.0/view"); - - public static explicit operator OrthographicProjection(XElement xe) { return XTypedServices.ToXTypedElement<OrthographicProjection, OrthographicProjectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public OrthographicProjection() : base(true) { SetInnerType(new OrthographicProjectionType()); } - public OrthographicProjection(OrthographicProjectionType content) : - base(true) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -26049,6 +27638,17 @@ public override XElement Untyped { } } + private void SetInnerType(OrthographicProjectionType ContentField) { + this.ContentField = ((OrthographicProjectionType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + base.SetSubstitutionMember(ContentField); + } + + public OrthographicProjection(OrthographicProjectionType content) : + base(true) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: required @@ -26202,6 +27802,25 @@ public virtual System.Double? FarPlane { } } + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// <para> + /// Regular expression: (Identifier) + /// </para> + /// </summary> + public virtual OpenGis.Ows.Identifier Identifier { + get { + return this.ContentField.Identifier; + } + set { + this.ContentField.Identifier = value; + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OrthographicProjection", "http://www.opengis.net/3dps/1.0/view"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -26215,6 +27834,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26235,32 +27858,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public new static OrthographicProjection Load(string xmlFile) { - return XTypedServices.Load<OrthographicProjection, OrthographicProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static OrthographicProjection Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OrthographicProjection, OrthographicProjectionType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public new static OrthographicProjection Parse(string xml) { - return XTypedServices.Parse<OrthographicProjection, OrthographicProjectionType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new OrthographicProjection(((OrthographicProjectionType)(this.Content.Clone()))); - } - - private void SetInnerType(OrthographicProjectionType ContentField) { - this.ContentField = ((OrthographicProjectionType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - base.SetSubstitutionMember(ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -26271,43 +27868,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public Projection Projection { get {return rootObject as Projection; } } - - public PerspectiveProjection PerspectiveProjection { get {return rootObject as PerspectiveProjection; } } - - public OrthographicProjection OrthographicProjection { get {return rootObject as OrthographicProjection; } } - private XRootNamespace() { } - public XRootNamespace(Projection root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PerspectiveProjection root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(OrthographicProjection root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -26404,5 +27967,41 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(Projection root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Projection Projection { get {return rootObject as Projection; } } + + public XRootNamespace(PerspectiveProjection root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public PerspectiveProjection PerspectiveProjection { get {return rootObject as PerspectiveProjection; } } + + public XRootNamespace(OrthographicProjection root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public OrthographicProjection OrthographicProjection { get {return rootObject as OrthographicProjection; } } } } diff --git a/GeneratedSchemaLibraries/LandXML/v1.2/LandXML-1.2.xsd.cs b/GeneratedSchemaLibraries/LandXML/v1.2/LandXML-1.2.xsd.cs index 072ccd27..4664caaa 100644 --- a/GeneratedSchemaLibraries/LandXML/v1.2/LandXML-1.2.xsd.cs +++ b/GeneratedSchemaLibraries/LandXML/v1.2/LandXML-1.2.xsd.cs @@ -28,159 +28,34 @@ namespace LandXml.v1_2 { /// </summary> public partial class LandXML : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Units> UnitsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CoordinateSystemXName = System.Xml.Linq.XName.Get("CoordinateSystem", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CoordinateSystem> CoordinateSystemField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProjectXName = System.Xml.Linq.XName.Get("Project", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Project> ProjectField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ApplicationXName = System.Xml.Linq.XName.Get("Application", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Application> ApplicationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AlignmentsXName = System.Xml.Linq.XName.Get("Alignments", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Alignments> AlignmentsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CgPointsXName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CgPoints> CgPointsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AmendmentXName = System.Xml.Linq.XName.Get("Amendment", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Amendment> AmendmentField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GradeModelXName = System.Xml.Linq.XName.Get("GradeModel", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<GradeModel> GradeModelField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MonumentsXName = System.Xml.Linq.XName.Get("Monuments", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Monuments> MonumentsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParcelsXName = System.Xml.Linq.XName.Get("Parcels", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Parcels> ParcelsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PlanFeaturesXName = System.Xml.Linq.XName.Get("PlanFeatures", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PlanFeatures> PlanFeaturesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PipeNetworksXName = System.Xml.Linq.XName.Get("PipeNetworks", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipeNetworks> PipeNetworksField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RoadwaysXName = System.Xml.Linq.XName.Get("Roadways", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Roadways> RoadwaysField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurfacesXName = System.Xml.Linq.XName.Get("Surfaces", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Surfaces> SurfacesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurveyXName = System.Xml.Linq.XName.Get("Survey", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Survey> SurveyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureDictionaryXName = System.Xml.Linq.XName.Get("FeatureDictionary", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FeatureDictionary> FeatureDictionaryField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeXName = System.Xml.Linq.XName.Get("time", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName languageXName = System.Xml.Linq.XName.Get("language", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName readOnlyXName = System.Xml.Linq.XName.Get("readOnly", ""); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LandXMLIdXName = System.Xml.Linq.XName.Get("LandXMLId", ""); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName crcXName = System.Xml.Linq.XName.Get("crc", ""); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LandXML", "http://www.landxml.org/schema/LandXML-1.2"); + public static LandXML Load(string xmlFile) { + return XTypedServices.Load<LandXML>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + public static LandXML Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<LandXML>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; + public static LandXML Parse(string xml) { + return XTypedServices.Parse<LandXML>(xml); + } public static explicit operator LandXML(XElement xe) { return XTypedServices.ToXTypedElement<LandXML>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LandXML() { - BuildElementDictionary(); - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LandXML>(this); } /// <summary> @@ -191,6 +66,13 @@ static LandXML() { public LandXML() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Units> UnitsField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -221,6 +103,13 @@ public virtual IList<Units> Units { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CoordinateSystemXName = System.Xml.Linq.XName.Get("CoordinateSystem", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CoordinateSystem> CoordinateSystemField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -251,6 +140,13 @@ public virtual IList<CoordinateSystem> CoordinateSystem { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProjectXName = System.Xml.Linq.XName.Get("Project", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Project> ProjectField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -281,6 +177,13 @@ public virtual IList<Project> Project { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ApplicationXName = System.Xml.Linq.XName.Get("Application", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Application> ApplicationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -311,6 +214,13 @@ public virtual IList<Application> Application { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AlignmentsXName = System.Xml.Linq.XName.Get("Alignments", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Alignments> AlignmentsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -341,6 +251,13 @@ public virtual IList<Alignments> Alignments { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CgPointsXName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CgPoints> CgPointsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -371,6 +288,13 @@ public virtual IList<CgPoints> CgPoints { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AmendmentXName = System.Xml.Linq.XName.Get("Amendment", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Amendment> AmendmentField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -401,6 +325,13 @@ public virtual IList<Amendment> Amendment { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GradeModelXName = System.Xml.Linq.XName.Get("GradeModel", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<GradeModel> GradeModelField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -431,6 +362,13 @@ public virtual IList<GradeModel> GradeModel { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MonumentsXName = System.Xml.Linq.XName.Get("Monuments", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Monuments> MonumentsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -461,6 +399,13 @@ public virtual IList<Monuments> Monuments { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParcelsXName = System.Xml.Linq.XName.Get("Parcels", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Parcels> ParcelsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -491,6 +436,13 @@ public virtual IList<Parcels> Parcels { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PlanFeaturesXName = System.Xml.Linq.XName.Get("PlanFeatures", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PlanFeatures> PlanFeaturesField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -521,6 +473,13 @@ public virtual IList<PlanFeatures> PlanFeatures { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PipeNetworksXName = System.Xml.Linq.XName.Get("PipeNetworks", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipeNetworks> PipeNetworksField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -551,6 +510,13 @@ public virtual IList<PipeNetworks> PipeNetworks { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RoadwaysXName = System.Xml.Linq.XName.Get("Roadways", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Roadways> RoadwaysField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -581,6 +547,13 @@ public virtual IList<Roadways> Roadways { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurfacesXName = System.Xml.Linq.XName.Get("Surfaces", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Surfaces> SurfacesField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -611,6 +584,13 @@ public virtual IList<Surfaces> Surfaces { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurveyXName = System.Xml.Linq.XName.Get("Survey", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Survey> SurveyField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -641,6 +621,13 @@ public virtual IList<Survey> Survey { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureDictionaryXName = System.Xml.Linq.XName.Get("FeatureDictionary", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FeatureDictionary> FeatureDictionaryField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -682,6 +669,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); + /// <summary> /// <para> /// Occurrence: required @@ -697,6 +688,10 @@ public virtual System.DateTime date { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeXName = System.Xml.Linq.XName.Get("time", ""); + /// <summary> /// <para> /// Occurrence: required @@ -712,6 +707,10 @@ public virtual System.DateTime time { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Occurrence: required @@ -727,6 +726,10 @@ public virtual string version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName languageXName = System.Xml.Linq.XName.Get("language", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -735,6 +738,9 @@ public virtual string version { public virtual string language { get { XAttribute x = this.Attribute(languageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -742,6 +748,10 @@ public virtual string language { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName readOnlyXName = System.Xml.Linq.XName.Get("readOnly", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -760,6 +770,10 @@ public virtual System.Boolean? readOnly { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LandXMLIdXName = System.Xml.Linq.XName.Get("LandXMLId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -778,6 +792,10 @@ public virtual System.Int32? LandXMLId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName crcXName = System.Xml.Linq.XName.Get("crc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -796,61 +814,15 @@ public virtual System.Decimal? crc { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LandXML", "http://www.landxml.org/schema/LandXML-1.2"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Element; - } + static LandXML() { + BuildElementDictionary(); + InitFSM(); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static LandXML Load(string xmlFile) { - return XTypedServices.Load<LandXML>(xmlFile); - } - - public static LandXML Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<LandXML>(xmlFile); - } - - public static LandXML Parse(string xml) { - return XTypedServices.Parse<LandXML>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LandXML>(this); - } + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); private static void BuildElementDictionary() { localElementDictionary.Add(UnitsXName, typeof(Units)); @@ -871,6 +843,16 @@ private static void BuildElementDictionary() { localElementDictionary.Add(FeatureDictionaryXName, typeof(FeatureDictionary)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + FSM IXMetaData.GetValidationStates() { return validationStates; } @@ -915,6 +897,27 @@ private static void InitFSM() { 31, 34}), transitions); } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } } /// <summary> @@ -924,64 +927,34 @@ private static void InitFSM() { /// </summary> public partial class CgPoints : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CgPointXName = System.Xml.Linq.XName.Get("CgPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CgPoint> CgPointField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CgPoints1XName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CgPoints> CgPoints1Field; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneNumberXName = System.Xml.Linq.XName.Get("zoneNumber", ""); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); + public static CgPoints Load(string xmlFile) { + return XTypedServices.Load<CgPoints>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + public static CgPoints Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CgPoints>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public static CgPoints Parse(string xml) { + return XTypedServices.Parse<CgPoints>(xml); + } public static explicit operator CgPoints(XElement xe) { return XTypedServices.ToXTypedElement<CgPoints>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CgPoints() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CgPointXName), new NamedContentModelEntity(CgPoints1XName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CgPoints>(this); } /// <summary> @@ -992,6 +965,13 @@ static CgPoints() { public CgPoints() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CgPointXName = System.Xml.Linq.XName.Get("CgPoint", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CgPoint> CgPointField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -1022,6 +1002,13 @@ public virtual IList<CgPoint> CgPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CgPoints1XName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CgPoints> CgPoints1Field; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -1052,6 +1039,13 @@ public virtual IList<CgPoints> CgPoints1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -1082,6 +1076,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1090,6 +1088,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1097,6 +1098,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1105,6 +1110,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1112,6 +1120,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1123,13 +1135,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1138,6 +1159,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1145,6 +1169,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneNumberXName = System.Xml.Linq.XName.Get("zoneNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1163,21 +1191,49 @@ public virtual System.Decimal? zoneNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); + + static CgPoints() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CgPointXName), new NamedContentModelEntity(CgPoints1XName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CgPointXName, typeof(CgPoint)); + localElementDictionary.Add(CgPoints1XName, typeof(CgPoints)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1185,6 +1241,13 @@ public virtual string DTMAttribute { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1205,6 +1268,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class CgPoint : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1218,145 +1284,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CgPoints Load(string xmlFile) { - return XTypedServices.Load<CgPoints>(xmlFile); + public static CgPoint Load(string xmlFile) { + return XTypedServices.Load<CgPoint>(xmlFile); } - public static CgPoints Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CgPoints>(xmlFile); + public static CgPoint Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CgPoint>(xmlFile); } - public static CgPoints Parse(string xml) { - return XTypedServices.Parse<CgPoints>(xml); + public static CgPoint Parse(string xml) { + return XTypedServices.Parse<CgPoint>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CgPoints>(this); - } + public static explicit operator CgPoint(XElement xe) { return XTypedServices.ToXTypedElement<CgPoint>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CgPointXName, typeof(CgPoint)); - localElementDictionary.Add(CgPoints1XName, typeof(CgPoints)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CgPoint>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public CgPoint() { } - } - - public partial class CgPoint : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyOrderXName = System.Xml.Linq.XName.Get("surveyOrder", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntSurvXName = System.Xml.Linq.XName.Get("pntSurv", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneNumberXName = System.Xml.Linq.XName.Get("zoneNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyHorizontalOrderXName = System.Xml.Linq.XName.Get("surveyHorizontalOrder", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyVerticalOrderXName = System.Xml.Linq.XName.Get("surveyVerticalOrder", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName localUncertainityXName = System.Xml.Linq.XName.Get("localUncertainity", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName positionalUncertainityXName = System.Xml.Linq.XName.Get("positionalUncertainity", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CgPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator CgPoint(XElement xe) { return XTypedServices.ToXTypedElement<CgPoint>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public CgPoint() { - } + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); /// <summary> /// <para> @@ -1366,6 +1317,9 @@ public CgPoint() { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1373,6 +1327,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyOrderXName = System.Xml.Linq.XName.Get("surveyOrder", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1381,6 +1339,9 @@ public virtual string oID { public virtual string surveyOrder { get { XAttribute x = this.Attribute(surveyOrderXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1388,21 +1349,37 @@ public virtual string surveyOrder { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntSurvXName = System.Xml.Linq.XName.Get("pntSurv", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string pntSurv { + public virtual LandXml.v1_2.survPntType? pntSurv { get { XAttribute x = this.Attribute(pntSurvXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.survPntType)(Enum.Parse(typeof(LandXml.v1_2.survPntType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.survPntTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pntSurvXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pntSurvXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pntSurvXName, value.ToString(), "pntSurv", global::LandXml.v1_2.survPntTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneNumberXName = System.Xml.Linq.XName.Get("zoneNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1421,6 +1398,10 @@ public virtual System.Decimal? zoneNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyHorizontalOrderXName = System.Xml.Linq.XName.Get("surveyHorizontalOrder", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1429,6 +1410,9 @@ public virtual System.Decimal? zoneNumber { public virtual string surveyHorizontalOrder { get { XAttribute x = this.Attribute(surveyHorizontalOrderXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1436,6 +1420,10 @@ public virtual string surveyHorizontalOrder { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyVerticalOrderXName = System.Xml.Linq.XName.Get("surveyVerticalOrder", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1444,6 +1432,9 @@ public virtual string surveyHorizontalOrder { public virtual string surveyVerticalOrder { get { XAttribute x = this.Attribute(surveyVerticalOrderXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1451,6 +1442,10 @@ public virtual string surveyVerticalOrder { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName localUncertainityXName = System.Xml.Linq.XName.Get("localUncertainity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1469,6 +1464,10 @@ public virtual System.Double? localUncertainity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName positionalUncertainityXName = System.Xml.Linq.XName.Get("positionalUncertainity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1487,6 +1486,10 @@ public virtual System.Double? positionalUncertainity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1495,6 +1498,9 @@ public virtual System.Double? positionalUncertainity { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1502,6 +1508,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1510,6 +1520,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1517,6 +1530,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1525,6 +1542,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1532,6 +1552,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1543,13 +1567,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1558,6 +1591,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1565,6 +1601,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1573,6 +1613,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1580,6 +1623,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1591,28 +1638,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1631,21 +1699,37 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1664,6 +1748,10 @@ public virtual System.DateTime? determinedTimeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1682,6 +1770,10 @@ public virtual System.Double? ellipsoidHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1700,6 +1792,10 @@ public virtual System.Double? latitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1718,6 +1814,10 @@ public virtual System.Double? longitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1726,6 +1826,9 @@ public virtual System.Double? longitude { public virtual string zone { get { XAttribute x = this.Attribute(zoneXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1733,6 +1836,10 @@ public virtual string zone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1751,6 +1858,10 @@ public virtual System.Double? northingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1769,6 +1880,10 @@ public virtual System.Double? eastingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1787,6 +1902,12 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CgPoint", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1807,6 +1928,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class DocFileRef : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1820,51 +1944,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CgPoint Load(string xmlFile) { - return XTypedServices.Load<CgPoint>(xmlFile); + public static DocFileRef Load(string xmlFile) { + return XTypedServices.Load<DocFileRef>(xmlFile); } - public static CgPoint Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CgPoint>(xmlFile); + public static DocFileRef Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DocFileRef>(xmlFile); } - public static CgPoint Parse(string xml) { - return XTypedServices.Parse<CgPoint>(xml); + public static DocFileRef Parse(string xml) { + return XTypedServices.Parse<DocFileRef>(xml); } + public static explicit operator DocFileRef(XElement xe) { return XTypedServices.ToXTypedElement<DocFileRef>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CgPoint>(this); + return XTypedServices.CloneXTypedElement<DocFileRef>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public DocFileRef() { } - } - - public partial class DocFileRef : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName locationXName = System.Xml.Linq.XName.Get("location", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fileTypeXName = System.Xml.Linq.XName.Get("fileType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fileFormatXName = System.Xml.Linq.XName.Get("fileFormat", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DocFileRef", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator DocFileRef(XElement xe) { return XTypedServices.ToXTypedElement<DocFileRef>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public DocFileRef() { - } + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); /// <summary> /// <para> @@ -1881,6 +1984,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName locationXName = System.Xml.Linq.XName.Get("location", ""); + /// <summary> /// <para> /// Occurrence: required @@ -1896,6 +2003,10 @@ public virtual System.Uri location { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fileTypeXName = System.Xml.Linq.XName.Get("fileType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1904,6 +2015,9 @@ public virtual System.Uri location { public virtual string fileType { get { XAttribute x = this.Attribute(fileTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1911,6 +2025,10 @@ public virtual string fileType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fileFormatXName = System.Xml.Linq.XName.Get("fileFormat", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -1919,6 +2037,9 @@ public virtual string fileType { public virtual string fileFormat { get { XAttribute x = this.Attribute(fileFormatXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -1926,6 +2047,12 @@ public virtual string fileFormat { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DocFileRef", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1946,6 +2073,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Property : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -1959,43 +2089,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DocFileRef Load(string xmlFile) { - return XTypedServices.Load<DocFileRef>(xmlFile); + public static Property Load(string xmlFile) { + return XTypedServices.Load<Property>(xmlFile); } - public static DocFileRef Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DocFileRef>(xmlFile); + public static Property Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Property>(xmlFile); } - public static DocFileRef Parse(string xml) { - return XTypedServices.Parse<DocFileRef>(xml); + public static Property Parse(string xml) { + return XTypedServices.Parse<Property>(xml); } + public static explicit operator Property(XElement xe) { return XTypedServices.ToXTypedElement<Property>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DocFileRef>(this); + return XTypedServices.CloneXTypedElement<Property>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public Property() { } - } - - public partial class Property : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName labelXName = System.Xml.Linq.XName.Get("label", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName valueXName = System.Xml.Linq.XName.Get("value", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Property(XElement xe) { return XTypedServices.ToXTypedElement<Property>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Property() { - } + protected internal static readonly System.Xml.Linq.XName labelXName = System.Xml.Linq.XName.Get("label", ""); /// <summary> /// <para> @@ -2012,8 +2129,12 @@ public virtual string label { } } - /// <summary> - /// <para> + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName valueXName = System.Xml.Linq.XName.Get("value", ""); + + /// <summary> + /// <para> /// Occurrence: required /// </para> /// </summary> @@ -2027,6 +2148,12 @@ public virtual string value { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2047,6 +2174,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Property*, DocFileRef*, Feature1*) + /// </para> + /// </summary> + public partial class Feature : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -2060,80 +2195,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Property Load(string xmlFile) { - return XTypedServices.Load<Property>(xmlFile); - } - - public static Property Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Property>(xmlFile); - } - - public static Property Parse(string xml) { - return XTypedServices.Parse<Property>(xml); + public static Feature Load(string xmlFile) { + return XTypedServices.Load<Feature>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Property>(this); + public static Feature Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Feature>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Feature Parse(string xml) { + return XTypedServices.Parse<Feature>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Property*, DocFileRef*, Feature1*) - /// </para> - /// </summary> - public partial class Feature : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Property> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DocFileRefXName = System.Xml.Linq.XName.Get("DocFileRef", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DocFileRef> DocFileRefField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName Feature1XName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> Feature1Field; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sourceXName = System.Xml.Linq.XName.Get("source", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Feature(XElement xe) { return XTypedServices.ToXTypedElement<Feature>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Feature() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(DocFileRefXName), new NamedContentModelEntity(Feature1XName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Feature>(this); } /// <summary> @@ -2144,6 +2221,13 @@ static Feature() { public Feature() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Property> PropertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2174,6 +2258,13 @@ public virtual IList<Property> Property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DocFileRefXName = System.Xml.Linq.XName.Get("DocFileRef", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DocFileRef> DocFileRefField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2204,6 +2295,13 @@ public virtual IList<DocFileRef> DocFileRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName Feature1XName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> Feature1Field; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2234,6 +2332,10 @@ public virtual IList<Feature> Feature1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2242,6 +2344,9 @@ public virtual IList<Feature> Feature1 { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2249,6 +2354,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2257,6 +2366,9 @@ public virtual string name { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2264,6 +2376,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sourceXName = System.Xml.Linq.XName.Get("source", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2272,6 +2388,9 @@ public virtual string code { public virtual string source { get { XAttribute x = this.Attribute(sourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -2279,6 +2398,22 @@ public virtual string source { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + static Feature() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(DocFileRefXName), new NamedContentModelEntity(Feature1XName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(Property)); + localElementDictionary.Add(DocFileRefXName, typeof(DocFileRef)); + localElementDictionary.Add(Feature1XName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2286,6 +2421,13 @@ public virtual string source { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2306,6 +2448,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (DocFileRef*) + /// </para> + /// </summary> + public partial class FeatureDictionary : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -2319,68 +2469,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Feature Load(string xmlFile) { - return XTypedServices.Load<Feature>(xmlFile); - } - - public static Feature Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Feature>(xmlFile); - } - - public static Feature Parse(string xml) { - return XTypedServices.Parse<Feature>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Feature>(this); + public static FeatureDictionary Load(string xmlFile) { + return XTypedServices.Load<FeatureDictionary>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(Property)); - localElementDictionary.Add(DocFileRefXName, typeof(DocFileRef)); - localElementDictionary.Add(Feature1XName, typeof(Feature)); + public static FeatureDictionary Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<FeatureDictionary>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static FeatureDictionary Parse(string xml) { + return XTypedServices.Parse<FeatureDictionary>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (DocFileRef*) - /// </para> - /// </summary> - public partial class FeatureDictionary : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DocFileRefXName = System.Xml.Linq.XName.Get("DocFileRef", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DocFileRef> DocFileRefField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FeatureDictionary", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator FeatureDictionary(XElement xe) { return XTypedServices.ToXTypedElement<FeatureDictionary>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static FeatureDictionary() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DocFileRefXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FeatureDictionary>(this); } /// <summary> @@ -2391,6 +2495,13 @@ static FeatureDictionary() { public FeatureDictionary() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DocFileRefXName = System.Xml.Linq.XName.Get("DocFileRef", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DocFileRef> DocFileRefField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2421,6 +2532,10 @@ public virtual IList<DocFileRef> DocFileRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -2436,6 +2551,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2444,6 +2563,9 @@ public virtual string name { public virtual string version { get { XAttribute x = this.Attribute(versionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2451,6 +2573,20 @@ public virtual string version { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FeatureDictionary", "http://www.landxml.org/schema/LandXML-1.2"); + + static FeatureDictionary() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DocFileRefXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DocFileRefXName, typeof(DocFileRef)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2458,6 +2594,13 @@ public virtual string version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2478,6 +2621,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class PntList2D : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -2491,43 +2637,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static FeatureDictionary Load(string xmlFile) { - return XTypedServices.Load<FeatureDictionary>(xmlFile); + public static PntList2D Load(string xmlFile) { + return XTypedServices.Load<PntList2D>(xmlFile); } - public static FeatureDictionary Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<FeatureDictionary>(xmlFile); + public static PntList2D Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PntList2D>(xmlFile); } - public static FeatureDictionary Parse(string xml) { - return XTypedServices.Parse<FeatureDictionary>(xml); + public static PntList2D Parse(string xml) { + return XTypedServices.Parse<PntList2D>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FeatureDictionary>(this); - } + public static explicit operator PntList2D(XElement xe) { return XTypedServices.ToXTypedElement<PntList2D>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(DocFileRefXName, typeof(DocFileRef)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PntList2D>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public PntList2D() { } - } - - public partial class PntList2D : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator PntList2D(XElement xe) { return XTypedServices.ToXTypedElement<PntList2D>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PntList2D() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<double> TypedValue { get { @@ -2539,6 +2672,12 @@ public virtual IList<double> TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2560,6 +2699,18 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } + private class PntList2D1LocalType { + + private PntList2D1LocalType() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(2)), null, 0, 0, null, null, 0, null, null, 2, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); + } + } + + public partial class PntList3D : XTypedElement, IXMetaData { + public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); } @@ -2572,48 +2723,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PntList2D Load(string xmlFile) { - return XTypedServices.Load<PntList2D>(xmlFile); + public static PntList3D Load(string xmlFile) { + return XTypedServices.Load<PntList3D>(xmlFile); } - public static PntList2D Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PntList2D>(xmlFile); + public static PntList3D Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PntList3D>(xmlFile); } - public static PntList2D Parse(string xml) { - return XTypedServices.Parse<PntList2D>(xml); + public static PntList3D Parse(string xml) { + return XTypedServices.Parse<PntList3D>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PntList2D>(this); - } + public static explicit operator PntList3D(XElement xe) { return XTypedServices.ToXTypedElement<PntList3D>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PntList3D>(this); } - private class PntList2D1LocalType { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(2)), null, 0, 0, null, null, 0, null, null, 2, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - - private PntList2D1LocalType() { - } + public PntList3D() { } - } - - public partial class PntList3D : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator PntList3D(XElement xe) { return XTypedServices.ToXTypedElement<PntList3D>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PntList3D() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<double> TypedValue { get { @@ -2625,6 +2758,12 @@ public virtual IList<double> TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2646,45 +2785,13 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static PntList3D Load(string xmlFile) { - return XTypedServices.Load<PntList3D>(xmlFile); - } - - public static PntList3D Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PntList3D>(xmlFile); - } - - public static PntList3D Parse(string xml) { - return XTypedServices.Parse<PntList3D>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PntList3D>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - private class PntList3D1LocalType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(2)), null, 0, 0, null, null, 0, null, null, 3, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - private PntList3D1LocalType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(2)), null, 0, 0, null, null, 0, null, null, 3, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); } } @@ -2695,78 +2802,34 @@ private PntList3D1LocalType() { /// </summary> public partial class IrregularLine : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dirXName = System.Xml.Linq.XName.Get("dir", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sourceXName = System.Xml.Linq.XName.Get("source", ""); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName noteXName = System.Xml.Linq.XName.Get("note", ""); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IrregularLine", "http://www.landxml.org/schema/LandXML-1.2"); + public static IrregularLine Load(string xmlFile) { + return XTypedServices.Load<IrregularLine>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + public static IrregularLine Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<IrregularLine>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public static IrregularLine Parse(string xml) { + return XTypedServices.Parse<IrregularLine>(xml); + } public static explicit operator IrregularLine(XElement xe) { return XTypedServices.ToXTypedElement<IrregularLine>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static IrregularLine() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(EndXName), new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<IrregularLine>(this); } /// <summary> @@ -2777,6 +2840,10 @@ static IrregularLine() { public IrregularLine() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -2795,6 +2862,10 @@ public virtual Start Start { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -2813,6 +2884,10 @@ public virtual End End { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -2827,6 +2902,9 @@ public virtual End End { public virtual PntList2D PntList2D { get { XElement x = this.GetElement(PntList2DXName); + if ((x == null)) { + return null; + } return ((PntList2D)(x)); } set { @@ -2834,6 +2912,10 @@ public virtual PntList2D PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -2848,6 +2930,9 @@ public virtual PntList2D PntList2D { public virtual PntList3D PntList3D { get { XElement x = this.GetElement(PntList3DXName); + if ((x == null)) { + return null; + } return ((PntList3D)(x)); } set { @@ -2855,6 +2940,13 @@ public virtual PntList3D PntList3D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2885,6 +2977,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2893,6 +2989,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2900,6 +2999,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dirXName = System.Xml.Linq.XName.Get("dir", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2918,6 +3021,10 @@ public virtual System.Double? dir { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2936,6 +3043,10 @@ public virtual System.Double? length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2944,6 +3055,9 @@ public virtual System.Double? length { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2951,6 +3065,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2969,6 +3087,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2980,13 +3102,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2995,6 +3126,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3002,6 +3136,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sourceXName = System.Xml.Linq.XName.Get("source", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3010,6 +3148,9 @@ public virtual string oID { public virtual string source { get { XAttribute x = this.Attribute(sourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3017,6 +3158,10 @@ public virtual string source { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName noteXName = System.Xml.Linq.XName.Get("note", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3025,6 +3170,9 @@ public virtual string source { public virtual string note { get { XAttribute x = this.Attribute(noteXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3032,6 +3180,24 @@ public virtual string note { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("IrregularLine", "http://www.landxml.org/schema/LandXML-1.2"); + + static IrregularLine() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(EndXName), new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartXName, typeof(Start)); + localElementDictionary.Add(EndXName, typeof(End)); + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3039,6 +3205,13 @@ public virtual string note { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3059,6 +3232,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Chain : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -3072,91 +3248,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static IrregularLine Load(string xmlFile) { - return XTypedServices.Load<IrregularLine>(xmlFile); + public static Chain Load(string xmlFile) { + return XTypedServices.Load<Chain>(xmlFile); } - public static IrregularLine Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<IrregularLine>(xmlFile); + public static Chain Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Chain>(xmlFile); } - public static IrregularLine Parse(string xml) { - return XTypedServices.Parse<IrregularLine>(xml); + public static Chain Parse(string xml) { + return XTypedServices.Parse<Chain>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<IrregularLine>(this); - } + public static explicit operator Chain(XElement xe) { return XTypedServices.ToXTypedElement<Chain>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StartXName, typeof(Start)); - localElementDictionary.Add(EndXName, typeof(End)); - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Chain>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public Chain() { } - } - - public partial class Chain : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Chain", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Chain(XElement xe) { return XTypedServices.ToXTypedElement<Chain>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Chain() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<string> TypedValue { get { @@ -3168,6 +3283,10 @@ public virtual IList<string> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3176,6 +3295,9 @@ public virtual IList<string> TypedValue { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3183,6 +3305,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3191,6 +3317,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3198,6 +3327,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3206,6 +3339,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3213,6 +3349,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3224,13 +3364,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3242,28 +3391,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3282,21 +3452,37 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3315,6 +3501,10 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3323,6 +3513,9 @@ public virtual System.Double? station { public virtual string zone { get { XAttribute x = this.Attribute(zoneXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3330,6 +3523,10 @@ public virtual string zone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3341,13 +3538,24 @@ public virtual LandXml.v1_2.observationStatusType? status { if ((x == null)) { return null; } - return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(statusXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(statusXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(statusXName, value.ToString(), "status", global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Chain", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3368,6 +3576,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Start | Center | End | PI? | Feature*)+ + /// </para> + /// </summary> + public partial class Curve : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -3381,150 +3597,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Chain Load(string xmlFile) { - return XTypedServices.Load<Chain>(xmlFile); - } - - public static Chain Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Chain>(xmlFile); - } - - public static Chain Parse(string xml) { - return XTypedServices.Parse<Chain>(xml); + public static Curve Load(string xmlFile) { + return XTypedServices.Load<Curve>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Chain>(this); + public static Curve Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Curve>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Curve Parse(string xml) { + return XTypedServices.Parse<Curve>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Start | Center | End | PI? | Feature*)+ - /// </para> - /// </summary> - public partial class Curve : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Start> StartField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Center> CenterField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<End> EndField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PIXName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PI> PIField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rotXName = System.Xml.Linq.XName.Get("rot", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName chordXName = System.Xml.Linq.XName.Get("chord", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName crvTypeXName = System.Xml.Linq.XName.Get("crvType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName deltaXName = System.Xml.Linq.XName.Get("delta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dirEndXName = System.Xml.Linq.XName.Get("dirEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dirStartXName = System.Xml.Linq.XName.Get("dirStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName externalXName = System.Xml.Linq.XName.Get("external", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName midOrdXName = System.Xml.Linq.XName.Get("midOrd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName radiusXName = System.Xml.Linq.XName.Get("radius", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName tangentXName = System.Xml.Linq.XName.Get("tangent", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName noteXName = System.Xml.Linq.XName.Get("note", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Curve(XElement xe) { return XTypedServices.ToXTypedElement<Curve>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Curve() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(CenterXName), new NamedContentModelEntity(EndXName), new NamedContentModelEntity(PIXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Curve>(this); } /// <summary> @@ -3535,6 +3623,13 @@ static Curve() { public Curve() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Start> StartField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -3565,6 +3660,13 @@ public virtual IList<Start> Start { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Center> CenterField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -3595,6 +3697,13 @@ public virtual IList<Center> Center { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<End> EndField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -3625,6 +3734,13 @@ public virtual IList<End> End { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PIXName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PI> PIField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -3655,6 +3771,13 @@ public virtual IList<PI> PI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -3685,6 +3808,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rotXName = System.Xml.Linq.XName.Get("rot", ""); + /// <summary> /// <para> /// Occurrence: required @@ -3693,13 +3820,17 @@ public virtual IList<Feature> Feature { public virtual LandXml.v1_2.clockwise rot { get { XAttribute x = this.Attribute(rotXName); - return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.clockwiseValidator.TypeDefinition)))); } set { - this.SetAttribute(rotXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(rotXName, value.ToString(), "rot", global::LandXml.v1_2.clockwiseValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName chordXName = System.Xml.Linq.XName.Get("chord", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3718,6 +3849,10 @@ public virtual System.Double? chord { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName crvTypeXName = System.Xml.Linq.XName.Get("crvType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3729,13 +3864,22 @@ public virtual LandXml.v1_2.curveType? crvType { if ((x == null)) { return null; } - return ((LandXml.v1_2.curveType)(Enum.Parse(typeof(LandXml.v1_2.curveType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.curveType)(Enum.Parse(typeof(LandXml.v1_2.curveType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.curveTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(crvTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(crvTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(crvTypeXName, value.ToString(), "crvType", global::LandXml.v1_2.curveTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName deltaXName = System.Xml.Linq.XName.Get("delta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3754,6 +3898,10 @@ public virtual System.Double? delta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3762,6 +3910,9 @@ public virtual System.Double? delta { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3769,6 +3920,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dirEndXName = System.Xml.Linq.XName.Get("dirEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3787,6 +3942,10 @@ public virtual System.Double? dirEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dirStartXName = System.Xml.Linq.XName.Get("dirStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3805,6 +3964,10 @@ public virtual System.Double? dirStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName externalXName = System.Xml.Linq.XName.Get("external", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3823,6 +3986,10 @@ public virtual System.Double? external { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3841,6 +4008,10 @@ public virtual System.Double? length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName midOrdXName = System.Xml.Linq.XName.Get("midOrd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3859,6 +4030,10 @@ public virtual System.Double? midOrd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3867,6 +4042,9 @@ public virtual System.Double? midOrd { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3874,6 +4052,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName radiusXName = System.Xml.Linq.XName.Get("radius", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3892,6 +4074,10 @@ public virtual System.Double? radius { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3910,6 +4096,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3921,13 +4111,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName tangentXName = System.Xml.Linq.XName.Get("tangent", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3946,6 +4145,10 @@ public virtual System.Double? tangent { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3954,6 +4157,9 @@ public virtual System.Double? tangent { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3961,6 +4167,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName noteXName = System.Xml.Linq.XName.Get("note", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -3969,6 +4179,9 @@ public virtual string oID { public virtual string note { get { XAttribute x = this.Attribute(noteXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -3976,6 +4189,24 @@ public virtual string note { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); + + static Curve() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(CenterXName), new NamedContentModelEntity(EndXName), new NamedContentModelEntity(PIXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartXName, typeof(Start)); + localElementDictionary.Add(CenterXName, typeof(Center)); + localElementDictionary.Add(EndXName, typeof(End)); + localElementDictionary.Add(PIXName, typeof(PI)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3983,6 +4214,13 @@ public virtual string note { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4003,6 +4241,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((Start | PI | End)+, Feature*) + /// </para> + /// </summary> + public partial class Spiral : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -4016,169 +4262,39 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Curve Load(string xmlFile) { - return XTypedServices.Load<Curve>(xmlFile); + public static Spiral Load(string xmlFile) { + return XTypedServices.Load<Spiral>(xmlFile); } - public static Curve Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Curve>(xmlFile); + public static Spiral Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Spiral>(xmlFile); } - public static Curve Parse(string xml) { - return XTypedServices.Parse<Curve>(xml); + public static Spiral Parse(string xml) { + return XTypedServices.Parse<Spiral>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Curve>(this); - } + public static explicit operator Spiral(XElement xe) { return XTypedServices.ToXTypedElement<Spiral>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StartXName, typeof(Start)); - localElementDictionary.Add(CenterXName, typeof(Center)); - localElementDictionary.Add(EndXName, typeof(End)); - localElementDictionary.Add(PIXName, typeof(PI)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Spiral>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: ((Start | PI | End)+, Feature*) + /// </para> + /// </summary> + public Spiral() { } - } - - /// <summary> - /// <para> - /// Regular expression: ((Start | PI | End)+, Feature*) - /// </para> - /// </summary> - public partial class Spiral : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Start> StartField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PIXName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PI> PIField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<End> EndField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName radiusEndXName = System.Xml.Linq.XName.Get("radiusEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName radiusStartXName = System.Xml.Linq.XName.Get("radiusStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rotXName = System.Xml.Linq.XName.Get("rot", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName spiTypeXName = System.Xml.Linq.XName.Get("spiType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName chordXName = System.Xml.Linq.XName.Get("chord", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName constantXName = System.Xml.Linq.XName.Get("constant", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dirEndXName = System.Xml.Linq.XName.Get("dirEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dirStartXName = System.Xml.Linq.XName.Get("dirStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thetaXName = System.Xml.Linq.XName.Get("theta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName totalYXName = System.Xml.Linq.XName.Get("totalY", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName totalXXName = System.Xml.Linq.XName.Get("totalX", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName tanLongXName = System.Xml.Linq.XName.Get("tanLong", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName tanShortXName = System.Xml.Linq.XName.Get("tanShort", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator Spiral(XElement xe) { return XTypedServices.ToXTypedElement<Spiral>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static Spiral() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(PIXName), new NamedContentModelEntity(EndXName)), new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: ((Start | PI | End)+, Feature*) - /// </para> - /// </summary> - public Spiral() { - } - /// <summary> /// <para> /// Occurrence: required, choice @@ -4212,6 +4328,13 @@ public virtual IList<Start> Start { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PIXName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PI> PIField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -4245,6 +4368,13 @@ public virtual IList<PI> PI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<End> EndField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -4278,6 +4408,13 @@ public virtual IList<End> End { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -4308,6 +4445,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4323,6 +4464,10 @@ public virtual double length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName radiusEndXName = System.Xml.Linq.XName.Get("radiusEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4338,6 +4483,10 @@ public virtual double radiusEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName radiusStartXName = System.Xml.Linq.XName.Get("radiusStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4353,6 +4502,10 @@ public virtual double radiusStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rotXName = System.Xml.Linq.XName.Get("rot", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4361,13 +4514,17 @@ public virtual double radiusStart { public virtual LandXml.v1_2.clockwise rot { get { XAttribute x = this.Attribute(rotXName); - return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.clockwiseValidator.TypeDefinition)))); } set { - this.SetAttribute(rotXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(rotXName, value.ToString(), "rot", global::LandXml.v1_2.clockwiseValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName spiTypeXName = System.Xml.Linq.XName.Get("spiType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4376,13 +4533,17 @@ public virtual LandXml.v1_2.clockwise rot { public virtual LandXml.v1_2.spiralType spiType { get { XAttribute x = this.Attribute(spiTypeXName); - return ((LandXml.v1_2.spiralType)(Enum.Parse(typeof(LandXml.v1_2.spiralType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.spiralType)(Enum.Parse(typeof(LandXml.v1_2.spiralType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.spiralTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(spiTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(spiTypeXName, value.ToString(), "spiType", global::LandXml.v1_2.spiralTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName chordXName = System.Xml.Linq.XName.Get("chord", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4401,6 +4562,10 @@ public virtual System.Double? chord { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName constantXName = System.Xml.Linq.XName.Get("constant", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4419,6 +4584,10 @@ public virtual System.Double? constant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4427,6 +4596,9 @@ public virtual System.Double? constant { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4434,6 +4606,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dirEndXName = System.Xml.Linq.XName.Get("dirEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4452,6 +4628,10 @@ public virtual System.Double? dirEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dirStartXName = System.Xml.Linq.XName.Get("dirStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4470,6 +4650,10 @@ public virtual System.Double? dirStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4478,6 +4662,9 @@ public virtual System.Double? dirStart { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4485,6 +4672,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thetaXName = System.Xml.Linq.XName.Get("theta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4503,6 +4694,10 @@ public virtual System.Double? theta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName totalYXName = System.Xml.Linq.XName.Get("totalY", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4521,6 +4716,10 @@ public virtual System.Double? totalY { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName totalXXName = System.Xml.Linq.XName.Get("totalX", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4539,6 +4738,10 @@ public virtual System.Double? totalX { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4557,6 +4760,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4568,13 +4775,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName tanLongXName = System.Xml.Linq.XName.Get("tanLong", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4593,6 +4809,10 @@ public virtual System.Double? tanLong { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName tanShortXName = System.Xml.Linq.XName.Get("tanShort", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4611,6 +4831,10 @@ public virtual System.Double? tanShort { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4619,6 +4843,9 @@ public virtual System.Double? tanShort { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4626,6 +4853,23 @@ public virtual string oID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); + + static Spiral() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(PIXName), new NamedContentModelEntity(EndXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartXName, typeof(Start)); + localElementDictionary.Add(PIXName, typeof(PI)); + localElementDictionary.Add(EndXName, typeof(End)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -4633,6 +4877,13 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4653,6 +4904,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((Line* | IrregularLine* | Curve* | Spiral* | Chain*)+, Feature*) + /// </para> + /// </summary> + public partial class CoordGeom : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -4666,112 +4925,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Spiral Load(string xmlFile) { - return XTypedServices.Load<Spiral>(xmlFile); - } - - public static Spiral Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Spiral>(xmlFile); - } - - public static Spiral Parse(string xml) { - return XTypedServices.Parse<Spiral>(xml); + public static CoordGeom Load(string xmlFile) { + return XTypedServices.Load<CoordGeom>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Spiral>(this); + public static CoordGeom Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CoordGeom>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StartXName, typeof(Start)); - localElementDictionary.Add(PIXName, typeof(PI)); - localElementDictionary.Add(EndXName, typeof(End)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static CoordGeom Parse(string xml) { + return XTypedServices.Parse<CoordGeom>(xml); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Regular expression: ((Line* | IrregularLine* | Curve* | Spiral* | Chain*)+, Feature*) - /// </para> - /// </summary> - public partial class CoordGeom : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LineXName = System.Xml.Linq.XName.Get("Line", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Line> LineField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IrregularLineXName = System.Xml.Linq.XName.Get("IrregularLine", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<IrregularLine> IrregularLineField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CurveXName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Curve> CurveField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Spiral> SpiralField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ChainXName = System.Xml.Linq.XName.Get("Chain", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Chain> ChainField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator CoordGeom(XElement xe) { return XTypedServices.ToXTypedElement<CoordGeom>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CoordGeom() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(LineXName), new NamedContentModelEntity(IrregularLineXName), new NamedContentModelEntity(CurveXName), new NamedContentModelEntity(SpiralXName), new NamedContentModelEntity(ChainXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CoordGeom>(this); } /// <summary> @@ -4782,6 +4951,13 @@ static CoordGeom() { public CoordGeom() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LineXName = System.Xml.Linq.XName.Get("Line", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Line> LineField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -4815,6 +4991,13 @@ public virtual IList<Line> Line { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IrregularLineXName = System.Xml.Linq.XName.Get("IrregularLine", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<IrregularLine> IrregularLineField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -4848,6 +5031,13 @@ public virtual IList<IrregularLine> IrregularLine { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CurveXName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Curve> CurveField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -4881,6 +5071,13 @@ public virtual IList<Curve> Curve { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Spiral> SpiralField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -4914,6 +5111,13 @@ public virtual IList<Spiral> Spiral { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ChainXName = System.Xml.Linq.XName.Get("Chain", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Chain> ChainField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -4947,6 +5151,13 @@ public virtual IList<Chain> Chain { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -4977,6 +5188,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4985,6 +5200,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4992,6 +5210,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5000,6 +5222,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5007,6 +5232,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5018,13 +5247,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5033,6 +5271,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5040,6 +5281,25 @@ public virtual string oID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); + + static CoordGeom() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(LineXName), new NamedContentModelEntity(IrregularLineXName), new NamedContentModelEntity(CurveXName), new NamedContentModelEntity(SpiralXName), new NamedContentModelEntity(ChainXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(LineXName, typeof(Line)); + localElementDictionary.Add(IrregularLineXName, typeof(IrregularLine)); + localElementDictionary.Add(CurveXName, typeof(Curve)); + localElementDictionary.Add(SpiralXName, typeof(Spiral)); + localElementDictionary.Add(ChainXName, typeof(Chain)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5047,6 +5307,13 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5067,6 +5334,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Start, End, Feature*) + /// </para> + /// </summary> + public partial class Line : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -5080,103 +5355,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CoordGeom Load(string xmlFile) { - return XTypedServices.Load<CoordGeom>(xmlFile); - } - - public static CoordGeom Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CoordGeom>(xmlFile); - } - - public static CoordGeom Parse(string xml) { - return XTypedServices.Parse<CoordGeom>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CoordGeom>(this); + public static Line Load(string xmlFile) { + return XTypedServices.Load<Line>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(LineXName, typeof(Line)); - localElementDictionary.Add(IrregularLineXName, typeof(IrregularLine)); - localElementDictionary.Add(CurveXName, typeof(Curve)); - localElementDictionary.Add(SpiralXName, typeof(Spiral)); - localElementDictionary.Add(ChainXName, typeof(Chain)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Line Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Line>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Line Parse(string xml) { + return XTypedServices.Parse<Line>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Start, End, Feature*) - /// </para> - /// </summary> - public partial class Line : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dirXName = System.Xml.Linq.XName.Get("dir", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName noteXName = System.Xml.Linq.XName.Get("note", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Line", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Line(XElement xe) { return XTypedServices.ToXTypedElement<Line>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Line() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(EndXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Line>(this); } /// <summary> @@ -5187,6 +5381,10 @@ static Line() { public Line() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -5205,6 +5403,10 @@ public virtual Start Start { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EndXName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -5223,6 +5425,13 @@ public virtual End End { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -5253,6 +5462,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5261,6 +5474,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5268,6 +5484,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dirXName = System.Xml.Linq.XName.Get("dir", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5286,6 +5506,10 @@ public virtual System.Double? dir { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5304,6 +5528,10 @@ public virtual System.Double? length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5312,6 +5540,9 @@ public virtual System.Double? length { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5319,6 +5550,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5337,6 +5572,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5348,13 +5587,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5363,6 +5611,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5370,6 +5621,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName noteXName = System.Xml.Linq.XName.Get("note", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5378,6 +5633,9 @@ public virtual string oID { public virtual string note { get { XAttribute x = this.Attribute(noteXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5385,6 +5643,22 @@ public virtual string note { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Line", "http://www.landxml.org/schema/LandXML-1.2"); + + static Line() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(EndXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartXName, typeof(Start)); + localElementDictionary.Add(EndXName, typeof(End)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5392,6 +5666,13 @@ public virtual string note { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5412,6 +5693,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (CrossSect+, Feature*) + /// </para> + /// </summary> + public partial class CrossSects : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -5425,95 +5714,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Line Load(string xmlFile) { - return XTypedServices.Load<Line>(xmlFile); - } - - public static Line Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Line>(xmlFile); - } - - public static Line Parse(string xml) { - return XTypedServices.Parse<Line>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Line>(this); + public static CrossSects Load(string xmlFile) { + return XTypedServices.Load<CrossSects>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StartXName, typeof(Start)); - localElementDictionary.Add(EndXName, typeof(End)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static CrossSects Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CrossSects>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static CrossSects Parse(string xml) { + return XTypedServices.Parse<CrossSects>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (CrossSect+, Feature*) - /// </para> - /// </summary> - public partial class CrossSects : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CrossSectXName = System.Xml.Linq.XName.Get("CrossSect", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CrossSect> CrossSectField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName calcMethodXName = System.Xml.Linq.XName.Get("calcMethod", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName curveCorrectionXName = System.Xml.Linq.XName.Get("curveCorrection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName swellFactorXName = System.Xml.Linq.XName.Get("swellFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName shrinkFactorXName = System.Xml.Linq.XName.Get("shrinkFactor", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSects", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator CrossSects(XElement xe) { return XTypedServices.ToXTypedElement<CrossSects>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CrossSects() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CrossSectXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CrossSects>(this); } /// <summary> @@ -5524,6 +5740,13 @@ static CrossSects() { public CrossSects() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CrossSectXName = System.Xml.Linq.XName.Get("CrossSect", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CrossSect> CrossSectField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -5554,6 +5777,13 @@ public virtual IList<CrossSect> CrossSect { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -5584,6 +5814,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5592,6 +5826,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5599,6 +5836,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5607,6 +5848,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5614,6 +5858,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5625,13 +5873,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName calcMethodXName = System.Xml.Linq.XName.Get("calcMethod", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5643,13 +5900,22 @@ public virtual LandXml.v1_2.xsVolCalcMethodType? calcMethod { if ((x == null)) { return null; } - return ((LandXml.v1_2.xsVolCalcMethodType)(Enum.Parse(typeof(LandXml.v1_2.xsVolCalcMethodType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.xsVolCalcMethodType)(Enum.Parse(typeof(LandXml.v1_2.xsVolCalcMethodType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.xsVolCalcMethodTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(calcMethodXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(calcMethodXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(calcMethodXName, value.ToString(), "calcMethod", global::LandXml.v1_2.xsVolCalcMethodTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName curveCorrectionXName = System.Xml.Linq.XName.Get("curveCorrection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5668,6 +5934,10 @@ public virtual System.Boolean? curveCorrection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName swellFactorXName = System.Xml.Linq.XName.Get("swellFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5686,6 +5956,10 @@ public virtual System.Double? swellFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName shrinkFactorXName = System.Xml.Linq.XName.Get("shrinkFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5704,6 +5978,21 @@ public virtual System.Double? shrinkFactor { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSects", "http://www.landxml.org/schema/LandXML-1.2"); + + static CrossSects() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CrossSectXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CrossSectXName, typeof(CrossSect)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5711,6 +6000,13 @@ public virtual System.Double? shrinkFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5731,6 +6027,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (CrossSectSurf*, DesignCrossSectSurf*, Feature*) + /// </para> + /// </summary> + public partial class CrossSect : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -5744,117 +6048,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CrossSects Load(string xmlFile) { - return XTypedServices.Load<CrossSects>(xmlFile); - } - - public static CrossSects Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CrossSects>(xmlFile); - } - - public static CrossSects Parse(string xml) { - return XTypedServices.Parse<CrossSects>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CrossSects>(this); + public static CrossSect Load(string xmlFile) { + return XTypedServices.Load<CrossSect>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CrossSectXName, typeof(CrossSect)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static CrossSect Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CrossSect>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static CrossSect Parse(string xml) { + return XTypedServices.Parse<CrossSect>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (CrossSectSurf*, DesignCrossSectSurf*, Feature*) - /// </para> - /// </summary> - public partial class CrossSect : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CrossSectSurfXName = System.Xml.Linq.XName.Get("CrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CrossSectSurf> CrossSectSurfField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DesignCrossSectSurfXName = System.Xml.Linq.XName.Get("DesignCrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DesignCrossSectSurf> DesignCrossSectSurfField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staXName = System.Xml.Linq.XName.Get("sta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName angleSkewXName = System.Xml.Linq.XName.Get("angleSkew", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaCutXName = System.Xml.Linq.XName.Get("areaCut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaFillXName = System.Xml.Linq.XName.Get("areaFill", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName centroidCutXName = System.Xml.Linq.XName.Get("centroidCut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName centroidFillXName = System.Xml.Linq.XName.Get("centroidFill", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sectTypeXName = System.Xml.Linq.XName.Get("sectType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeCutXName = System.Xml.Linq.XName.Get("volumeCut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeFillXName = System.Xml.Linq.XName.Get("volumeFill", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSect", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator CrossSect(XElement xe) { return XTypedServices.ToXTypedElement<CrossSect>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CrossSect() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CrossSectSurfXName), new NamedContentModelEntity(DesignCrossSectSurfXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CrossSect>(this); } /// <summary> @@ -5865,6 +6074,13 @@ static CrossSect() { public CrossSect() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CrossSectSurfXName = System.Xml.Linq.XName.Get("CrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CrossSectSurf> CrossSectSurfField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -5895,6 +6111,13 @@ public virtual IList<CrossSectSurf> CrossSectSurf { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DesignCrossSectSurfXName = System.Xml.Linq.XName.Get("DesignCrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DesignCrossSectSurf> DesignCrossSectSurfField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -5925,6 +6148,13 @@ public virtual IList<DesignCrossSectSurf> DesignCrossSectSurf { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -5955,6 +6185,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staXName = System.Xml.Linq.XName.Get("sta", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5970,6 +6204,10 @@ public virtual double sta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5978,6 +6216,9 @@ public virtual double sta { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5985,6 +6226,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5993,6 +6238,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6000,6 +6248,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName angleSkewXName = System.Xml.Linq.XName.Get("angleSkew", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6018,6 +6270,10 @@ public virtual System.Double? angleSkew { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaCutXName = System.Xml.Linq.XName.Get("areaCut", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6036,6 +6292,10 @@ public virtual System.Double? areaCut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaFillXName = System.Xml.Linq.XName.Get("areaFill", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6054,6 +6314,10 @@ public virtual System.Double? areaFill { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName centroidCutXName = System.Xml.Linq.XName.Get("centroidCut", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6072,6 +6336,10 @@ public virtual System.Double? centroidCut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName centroidFillXName = System.Xml.Linq.XName.Get("centroidFill", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6090,6 +6358,10 @@ public virtual System.Double? centroidFill { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sectTypeXName = System.Xml.Linq.XName.Get("sectType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6098,6 +6370,9 @@ public virtual System.Double? centroidFill { public virtual string sectType { get { XAttribute x = this.Attribute(sectTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6105,6 +6380,10 @@ public virtual string sectType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeCutXName = System.Xml.Linq.XName.Get("volumeCut", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6123,6 +6402,10 @@ public virtual System.Double? volumeCut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeFillXName = System.Xml.Linq.XName.Get("volumeFill", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6141,6 +6424,22 @@ public virtual System.Double? volumeFill { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSect", "http://www.landxml.org/schema/LandXML-1.2"); + + static CrossSect() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CrossSectSurfXName), new NamedContentModelEntity(DesignCrossSectSurfXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CrossSectSurfXName, typeof(CrossSectSurf)); + localElementDictionary.Add(DesignCrossSectSurfXName, typeof(DesignCrossSectSurf)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -6148,6 +6447,13 @@ public virtual System.Double? volumeFill { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6168,6 +6474,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PntList2D+, Feature*) + /// </para> + /// </summary> + public partial class CrossSectSurf : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -6181,79 +6495,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CrossSect Load(string xmlFile) { - return XTypedServices.Load<CrossSect>(xmlFile); - } - - public static CrossSect Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CrossSect>(xmlFile); - } - - public static CrossSect Parse(string xml) { - return XTypedServices.Parse<CrossSect>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CrossSect>(this); + public static CrossSectSurf Load(string xmlFile) { + return XTypedServices.Load<CrossSectSurf>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CrossSectSurfXName, typeof(CrossSectSurf)); - localElementDictionary.Add(DesignCrossSectSurfXName, typeof(DesignCrossSectSurf)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static CrossSectSurf Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CrossSectSurf>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static CrossSectSurf Parse(string xml) { + return XTypedServices.Parse<CrossSectSurf>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (PntList2D+, Feature*) - /// </para> - /// </summary> - public partial class CrossSectSurf : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<PntList2D> PntList2DField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator CrossSectSurf(XElement xe) { return XTypedServices.ToXTypedElement<CrossSectSurf>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CrossSectSurf() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CrossSectSurf>(this); } /// <summary> @@ -6264,6 +6521,13 @@ static CrossSectSurf() { public CrossSectSurf() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<PntList2D> PntList2DField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -6294,6 +6558,13 @@ public virtual IList<PntList2D> PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -6324,6 +6595,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -6339,6 +6614,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6347,6 +6626,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6354,6 +6636,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6365,13 +6651,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); + + static CrossSectSurf() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -6379,6 +6685,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6399,6 +6712,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class CrossSectPnt : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -6412,159 +6728,56 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CrossSectSurf Load(string xmlFile) { - return XTypedServices.Load<CrossSectSurf>(xmlFile); + public static CrossSectPnt Load(string xmlFile) { + return XTypedServices.Load<CrossSectPnt>(xmlFile); } - public static CrossSectSurf Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CrossSectSurf>(xmlFile); + public static CrossSectPnt Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CrossSectPnt>(xmlFile); } - public static CrossSectSurf Parse(string xml) { - return XTypedServices.Parse<CrossSectSurf>(xml); + public static CrossSectPnt Parse(string xml) { + return XTypedServices.Parse<CrossSectPnt>(xml); } + public static explicit operator CrossSectPnt(XElement xe) { return XTypedServices.ToXTypedElement<CrossSectPnt>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CrossSectSurf>(this); + return XTypedServices.CloneXTypedElement<CrossSectPnt>(this); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public CrossSectPnt() { } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - public partial class CrossSectPnt : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataFormatXName = System.Xml.Linq.XName.Get("dataFormat", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string dataFormatDefaultValue = "Offset Elevation"; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + protected internal static readonly System.Xml.Linq.XName dataFormatXName = System.Xml.Linq.XName.Get("dataFormat", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefStationXName = System.Xml.Linq.XName.Get("alignRefStation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName planFeatureRefXName = System.Xml.Linq.XName.Get("planFeatureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName planFeatureRefStationXName = System.Xml.Linq.XName.Get("planFeatureRefStation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName parcelRefXName = System.Xml.Linq.XName.Get("parcelRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName parcelRefStationXName = System.Xml.Linq.XName.Get("parcelRefStation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSectPnt", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator CrossSectPnt(XElement xe) { return XTypedServices.ToXTypedElement<CrossSectPnt>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public CrossSectPnt() { - } + private static LandXml.v1_2.dataFormatType dataFormatDefaultValue = LandXml.v1_2.dataFormatType.Offset Elevation; /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataFormat { + public virtual LandXml.v1_2.dataFormatType dataFormat { get { XAttribute x = this.Attribute(dataFormatXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, dataFormatDefaultValue); + if ((x == null)) { + return dataFormatDefaultValue; + } + return ((LandXml.v1_2.dataFormatType)(Enum.Parse(typeof(LandXml.v1_2.dataFormatType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.dataFormatTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(dataFormatXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(dataFormatXName, value.ToString(), "dataFormat", global::LandXml.v1_2.dataFormatTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6573,6 +6786,9 @@ public virtual string dataFormat { public virtual string alignRef { get { XAttribute x = this.Attribute(alignRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6580,6 +6796,10 @@ public virtual string alignRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefStationXName = System.Xml.Linq.XName.Get("alignRefStation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6598,6 +6818,10 @@ public virtual System.Double? alignRefStation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName planFeatureRefXName = System.Xml.Linq.XName.Get("planFeatureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6606,6 +6830,9 @@ public virtual System.Double? alignRefStation { public virtual string planFeatureRef { get { XAttribute x = this.Attribute(planFeatureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6613,6 +6840,10 @@ public virtual string planFeatureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName planFeatureRefStationXName = System.Xml.Linq.XName.Get("planFeatureRefStation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6631,6 +6862,10 @@ public virtual System.Double? planFeatureRefStation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName parcelRefXName = System.Xml.Linq.XName.Get("parcelRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6639,6 +6874,9 @@ public virtual System.Double? planFeatureRefStation { public virtual string parcelRef { get { XAttribute x = this.Attribute(parcelRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6646,6 +6884,10 @@ public virtual string parcelRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName parcelRefStationXName = System.Xml.Linq.XName.Get("parcelRefStation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6664,6 +6906,10 @@ public virtual System.Double? parcelRefStation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6672,6 +6918,9 @@ public virtual System.Double? parcelRefStation { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6679,6 +6928,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6687,6 +6940,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6694,6 +6950,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6702,6 +6962,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6709,6 +6972,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6720,13 +6987,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6735,6 +7011,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6742,6 +7021,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6750,6 +7033,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6757,6 +7043,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6768,28 +7058,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6808,21 +7119,37 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6841,6 +7168,10 @@ public virtual System.DateTime? determinedTimeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6859,6 +7190,10 @@ public virtual System.Double? ellipsoidHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6877,6 +7212,10 @@ public virtual System.Double? latitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6895,6 +7234,10 @@ public virtual System.Double? longitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6903,6 +7246,9 @@ public virtual System.Double? longitude { public virtual string zone { get { XAttribute x = this.Attribute(zoneXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6910,6 +7256,10 @@ public virtual string zone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6928,6 +7278,10 @@ public virtual System.Double? northingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6946,6 +7300,10 @@ public virtual System.Double? eastingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6964,6 +7322,12 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrossSectPnt", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6984,6 +7348,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (CrossSectPnt*, Feature*) + /// </para> + /// </summary> + public partial class DesignCrossSectSurf : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -6997,101 +7369,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CrossSectPnt Load(string xmlFile) { - return XTypedServices.Load<CrossSectPnt>(xmlFile); - } - - public static CrossSectPnt Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CrossSectPnt>(xmlFile); - } - - public static CrossSectPnt Parse(string xml) { - return XTypedServices.Parse<CrossSectPnt>(xml); + public static DesignCrossSectSurf Load(string xmlFile) { + return XTypedServices.Load<DesignCrossSectSurf>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CrossSectPnt>(this); + public static DesignCrossSectSurf Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DesignCrossSectSurf>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static DesignCrossSectSurf Parse(string xml) { + return XTypedServices.Parse<DesignCrossSectSurf>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (CrossSectPnt*, Feature*) - /// </para> - /// </summary> - public partial class DesignCrossSectSurf : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CrossSectPntXName = System.Xml.Linq.XName.Get("CrossSectPnt", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CrossSectPnt> CrossSectPntField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideXName = System.Xml.Linq.XName.Get("side", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName closedAreaXName = System.Xml.Linq.XName.Get("closedArea", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typicalThicknessXName = System.Xml.Linq.XName.Get("typicalThickness", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typicalWidthXName = System.Xml.Linq.XName.Get("typicalWidth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignCrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DesignCrossSectSurf(XElement xe) { return XTypedServices.ToXTypedElement<DesignCrossSectSurf>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DesignCrossSectSurf() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CrossSectPntXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DesignCrossSectSurf>(this); } /// <summary> @@ -7102,6 +7395,13 @@ static DesignCrossSectSurf() { public DesignCrossSectSurf() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CrossSectPntXName = System.Xml.Linq.XName.Get("CrossSectPnt", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CrossSectPnt> CrossSectPntField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -7132,6 +7432,13 @@ public virtual IList<CrossSectPnt> CrossSectPnt { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -7162,6 +7469,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7170,6 +7481,9 @@ public virtual IList<Feature> Feature { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7177,6 +7491,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7185,6 +7503,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7192,6 +7513,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7203,13 +7528,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideXName = System.Xml.Linq.XName.Get("side", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7221,13 +7555,22 @@ public virtual LandXml.v1_2.sideofRoadType? side { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideXName, value.ToString(), "side", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7236,6 +7579,9 @@ public virtual LandXml.v1_2.sideofRoadType? side { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7243,6 +7589,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName closedAreaXName = System.Xml.Linq.XName.Get("closedArea", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7261,6 +7611,10 @@ public virtual System.Boolean? closedArea { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typicalThicknessXName = System.Xml.Linq.XName.Get("typicalThickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7279,6 +7633,10 @@ public virtual System.Double? typicalThickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typicalWidthXName = System.Xml.Linq.XName.Get("typicalWidth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7297,6 +7655,10 @@ public virtual System.Double? typicalWidth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7315,6 +7677,10 @@ public virtual System.Double? area { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7333,6 +7699,21 @@ public virtual System.Double? volume { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignCrossSectSurf", "http://www.landxml.org/schema/LandXML-1.2"); + + static DesignCrossSectSurf() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CrossSectPntXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CrossSectPntXName, typeof(CrossSectPnt)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -7340,6 +7721,13 @@ public virtual System.Double? volume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7360,6 +7748,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature* | any)* + /// </para> + /// </summary> + public partial class Project : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -7373,71 +7769,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DesignCrossSectSurf Load(string xmlFile) { - return XTypedServices.Load<DesignCrossSectSurf>(xmlFile); - } - - public static DesignCrossSectSurf Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DesignCrossSectSurf>(xmlFile); - } - - public static DesignCrossSectSurf Parse(string xml) { - return XTypedServices.Parse<DesignCrossSectSurf>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DesignCrossSectSurf>(this); + public static Project Load(string xmlFile) { + return XTypedServices.Load<Project>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CrossSectPntXName, typeof(CrossSectPnt)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Project Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Project>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Project Parse(string xml) { + return XTypedServices.Parse<Project>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature* | any)* - /// </para> - /// </summary> - public partial class Project : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Project", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; public static explicit operator Project(XElement xe) { return XTypedServices.ToXTypedElement<Project>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Project() { - BuildElementDictionary(); - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Project>(this); } /// <summary> @@ -7448,6 +7795,13 @@ static Project() { public Project() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -7489,6 +7843,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -7504,6 +7862,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7512,6 +7874,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7519,6 +7884,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7530,13 +7899,32 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Project", "http://www.landxml.org/schema/LandXML-1.2"); + + static Project() { + BuildElementDictionary(); + InitFSM(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -7544,6 +7932,19 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 1), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 1))); + validationStates = new FSM(1, new Set<int>(1), transitions); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7564,6 +7965,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Metric | Imperial) + /// </para> + /// </summary> + public partial class Units : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -7577,65 +7986,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Project Load(string xmlFile) { - return XTypedServices.Load<Project>(xmlFile); - } - - public static Project Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Project>(xmlFile); - } - - public static Project Parse(string xml) { - return XTypedServices.Parse<Project>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Project>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Units Load(string xmlFile) { + return XTypedServices.Load<Units>(xmlFile); } - FSM IXMetaData.GetValidationStates() { - return validationStates; + public static Units Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Units>(xmlFile); } - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 1), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 1))); - validationStates = new FSM(1, new Set<int>(1), transitions); + public static Units Parse(string xml) { + return XTypedServices.Parse<Units>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Metric | Imperial) - /// </para> - /// </summary> - public partial class Units : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MetricXName = System.Xml.Linq.XName.Get("Metric", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ImperialXName = System.Xml.Linq.XName.Get("Imperial", "http://www.landxml.org/schema/LandXML-1.2"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Units(XElement xe) { return XTypedServices.ToXTypedElement<Units>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Units() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(MetricXName), new NamedContentModelEntity(ImperialXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Units>(this); } /// <summary> @@ -7646,13 +8012,9 @@ static Units() { public Units() { } - public Units(Metric Metric) { - this.Metric = Metric; - } - - public Units(Imperial Imperial) { - this.Imperial = Imperial; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MetricXName = System.Xml.Linq.XName.Get("Metric", "http://www.landxml.org/schema/LandXML-1.2"); /// <summary> /// <para> @@ -7665,6 +8027,9 @@ public Units(Imperial Imperial) { public virtual Metric Metric { get { XElement x = this.GetElement(MetricXName); + if ((x == null)) { + return null; + } return ((Metric)(x)); } set { @@ -7672,6 +8037,10 @@ public virtual Metric Metric { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ImperialXName = System.Xml.Linq.XName.Get("Imperial", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -7683,6 +8052,9 @@ public virtual Metric Metric { public virtual Imperial Imperial { get { XElement x = this.GetElement(ImperialXName); + if ((x == null)) { + return null; + } return ((Imperial)(x)); } set { @@ -7690,6 +8062,29 @@ public virtual Imperial Imperial { } } + public Units(Metric Metric) { + this.Metric = Metric; + } + + public Units(Imperial Imperial) { + this.Imperial = Imperial; + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); + + static Units() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(MetricXName), new NamedContentModelEntity(ImperialXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(MetricXName, typeof(Metric)); + localElementDictionary.Add(ImperialXName, typeof(Imperial)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -7697,6 +8092,13 @@ public virtual Imperial Imperial { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7717,6 +8119,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Metric : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -7730,108 +8135,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Units Load(string xmlFile) { - return XTypedServices.Load<Units>(xmlFile); + public static Metric Load(string xmlFile) { + return XTypedServices.Load<Metric>(xmlFile); } - public static Units Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Units>(xmlFile); + public static Metric Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Metric>(xmlFile); } - public static Units Parse(string xml) { - return XTypedServices.Parse<Units>(xml); + public static Metric Parse(string xml) { + return XTypedServices.Parse<Metric>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Units>(this); - } + public static explicit operator Metric(XElement xe) { return XTypedServices.ToXTypedElement<Metric>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(MetricXName, typeof(Metric)); - localElementDictionary.Add(ImperialXName, typeof(Imperial)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Metric>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public Metric() { } - } - - public partial class Metric : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaUnitXName = System.Xml.Linq.XName.Get("areaUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName linearUnitXName = System.Xml.Linq.XName.Get("linearUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeUnitXName = System.Xml.Linq.XName.Get("volumeUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName temperatureUnitXName = System.Xml.Linq.XName.Get("temperatureUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pressureUnitXName = System.Xml.Linq.XName.Get("pressureUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName diameterUnitXName = System.Xml.Linq.XName.Get("diameterUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthUnitXName = System.Xml.Linq.XName.Get("widthUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightUnitXName = System.Xml.Linq.XName.Get("heightUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName velocityUnitXName = System.Xml.Linq.XName.Get("velocityUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName flowUnitXName = System.Xml.Linq.XName.Get("flowUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName angularUnitXName = System.Xml.Linq.XName.Get("angularUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string angularUnitDefaultValue = "radians"; [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName directionUnitXName = System.Xml.Linq.XName.Get("directionUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string directionUnitDefaultValue = "radians"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latLongAngularUnitXName = System.Xml.Linq.XName.Get("latLongAngularUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string latLongAngularUnitDefaultValue = "decimal degrees"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevationUnitXName = System.Xml.Linq.XName.Get("elevationUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string elevationUnitDefaultValue = "meter"; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Metric", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Metric(XElement xe) { return XTypedServices.ToXTypedElement<Metric>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Metric() { - } + protected internal static readonly System.Xml.Linq.XName areaUnitXName = System.Xml.Linq.XName.Get("areaUnit", ""); /// <summary> /// <para> @@ -7841,13 +8168,17 @@ public Metric() { public virtual LandXml.v1_2.metArea areaUnit { get { XAttribute x = this.Attribute(areaUnitXName); - return ((LandXml.v1_2.metArea)(Enum.Parse(typeof(LandXml.v1_2.metArea), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metArea)(Enum.Parse(typeof(LandXml.v1_2.metArea), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metAreaValidator.TypeDefinition)))); } set { - this.SetAttribute(areaUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(areaUnitXName, value.ToString(), "areaUnit", global::LandXml.v1_2.metAreaValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName linearUnitXName = System.Xml.Linq.XName.Get("linearUnit", ""); + /// <summary> /// <para> /// Occurrence: required @@ -7856,13 +8187,17 @@ public virtual LandXml.v1_2.metArea areaUnit { public virtual LandXml.v1_2.metLinear linearUnit { get { XAttribute x = this.Attribute(linearUnitXName); - return ((LandXml.v1_2.metLinear)(Enum.Parse(typeof(LandXml.v1_2.metLinear), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metLinear)(Enum.Parse(typeof(LandXml.v1_2.metLinear), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metLinearValidator.TypeDefinition)))); } set { - this.SetAttribute(linearUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(linearUnitXName, value.ToString(), "linearUnit", global::LandXml.v1_2.metLinearValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeUnitXName = System.Xml.Linq.XName.Get("volumeUnit", ""); + /// <summary> /// <para> /// Occurrence: required @@ -7871,13 +8206,17 @@ public virtual LandXml.v1_2.metLinear linearUnit { public virtual LandXml.v1_2.metVolume volumeUnit { get { XAttribute x = this.Attribute(volumeUnitXName); - return ((LandXml.v1_2.metVolume)(Enum.Parse(typeof(LandXml.v1_2.metVolume), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metVolume)(Enum.Parse(typeof(LandXml.v1_2.metVolume), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metVolumeValidator.TypeDefinition)))); } set { - this.SetAttribute(volumeUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(volumeUnitXName, value.ToString(), "volumeUnit", global::LandXml.v1_2.metVolumeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName temperatureUnitXName = System.Xml.Linq.XName.Get("temperatureUnit", ""); + /// <summary> /// <para> /// Occurrence: required @@ -7886,13 +8225,17 @@ public virtual LandXml.v1_2.metVolume volumeUnit { public virtual LandXml.v1_2.metTemperature temperatureUnit { get { XAttribute x = this.Attribute(temperatureUnitXName); - return ((LandXml.v1_2.metTemperature)(Enum.Parse(typeof(LandXml.v1_2.metTemperature), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metTemperature)(Enum.Parse(typeof(LandXml.v1_2.metTemperature), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metTemperatureValidator.TypeDefinition)))); } set { - this.SetAttribute(temperatureUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(temperatureUnitXName, value.ToString(), "temperatureUnit", global::LandXml.v1_2.metTemperatureValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pressureUnitXName = System.Xml.Linq.XName.Get("pressureUnit", ""); + /// <summary> /// <para> /// Occurrence: required @@ -7901,13 +8244,17 @@ public virtual LandXml.v1_2.metTemperature temperatureUnit { public virtual LandXml.v1_2.metPressure pressureUnit { get { XAttribute x = this.Attribute(pressureUnitXName); - return ((LandXml.v1_2.metPressure)(Enum.Parse(typeof(LandXml.v1_2.metPressure), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metPressure)(Enum.Parse(typeof(LandXml.v1_2.metPressure), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metPressureValidator.TypeDefinition)))); } set { - this.SetAttribute(pressureUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(pressureUnitXName, value.ToString(), "pressureUnit", global::LandXml.v1_2.metPressureValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName diameterUnitXName = System.Xml.Linq.XName.Get("diameterUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7919,13 +8266,22 @@ public virtual LandXml.v1_2.metDiameter? diameterUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.metDiameter)(Enum.Parse(typeof(LandXml.v1_2.metDiameter), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metDiameter)(Enum.Parse(typeof(LandXml.v1_2.metDiameter), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metDiameterValidator.TypeDefinition)))); } set { - this.SetAttribute(diameterUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(diameterUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(diameterUnitXName, value.ToString(), "diameterUnit", global::LandXml.v1_2.metDiameterValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthUnitXName = System.Xml.Linq.XName.Get("widthUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7937,13 +8293,22 @@ public virtual LandXml.v1_2.metWidth? widthUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.metWidth)(Enum.Parse(typeof(LandXml.v1_2.metWidth), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metWidth)(Enum.Parse(typeof(LandXml.v1_2.metWidth), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metWidthValidator.TypeDefinition)))); } set { - this.SetAttribute(widthUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(widthUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(widthUnitXName, value.ToString(), "widthUnit", global::LandXml.v1_2.metWidthValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName heightUnitXName = System.Xml.Linq.XName.Get("heightUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7955,13 +8320,22 @@ public virtual LandXml.v1_2.metHeight? heightUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.metHeight)(Enum.Parse(typeof(LandXml.v1_2.metHeight), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metHeight)(Enum.Parse(typeof(LandXml.v1_2.metHeight), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metHeightValidator.TypeDefinition)))); } set { - this.SetAttribute(heightUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(heightUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(heightUnitXName, value.ToString(), "heightUnit", global::LandXml.v1_2.metHeightValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName velocityUnitXName = System.Xml.Linq.XName.Get("velocityUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7973,13 +8347,22 @@ public virtual LandXml.v1_2.metVelocity? velocityUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.metVelocity)(Enum.Parse(typeof(LandXml.v1_2.metVelocity), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metVelocity)(Enum.Parse(typeof(LandXml.v1_2.metVelocity), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metVelocityValidator.TypeDefinition)))); } set { - this.SetAttribute(velocityUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(velocityUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(velocityUnitXName, value.ToString(), "velocityUnit", global::LandXml.v1_2.metVelocityValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName flowUnitXName = System.Xml.Linq.XName.Get("flowUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7991,58 +8374,100 @@ public virtual LandXml.v1_2.metFlow? flowUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.metFlow)(Enum.Parse(typeof(LandXml.v1_2.metFlow), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.metFlow)(Enum.Parse(typeof(LandXml.v1_2.metFlow), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.metFlowValidator.TypeDefinition)))); } set { - this.SetAttribute(flowUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(flowUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(flowUnitXName, value.ToString(), "flowUnit", global::LandXml.v1_2.metFlowValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName angularUnitXName = System.Xml.Linq.XName.Get("angularUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.angularType angularUnitDefaultValue = LandXml.v1_2.angularType.radians; + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string angularUnit { + public virtual LandXml.v1_2.angularType angularUnit { get { XAttribute x = this.Attribute(angularUnitXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, angularUnitDefaultValue); + if ((x == null)) { + return angularUnitDefaultValue; + } + return ((LandXml.v1_2.angularType)(Enum.Parse(typeof(LandXml.v1_2.angularType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.angularTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(angularUnitXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(angularUnitXName, value.ToString(), "angularUnit", global::LandXml.v1_2.angularTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName directionUnitXName = System.Xml.Linq.XName.Get("directionUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.angularType directionUnitDefaultValue = LandXml.v1_2.angularType.radians; + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string directionUnit { + public virtual LandXml.v1_2.angularType directionUnit { get { XAttribute x = this.Attribute(directionUnitXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, directionUnitDefaultValue); + if ((x == null)) { + return directionUnitDefaultValue; + } + return ((LandXml.v1_2.angularType)(Enum.Parse(typeof(LandXml.v1_2.angularType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.angularTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(directionUnitXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(directionUnitXName, value.ToString(), "directionUnit", global::LandXml.v1_2.angularTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latLongAngularUnitXName = System.Xml.Linq.XName.Get("latLongAngularUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.latLongAngularType latLongAngularUnitDefaultValue = LandXml.v1_2.latLongAngularType.decimal degrees; + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string latLongAngularUnit { + public virtual LandXml.v1_2.latLongAngularType latLongAngularUnit { get { XAttribute x = this.Attribute(latLongAngularUnitXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, latLongAngularUnitDefaultValue); + if ((x == null)) { + return latLongAngularUnitDefaultValue; + } + return ((LandXml.v1_2.latLongAngularType)(Enum.Parse(typeof(LandXml.v1_2.latLongAngularType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.latLongAngularTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(latLongAngularUnitXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(latLongAngularUnitXName, value.ToString(), "latLongAngularUnit", global::LandXml.v1_2.latLongAngularTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevationUnitXName = System.Xml.Linq.XName.Get("elevationUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.elevationType elevationUnitDefaultValue = LandXml.v1_2.elevationType.meter; + /// <summary> /// <para> /// Occurrence: optional @@ -8051,13 +8476,22 @@ public virtual string latLongAngularUnit { public virtual LandXml.v1_2.elevationType elevationUnit { get { XAttribute x = this.Attribute(elevationUnitXName); - return ((LandXml.v1_2.elevationType)(Enum.Parse(typeof(LandXml.v1_2.elevationType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, elevationUnitDefaultValue)))); + if ((x == null)) { + return elevationUnitDefaultValue; + } + return ((LandXml.v1_2.elevationType)(Enum.Parse(typeof(LandXml.v1_2.elevationType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.elevationTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(elevationUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(elevationUnitXName, value.ToString(), "elevationUnit", global::LandXml.v1_2.elevationTypeValidator.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Metric", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8078,6 +8512,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Imperial : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -8091,118 +8528,49 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Metric Load(string xmlFile) { - return XTypedServices.Load<Metric>(xmlFile); + public static Imperial Load(string xmlFile) { + return XTypedServices.Load<Imperial>(xmlFile); } - public static Metric Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Metric>(xmlFile); + public static Imperial Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Imperial>(xmlFile); } - public static Metric Parse(string xml) { - return XTypedServices.Parse<Metric>(xml); + public static Imperial Parse(string xml) { + return XTypedServices.Parse<Imperial>(xml); } + public static explicit operator Imperial(XElement xe) { return XTypedServices.ToXTypedElement<Imperial>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Metric>(this); + return XTypedServices.CloneXTypedElement<Imperial>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public Imperial() { } - } - - public partial class Imperial : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaUnitXName = System.Xml.Linq.XName.Get("areaUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName linearUnitXName = System.Xml.Linq.XName.Get("linearUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeUnitXName = System.Xml.Linq.XName.Get("volumeUnit", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName temperatureUnitXName = System.Xml.Linq.XName.Get("temperatureUnit", ""); + protected internal static readonly System.Xml.Linq.XName areaUnitXName = System.Xml.Linq.XName.Get("areaUnit", ""); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pressureUnitXName = System.Xml.Linq.XName.Get("pressureUnit", ""); + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// </summary> + public virtual LandXml.v1_2.impArea areaUnit { + get { + XAttribute x = this.Attribute(areaUnitXName); + return ((LandXml.v1_2.impArea)(Enum.Parse(typeof(LandXml.v1_2.impArea), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impAreaValidator.TypeDefinition)))); + } + set { + this.SetAttributeWithValidation(areaUnitXName, value.ToString(), "areaUnit", global::LandXml.v1_2.impAreaValidator.TypeDefinition); + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName diameterUnitXName = System.Xml.Linq.XName.Get("diameterUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthUnitXName = System.Xml.Linq.XName.Get("widthUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightUnitXName = System.Xml.Linq.XName.Get("heightUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName velocityUnitXName = System.Xml.Linq.XName.Get("velocityUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName flowUnitXName = System.Xml.Linq.XName.Get("flowUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName angularUnitXName = System.Xml.Linq.XName.Get("angularUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string angularUnitDefaultValue = "radians"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName directionUnitXName = System.Xml.Linq.XName.Get("directionUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string directionUnitDefaultValue = "radians"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latLongAngularUnitXName = System.Xml.Linq.XName.Get("latLongAngularUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string latLongAngularUnitDefaultValue = "decimal degrees"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevationUnitXName = System.Xml.Linq.XName.Get("elevationUnit", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string elevationUnitDefaultValue = "meter"; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Imperial", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Imperial(XElement xe) { return XTypedServices.ToXTypedElement<Imperial>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Imperial() { - } - - /// <summary> - /// <para> - /// Occurrence: required - /// </para> - /// </summary> - public virtual LandXml.v1_2.impArea areaUnit { - get { - XAttribute x = this.Attribute(areaUnitXName); - return ((LandXml.v1_2.impArea)(Enum.Parse(typeof(LandXml.v1_2.impArea), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); - } - set { - this.SetAttribute(areaUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } + protected internal static readonly System.Xml.Linq.XName linearUnitXName = System.Xml.Linq.XName.Get("linearUnit", ""); /// <summary> /// <para> @@ -8212,13 +8580,17 @@ public virtual LandXml.v1_2.impArea areaUnit { public virtual LandXml.v1_2.impLinear linearUnit { get { XAttribute x = this.Attribute(linearUnitXName); - return ((LandXml.v1_2.impLinear)(Enum.Parse(typeof(LandXml.v1_2.impLinear), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impLinear)(Enum.Parse(typeof(LandXml.v1_2.impLinear), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impLinearValidator.TypeDefinition)))); } set { - this.SetAttribute(linearUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(linearUnitXName, value.ToString(), "linearUnit", global::LandXml.v1_2.impLinearValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeUnitXName = System.Xml.Linq.XName.Get("volumeUnit", ""); + /// <summary> /// <para> /// Occurrence: required @@ -8227,13 +8599,17 @@ public virtual LandXml.v1_2.impLinear linearUnit { public virtual LandXml.v1_2.impVolume volumeUnit { get { XAttribute x = this.Attribute(volumeUnitXName); - return ((LandXml.v1_2.impVolume)(Enum.Parse(typeof(LandXml.v1_2.impVolume), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impVolume)(Enum.Parse(typeof(LandXml.v1_2.impVolume), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impVolumeValidator.TypeDefinition)))); } set { - this.SetAttribute(volumeUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(volumeUnitXName, value.ToString(), "volumeUnit", global::LandXml.v1_2.impVolumeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName temperatureUnitXName = System.Xml.Linq.XName.Get("temperatureUnit", ""); + /// <summary> /// <para> /// Occurrence: required @@ -8242,13 +8618,17 @@ public virtual LandXml.v1_2.impVolume volumeUnit { public virtual LandXml.v1_2.impTemperature temperatureUnit { get { XAttribute x = this.Attribute(temperatureUnitXName); - return ((LandXml.v1_2.impTemperature)(Enum.Parse(typeof(LandXml.v1_2.impTemperature), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impTemperature)(Enum.Parse(typeof(LandXml.v1_2.impTemperature), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impTemperatureValidator.TypeDefinition)))); } set { - this.SetAttribute(temperatureUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(temperatureUnitXName, value.ToString(), "temperatureUnit", global::LandXml.v1_2.impTemperatureValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pressureUnitXName = System.Xml.Linq.XName.Get("pressureUnit", ""); + /// <summary> /// <para> /// Occurrence: required @@ -8257,13 +8637,17 @@ public virtual LandXml.v1_2.impTemperature temperatureUnit { public virtual LandXml.v1_2.impPressure pressureUnit { get { XAttribute x = this.Attribute(pressureUnitXName); - return ((LandXml.v1_2.impPressure)(Enum.Parse(typeof(LandXml.v1_2.impPressure), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impPressure)(Enum.Parse(typeof(LandXml.v1_2.impPressure), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impPressureValidator.TypeDefinition)))); } set { - this.SetAttribute(pressureUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(pressureUnitXName, value.ToString(), "pressureUnit", global::LandXml.v1_2.impPressureValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName diameterUnitXName = System.Xml.Linq.XName.Get("diameterUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8275,13 +8659,22 @@ public virtual LandXml.v1_2.impDiameter? diameterUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.impDiameter)(Enum.Parse(typeof(LandXml.v1_2.impDiameter), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impDiameter)(Enum.Parse(typeof(LandXml.v1_2.impDiameter), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impDiameterValidator.TypeDefinition)))); } set { - this.SetAttribute(diameterUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(diameterUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(diameterUnitXName, value.ToString(), "diameterUnit", global::LandXml.v1_2.impDiameterValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthUnitXName = System.Xml.Linq.XName.Get("widthUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8293,13 +8686,22 @@ public virtual LandXml.v1_2.impWidth? widthUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.impWidth)(Enum.Parse(typeof(LandXml.v1_2.impWidth), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impWidth)(Enum.Parse(typeof(LandXml.v1_2.impWidth), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impWidthValidator.TypeDefinition)))); } set { - this.SetAttribute(widthUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(widthUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(widthUnitXName, value.ToString(), "widthUnit", global::LandXml.v1_2.impWidthValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName heightUnitXName = System.Xml.Linq.XName.Get("heightUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8311,13 +8713,22 @@ public virtual LandXml.v1_2.impHeight? heightUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.impHeight)(Enum.Parse(typeof(LandXml.v1_2.impHeight), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impHeight)(Enum.Parse(typeof(LandXml.v1_2.impHeight), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impHeightValidator.TypeDefinition)))); } set { - this.SetAttribute(heightUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(heightUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(heightUnitXName, value.ToString(), "heightUnit", global::LandXml.v1_2.impHeightValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName velocityUnitXName = System.Xml.Linq.XName.Get("velocityUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8329,13 +8740,22 @@ public virtual LandXml.v1_2.impVelocity? velocityUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.impVelocity)(Enum.Parse(typeof(LandXml.v1_2.impVelocity), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impVelocity)(Enum.Parse(typeof(LandXml.v1_2.impVelocity), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impVelocityValidator.TypeDefinition)))); } set { - this.SetAttribute(velocityUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(velocityUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(velocityUnitXName, value.ToString(), "velocityUnit", global::LandXml.v1_2.impVelocityValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName flowUnitXName = System.Xml.Linq.XName.Get("flowUnit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8347,58 +8767,100 @@ public virtual LandXml.v1_2.impFlow? flowUnit { if ((x == null)) { return null; } - return ((LandXml.v1_2.impFlow)(Enum.Parse(typeof(LandXml.v1_2.impFlow), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.impFlow)(Enum.Parse(typeof(LandXml.v1_2.impFlow), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.impFlowValidator.TypeDefinition)))); } set { - this.SetAttribute(flowUnitXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(flowUnitXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(flowUnitXName, value.ToString(), "flowUnit", global::LandXml.v1_2.impFlowValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName angularUnitXName = System.Xml.Linq.XName.Get("angularUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.angularType angularUnitDefaultValue = LandXml.v1_2.angularType.radians; + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string angularUnit { + public virtual LandXml.v1_2.angularType angularUnit { get { XAttribute x = this.Attribute(angularUnitXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, angularUnitDefaultValue); + if ((x == null)) { + return angularUnitDefaultValue; + } + return ((LandXml.v1_2.angularType)(Enum.Parse(typeof(LandXml.v1_2.angularType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.angularTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(angularUnitXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(angularUnitXName, value.ToString(), "angularUnit", global::LandXml.v1_2.angularTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName directionUnitXName = System.Xml.Linq.XName.Get("directionUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.angularType directionUnitDefaultValue = LandXml.v1_2.angularType.radians; + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string directionUnit { + public virtual LandXml.v1_2.angularType directionUnit { get { XAttribute x = this.Attribute(directionUnitXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, directionUnitDefaultValue); + if ((x == null)) { + return directionUnitDefaultValue; + } + return ((LandXml.v1_2.angularType)(Enum.Parse(typeof(LandXml.v1_2.angularType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.angularTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(directionUnitXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(directionUnitXName, value.ToString(), "directionUnit", global::LandXml.v1_2.angularTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latLongAngularUnitXName = System.Xml.Linq.XName.Get("latLongAngularUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.latLongAngularType latLongAngularUnitDefaultValue = LandXml.v1_2.latLongAngularType.decimal degrees; + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string latLongAngularUnit { + public virtual LandXml.v1_2.latLongAngularType latLongAngularUnit { get { XAttribute x = this.Attribute(latLongAngularUnitXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, latLongAngularUnitDefaultValue); + if ((x == null)) { + return latLongAngularUnitDefaultValue; + } + return ((LandXml.v1_2.latLongAngularType)(Enum.Parse(typeof(LandXml.v1_2.latLongAngularType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.latLongAngularTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(latLongAngularUnitXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(latLongAngularUnitXName, value.ToString(), "latLongAngularUnit", global::LandXml.v1_2.latLongAngularTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevationUnitXName = System.Xml.Linq.XName.Get("elevationUnit", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.elevationType elevationUnitDefaultValue = LandXml.v1_2.elevationType.meter; + /// <summary> /// <para> /// Occurrence: optional @@ -8407,13 +8869,22 @@ public virtual string latLongAngularUnit { public virtual LandXml.v1_2.elevationType elevationUnit { get { XAttribute x = this.Attribute(elevationUnitXName); - return ((LandXml.v1_2.elevationType)(Enum.Parse(typeof(LandXml.v1_2.elevationType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, elevationUnitDefaultValue)))); + if ((x == null)) { + return elevationUnitDefaultValue; + } + return ((LandXml.v1_2.elevationType)(Enum.Parse(typeof(LandXml.v1_2.elevationType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.elevationTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(elevationUnitXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(elevationUnitXName, value.ToString(), "elevationUnit", global::LandXml.v1_2.elevationTypeValidator.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Imperial", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8434,6 +8905,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Start?, FieldNote*, Feature*, any) + /// </para> + /// </summary> + public partial class CoordinateSystem : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -8447,137 +8926,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Imperial Load(string xmlFile) { - return XTypedServices.Load<Imperial>(xmlFile); - } - - public static Imperial Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Imperial>(xmlFile); - } - - public static Imperial Parse(string xml) { - return XTypedServices.Parse<Imperial>(xml); + public static CoordinateSystem Load(string xmlFile) { + return XTypedServices.Load<CoordinateSystem>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Imperial>(this); + public static CoordinateSystem Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CoordinateSystem>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static CoordinateSystem Parse(string xml) { + return XTypedServices.Parse<CoordinateSystem>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Start?, FieldNote*, Feature*, any) - /// </para> - /// </summary> - public partial class CoordinateSystem : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName epsgCodeXName = System.Xml.Linq.XName.Get("epsgCode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ogcWktCodeXName = System.Xml.Linq.XName.Get("ogcWktCode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizontalDatumXName = System.Xml.Linq.XName.Get("horizontalDatum", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName verticalDatumXName = System.Xml.Linq.XName.Get("verticalDatum", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ellipsoidNameXName = System.Xml.Linq.XName.Get("ellipsoidName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizontalCoordinateSystemNameXName = System.Xml.Linq.XName.Get("horizontalCoordinateSystemName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName geocentricCoordinateSystemNameXName = System.Xml.Linq.XName.Get("geocentricCoordinateSystemName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fileLocationXName = System.Xml.Linq.XName.Get("fileLocation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rotationAngleXName = System.Xml.Linq.XName.Get("rotationAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName datumXName = System.Xml.Linq.XName.Get("datum", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fittedCoordinateSystemNameXName = System.Xml.Linq.XName.Get("fittedCoordinateSystemName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName compoundCoordinateSystemNameXName = System.Xml.Linq.XName.Get("compoundCoordinateSystemName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName localCoordinateSystemNameXName = System.Xml.Linq.XName.Get("localCoordinateSystemName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName geographicCoordinateSystemNameXName = System.Xml.Linq.XName.Get("geographicCoordinateSystemName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName projectedCoordinateSystemNameXName = System.Xml.Linq.XName.Get("projectedCoordinateSystemName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName verticalCoordinateSystemNameXName = System.Xml.Linq.XName.Get("verticalCoordinateSystemName", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CoordinateSystem", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; public static explicit operator CoordinateSystem(XElement xe) { return XTypedServices.ToXTypedElement<CoordinateSystem>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CoordinateSystem() { - BuildElementDictionary(); - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CoordinateSystem>(this); } /// <summary> @@ -8588,6 +8952,10 @@ static CoordinateSystem() { public CoordinateSystem() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -8599,6 +8967,9 @@ public CoordinateSystem() { public virtual Start Start { get { XElement x = this.GetElement(StartXName); + if ((x == null)) { + return null; + } return ((Start)(x)); } set { @@ -8606,6 +8977,13 @@ public virtual Start Start { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -8636,6 +9014,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -8677,6 +9062,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8685,6 +9074,9 @@ public virtual IEnumerable<XElement> Any { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8692,6 +9084,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8700,6 +9096,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8707,6 +9106,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName epsgCodeXName = System.Xml.Linq.XName.Get("epsgCode", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8715,6 +9118,9 @@ public virtual string name { public virtual string epsgCode { get { XAttribute x = this.Attribute(epsgCodeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8722,6 +9128,10 @@ public virtual string epsgCode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ogcWktCodeXName = System.Xml.Linq.XName.Get("ogcWktCode", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8730,6 +9140,9 @@ public virtual string epsgCode { public virtual string ogcWktCode { get { XAttribute x = this.Attribute(ogcWktCodeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8737,6 +9150,10 @@ public virtual string ogcWktCode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizontalDatumXName = System.Xml.Linq.XName.Get("horizontalDatum", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8745,6 +9162,9 @@ public virtual string ogcWktCode { public virtual string horizontalDatum { get { XAttribute x = this.Attribute(horizontalDatumXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8752,6 +9172,10 @@ public virtual string horizontalDatum { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName verticalDatumXName = System.Xml.Linq.XName.Get("verticalDatum", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8760,6 +9184,9 @@ public virtual string horizontalDatum { public virtual string verticalDatum { get { XAttribute x = this.Attribute(verticalDatumXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8767,6 +9194,10 @@ public virtual string verticalDatum { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ellipsoidNameXName = System.Xml.Linq.XName.Get("ellipsoidName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8775,6 +9206,9 @@ public virtual string verticalDatum { public virtual string ellipsoidName { get { XAttribute x = this.Attribute(ellipsoidNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8782,6 +9216,10 @@ public virtual string ellipsoidName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizontalCoordinateSystemNameXName = System.Xml.Linq.XName.Get("horizontalCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8790,6 +9228,9 @@ public virtual string ellipsoidName { public virtual string horizontalCoordinateSystemName { get { XAttribute x = this.Attribute(horizontalCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8797,6 +9238,10 @@ public virtual string horizontalCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName geocentricCoordinateSystemNameXName = System.Xml.Linq.XName.Get("geocentricCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8805,6 +9250,9 @@ public virtual string horizontalCoordinateSystemName { public virtual string geocentricCoordinateSystemName { get { XAttribute x = this.Attribute(geocentricCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8812,6 +9260,10 @@ public virtual string geocentricCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fileLocationXName = System.Xml.Linq.XName.Get("fileLocation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8820,6 +9272,9 @@ public virtual string geocentricCoordinateSystemName { public virtual System.Uri fileLocation { get { XAttribute x = this.Attribute(fileLocationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -8827,6 +9282,10 @@ public virtual System.Uri fileLocation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rotationAngleXName = System.Xml.Linq.XName.Get("rotationAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8845,6 +9304,10 @@ public virtual System.Double? rotationAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName datumXName = System.Xml.Linq.XName.Get("datum", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8853,6 +9316,9 @@ public virtual System.Double? rotationAngle { public virtual string datum { get { XAttribute x = this.Attribute(datumXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8860,6 +9326,10 @@ public virtual string datum { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fittedCoordinateSystemNameXName = System.Xml.Linq.XName.Get("fittedCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8868,6 +9338,9 @@ public virtual string datum { public virtual string fittedCoordinateSystemName { get { XAttribute x = this.Attribute(fittedCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8875,6 +9348,10 @@ public virtual string fittedCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName compoundCoordinateSystemNameXName = System.Xml.Linq.XName.Get("compoundCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8883,6 +9360,9 @@ public virtual string fittedCoordinateSystemName { public virtual string compoundCoordinateSystemName { get { XAttribute x = this.Attribute(compoundCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8890,6 +9370,10 @@ public virtual string compoundCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName localCoordinateSystemNameXName = System.Xml.Linq.XName.Get("localCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8898,6 +9382,9 @@ public virtual string compoundCoordinateSystemName { public virtual string localCoordinateSystemName { get { XAttribute x = this.Attribute(localCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8905,6 +9392,10 @@ public virtual string localCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName geographicCoordinateSystemNameXName = System.Xml.Linq.XName.Get("geographicCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8913,6 +9404,9 @@ public virtual string localCoordinateSystemName { public virtual string geographicCoordinateSystemName { get { XAttribute x = this.Attribute(geographicCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8920,6 +9414,10 @@ public virtual string geographicCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName projectedCoordinateSystemNameXName = System.Xml.Linq.XName.Get("projectedCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8928,6 +9426,9 @@ public virtual string geographicCoordinateSystemName { public virtual string projectedCoordinateSystemName { get { XAttribute x = this.Attribute(projectedCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8935,6 +9436,10 @@ public virtual string projectedCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName verticalCoordinateSystemNameXName = System.Xml.Linq.XName.Get("verticalCoordinateSystemName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8943,6 +9448,9 @@ public virtual string projectedCoordinateSystemName { public virtual string verticalCoordinateSystemName { get { XAttribute x = this.Attribute(verticalCoordinateSystemNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8950,6 +9458,22 @@ public virtual string verticalCoordinateSystemName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CoordinateSystem", "http://www.landxml.org/schema/LandXML-1.2"); + + static CoordinateSystem() { + BuildElementDictionary(); + InitFSM(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartXName, typeof(Start)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -8957,6 +9481,27 @@ public virtual string verticalCoordinateSystemName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"), 2), new SingleTransition(System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"), 3), new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); + transitions.Add(2, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"), 2), new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); + transitions.Add(5, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); + transitions.Add(3, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"), 3), new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); + validationStates = new FSM(1, new Set<int>(new int[] { + 2, + 1, + 3, + 5, + 8}), transitions); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8977,6 +9522,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((Author* | any)) + /// </para> + /// </summary> + public partial class Application : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -8990,98 +9543,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CoordinateSystem Load(string xmlFile) { - return XTypedServices.Load<CoordinateSystem>(xmlFile); - } - - public static CoordinateSystem Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CoordinateSystem>(xmlFile); - } - - public static CoordinateSystem Parse(string xml) { - return XTypedServices.Parse<CoordinateSystem>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CoordinateSystem>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(StartXName, typeof(Start)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Application Load(string xmlFile) { + return XTypedServices.Load<Application>(xmlFile); } - FSM IXMetaData.GetValidationStates() { - return validationStates; + public static Application Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Application>(xmlFile); } - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"), 2), new SingleTransition(System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"), 3), new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); - transitions.Add(2, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"), 2), new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); - transitions.Add(5, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); - transitions.Add(3, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"), 3), new SingleTransition(System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"), 5), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 8))); - validationStates = new FSM(1, new Set<int>(new int[] { - 2, - 1, - 3, - 5, - 8}), transitions); + public static Application Parse(string xml) { + return XTypedServices.Parse<Application>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((Author* | any)) - /// </para> - /// </summary> - public partial class Application : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AuthorXName = System.Xml.Linq.XName.Get("Author", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Author> AuthorField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manufacturerURLXName = System.Xml.Linq.XName.Get("manufacturerURL", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Application", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; public static explicit operator Application(XElement xe) { return XTypedServices.ToXTypedElement<Application>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Application() { - BuildElementDictionary(); - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Application>(this); } /// <summary> @@ -9092,6 +9569,13 @@ static Application() { public Application() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AuthorXName = System.Xml.Linq.XName.Get("Author", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Author> AuthorField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -9136,6 +9620,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -9151,6 +9639,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9159,6 +9651,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9166,14 +9661,21 @@ public virtual string desc { } } - /// <summary> - /// <para> + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); + + /// <summary> + /// <para> /// Occurrence: optional /// </para> /// </summary> public virtual string manufacturer { get { XAttribute x = this.Attribute(manufacturerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9181,6 +9683,10 @@ public virtual string manufacturer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9189,6 +9695,9 @@ public virtual string manufacturer { public virtual string version { get { XAttribute x = this.Attribute(versionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9196,6 +9705,10 @@ public virtual string version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manufacturerURLXName = System.Xml.Linq.XName.Get("manufacturerURL", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9204,6 +9717,9 @@ public virtual string version { public virtual string manufacturerURL { get { XAttribute x = this.Attribute(manufacturerURLXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9211,6 +9727,10 @@ public virtual string manufacturerURL { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9229,6 +9749,20 @@ public virtual System.DateTime? timeStamp { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Application", "http://www.landxml.org/schema/LandXML-1.2"); + + static Application() { + BuildElementDictionary(); + InitFSM(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AuthorXName, typeof(Author)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -9236,6 +9770,21 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Author", "http://www.landxml.org/schema/LandXML-1.2"), 1), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 4))); + validationStates = new FSM(1, new Set<int>(new int[] { + 1, + 4}), transitions); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9256,6 +9805,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (any) + /// </para> + /// </summary> + public partial class Author : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -9269,75 +9826,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Application Load(string xmlFile) { - return XTypedServices.Load<Application>(xmlFile); - } - - public static Application Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Application>(xmlFile); - } - - public static Application Parse(string xml) { - return XTypedServices.Parse<Application>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Application>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AuthorXName, typeof(Author)); + public static Author Load(string xmlFile) { + return XTypedServices.Load<Author>(xmlFile); } - FSM IXMetaData.GetValidationStates() { - return validationStates; + public static Author Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Author>(xmlFile); } - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(System.Xml.Linq.XName.Get("Author", "http://www.landxml.org/schema/LandXML-1.2"), 1), new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 4))); - validationStates = new FSM(1, new Set<int>(new int[] { - 1, - 4}), transitions); + public static Author Parse(string xml) { + return XTypedServices.Parse<Author>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (any) - /// </para> - /// </summary> - public partial class Author : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName createdByXName = System.Xml.Linq.XName.Get("createdBy", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName createdByEmailXName = System.Xml.Linq.XName.Get("createdByEmail", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName companyXName = System.Xml.Linq.XName.Get("company", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName companyURLXName = System.Xml.Linq.XName.Get("companyURL", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Author", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; public static explicit operator Author(XElement xe) { return XTypedServices.ToXTypedElement<Author>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Author() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Author>(this); } /// <summary> @@ -9359,6 +9863,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName createdByXName = System.Xml.Linq.XName.Get("createdBy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9367,6 +9875,9 @@ public virtual IEnumerable<XElement> Any { public virtual string createdBy { get { XAttribute x = this.Attribute(createdByXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9374,6 +9885,10 @@ public virtual string createdBy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName createdByEmailXName = System.Xml.Linq.XName.Get("createdByEmail", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9382,6 +9897,9 @@ public virtual string createdBy { public virtual string createdByEmail { get { XAttribute x = this.Attribute(createdByEmailXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9389,6 +9907,10 @@ public virtual string createdByEmail { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName companyXName = System.Xml.Linq.XName.Get("company", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9397,6 +9919,9 @@ public virtual string createdByEmail { public virtual string company { get { XAttribute x = this.Attribute(companyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9404,6 +9929,10 @@ public virtual string company { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName companyURLXName = System.Xml.Linq.XName.Get("companyURL", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9412,6 +9941,9 @@ public virtual string company { public virtual string companyURL { get { XAttribute x = this.Attribute(companyURLXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9419,6 +9951,10 @@ public virtual string companyURL { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9437,6 +9973,27 @@ public virtual System.DateTime? timeStamp { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Author", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 2))); + validationStates = new FSM(1, new Set<int>(new int[] { + 2, + 1}), transitions); + } + + static Author() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9457,6 +10014,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (SurveyHeader, Equipment?, (SurveyMonument? | CgPoints? | InstrumentSetup? | LaserSetup? | GPSSetup? | TargetSetup? | GPSVector | GPSPosition | ObservationGroup | ControlChecks | FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class Survey : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -9470,175 +10035,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Author Load(string xmlFile) { - return XTypedServices.Load<Author>(xmlFile); - } - - public static Author Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Author>(xmlFile); - } - - public static Author Parse(string xml) { - return XTypedServices.Parse<Author>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Author>(this); + public static Survey Load(string xmlFile) { + return XTypedServices.Load<Survey>(xmlFile); } - FSM IXMetaData.GetValidationStates() { - return validationStates; + public static Survey Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Survey>(xmlFile); } - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 2))); - validationStates = new FSM(1, new Set<int>(new int[] { - 2, - 1}), transitions); + public static Survey Parse(string xml) { + return XTypedServices.Parse<Survey>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (SurveyHeader, Equipment?, (SurveyMonument? | CgPoints? | InstrumentSetup? | LaserSetup? | GPSSetup? | TargetSetup? | GPSVector | GPSPosition | ObservationGroup | ControlChecks | FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class Survey : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurveyHeaderXName = System.Xml.Linq.XName.Get("SurveyHeader", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EquipmentXName = System.Xml.Linq.XName.Get("Equipment", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurveyMonumentXName = System.Xml.Linq.XName.Get("SurveyMonument", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SurveyMonument> SurveyMonumentField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CgPointsXName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CgPoints> CgPointsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InstrumentSetupXName = System.Xml.Linq.XName.Get("InstrumentSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<InstrumentSetup> InstrumentSetupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LaserSetupXName = System.Xml.Linq.XName.Get("LaserSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LaserSetup> LaserSetupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSSetupXName = System.Xml.Linq.XName.Get("GPSSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<GPSSetup> GPSSetupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TargetSetup> TargetSetupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSVectorXName = System.Xml.Linq.XName.Get("GPSVector", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<GPSVector> GPSVectorField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSPositionXName = System.Xml.Linq.XName.Get("GPSPosition", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<GPSPosition> GPSPositionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObservationGroupXName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ObservationGroup> ObservationGroupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ControlChecksXName = System.Xml.Linq.XName.Get("ControlChecks", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ControlChecks> ControlChecksField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endTimeXName = System.Xml.Linq.XName.Get("endTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizontalAccuracyXName = System.Xml.Linq.XName.Get("horizontalAccuracy", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName verticalAccuracyXName = System.Xml.Linq.XName.Get("verticalAccuracy", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Survey", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Survey(XElement xe) { return XTypedServices.ToXTypedElement<Survey>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Survey() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SurveyHeaderXName), new NamedContentModelEntity(EquipmentXName), new ChoiceContentModelEntity(new NamedContentModelEntity(SurveyMonumentXName), new NamedContentModelEntity(CgPointsXName), new NamedContentModelEntity(InstrumentSetupXName), new NamedContentModelEntity(LaserSetupXName), new NamedContentModelEntity(GPSSetupXName), new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(GPSVectorXName), new NamedContentModelEntity(GPSPositionXName), new NamedContentModelEntity(ObservationGroupXName), new NamedContentModelEntity(ControlChecksXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Survey>(this); } /// <summary> @@ -9649,6 +10061,10 @@ static Survey() { public Survey() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurveyHeaderXName = System.Xml.Linq.XName.Get("SurveyHeader", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -9667,6 +10083,10 @@ public virtual SurveyHeader SurveyHeader { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EquipmentXName = System.Xml.Linq.XName.Get("Equipment", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -9678,6 +10098,9 @@ public virtual SurveyHeader SurveyHeader { public virtual Equipment Equipment { get { XElement x = this.GetElement(EquipmentXName); + if ((x == null)) { + return null; + } return ((Equipment)(x)); } set { @@ -9685,6 +10108,13 @@ public virtual Equipment Equipment { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurveyMonumentXName = System.Xml.Linq.XName.Get("SurveyMonument", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SurveyMonument> SurveyMonumentField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -9718,6 +10148,13 @@ public virtual IList<SurveyMonument> SurveyMonument { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CgPointsXName = System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CgPoints> CgPointsField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -9751,6 +10188,13 @@ public virtual IList<CgPoints> CgPoints { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InstrumentSetupXName = System.Xml.Linq.XName.Get("InstrumentSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<InstrumentSetup> InstrumentSetupField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -9784,6 +10228,13 @@ public virtual IList<InstrumentSetup> InstrumentSetup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LaserSetupXName = System.Xml.Linq.XName.Get("LaserSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LaserSetup> LaserSetupField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -9817,6 +10268,13 @@ public virtual IList<LaserSetup> LaserSetup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSSetupXName = System.Xml.Linq.XName.Get("GPSSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<GPSSetup> GPSSetupField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -9850,6 +10308,13 @@ public virtual IList<GPSSetup> GPSSetup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TargetSetup> TargetSetupField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -9883,6 +10348,13 @@ public virtual IList<TargetSetup> TargetSetup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSVectorXName = System.Xml.Linq.XName.Get("GPSVector", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<GPSVector> GPSVectorField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -9916,6 +10388,13 @@ public virtual IList<GPSVector> GPSVector { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSPositionXName = System.Xml.Linq.XName.Get("GPSPosition", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<GPSPosition> GPSPositionField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -9949,6 +10428,13 @@ public virtual IList<GPSPosition> GPSPosition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObservationGroupXName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ObservationGroup> ObservationGroupField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -9982,6 +10468,13 @@ public virtual IList<ObservationGroup> ObservationGroup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ControlChecksXName = System.Xml.Linq.XName.Get("ControlChecks", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ControlChecks> ControlChecksField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -10015,6 +10508,13 @@ public virtual IList<ControlChecks> ControlChecks { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10048,6 +10548,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10081,6 +10588,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10089,6 +10600,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10096,6 +10610,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10114,6 +10632,10 @@ public virtual System.DateTime? date { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10132,6 +10654,10 @@ public virtual System.DateTime? startTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endTimeXName = System.Xml.Linq.XName.Get("endTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10150,6 +10676,10 @@ public virtual System.DateTime? endTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10161,13 +10691,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizontalAccuracyXName = System.Xml.Linq.XName.Get("horizontalAccuracy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10176,6 +10715,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string horizontalAccuracy { get { XAttribute x = this.Attribute(horizontalAccuracyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10183,6 +10725,10 @@ public virtual string horizontalAccuracy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName verticalAccuracyXName = System.Xml.Linq.XName.Get("verticalAccuracy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10191,6 +10737,9 @@ public virtual string horizontalAccuracy { public virtual string verticalAccuracy { get { XAttribute x = this.Attribute(verticalAccuracyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10198,6 +10747,33 @@ public virtual string verticalAccuracy { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Survey", "http://www.landxml.org/schema/LandXML-1.2"); + + static Survey() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SurveyHeaderXName), new NamedContentModelEntity(EquipmentXName), new ChoiceContentModelEntity(new NamedContentModelEntity(SurveyMonumentXName), new NamedContentModelEntity(CgPointsXName), new NamedContentModelEntity(InstrumentSetupXName), new NamedContentModelEntity(LaserSetupXName), new NamedContentModelEntity(GPSSetupXName), new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(GPSVectorXName), new NamedContentModelEntity(GPSPositionXName), new NamedContentModelEntity(ObservationGroupXName), new NamedContentModelEntity(ControlChecksXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SurveyHeaderXName, typeof(SurveyHeader)); + localElementDictionary.Add(EquipmentXName, typeof(Equipment)); + localElementDictionary.Add(SurveyMonumentXName, typeof(SurveyMonument)); + localElementDictionary.Add(CgPointsXName, typeof(CgPoints)); + localElementDictionary.Add(InstrumentSetupXName, typeof(InstrumentSetup)); + localElementDictionary.Add(LaserSetupXName, typeof(LaserSetup)); + localElementDictionary.Add(GPSSetupXName, typeof(GPSSetup)); + localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); + localElementDictionary.Add(GPSVectorXName, typeof(GPSVector)); + localElementDictionary.Add(GPSPositionXName, typeof(GPSPosition)); + localElementDictionary.Add(ObservationGroupXName, typeof(ObservationGroup)); + localElementDictionary.Add(ControlChecksXName, typeof(ControlChecks)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -10205,6 +10781,13 @@ public virtual string verticalAccuracy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10225,6 +10808,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Annotation* | AdministrativeArea* | AdministrativeDate* | CoordinateSystem? | Units? | MapPoint* | Personnel* | FieldNote* | Feature* | SurveyorCertificate* | PurposeOfSurvey* | HeadOfPower*)* + /// </para> + /// </summary> + public partial class SurveyHeader : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -10238,268 +10829,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Survey Load(string xmlFile) { - return XTypedServices.Load<Survey>(xmlFile); - } - - public static Survey Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Survey>(xmlFile); - } - - public static Survey Parse(string xml) { - return XTypedServices.Parse<Survey>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Survey>(this); + public static SurveyHeader Load(string xmlFile) { + return XTypedServices.Load<SurveyHeader>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SurveyHeaderXName, typeof(SurveyHeader)); - localElementDictionary.Add(EquipmentXName, typeof(Equipment)); - localElementDictionary.Add(SurveyMonumentXName, typeof(SurveyMonument)); - localElementDictionary.Add(CgPointsXName, typeof(CgPoints)); - localElementDictionary.Add(InstrumentSetupXName, typeof(InstrumentSetup)); - localElementDictionary.Add(LaserSetupXName, typeof(LaserSetup)); - localElementDictionary.Add(GPSSetupXName, typeof(GPSSetup)); - localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); - localElementDictionary.Add(GPSVectorXName, typeof(GPSVector)); - localElementDictionary.Add(GPSPositionXName, typeof(GPSPosition)); - localElementDictionary.Add(ObservationGroupXName, typeof(ObservationGroup)); - localElementDictionary.Add(ControlChecksXName, typeof(ControlChecks)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static SurveyHeader Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SurveyHeader>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static SurveyHeader Parse(string xml) { + return XTypedServices.Parse<SurveyHeader>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Annotation* | AdministrativeArea* | AdministrativeDate* | CoordinateSystem? | Units? | MapPoint* | Personnel* | FieldNote* | Feature* | SurveyorCertificate* | PurposeOfSurvey* | HeadOfPower*)* - /// </para> - /// </summary> - public partial class SurveyHeader : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AnnotationXName = System.Xml.Linq.XName.Get("Annotation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Annotation> AnnotationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AdministrativeAreaXName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AdministrativeArea> AdministrativeAreaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AdministrativeDateXName = System.Xml.Linq.XName.Get("AdministrativeDate", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AdministrativeDate> AdministrativeDateField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CoordinateSystemXName = System.Xml.Linq.XName.Get("CoordinateSystem", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CoordinateSystem> CoordinateSystemField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Units> UnitsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MapPointXName = System.Xml.Linq.XName.Get("MapPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<MapPoint> MapPointField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PersonnelXName = System.Xml.Linq.XName.Get("Personnel", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Personnel> PersonnelField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurveyorCertificateXName = System.Xml.Linq.XName.Get("SurveyorCertificate", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SurveyorCertificate> SurveyorCertificateField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PurposeOfSurveyXName = System.Xml.Linq.XName.Get("PurposeOfSurvey", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PurposeOfSurvey> PurposeOfSurveyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HeadOfPowerXName = System.Xml.Linq.XName.Get("HeadOfPower", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<HeadOfPower> HeadOfPowerField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endTimeXName = System.Xml.Linq.XName.Get("endTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyorXName = System.Xml.Linq.XName.Get("surveyor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyorFirmXName = System.Xml.Linq.XName.Get("surveyorFirm", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyorReferenceXName = System.Xml.Linq.XName.Get("surveyorReference", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyorRegistrationXName = System.Xml.Linq.XName.Get("surveyorRegistration", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyPurposeXName = System.Xml.Linq.XName.Get("surveyPurpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName countyXName = System.Xml.Linq.XName.Get("county", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName applyAtmosphericCorrectionXName = System.Xml.Linq.XName.Get("applyAtmosphericCorrection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pressureXName = System.Xml.Linq.XName.Get("pressure", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName temperatureXName = System.Xml.Linq.XName.Get("temperature", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName applySeaLevelCorrectionXName = System.Xml.Linq.XName.Get("applySeaLevelCorrection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName scaleFactorXName = System.Xml.Linq.XName.Get("scaleFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName seaLevelCorrectionFactorXName = System.Xml.Linq.XName.Get("seaLevelCorrectionFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName combinedFactorXName = System.Xml.Linq.XName.Get("combinedFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName jurisdictionXName = System.Xml.Linq.XName.Get("jurisdiction", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName submissionDateXName = System.Xml.Linq.XName.Get("submissionDate", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName documentStatusXName = System.Xml.Linq.XName.Get("documentStatus", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyFormatXName = System.Xml.Linq.XName.Get("surveyFormat", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyStatusXName = System.Xml.Linq.XName.Get("surveyStatus", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName communityTitleSchemeNoXName = System.Xml.Linq.XName.Get("communityTitleSchemeNo", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName communityTitleSchemeNameXName = System.Xml.Linq.XName.Get("communityTitleSchemeName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fieldNoteFlagXName = System.Xml.Linq.XName.Get("fieldNoteFlag", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fieldNoteReferenceXName = System.Xml.Linq.XName.Get("fieldNoteReference", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fieldReportXName = System.Xml.Linq.XName.Get("fieldReport", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurveyHeader", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator SurveyHeader(XElement xe) { return XTypedServices.ToXTypedElement<SurveyHeader>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SurveyHeader() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(AnnotationXName), new NamedContentModelEntity(AdministrativeAreaXName), new NamedContentModelEntity(AdministrativeDateXName), new NamedContentModelEntity(CoordinateSystemXName), new NamedContentModelEntity(UnitsXName), new NamedContentModelEntity(MapPointXName), new NamedContentModelEntity(PersonnelXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName), new NamedContentModelEntity(SurveyorCertificateXName), new NamedContentModelEntity(PurposeOfSurveyXName), new NamedContentModelEntity(HeadOfPowerXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SurveyHeader>(this); } /// <summary> @@ -10510,6 +10855,13 @@ static SurveyHeader() { public SurveyHeader() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AnnotationXName = System.Xml.Linq.XName.Get("Annotation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Annotation> AnnotationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10540,6 +10892,13 @@ public virtual IList<Annotation> Annotation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AdministrativeAreaXName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AdministrativeArea> AdministrativeAreaField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10570,6 +10929,13 @@ public virtual IList<AdministrativeArea> AdministrativeArea { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AdministrativeDateXName = System.Xml.Linq.XName.Get("AdministrativeDate", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AdministrativeDate> AdministrativeDateField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10600,6 +10966,13 @@ public virtual IList<AdministrativeDate> AdministrativeDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CoordinateSystemXName = System.Xml.Linq.XName.Get("CoordinateSystem", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CoordinateSystem> CoordinateSystemField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -10630,6 +11003,13 @@ public virtual IList<CoordinateSystem> CoordinateSystem { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Units> UnitsField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -10660,6 +11040,13 @@ public virtual IList<Units> Units { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MapPointXName = System.Xml.Linq.XName.Get("MapPoint", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<MapPoint> MapPointField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10690,6 +11077,13 @@ public virtual IList<MapPoint> MapPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PersonnelXName = System.Xml.Linq.XName.Get("Personnel", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Personnel> PersonnelField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10720,6 +11114,13 @@ public virtual IList<Personnel> Personnel { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10750,6 +11151,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10780,6 +11188,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurveyorCertificateXName = System.Xml.Linq.XName.Get("SurveyorCertificate", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SurveyorCertificate> SurveyorCertificateField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10810,6 +11225,13 @@ public virtual IList<SurveyorCertificate> SurveyorCertificate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PurposeOfSurveyXName = System.Xml.Linq.XName.Get("PurposeOfSurvey", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PurposeOfSurvey> PurposeOfSurveyField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10840,6 +11262,13 @@ public virtual IList<PurposeOfSurvey> PurposeOfSurvey { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HeadOfPowerXName = System.Xml.Linq.XName.Get("HeadOfPower", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<HeadOfPower> HeadOfPowerField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -10870,6 +11299,10 @@ public virtual IList<HeadOfPower> HeadOfPower { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -10885,6 +11318,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10893,6 +11330,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10900,6 +11340,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10911,13 +11355,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10936,6 +11389,10 @@ public virtual System.DateTime? startTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endTimeXName = System.Xml.Linq.XName.Get("endTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10954,6 +11411,10 @@ public virtual System.DateTime? endTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyorXName = System.Xml.Linq.XName.Get("surveyor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10962,6 +11423,9 @@ public virtual System.DateTime? endTime { public virtual string surveyor { get { XAttribute x = this.Attribute(surveyorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10969,6 +11433,10 @@ public virtual string surveyor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyorFirmXName = System.Xml.Linq.XName.Get("surveyorFirm", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10977,6 +11445,9 @@ public virtual string surveyor { public virtual string surveyorFirm { get { XAttribute x = this.Attribute(surveyorFirmXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10984,6 +11455,10 @@ public virtual string surveyorFirm { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyorReferenceXName = System.Xml.Linq.XName.Get("surveyorReference", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10992,6 +11467,9 @@ public virtual string surveyorFirm { public virtual string surveyorReference { get { XAttribute x = this.Attribute(surveyorReferenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10999,6 +11477,10 @@ public virtual string surveyorReference { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyorRegistrationXName = System.Xml.Linq.XName.Get("surveyorRegistration", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11007,6 +11489,9 @@ public virtual string surveyorReference { public virtual string surveyorRegistration { get { XAttribute x = this.Attribute(surveyorRegistrationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11014,6 +11499,10 @@ public virtual string surveyorRegistration { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyPurposeXName = System.Xml.Linq.XName.Get("surveyPurpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11022,6 +11511,9 @@ public virtual string surveyorRegistration { public virtual string surveyPurpose { get { XAttribute x = this.Attribute(surveyPurposeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11029,6 +11521,10 @@ public virtual string surveyPurpose { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11040,13 +11536,22 @@ public virtual LandXml.v1_2.surveyType? type { if ((x == null)) { return null; } - return ((LandXml.v1_2.surveyType)(Enum.Parse(typeof(LandXml.v1_2.surveyType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.surveyType)(Enum.Parse(typeof(LandXml.v1_2.surveyType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::LandXml.v1_2.surveyTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11055,6 +11560,9 @@ public virtual LandXml.v1_2.surveyType? type { public virtual string @class { get { XAttribute x = this.Attribute(@classXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11062,6 +11570,10 @@ public virtual string @class { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName countyXName = System.Xml.Linq.XName.Get("county", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11070,6 +11582,9 @@ public virtual string @class { public virtual string county { get { XAttribute x = this.Attribute(countyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11077,6 +11592,10 @@ public virtual string county { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName applyAtmosphericCorrectionXName = System.Xml.Linq.XName.Get("applyAtmosphericCorrection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11095,6 +11614,10 @@ public virtual System.Boolean? applyAtmosphericCorrection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pressureXName = System.Xml.Linq.XName.Get("pressure", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11113,6 +11636,10 @@ public virtual System.Double? pressure { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName temperatureXName = System.Xml.Linq.XName.Get("temperature", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11131,6 +11658,10 @@ public virtual System.Double? temperature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName applySeaLevelCorrectionXName = System.Xml.Linq.XName.Get("applySeaLevelCorrection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11149,6 +11680,10 @@ public virtual System.Boolean? applySeaLevelCorrection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName scaleFactorXName = System.Xml.Linq.XName.Get("scaleFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11167,6 +11702,10 @@ public virtual System.Double? scaleFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName seaLevelCorrectionFactorXName = System.Xml.Linq.XName.Get("seaLevelCorrectionFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11185,6 +11724,10 @@ public virtual System.Double? seaLevelCorrectionFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName combinedFactorXName = System.Xml.Linq.XName.Get("combinedFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11203,6 +11746,10 @@ public virtual System.Double? combinedFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName jurisdictionXName = System.Xml.Linq.XName.Get("jurisdiction", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11211,6 +11758,9 @@ public virtual System.Double? combinedFactor { public virtual string jurisdiction { get { XAttribute x = this.Attribute(jurisdictionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11218,6 +11768,10 @@ public virtual string jurisdiction { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName submissionDateXName = System.Xml.Linq.XName.Get("submissionDate", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11236,6 +11790,10 @@ public virtual System.DateTime? submissionDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName documentStatusXName = System.Xml.Linq.XName.Get("documentStatus", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11244,6 +11802,9 @@ public virtual System.DateTime? submissionDate { public virtual string documentStatus { get { XAttribute x = this.Attribute(documentStatusXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11251,6 +11812,10 @@ public virtual string documentStatus { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyFormatXName = System.Xml.Linq.XName.Get("surveyFormat", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11259,6 +11824,9 @@ public virtual string documentStatus { public virtual string surveyFormat { get { XAttribute x = this.Attribute(surveyFormatXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11266,6 +11834,10 @@ public virtual string surveyFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyStatusXName = System.Xml.Linq.XName.Get("surveyStatus", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11274,6 +11846,9 @@ public virtual string surveyFormat { public virtual string surveyStatus { get { XAttribute x = this.Attribute(surveyStatusXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11281,6 +11856,10 @@ public virtual string surveyStatus { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName communityTitleSchemeNoXName = System.Xml.Linq.XName.Get("communityTitleSchemeNo", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11299,6 +11878,10 @@ public virtual System.Int32? communityTitleSchemeNo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName communityTitleSchemeNameXName = System.Xml.Linq.XName.Get("communityTitleSchemeName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11307,6 +11890,9 @@ public virtual System.Int32? communityTitleSchemeNo { public virtual string communityTitleSchemeName { get { XAttribute x = this.Attribute(communityTitleSchemeNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11314,6 +11900,10 @@ public virtual string communityTitleSchemeName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fieldNoteFlagXName = System.Xml.Linq.XName.Get("fieldNoteFlag", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11332,6 +11922,10 @@ public virtual System.Boolean? fieldNoteFlag { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fieldNoteReferenceXName = System.Xml.Linq.XName.Get("fieldNoteReference", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11340,6 +11934,9 @@ public virtual System.Boolean? fieldNoteFlag { public virtual string fieldNoteReference { get { XAttribute x = this.Attribute(fieldNoteReferenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11347,6 +11944,10 @@ public virtual string fieldNoteReference { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fieldReportXName = System.Xml.Linq.XName.Get("fieldReport", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11355,6 +11956,9 @@ public virtual string fieldNoteReference { public virtual string fieldReport { get { XAttribute x = this.Attribute(fieldReportXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11362,61 +11966,15 @@ public virtual string fieldReport { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurveyHeader", "http://www.landxml.org/schema/LandXML-1.2"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Element; - } + static SurveyHeader() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(AnnotationXName), new NamedContentModelEntity(AdministrativeAreaXName), new NamedContentModelEntity(AdministrativeDateXName), new NamedContentModelEntity(CoordinateSystemXName), new NamedContentModelEntity(UnitsXName), new NamedContentModelEntity(MapPointXName), new NamedContentModelEntity(PersonnelXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName), new NamedContentModelEntity(SurveyorCertificateXName), new NamedContentModelEntity(PurposeOfSurveyXName), new NamedContentModelEntity(HeadOfPowerXName)); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static SurveyHeader Load(string xmlFile) { - return XTypedServices.Load<SurveyHeader>(xmlFile); - } - - public static SurveyHeader Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SurveyHeader>(xmlFile); - } - - public static SurveyHeader Parse(string xml) { - return XTypedServices.Parse<SurveyHeader>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SurveyHeader>(this); - } + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); private static void BuildElementDictionary() { localElementDictionary.Add(AnnotationXName, typeof(Annotation)); @@ -11433,37 +11991,18 @@ private static void BuildElementDictionary() { localElementDictionary.Add(HeadOfPowerXName, typeof(HeadOfPower)); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } } - } - - public partial class HeadOfPower : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HeadOfPower", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator HeadOfPower(XElement xe) { return XTypedServices.ToXTypedElement<HeadOfPower>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public HeadOfPower() { - } + private static ContentModelEntity contentModel; - /// <summary> - /// <para> - /// Occurrence: required - /// </para> - /// </summary> - public virtual string name { - get { - XAttribute x = this.Attribute(nameXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - set { - this.SetAttribute(nameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -11486,6 +12025,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class HeadOfPower : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11511,98 +12053,38 @@ public static HeadOfPower Parse(string xml) { return XTypedServices.Parse<HeadOfPower>(xml); } + public static explicit operator HeadOfPower(XElement xe) { return XTypedServices.ToXTypedElement<HeadOfPower>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<HeadOfPower>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public HeadOfPower() { } - } - - public partial class AdministrativeArea : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adminAreaTypeXName = System.Xml.Linq.XName.Get("adminAreaType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adminAreaNameXName = System.Xml.Linq.XName.Get("adminAreaName", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adminAreaCodeXName = System.Xml.Linq.XName.Get("adminAreaCode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator AdministrativeArea(XElement xe) { return XTypedServices.ToXTypedElement<AdministrativeArea>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public AdministrativeArea() { - } + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string adminAreaType { - get { - XAttribute x = this.Attribute(adminAreaTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - set { - this.SetAttribute(adminAreaTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } - - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual string adminAreaName { + public virtual string name { get { - XAttribute x = this.Attribute(adminAreaNameXName); + XAttribute x = this.Attribute(nameXName); return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { - this.SetAttribute(adminAreaNameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttribute(nameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual string adminAreaCode { - get { - XAttribute x = this.Attribute(adminAreaCodeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - set { - this.SetAttribute(adminAreaCodeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HeadOfPower", "http://www.landxml.org/schema/LandXML-1.2"); - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual IList<string> pclRef { - get { - XAttribute x = this.Attribute(pclRefXName); - return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - set { - this.SetListAttribute(pclRefXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -11625,6 +12107,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AdministrativeArea : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11650,62 +12135,106 @@ public static AdministrativeArea Parse(string xml) { return XTypedServices.Parse<AdministrativeArea>(xml); } + public static explicit operator AdministrativeArea(XElement xe) { return XTypedServices.ToXTypedElement<AdministrativeArea>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<AdministrativeArea>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public AdministrativeArea() { } - } - - public partial class AdministrativeDate : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adminDateTypeXName = System.Xml.Linq.XName.Get("adminDateType", ""); + protected internal static readonly System.Xml.Linq.XName adminAreaTypeXName = System.Xml.Linq.XName.Get("adminAreaType", ""); + + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// </summary> + public virtual string adminAreaType { + get { + XAttribute x = this.Attribute(adminAreaTypeXName); + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(adminAreaTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adminDateXName = System.Xml.Linq.XName.Get("adminDate", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdministrativeDate", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator AdministrativeDate(XElement xe) { return XTypedServices.ToXTypedElement<AdministrativeDate>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + protected internal static readonly System.Xml.Linq.XName adminAreaNameXName = System.Xml.Linq.XName.Get("adminAreaName", ""); - public AdministrativeDate() { + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual string adminAreaName { + get { + XAttribute x = this.Attribute(adminAreaNameXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(adminAreaNameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName adminAreaCodeXName = System.Xml.Linq.XName.Get("adminAreaCode", ""); + /// <summary> /// <para> - /// Occurrence: required + /// Occurrence: optional /// </para> /// </summary> - public virtual string adminDateType { + public virtual string adminAreaCode { get { - XAttribute x = this.Attribute(adminDateTypeXName); + XAttribute x = this.Attribute(adminAreaCodeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { - this.SetAttribute(adminDateTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttribute(adminAreaCodeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); + /// <summary> /// <para> - /// Occurrence: required + /// Occurrence: optional /// </para> /// </summary> - public virtual System.DateTime adminDate { + public virtual IList<string> pclRef { get { - XAttribute x = this.Attribute(adminDateXName); - return XTypedServices.ParseValue<System.DateTime>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Date).Datatype); + XAttribute x = this.Attribute(pclRefXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { - this.SetAttribute(adminDateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Date).Datatype); + this.SetListAttribute(pclRefXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11726,6 +12255,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AdministrativeDate : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11751,40 +12283,120 @@ public static AdministrativeDate Parse(string xml) { return XTypedServices.Parse<AdministrativeDate>(xml); } + public static explicit operator AdministrativeDate(XElement xe) { return XTypedServices.ToXTypedElement<AdministrativeDate>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<AdministrativeDate>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public AdministrativeDate() { } - } - - public partial class Annotation : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + protected internal static readonly System.Xml.Linq.XName adminDateTypeXName = System.Xml.Linq.XName.Get("adminDateType", ""); + + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// </summary> + public virtual string adminDateType { + get { + XAttribute x = this.Attribute(adminDateTypeXName); + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(adminDateTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + protected internal static readonly System.Xml.Linq.XName adminDateXName = System.Xml.Linq.XName.Get("adminDate", ""); + + /// <summary> + /// <para> + /// Occurrence: required + /// </para> + /// </summary> + public virtual System.DateTime adminDate { + get { + XAttribute x = this.Attribute(adminDateXName); + return XTypedServices.ParseValue<System.DateTime>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Date).Datatype); + } + set { + this.SetAttribute(adminDateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Date).Datatype); + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdministrativeDate", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Annotation", "http://www.landxml.org/schema/LandXML-1.2"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class Annotation : XTypedElement, IXMetaData { + + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } + + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Annotation Load(string xmlFile) { + return XTypedServices.Load<Annotation>(xmlFile); + } + + public static Annotation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Annotation>(xmlFile); + } + + public static Annotation Parse(string xml) { + return XTypedServices.Parse<Annotation>(xml); + } public static explicit operator Annotation(XElement xe) { return XTypedServices.ToXTypedElement<Annotation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Annotation>(this); + } + public Annotation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: required @@ -11800,6 +12412,10 @@ public virtual string type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11808,6 +12424,9 @@ public virtual string type { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11815,6 +12434,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11823,6 +12446,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11830,6 +12456,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11838,6 +12468,9 @@ public virtual string desc { public virtual IList<string> pclRef { get { XAttribute x = this.Attribute(pclRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11845,6 +12478,12 @@ public virtual IList<string> pclRef { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Annotation", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11865,6 +12504,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class SurveyorCertificate : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -11878,51 +12520,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Annotation Load(string xmlFile) { - return XTypedServices.Load<Annotation>(xmlFile); + public static SurveyorCertificate Load(string xmlFile) { + return XTypedServices.Load<SurveyorCertificate>(xmlFile); } - public static Annotation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Annotation>(xmlFile); + public static SurveyorCertificate Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SurveyorCertificate>(xmlFile); } - public static Annotation Parse(string xml) { - return XTypedServices.Parse<Annotation>(xml); + public static SurveyorCertificate Parse(string xml) { + return XTypedServices.Parse<SurveyorCertificate>(xml); } + public static explicit operator SurveyorCertificate(XElement xe) { return XTypedServices.ToXTypedElement<SurveyorCertificate>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Annotation>(this); + return XTypedServices.CloneXTypedElement<SurveyorCertificate>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public SurveyorCertificate() { } - } - - public partial class SurveyorCertificate : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName certificateTypeXName = System.Xml.Linq.XName.Get("certificateType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName textCertificateXName = System.Xml.Linq.XName.Get("textCertificate", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surveyDateXName = System.Xml.Linq.XName.Get("surveyDate", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurveyorCertificate", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator SurveyorCertificate(XElement xe) { return XTypedServices.ToXTypedElement<SurveyorCertificate>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SurveyorCertificate() { - } + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); /// <summary> /// <para> @@ -11939,6 +12560,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName certificateTypeXName = System.Xml.Linq.XName.Get("certificateType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11947,6 +12572,9 @@ public virtual string name { public virtual string certificateType { get { XAttribute x = this.Attribute(certificateTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11954,6 +12582,10 @@ public virtual string certificateType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName textCertificateXName = System.Xml.Linq.XName.Get("textCertificate", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11962,6 +12594,9 @@ public virtual string certificateType { public virtual string textCertificate { get { XAttribute x = this.Attribute(textCertificateXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11969,6 +12604,10 @@ public virtual string textCertificate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surveyDateXName = System.Xml.Linq.XName.Get("surveyDate", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11987,6 +12626,12 @@ public virtual System.DateTime? surveyDate { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurveyorCertificate", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12007,6 +12652,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class PurposeOfSurvey : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12020,39 +12668,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static SurveyorCertificate Load(string xmlFile) { - return XTypedServices.Load<SurveyorCertificate>(xmlFile); + public static PurposeOfSurvey Load(string xmlFile) { + return XTypedServices.Load<PurposeOfSurvey>(xmlFile); } - public static SurveyorCertificate Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SurveyorCertificate>(xmlFile); + public static PurposeOfSurvey Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PurposeOfSurvey>(xmlFile); } - public static SurveyorCertificate Parse(string xml) { - return XTypedServices.Parse<SurveyorCertificate>(xml); + public static PurposeOfSurvey Parse(string xml) { + return XTypedServices.Parse<PurposeOfSurvey>(xml); } + public static explicit operator PurposeOfSurvey(XElement xe) { return XTypedServices.ToXTypedElement<PurposeOfSurvey>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SurveyorCertificate>(this); + return XTypedServices.CloneXTypedElement<PurposeOfSurvey>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public PurposeOfSurvey() { } - } - - public partial class PurposeOfSurvey : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PurposeOfSurvey", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator PurposeOfSurvey(XElement xe) { return XTypedServices.ToXTypedElement<PurposeOfSurvey>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PurposeOfSurvey() { - } + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); /// <summary> /// <para> @@ -12069,6 +12708,12 @@ public virtual string name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PurposeOfSurvey", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12089,6 +12734,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (AmendmentItem+) + /// </para> + /// </summary> + public partial class Amendment : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12102,66 +12755,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PurposeOfSurvey Load(string xmlFile) { - return XTypedServices.Load<PurposeOfSurvey>(xmlFile); - } - - public static PurposeOfSurvey Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PurposeOfSurvey>(xmlFile); - } - - public static PurposeOfSurvey Parse(string xml) { - return XTypedServices.Parse<PurposeOfSurvey>(xml); + public static Amendment Load(string xmlFile) { + return XTypedServices.Load<Amendment>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PurposeOfSurvey>(this); + public static Amendment Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Amendment>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Amendment Parse(string xml) { + return XTypedServices.Parse<Amendment>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (AmendmentItem+) - /// </para> - /// </summary> - public partial class Amendment : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AmendmentItemXName = System.Xml.Linq.XName.Get("AmendmentItem", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AmendmentItem> AmendmentItemField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dealingNumberXName = System.Xml.Linq.XName.Get("dealingNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName amendmentDateXName = System.Xml.Linq.XName.Get("amendmentDate", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName commentsXName = System.Xml.Linq.XName.Get("comments", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Amendment", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Amendment(XElement xe) { return XTypedServices.ToXTypedElement<Amendment>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Amendment() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AmendmentItemXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Amendment>(this); } /// <summary> @@ -12172,6 +12781,13 @@ static Amendment() { public Amendment() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AmendmentItemXName = System.Xml.Linq.XName.Get("AmendmentItem", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AmendmentItem> AmendmentItemField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -12202,6 +12818,10 @@ public virtual IList<AmendmentItem> AmendmentItem { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dealingNumberXName = System.Xml.Linq.XName.Get("dealingNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12210,6 +12830,9 @@ public virtual IList<AmendmentItem> AmendmentItem { public virtual string dealingNumber { get { XAttribute x = this.Attribute(dealingNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12217,6 +12840,10 @@ public virtual string dealingNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName amendmentDateXName = System.Xml.Linq.XName.Get("amendmentDate", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12235,6 +12862,10 @@ public virtual System.DateTime? amendmentDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName commentsXName = System.Xml.Linq.XName.Get("comments", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12243,6 +12874,9 @@ public virtual System.DateTime? amendmentDate { public virtual string comments { get { XAttribute x = this.Attribute(commentsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12250,6 +12884,20 @@ public virtual string comments { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Amendment", "http://www.landxml.org/schema/LandXML-1.2"); + + static Amendment() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AmendmentItemXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AmendmentItemXName, typeof(AmendmentItem)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -12257,6 +12905,13 @@ public virtual string comments { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12277,6 +12932,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AmendmentItem : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12290,51 +12948,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Amendment Load(string xmlFile) { - return XTypedServices.Load<Amendment>(xmlFile); + public static AmendmentItem Load(string xmlFile) { + return XTypedServices.Load<AmendmentItem>(xmlFile); } - public static Amendment Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Amendment>(xmlFile); + public static AmendmentItem Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AmendmentItem>(xmlFile); } - public static Amendment Parse(string xml) { - return XTypedServices.Parse<Amendment>(xml); + public static AmendmentItem Parse(string xml) { + return XTypedServices.Parse<AmendmentItem>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Amendment>(this); - } + public static explicit operator AmendmentItem(XElement xe) { return XTypedServices.ToXTypedElement<AmendmentItem>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(AmendmentItemXName, typeof(AmendmentItem)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AmendmentItem>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public AmendmentItem() { } - } - - public partial class AmendmentItem : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elementNameXName = System.Xml.Linq.XName.Get("elementName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oldNameXName = System.Xml.Linq.XName.Get("oldName", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName newNameXName = System.Xml.Linq.XName.Get("newName", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AmendmentItem", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator AmendmentItem(XElement xe) { return XTypedServices.ToXTypedElement<AmendmentItem>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public AmendmentItem() { - } + protected internal static readonly System.Xml.Linq.XName elementNameXName = System.Xml.Linq.XName.Get("elementName", ""); /// <summary> /// <para> @@ -12344,6 +12981,9 @@ public AmendmentItem() { public virtual string elementName { get { XAttribute x = this.Attribute(elementNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12351,6 +12991,10 @@ public virtual string elementName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oldNameXName = System.Xml.Linq.XName.Get("oldName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12359,6 +13003,9 @@ public virtual string elementName { public virtual string oldName { get { XAttribute x = this.Attribute(oldNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12366,6 +13013,10 @@ public virtual string oldName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName newNameXName = System.Xml.Linq.XName.Get("newName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12374,6 +13025,9 @@ public virtual string oldName { public virtual string newName { get { XAttribute x = this.Attribute(newNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12381,6 +13035,12 @@ public virtual string newName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AmendmentItem", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12401,6 +13061,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Personnel : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12414,51 +13077,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static AmendmentItem Load(string xmlFile) { - return XTypedServices.Load<AmendmentItem>(xmlFile); + public static Personnel Load(string xmlFile) { + return XTypedServices.Load<Personnel>(xmlFile); } - public static AmendmentItem Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AmendmentItem>(xmlFile); + public static Personnel Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Personnel>(xmlFile); } - public static AmendmentItem Parse(string xml) { - return XTypedServices.Parse<AmendmentItem>(xml); + public static Personnel Parse(string xml) { + return XTypedServices.Parse<Personnel>(xml); } + public static explicit operator Personnel(XElement xe) { return XTypedServices.ToXTypedElement<Personnel>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AmendmentItem>(this); + return XTypedServices.CloneXTypedElement<Personnel>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public Personnel() { } - } - - public partial class Personnel : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName regTypeXName = System.Xml.Linq.XName.Get("regType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName regNumberXName = System.Xml.Linq.XName.Get("regNumber", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Personnel", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Personnel(XElement xe) { return XTypedServices.ToXTypedElement<Personnel>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Personnel() { - } + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); /// <summary> /// <para> @@ -12468,6 +13110,9 @@ public Personnel() { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12475,6 +13120,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12483,6 +13132,9 @@ public virtual string name { public virtual string role { get { XAttribute x = this.Attribute(roleXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12490,6 +13142,10 @@ public virtual string role { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName regTypeXName = System.Xml.Linq.XName.Get("regType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12498,6 +13154,9 @@ public virtual string role { public virtual string regType { get { XAttribute x = this.Attribute(regTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12505,6 +13164,10 @@ public virtual string regType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName regNumberXName = System.Xml.Linq.XName.Get("regNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12513,6 +13176,9 @@ public virtual string regType { public virtual string regNumber { get { XAttribute x = this.Attribute(regNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12520,6 +13186,12 @@ public virtual string regNumber { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Personnel", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12540,6 +13212,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (any)+ + /// </para> + /// </summary> + public partial class FieldNote : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12553,43 +13233,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Personnel Load(string xmlFile) { - return XTypedServices.Load<Personnel>(xmlFile); - } - - public static Personnel Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Personnel>(xmlFile); - } - - public static Personnel Parse(string xml) { - return XTypedServices.Parse<Personnel>(xml); + public static FieldNote Load(string xmlFile) { + return XTypedServices.Load<FieldNote>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Personnel>(this); + public static FieldNote Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<FieldNote>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static FieldNote Parse(string xml) { + return XTypedServices.Parse<FieldNote>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (any)+ - /// </para> - /// </summary> - public partial class FieldNote : XTypedElement, IXMetaData { - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; public static explicit operator FieldNote(XElement xe) { return XTypedServices.ToXTypedElement<FieldNote>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static FieldNote() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FieldNote>(this); } /// <summary> @@ -12611,6 +13270,28 @@ public virtual IEnumerable<XElement> Any { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 2))); + transitions.Add(2, new Transitions(new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 2))); + validationStates = new FSM(1, new Set<int>(new int[] { + 2, + 1}), transitions); + } + + static FieldNote() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12631,6 +13312,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((InstrumentDetails | LaserDetails | GPSReceiverDetails | GPSAntennaDetails), (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class Equipment : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12644,86 +13333,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static FieldNote Load(string xmlFile) { - return XTypedServices.Load<FieldNote>(xmlFile); - } - - public static FieldNote Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<FieldNote>(xmlFile); - } - - public static FieldNote Parse(string xml) { - return XTypedServices.Parse<FieldNote>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FieldNote>(this); + public static Equipment Load(string xmlFile) { + return XTypedServices.Load<Equipment>(xmlFile); } - FSM IXMetaData.GetValidationStates() { - return validationStates; + public static Equipment Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Equipment>(xmlFile); } - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 2))); - transitions.Add(2, new Transitions(new SingleTransition(new WildCard("##other", "http://www.landxml.org/schema/LandXML-1.2"), 2))); - validationStates = new FSM(1, new Set<int>(new int[] { - 2, - 1}), transitions); + public static Equipment Parse(string xml) { + return XTypedServices.Parse<Equipment>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((InstrumentDetails | LaserDetails | GPSReceiverDetails | GPSAntennaDetails), (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class Equipment : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InstrumentDetailsXName = System.Xml.Linq.XName.Get("InstrumentDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LaserDetailsXName = System.Xml.Linq.XName.Get("LaserDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSReceiverDetailsXName = System.Xml.Linq.XName.Get("GPSReceiverDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSAntennaDetailsXName = System.Xml.Linq.XName.Get("GPSAntennaDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Equipment", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Equipment(XElement xe) { return XTypedServices.ToXTypedElement<Equipment>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Equipment() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(InstrumentDetailsXName), new NamedContentModelEntity(LaserDetailsXName), new NamedContentModelEntity(GPSReceiverDetailsXName), new NamedContentModelEntity(GPSAntennaDetailsXName)), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Equipment>(this); } /// <summary> @@ -12734,6 +13359,10 @@ static Equipment() { public Equipment() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InstrumentDetailsXName = System.Xml.Linq.XName.Get("InstrumentDetails", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -12748,6 +13377,9 @@ public Equipment() { public virtual InstrumentDetails InstrumentDetails { get { XElement x = this.GetElement(InstrumentDetailsXName); + if ((x == null)) { + return null; + } return ((InstrumentDetails)(x)); } set { @@ -12755,6 +13387,10 @@ public virtual InstrumentDetails InstrumentDetails { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LaserDetailsXName = System.Xml.Linq.XName.Get("LaserDetails", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -12769,6 +13405,9 @@ public virtual InstrumentDetails InstrumentDetails { public virtual LaserDetails LaserDetails { get { XElement x = this.GetElement(LaserDetailsXName); + if ((x == null)) { + return null; + } return ((LaserDetails)(x)); } set { @@ -12776,6 +13415,10 @@ public virtual LaserDetails LaserDetails { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSReceiverDetailsXName = System.Xml.Linq.XName.Get("GPSReceiverDetails", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -12790,6 +13433,9 @@ public virtual LaserDetails LaserDetails { public virtual GPSReceiverDetails GPSReceiverDetails { get { XElement x = this.GetElement(GPSReceiverDetailsXName); + if ((x == null)) { + return null; + } return ((GPSReceiverDetails)(x)); } set { @@ -12797,6 +13443,10 @@ public virtual GPSReceiverDetails GPSReceiverDetails { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSAntennaDetailsXName = System.Xml.Linq.XName.Get("GPSAntennaDetails", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -12811,6 +13461,9 @@ public virtual GPSReceiverDetails GPSReceiverDetails { public virtual GPSAntennaDetails GPSAntennaDetails { get { XElement x = this.GetElement(GPSAntennaDetailsXName); + if ((x == null)) { + return null; + } return ((GPSAntennaDetails)(x)); } set { @@ -12818,6 +13471,13 @@ public virtual GPSAntennaDetails GPSAntennaDetails { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -12851,6 +13511,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -12884,6 +13551,25 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Equipment", "http://www.landxml.org/schema/LandXML-1.2"); + + static Equipment() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(InstrumentDetailsXName), new NamedContentModelEntity(LaserDetailsXName), new NamedContentModelEntity(GPSReceiverDetailsXName), new NamedContentModelEntity(GPSAntennaDetailsXName)), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(InstrumentDetailsXName, typeof(InstrumentDetails)); + localElementDictionary.Add(LaserDetailsXName, typeof(LaserDetails)); + localElementDictionary.Add(GPSReceiverDetailsXName, typeof(GPSReceiverDetails)); + localElementDictionary.Add(GPSAntennaDetailsXName, typeof(GPSAntennaDetails)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -12891,6 +13577,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12911,6 +13604,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Corrections, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class InstrumentDetails : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -12924,130 +13625,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Equipment Load(string xmlFile) { - return XTypedServices.Load<Equipment>(xmlFile); - } - - public static Equipment Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Equipment>(xmlFile); - } - - public static Equipment Parse(string xml) { - return XTypedServices.Parse<Equipment>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Equipment>(this); + public static InstrumentDetails Load(string xmlFile) { + return XTypedServices.Load<InstrumentDetails>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(InstrumentDetailsXName, typeof(InstrumentDetails)); - localElementDictionary.Add(LaserDetailsXName, typeof(LaserDetails)); - localElementDictionary.Add(GPSReceiverDetailsXName, typeof(GPSReceiverDetails)); - localElementDictionary.Add(GPSAntennaDetailsXName, typeof(GPSAntennaDetails)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static InstrumentDetails Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<InstrumentDetails>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static InstrumentDetails Parse(string xml) { + return XTypedServices.Parse<InstrumentDetails>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Corrections, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class InstrumentDetails : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CorrectionsXName = System.Xml.Linq.XName.Get("Corrections", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName edmAccuracyConstantXName = System.Xml.Linq.XName.Get("edmAccuracyConstant", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName edmAccuracyppmXName = System.Xml.Linq.XName.Get("edmAccuracyppm", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName edmVertOffsetXName = System.Xml.Linq.XName.Get("edmVertOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizAnglePrecisionXName = System.Xml.Linq.XName.Get("horizAnglePrecision", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zenithAnglePrecisionXName = System.Xml.Linq.XName.Get("zenithAnglePrecision", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName carrierWavelengthXName = System.Xml.Linq.XName.Get("carrierWavelength", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName refractiveIndexXName = System.Xml.Linq.XName.Get("refractiveIndex", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizCollimationXName = System.Xml.Linq.XName.Get("horizCollimation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName vertCollimationXName = System.Xml.Linq.XName.Get("vertCollimation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stadiaFactorXName = System.Xml.Linq.XName.Get("stadiaFactor", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InstrumentDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator InstrumentDetails(XElement xe) { return XTypedServices.ToXTypedElement<InstrumentDetails>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static InstrumentDetails() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CorrectionsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<InstrumentDetails>(this); } /// <summary> @@ -13058,6 +13651,10 @@ static InstrumentDetails() { public InstrumentDetails() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CorrectionsXName = System.Xml.Linq.XName.Get("Corrections", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -13076,6 +13673,13 @@ public virtual Corrections Corrections { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -13109,6 +13713,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -13142,6 +13753,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -13157,6 +13772,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName edmAccuracyConstantXName = System.Xml.Linq.XName.Get("edmAccuracyConstant", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13175,6 +13794,10 @@ public virtual System.Double? edmAccuracyConstant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName edmAccuracyppmXName = System.Xml.Linq.XName.Get("edmAccuracyppm", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13193,6 +13816,10 @@ public virtual System.Double? edmAccuracyppm { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName edmVertOffsetXName = System.Xml.Linq.XName.Get("edmVertOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13211,6 +13838,10 @@ public virtual System.Double? edmVertOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizAnglePrecisionXName = System.Xml.Linq.XName.Get("horizAnglePrecision", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13229,6 +13860,10 @@ public virtual System.Double? horizAnglePrecision { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13237,6 +13872,9 @@ public virtual System.Double? horizAnglePrecision { public virtual string manufacturer { get { XAttribute x = this.Attribute(manufacturerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13244,6 +13882,10 @@ public virtual string manufacturer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13252,6 +13894,9 @@ public virtual string manufacturer { public virtual string model { get { XAttribute x = this.Attribute(modelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13259,6 +13904,10 @@ public virtual string model { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13267,6 +13916,9 @@ public virtual string model { public virtual string serialNumber { get { XAttribute x = this.Attribute(serialNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13274,6 +13926,10 @@ public virtual string serialNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zenithAnglePrecisionXName = System.Xml.Linq.XName.Get("zenithAnglePrecision", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13292,6 +13948,10 @@ public virtual System.Double? zenithAnglePrecision { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName carrierWavelengthXName = System.Xml.Linq.XName.Get("carrierWavelength", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13310,6 +13970,10 @@ public virtual System.Double? carrierWavelength { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName refractiveIndexXName = System.Xml.Linq.XName.Get("refractiveIndex", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13328,6 +13992,10 @@ public virtual System.Double? refractiveIndex { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizCollimationXName = System.Xml.Linq.XName.Get("horizCollimation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13346,6 +14014,10 @@ public virtual System.Double? horizCollimation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName vertCollimationXName = System.Xml.Linq.XName.Get("vertCollimation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13364,6 +14036,10 @@ public virtual System.Double? vertCollimation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stadiaFactorXName = System.Xml.Linq.XName.Get("stadiaFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13382,6 +14058,22 @@ public virtual System.Double? stadiaFactor { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InstrumentDetails", "http://www.landxml.org/schema/LandXML-1.2"); + + static InstrumentDetails() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CorrectionsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CorrectionsXName, typeof(Corrections)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -13389,6 +14081,13 @@ public virtual System.Double? stadiaFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -13409,6 +14108,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class LaserDetails : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -13422,97 +14129,39 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static InstrumentDetails Load(string xmlFile) { - return XTypedServices.Load<InstrumentDetails>(xmlFile); + public static LaserDetails Load(string xmlFile) { + return XTypedServices.Load<LaserDetails>(xmlFile); } - public static InstrumentDetails Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<InstrumentDetails>(xmlFile); + public static LaserDetails Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<LaserDetails>(xmlFile); } - public static InstrumentDetails Parse(string xml) { - return XTypedServices.Parse<InstrumentDetails>(xml); + public static LaserDetails Parse(string xml) { + return XTypedServices.Parse<LaserDetails>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<InstrumentDetails>(this); - } + public static explicit operator LaserDetails(XElement xe) { return XTypedServices.ToXTypedElement<LaserDetails>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CorrectionsXName, typeof(Corrections)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LaserDetails>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: ((FieldNote* | Feature*)*) + /// </para> + /// </summary> + public LaserDetails() { } - } - - /// <summary> - /// <para> - /// Regular expression: ((FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class LaserDetails : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<FieldNote> FieldNoteField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName laserVertOffsetXName = System.Xml.Linq.XName.Get("laserVertOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LaserDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator LaserDetails(XElement xe) { return XTypedServices.ToXTypedElement<LaserDetails>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static LaserDetails() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); - } - - /// <summary> - /// <para> - /// Regular expression: ((FieldNote* | Feature*)*) - /// </para> - /// </summary> - public LaserDetails() { - } - /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -13546,6 +14195,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -13579,6 +14235,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -13594,6 +14254,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName laserVertOffsetXName = System.Xml.Linq.XName.Get("laserVertOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13612,6 +14276,10 @@ public virtual System.Double? laserVertOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13620,6 +14288,9 @@ public virtual System.Double? laserVertOffset { public virtual string manufacturer { get { XAttribute x = this.Attribute(manufacturerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13627,6 +14298,10 @@ public virtual string manufacturer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13635,6 +14310,9 @@ public virtual string manufacturer { public virtual string model { get { XAttribute x = this.Attribute(modelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13642,6 +14320,10 @@ public virtual string model { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13650,6 +14332,9 @@ public virtual string model { public virtual string serialNumber { get { XAttribute x = this.Attribute(serialNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13657,6 +14342,21 @@ public virtual string serialNumber { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LaserDetails", "http://www.landxml.org/schema/LandXML-1.2"); + + static LaserDetails() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -13664,6 +14364,13 @@ public virtual string serialNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -13684,6 +14391,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((Monument* | FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class GPSAntennaDetails : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -13697,109 +14412,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static LaserDetails Load(string xmlFile) { - return XTypedServices.Load<LaserDetails>(xmlFile); - } - - public static LaserDetails Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<LaserDetails>(xmlFile); - } - - public static LaserDetails Parse(string xml) { - return XTypedServices.Parse<LaserDetails>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LaserDetails>(this); + public static GPSAntennaDetails Load(string xmlFile) { + return XTypedServices.Load<GPSAntennaDetails>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static GPSAntennaDetails Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GPSAntennaDetails>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static GPSAntennaDetails Parse(string xml) { + return XTypedServices.Parse<GPSAntennaDetails>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((Monument* | FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class GPSAntennaDetails : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MonumentXName = System.Xml.Linq.XName.Get("Monument", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Monument> MonumentField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName altitudeXName = System.Xml.Linq.XName.Get("altitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ellipsiodalHeightXName = System.Xml.Linq.XName.Get("ellipsiodalHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName orthometricHeightXName = System.Xml.Linq.XName.Get("orthometricHeight", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSAntennaDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator GPSAntennaDetails(XElement xe) { return XTypedServices.ToXTypedElement<GPSAntennaDetails>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GPSAntennaDetails() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(MonumentXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GPSAntennaDetails>(this); } /// <summary> @@ -13810,6 +14438,13 @@ static GPSAntennaDetails() { public GPSAntennaDetails() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MonumentXName = System.Xml.Linq.XName.Get("Monument", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Monument> MonumentField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -13843,6 +14478,13 @@ public virtual IList<Monument> Monument { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -13876,6 +14518,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -13909,6 +14558,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -13924,6 +14577,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13932,6 +14589,9 @@ public virtual string id { public virtual string manufacturer { get { XAttribute x = this.Attribute(manufacturerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13939,6 +14599,10 @@ public virtual string manufacturer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13947,6 +14611,9 @@ public virtual string manufacturer { public virtual string model { get { XAttribute x = this.Attribute(modelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13954,6 +14621,10 @@ public virtual string model { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13962,6 +14633,9 @@ public virtual string model { public virtual string serialNumber { get { XAttribute x = this.Attribute(serialNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13969,6 +14643,10 @@ public virtual string serialNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13987,6 +14665,10 @@ public virtual System.Double? latitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14005,6 +14687,10 @@ public virtual System.Double? longitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName altitudeXName = System.Xml.Linq.XName.Get("altitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14023,6 +14709,10 @@ public virtual System.Double? altitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ellipsiodalHeightXName = System.Xml.Linq.XName.Get("ellipsiodalHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14041,6 +14731,10 @@ public virtual System.Double? ellipsiodalHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName orthometricHeightXName = System.Xml.Linq.XName.Get("orthometricHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14059,6 +14753,22 @@ public virtual System.Double? orthometricHeight { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSAntennaDetails", "http://www.landxml.org/schema/LandXML-1.2"); + + static GPSAntennaDetails() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(MonumentXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(MonumentXName, typeof(Monument)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14066,6 +14776,13 @@ public virtual System.Double? orthometricHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14086,6 +14803,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class GPSReceiverDetails : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -14099,83 +14824,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GPSAntennaDetails Load(string xmlFile) { - return XTypedServices.Load<GPSAntennaDetails>(xmlFile); - } - - public static GPSAntennaDetails Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GPSAntennaDetails>(xmlFile); - } - - public static GPSAntennaDetails Parse(string xml) { - return XTypedServices.Parse<GPSAntennaDetails>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GPSAntennaDetails>(this); + public static GPSReceiverDetails Load(string xmlFile) { + return XTypedServices.Load<GPSReceiverDetails>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(MonumentXName, typeof(Monument)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static GPSReceiverDetails Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GPSReceiverDetails>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static GPSReceiverDetails Parse(string xml) { + return XTypedServices.Parse<GPSReceiverDetails>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class GPSReceiverDetails : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSReceiverDetails", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator GPSReceiverDetails(XElement xe) { return XTypedServices.ToXTypedElement<GPSReceiverDetails>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GPSReceiverDetails() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GPSReceiverDetails>(this); } /// <summary> @@ -14186,6 +14850,13 @@ static GPSReceiverDetails() { public GPSReceiverDetails() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -14219,6 +14890,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -14252,6 +14930,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -14267,6 +14949,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manufacturerXName = System.Xml.Linq.XName.Get("manufacturer", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14275,6 +14961,9 @@ public virtual string id { public virtual string manufacturer { get { XAttribute x = this.Attribute(manufacturerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14282,6 +14971,10 @@ public virtual string manufacturer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName modelXName = System.Xml.Linq.XName.Get("model", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14290,6 +14983,9 @@ public virtual string manufacturer { public virtual string model { get { XAttribute x = this.Attribute(modelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14297,6 +14993,10 @@ public virtual string model { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName serialNumberXName = System.Xml.Linq.XName.Get("serialNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14305,6 +15005,9 @@ public virtual string model { public virtual string serialNumber { get { XAttribute x = this.Attribute(serialNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14312,6 +15015,21 @@ public virtual string serialNumber { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSReceiverDetails", "http://www.landxml.org/schema/LandXML-1.2"); + + static GPSReceiverDetails() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14319,6 +15037,13 @@ public virtual string serialNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14339,6 +15064,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class Corrections : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -14352,82 +15085,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GPSReceiverDetails Load(string xmlFile) { - return XTypedServices.Load<GPSReceiverDetails>(xmlFile); - } - - public static GPSReceiverDetails Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GPSReceiverDetails>(xmlFile); - } - - public static GPSReceiverDetails Parse(string xml) { - return XTypedServices.Parse<GPSReceiverDetails>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GPSReceiverDetails>(this); + public static Corrections Load(string xmlFile) { + return XTypedServices.Load<Corrections>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Corrections Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Corrections>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Corrections Parse(string xml) { + return XTypedServices.Parse<Corrections>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class Corrections : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName refractionCoefficientXName = System.Xml.Linq.XName.Get("refractionCoefficient", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName applyRefractionCoefficientXName = System.Xml.Linq.XName.Get("applyRefractionCoefficient", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sphericityXName = System.Xml.Linq.XName.Get("sphericity", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName prismEccentricityXName = System.Xml.Linq.XName.Get("prismEccentricity", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Corrections", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Corrections(XElement xe) { return XTypedServices.ToXTypedElement<Corrections>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Corrections() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Corrections>(this); } /// <summary> @@ -14438,6 +15111,13 @@ static Corrections() { public Corrections() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -14471,6 +15151,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -14504,6 +15191,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName refractionCoefficientXName = System.Xml.Linq.XName.Get("refractionCoefficient", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14522,6 +15213,10 @@ public virtual System.Double? refractionCoefficient { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName applyRefractionCoefficientXName = System.Xml.Linq.XName.Get("applyRefractionCoefficient", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14540,6 +15235,10 @@ public virtual System.Boolean? applyRefractionCoefficient { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sphericityXName = System.Xml.Linq.XName.Get("sphericity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14558,6 +15257,10 @@ public virtual System.Double? sphericity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName prismEccentricityXName = System.Xml.Linq.XName.Get("prismEccentricity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14576,6 +15279,21 @@ public virtual System.Double? prismEccentricity { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Corrections", "http://www.landxml.org/schema/LandXML-1.2"); + + static Corrections() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14583,6 +15301,13 @@ public virtual System.Double? prismEccentricity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14603,6 +15328,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class SurveyMonument : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -14616,99 +15349,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Corrections Load(string xmlFile) { - return XTypedServices.Load<Corrections>(xmlFile); - } - - public static Corrections Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Corrections>(xmlFile); - } - - public static Corrections Parse(string xml) { - return XTypedServices.Parse<Corrections>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Corrections>(this); + public static SurveyMonument Load(string xmlFile) { + return XTypedServices.Load<SurveyMonument>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static SurveyMonument Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SurveyMonument>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static SurveyMonument Parse(string xml) { + return XTypedServices.Parse<SurveyMonument>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class SurveyMonument : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName mntRefXName = System.Xml.Linq.XName.Get("mntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adoptedSurveyXName = System.Xml.Linq.XName.Get("adoptedSurvey", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName disturbedMonumentXName = System.Xml.Linq.XName.Get("disturbedMonument", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName disturbedDateXName = System.Xml.Linq.XName.Get("disturbedDate", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName disturbedAnnotationXName = System.Xml.Linq.XName.Get("disturbedAnnotation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName replacedMonumentXName = System.Xml.Linq.XName.Get("replacedMonument", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName replacedDateXName = System.Xml.Linq.XName.Get("replacedDate", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName replacedAnnotationXName = System.Xml.Linq.XName.Get("replacedAnnotation", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurveyMonument", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator SurveyMonument(XElement xe) { return XTypedServices.ToXTypedElement<SurveyMonument>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SurveyMonument() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SurveyMonument>(this); } /// <summary> @@ -14719,6 +15375,13 @@ static SurveyMonument() { public SurveyMonument() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -14749,6 +15412,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName mntRefXName = System.Xml.Linq.XName.Get("mntRef", ""); + /// <summary> /// <para> /// Occurrence: required @@ -14764,6 +15431,10 @@ public virtual string mntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: required @@ -14779,6 +15450,10 @@ public virtual string purpose { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14787,6 +15462,9 @@ public virtual string purpose { public virtual string state { get { XAttribute x = this.Attribute(stateXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14794,6 +15472,10 @@ public virtual string state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName adoptedSurveyXName = System.Xml.Linq.XName.Get("adoptedSurvey", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14802,6 +15484,9 @@ public virtual string state { public virtual string adoptedSurvey { get { XAttribute x = this.Attribute(adoptedSurveyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14809,6 +15494,10 @@ public virtual string adoptedSurvey { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName disturbedMonumentXName = System.Xml.Linq.XName.Get("disturbedMonument", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14817,6 +15506,9 @@ public virtual string adoptedSurvey { public virtual string disturbedMonument { get { XAttribute x = this.Attribute(disturbedMonumentXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14824,6 +15516,10 @@ public virtual string disturbedMonument { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName disturbedDateXName = System.Xml.Linq.XName.Get("disturbedDate", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14842,6 +15538,10 @@ public virtual System.DateTime? disturbedDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName disturbedAnnotationXName = System.Xml.Linq.XName.Get("disturbedAnnotation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14850,6 +15550,9 @@ public virtual System.DateTime? disturbedDate { public virtual string disturbedAnnotation { get { XAttribute x = this.Attribute(disturbedAnnotationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14857,6 +15560,10 @@ public virtual string disturbedAnnotation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName replacedMonumentXName = System.Xml.Linq.XName.Get("replacedMonument", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14865,6 +15572,9 @@ public virtual string disturbedAnnotation { public virtual string replacedMonument { get { XAttribute x = this.Attribute(replacedMonumentXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14872,6 +15582,10 @@ public virtual string replacedMonument { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName replacedDateXName = System.Xml.Linq.XName.Get("replacedDate", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14890,6 +15604,10 @@ public virtual System.DateTime? replacedDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName replacedAnnotationXName = System.Xml.Linq.XName.Get("replacedAnnotation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14898,6 +15616,9 @@ public virtual System.DateTime? replacedDate { public virtual string replacedAnnotation { get { XAttribute x = this.Attribute(replacedAnnotationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14905,6 +15626,20 @@ public virtual string replacedAnnotation { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurveyMonument", "http://www.landxml.org/schema/LandXML-1.2"); + + static SurveyMonument() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14912,6 +15647,13 @@ public virtual string replacedAnnotation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14932,6 +15674,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((InstrumentPoint? | Backsight* | TargetSetup* | RawObservation* | ObservationGroup* | ControlChecks* | FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class InstrumentSetup : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -14945,135 +15695,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static SurveyMonument Load(string xmlFile) { - return XTypedServices.Load<SurveyMonument>(xmlFile); - } - - public static SurveyMonument Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SurveyMonument>(xmlFile); - } - - public static SurveyMonument Parse(string xml) { - return XTypedServices.Parse<SurveyMonument>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SurveyMonument>(this); + public static InstrumentSetup Load(string xmlFile) { + return XTypedServices.Load<InstrumentSetup>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static InstrumentSetup Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<InstrumentSetup>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static InstrumentSetup Parse(string xml) { + return XTypedServices.Parse<InstrumentSetup>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((InstrumentPoint? | Backsight* | TargetSetup* | RawObservation* | ObservationGroup* | ControlChecks* | FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class InstrumentSetup : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InstrumentPointXName = System.Xml.Linq.XName.Get("InstrumentPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<InstrumentPoint> InstrumentPointField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BacksightXName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Backsight> BacksightField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TargetSetup> TargetSetupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RawObservationXName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RawObservation> RawObservationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObservationGroupXName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ObservationGroup> ObservationGroupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ControlChecksXName = System.Xml.Linq.XName.Get("ControlChecks", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ControlChecks> ControlChecksField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName instrumentDetailsIDXName = System.Xml.Linq.XName.Get("instrumentDetailsID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationNameXName = System.Xml.Linq.XName.Get("stationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName instrumentHeightXName = System.Xml.Linq.XName.Get("instrumentHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName orientationAzimuthXName = System.Xml.Linq.XName.Get("orientationAzimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName circleAzimuthXName = System.Xml.Linq.XName.Get("circleAzimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InstrumentSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator InstrumentSetup(XElement xe) { return XTypedServices.ToXTypedElement<InstrumentSetup>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static InstrumentSetup() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(InstrumentPointXName), new NamedContentModelEntity(BacksightXName), new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(RawObservationXName), new NamedContentModelEntity(ObservationGroupXName), new NamedContentModelEntity(ControlChecksXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<InstrumentSetup>(this); } /// <summary> @@ -15084,6 +15721,13 @@ static InstrumentSetup() { public InstrumentSetup() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InstrumentPointXName = System.Xml.Linq.XName.Get("InstrumentPoint", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<InstrumentPoint> InstrumentPointField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -15117,6 +15761,13 @@ public virtual IList<InstrumentPoint> InstrumentPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BacksightXName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Backsight> BacksightField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15150,6 +15801,13 @@ public virtual IList<Backsight> Backsight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TargetSetup> TargetSetupField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15183,6 +15841,13 @@ public virtual IList<TargetSetup> TargetSetup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RawObservationXName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RawObservation> RawObservationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15216,6 +15881,13 @@ public virtual IList<RawObservation> RawObservation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObservationGroupXName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ObservationGroup> ObservationGroupField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15249,6 +15921,13 @@ public virtual IList<ObservationGroup> ObservationGroup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ControlChecksXName = System.Xml.Linq.XName.Get("ControlChecks", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ControlChecks> ControlChecksField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15282,6 +15961,13 @@ public virtual IList<ControlChecks> ControlChecks { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15315,6 +16001,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15348,6 +16041,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -15363,6 +16060,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName instrumentDetailsIDXName = System.Xml.Linq.XName.Get("instrumentDetailsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15371,6 +16072,9 @@ public virtual string id { public virtual string instrumentDetailsID { get { XAttribute x = this.Attribute(instrumentDetailsIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -15378,6 +16082,10 @@ public virtual string instrumentDetailsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationNameXName = System.Xml.Linq.XName.Get("stationName", ""); + /// <summary> /// <para> /// Occurrence: required @@ -15393,6 +16101,10 @@ public virtual string stationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName instrumentHeightXName = System.Xml.Linq.XName.Get("instrumentHeight", ""); + /// <summary> /// <para> /// Occurrence: required @@ -15408,6 +16120,10 @@ public virtual double instrumentHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName orientationAzimuthXName = System.Xml.Linq.XName.Get("orientationAzimuth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15426,6 +16142,10 @@ public virtual System.Double? orientationAzimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName circleAzimuthXName = System.Xml.Linq.XName.Get("circleAzimuth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15444,6 +16164,10 @@ public virtual System.Double? circleAzimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15455,13 +16179,39 @@ public virtual LandXml.v1_2.observationStatusType? status { if ((x == null)) { return null; } - return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(statusXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(statusXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(statusXName, value.ToString(), "status", global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InstrumentSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + static InstrumentSetup() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(InstrumentPointXName), new NamedContentModelEntity(BacksightXName), new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(RawObservationXName), new NamedContentModelEntity(ObservationGroupXName), new NamedContentModelEntity(ControlChecksXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(InstrumentPointXName, typeof(InstrumentPoint)); + localElementDictionary.Add(BacksightXName, typeof(Backsight)); + localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); + localElementDictionary.Add(RawObservationXName, typeof(RawObservation)); + localElementDictionary.Add(ObservationGroupXName, typeof(ObservationGroup)); + localElementDictionary.Add(ControlChecksXName, typeof(ControlChecks)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -15469,6 +16219,13 @@ public virtual LandXml.v1_2.observationStatusType? status { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15489,6 +16246,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (InstrumentPoint? | Backsight? | TargetSetup* | RawObservation | FieldNote* | Feature*)* + /// </para> + /// </summary> + public partial class LaserSetup : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -15502,120 +16267,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static InstrumentSetup Load(string xmlFile) { - return XTypedServices.Load<InstrumentSetup>(xmlFile); - } - - public static InstrumentSetup Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<InstrumentSetup>(xmlFile); - } - - public static InstrumentSetup Parse(string xml) { - return XTypedServices.Parse<InstrumentSetup>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<InstrumentSetup>(this); + public static LaserSetup Load(string xmlFile) { + return XTypedServices.Load<LaserSetup>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(InstrumentPointXName, typeof(InstrumentPoint)); - localElementDictionary.Add(BacksightXName, typeof(Backsight)); - localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); - localElementDictionary.Add(RawObservationXName, typeof(RawObservation)); - localElementDictionary.Add(ObservationGroupXName, typeof(ObservationGroup)); - localElementDictionary.Add(ControlChecksXName, typeof(ControlChecks)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static LaserSetup Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<LaserSetup>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static LaserSetup Parse(string xml) { + return XTypedServices.Parse<LaserSetup>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (InstrumentPoint? | Backsight? | TargetSetup* | RawObservation | FieldNote* | Feature*)* - /// </para> - /// </summary> - public partial class LaserSetup : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InstrumentPointXName = System.Xml.Linq.XName.Get("InstrumentPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<InstrumentPoint> InstrumentPointField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BacksightXName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Backsight> BacksightField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TargetSetup> TargetSetupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RawObservationXName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RawObservation> RawObservationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationNameXName = System.Xml.Linq.XName.Get("stationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName instrumentHeightXName = System.Xml.Linq.XName.Get("instrumentHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName laserDetailsIDXName = System.Xml.Linq.XName.Get("laserDetailsID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName magDeclinationXName = System.Xml.Linq.XName.Get("magDeclination", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LaserSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator LaserSetup(XElement xe) { return XTypedServices.ToXTypedElement<LaserSetup>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LaserSetup() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(InstrumentPointXName), new NamedContentModelEntity(BacksightXName), new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(RawObservationXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LaserSetup>(this); } /// <summary> @@ -15626,6 +16293,13 @@ static LaserSetup() { public LaserSetup() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InstrumentPointXName = System.Xml.Linq.XName.Get("InstrumentPoint", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<InstrumentPoint> InstrumentPointField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -15656,6 +16330,13 @@ public virtual IList<InstrumentPoint> InstrumentPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BacksightXName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Backsight> BacksightField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -15686,6 +16367,13 @@ public virtual IList<Backsight> Backsight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TargetSetup> TargetSetupField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15716,6 +16404,13 @@ public virtual IList<TargetSetup> TargetSetup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RawObservationXName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RawObservation> RawObservationField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -15746,6 +16441,13 @@ public virtual IList<RawObservation> RawObservation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15776,6 +16478,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -15806,6 +16515,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -15821,6 +16534,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationNameXName = System.Xml.Linq.XName.Get("stationName", ""); + /// <summary> /// <para> /// Occurrence: required @@ -15836,6 +16553,10 @@ public virtual string stationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName instrumentHeightXName = System.Xml.Linq.XName.Get("instrumentHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15854,6 +16575,10 @@ public virtual System.Double? instrumentHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName laserDetailsIDXName = System.Xml.Linq.XName.Get("laserDetailsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15862,6 +16587,9 @@ public virtual System.Double? instrumentHeight { public virtual string laserDetailsID { get { XAttribute x = this.Attribute(laserDetailsIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -15869,6 +16597,10 @@ public virtual string laserDetailsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName magDeclinationXName = System.Xml.Linq.XName.Get("magDeclination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15887,6 +16619,25 @@ public virtual System.Double? magDeclination { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LaserSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + static LaserSetup() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(InstrumentPointXName), new NamedContentModelEntity(BacksightXName), new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(RawObservationXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(InstrumentPointXName, typeof(InstrumentPoint)); + localElementDictionary.Add(BacksightXName, typeof(Backsight)); + localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); + localElementDictionary.Add(RawObservationXName, typeof(RawObservation)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -15894,6 +16645,13 @@ public virtual System.Double? magDeclination { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15914,6 +16672,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((TargetSetup* | GPSPosition | FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class GPSSetup : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -15927,120 +16693,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static LaserSetup Load(string xmlFile) { - return XTypedServices.Load<LaserSetup>(xmlFile); - } - - public static LaserSetup Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<LaserSetup>(xmlFile); - } - - public static LaserSetup Parse(string xml) { - return XTypedServices.Parse<LaserSetup>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LaserSetup>(this); + public static GPSSetup Load(string xmlFile) { + return XTypedServices.Load<GPSSetup>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(InstrumentPointXName, typeof(InstrumentPoint)); - localElementDictionary.Add(BacksightXName, typeof(Backsight)); - localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); - localElementDictionary.Add(RawObservationXName, typeof(RawObservation)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static GPSSetup Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GPSSetup>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static GPSSetup Parse(string xml) { + return XTypedServices.Parse<GPSSetup>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((TargetSetup* | GPSPosition | FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class GPSSetup : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TargetSetup> TargetSetupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSPositionXName = System.Xml.Linq.XName.Get("GPSPosition", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<GPSPosition> GPSPositionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName antennaHeightXName = System.Xml.Linq.XName.Get("antennaHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationNameXName = System.Xml.Linq.XName.Get("stationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSAntennaDetailsIDXName = System.Xml.Linq.XName.Get("GPSAntennaDetailsID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSReceiverDetailsIDXName = System.Xml.Linq.XName.Get("GPSReceiverDetailsID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName observationDataLinkXName = System.Xml.Linq.XName.Get("observationDataLink", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationDescriptionXName = System.Xml.Linq.XName.Get("stationDescription", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stopTimeXName = System.Xml.Linq.XName.Get("stopTime", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator GPSSetup(XElement xe) { return XTypedServices.ToXTypedElement<GPSSetup>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GPSSetup() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(GPSPositionXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GPSSetup>(this); } /// <summary> @@ -16051,6 +16719,13 @@ static GPSSetup() { public GPSSetup() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetSetupXName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TargetSetup> TargetSetupField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -16084,6 +16759,13 @@ public virtual IList<TargetSetup> TargetSetup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSPositionXName = System.Xml.Linq.XName.Get("GPSPosition", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<GPSPosition> GPSPositionField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -16117,6 +16799,13 @@ public virtual IList<GPSPosition> GPSPosition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -16150,6 +16839,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -16183,6 +16879,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -16198,6 +16898,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName antennaHeightXName = System.Xml.Linq.XName.Get("antennaHeight", ""); + /// <summary> /// <para> /// Occurrence: required @@ -16213,6 +16917,10 @@ public virtual double antennaHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationNameXName = System.Xml.Linq.XName.Get("stationName", ""); + /// <summary> /// <para> /// Occurrence: required @@ -16228,6 +16936,10 @@ public virtual string stationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSAntennaDetailsIDXName = System.Xml.Linq.XName.Get("GPSAntennaDetailsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16236,6 +16948,9 @@ public virtual string stationName { public virtual string GPSAntennaDetailsID { get { XAttribute x = this.Attribute(GPSAntennaDetailsIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -16243,6 +16958,10 @@ public virtual string GPSAntennaDetailsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSReceiverDetailsIDXName = System.Xml.Linq.XName.Get("GPSReceiverDetailsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16251,6 +16970,9 @@ public virtual string GPSAntennaDetailsID { public virtual string GPSReceiverDetailsID { get { XAttribute x = this.Attribute(GPSReceiverDetailsIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -16258,6 +16980,10 @@ public virtual string GPSReceiverDetailsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName observationDataLinkXName = System.Xml.Linq.XName.Get("observationDataLink", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16266,6 +16992,9 @@ public virtual string GPSReceiverDetailsID { public virtual string observationDataLink { get { XAttribute x = this.Attribute(observationDataLinkXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -16273,6 +17002,10 @@ public virtual string observationDataLink { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationDescriptionXName = System.Xml.Linq.XName.Get("stationDescription", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16281,6 +17014,9 @@ public virtual string observationDataLink { public virtual string stationDescription { get { XAttribute x = this.Attribute(stationDescriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -16288,6 +17024,10 @@ public virtual string stationDescription { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16306,6 +17046,10 @@ public virtual System.Double? startTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stopTimeXName = System.Xml.Linq.XName.Get("stopTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16324,6 +17068,23 @@ public virtual System.Double? stopTime { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + static GPSSetup() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(TargetSetupXName), new NamedContentModelEntity(GPSPositionXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); + localElementDictionary.Add(GPSPositionXName, typeof(GPSPosition)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -16331,6 +17092,13 @@ public virtual System.Double? stopTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16351,6 +17119,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class TargetSetup : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -16364,84 +17140,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GPSSetup Load(string xmlFile) { - return XTypedServices.Load<GPSSetup>(xmlFile); - } - - public static GPSSetup Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GPSSetup>(xmlFile); - } - - public static GPSSetup Parse(string xml) { - return XTypedServices.Parse<GPSSetup>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GPSSetup>(this); + public static TargetSetup Load(string xmlFile) { + return XTypedServices.Load<TargetSetup>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetSetupXName, typeof(TargetSetup)); - localElementDictionary.Add(GPSPositionXName, typeof(GPSPosition)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static TargetSetup Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TargetSetup>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static TargetSetup Parse(string xml) { + return XTypedServices.Parse<TargetSetup>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class TargetSetup : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName edmTargetVertOffsetXName = System.Xml.Linq.XName.Get("edmTargetVertOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName prismConstantXName = System.Xml.Linq.XName.Get("prismConstant", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator TargetSetup(XElement xe) { return XTypedServices.ToXTypedElement<TargetSetup>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TargetSetup() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TargetSetup>(this); } /// <summary> @@ -16452,6 +17166,13 @@ static TargetSetup() { public TargetSetup() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -16485,6 +17206,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -16518,6 +17246,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16526,6 +17258,9 @@ public virtual IList<Feature> Feature { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Id).Datatype); } set { @@ -16533,6 +17268,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16551,6 +17290,10 @@ public virtual System.Double? targetHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName edmTargetVertOffsetXName = System.Xml.Linq.XName.Get("edmTargetVertOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16569,6 +17312,10 @@ public virtual System.Double? edmTargetVertOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName prismConstantXName = System.Xml.Linq.XName.Get("prismConstant", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16587,6 +17334,21 @@ public virtual System.Double? prismConstant { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TargetSetup", "http://www.landxml.org/schema/LandXML-1.2"); + + static TargetSetup() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -16594,6 +17356,13 @@ public virtual System.Double? prismConstant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16614,6 +17383,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (BacksightPoint?, (FieldNote* | Feature*)) + /// </para> + /// </summary> + public partial class Backsight : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -16627,90 +17404,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TargetSetup Load(string xmlFile) { - return XTypedServices.Load<TargetSetup>(xmlFile); - } - - public static TargetSetup Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TargetSetup>(xmlFile); - } - - public static TargetSetup Parse(string xml) { - return XTypedServices.Parse<TargetSetup>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TargetSetup>(this); + public static Backsight Load(string xmlFile) { + return XTypedServices.Load<Backsight>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Backsight Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Backsight>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Backsight Parse(string xml) { + return XTypedServices.Parse<Backsight>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (BacksightPoint?, (FieldNote* | Feature*)) - /// </para> - /// </summary> - public partial class Backsight : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BacksightPointXName = System.Xml.Linq.XName.Get("BacksightPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName circleXName = System.Xml.Linq.XName.Get("circle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Backsight(XElement xe) { return XTypedServices.ToXTypedElement<Backsight>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Backsight() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(BacksightPointXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Backsight>(this); } /// <summary> @@ -16721,6 +17430,10 @@ static Backsight() { public Backsight() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BacksightPointXName = System.Xml.Linq.XName.Get("BacksightPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -16732,6 +17445,9 @@ public Backsight() { public virtual BacksightPoint BacksightPoint { get { XElement x = this.GetElement(BacksightPointXName); + if ((x == null)) { + return null; + } return ((BacksightPoint)(x)); } set { @@ -16739,6 +17455,13 @@ public virtual BacksightPoint BacksightPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -16772,6 +17495,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -16805,6 +17535,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16813,6 +17547,9 @@ public virtual IList<Feature> Feature { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Id).Datatype); } set { @@ -16820,6 +17557,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16838,6 +17579,10 @@ public virtual System.Double? azimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16856,6 +17601,10 @@ public virtual System.Double? targetHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName circleXName = System.Xml.Linq.XName.Get("circle", ""); + /// <summary> /// <para> /// Occurrence: required @@ -16871,6 +17620,10 @@ public virtual double circle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16879,6 +17632,9 @@ public virtual double circle { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -16886,6 +17642,22 @@ public virtual string setupID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); + + static Backsight() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(BacksightPointXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(BacksightPointXName, typeof(BacksightPoint)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -16893,6 +17665,13 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16913,6 +17692,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint, OffsetVals?, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class RawObservation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -16926,167 +17713,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Backsight Load(string xmlFile) { - return XTypedServices.Load<Backsight>(xmlFile); - } - - public static Backsight Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Backsight>(xmlFile); - } - - public static Backsight Parse(string xml) { - return XTypedServices.Parse<Backsight>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Backsight>(this); + public static RawObservation Load(string xmlFile) { + return XTypedServices.Load<RawObservation>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(BacksightPointXName, typeof(BacksightPoint)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static RawObservation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RawObservation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static RawObservation Parse(string xml) { + return XTypedServices.Parse<RawObservation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint, OffsetVals?, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class RawObservation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName unusedXName = System.Xml.Linq.XName.Get("unused", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName directFaceXName = System.Xml.Linq.XName.Get("directFace", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName upperStadiaXName = System.Xml.Linq.XName.Get("upperStadia", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rodXName = System.Xml.Linq.XName.Get("rod", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lowerStadiaXName = System.Xml.Linq.XName.Get("lowerStadia", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName circlePositionSetXName = System.Xml.Linq.XName.Get("circlePositionSet", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator RawObservation(XElement xe) { return XTypedServices.ToXTypedElement<RawObservation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static RawObservation() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RawObservation>(this); } /// <summary> @@ -17097,6 +17739,10 @@ static RawObservation() { public RawObservation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -17115,6 +17761,10 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -17126,6 +17776,9 @@ public virtual TargetPoint TargetPoint { public virtual OffsetVals OffsetVals { get { XElement x = this.GetElement(OffsetValsXName); + if ((x == null)) { + return null; + } return ((OffsetVals)(x)); } set { @@ -17133,6 +17786,13 @@ public virtual OffsetVals OffsetVals { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -17166,6 +17826,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -17199,6 +17866,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17207,6 +17878,9 @@ public virtual IList<Feature> Feature { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -17214,6 +17888,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17222,6 +17900,9 @@ public virtual string setupID { public virtual string targetSetupID { get { XAttribute x = this.Attribute(targetSetupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -17229,6 +17910,10 @@ public virtual string targetSetupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17237,6 +17922,9 @@ public virtual string targetSetupID { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -17244,6 +17932,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17255,13 +17947,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17280,6 +17981,10 @@ public virtual System.Double? targetHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17298,6 +18003,10 @@ public virtual System.Double? horizAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17316,6 +18025,10 @@ public virtual System.Double? slopeDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17334,6 +18047,10 @@ public virtual System.Double? zenithAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17352,6 +18069,10 @@ public virtual System.Double? horizDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17370,6 +18091,10 @@ public virtual System.Double? vertDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17388,6 +18113,10 @@ public virtual System.Double? azimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName unusedXName = System.Xml.Linq.XName.Get("unused", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17406,6 +18135,10 @@ public virtual System.Boolean? unused { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName directFaceXName = System.Xml.Linq.XName.Get("directFace", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17424,6 +18157,10 @@ public virtual System.Boolean? directFace { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17432,6 +18169,9 @@ public virtual System.Boolean? directFace { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17439,6 +18179,10 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17457,6 +18201,10 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17465,6 +18213,9 @@ public virtual System.DateTime? timeStamp { public virtual string alignRef { get { XAttribute x = this.Attribute(alignRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17472,6 +18223,10 @@ public virtual string alignRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17480,6 +18235,9 @@ public virtual string alignRef { public virtual string alignStationName { get { XAttribute x = this.Attribute(alignStationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17487,6 +18245,10 @@ public virtual string alignStationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17505,6 +18267,10 @@ public virtual System.Double? alignOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName upperStadiaXName = System.Xml.Linq.XName.Get("upperStadia", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17523,6 +18289,10 @@ public virtual System.Double? upperStadia { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rodXName = System.Xml.Linq.XName.Get("rod", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17541,6 +18311,10 @@ public virtual System.Double? rod { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lowerStadiaXName = System.Xml.Linq.XName.Get("lowerStadia", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17559,6 +18333,10 @@ public virtual System.Double? lowerStadia { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName circlePositionSetXName = System.Xml.Linq.XName.Get("circlePositionSet", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17577,6 +18355,10 @@ public virtual System.Double? circlePositionSet { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17588,13 +18370,35 @@ public virtual LandXml.v1_2.observationStatusType? status { if ((x == null)) { return null; } - return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(statusXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(statusXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(statusXName, value.ToString(), "status", global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + static RawObservation() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -17602,6 +18406,13 @@ public virtual LandXml.v1_2.observationStatusType? status { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17622,6 +18433,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint, OffsetVals?, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class TestObservation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -17635,184 +18454,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RawObservation Load(string xmlFile) { - return XTypedServices.Load<RawObservation>(xmlFile); - } - - public static RawObservation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RawObservation>(xmlFile); - } - - public static RawObservation Parse(string xml) { - return XTypedServices.Parse<RawObservation>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RawObservation>(this); + public static TestObservation Load(string xmlFile) { + return XTypedServices.Load<TestObservation>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static TestObservation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TestObservation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static TestObservation Parse(string xml) { + return XTypedServices.Parse<TestObservation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint, OffsetVals?, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class TestObservation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setup1RodAXName = System.Xml.Linq.XName.Get("setup1RodA", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setup1RodBXName = System.Xml.Linq.XName.Get("setup1RodB", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setup2RodAXName = System.Xml.Linq.XName.Get("setup2RodA", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setup2RodBXName = System.Xml.Linq.XName.Get("setup2RodB", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName unusedXName = System.Xml.Linq.XName.Get("unused", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName directFaceXName = System.Xml.Linq.XName.Get("directFace", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName upperStadiaXName = System.Xml.Linq.XName.Get("upperStadia", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rodXName = System.Xml.Linq.XName.Get("rod", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lowerStadiaXName = System.Xml.Linq.XName.Get("lowerStadia", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName circlePositionSetXName = System.Xml.Linq.XName.Get("circlePositionSet", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TestObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator TestObservation(XElement xe) { return XTypedServices.ToXTypedElement<TestObservation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TestObservation() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TestObservation>(this); } /// <summary> @@ -17823,6 +18480,10 @@ static TestObservation() { public TestObservation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -17841,6 +18502,10 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -17852,6 +18517,9 @@ public virtual TargetPoint TargetPoint { public virtual OffsetVals OffsetVals { get { XElement x = this.GetElement(OffsetValsXName); + if ((x == null)) { + return null; + } return ((OffsetVals)(x)); } set { @@ -17859,6 +18527,13 @@ public virtual OffsetVals OffsetVals { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -17892,6 +18567,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -17925,6 +18607,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setup1RodAXName = System.Xml.Linq.XName.Get("setup1RodA", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17943,6 +18629,10 @@ public virtual System.Double? setup1RodA { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setup1RodBXName = System.Xml.Linq.XName.Get("setup1RodB", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17961,6 +18651,10 @@ public virtual System.Double? setup1RodB { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setup2RodAXName = System.Xml.Linq.XName.Get("setup2RodA", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17979,6 +18673,10 @@ public virtual System.Double? setup2RodA { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setup2RodBXName = System.Xml.Linq.XName.Get("setup2RodB", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17997,6 +18695,10 @@ public virtual System.Double? setup2RodB { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18005,6 +18707,9 @@ public virtual System.Double? setup2RodB { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -18012,6 +18717,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18020,6 +18729,9 @@ public virtual string setupID { public virtual string targetSetupID { get { XAttribute x = this.Attribute(targetSetupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -18027,6 +18739,10 @@ public virtual string targetSetupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18035,6 +18751,9 @@ public virtual string targetSetupID { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -18042,6 +18761,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18053,13 +18776,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18078,6 +18810,10 @@ public virtual System.Double? targetHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18096,6 +18832,10 @@ public virtual System.Double? horizAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18114,6 +18854,10 @@ public virtual System.Double? slopeDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18132,6 +18876,10 @@ public virtual System.Double? zenithAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18150,6 +18898,10 @@ public virtual System.Double? horizDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18168,6 +18920,10 @@ public virtual System.Double? vertDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18186,6 +18942,10 @@ public virtual System.Double? azimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName unusedXName = System.Xml.Linq.XName.Get("unused", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18204,6 +18964,10 @@ public virtual System.Boolean? unused { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName directFaceXName = System.Xml.Linq.XName.Get("directFace", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18222,6 +18986,10 @@ public virtual System.Boolean? directFace { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18230,6 +18998,9 @@ public virtual System.Boolean? directFace { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -18237,6 +19008,10 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18255,6 +19030,10 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18263,6 +19042,9 @@ public virtual System.DateTime? timeStamp { public virtual string alignRef { get { XAttribute x = this.Attribute(alignRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -18270,6 +19052,10 @@ public virtual string alignRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18278,6 +19064,9 @@ public virtual string alignRef { public virtual string alignStationName { get { XAttribute x = this.Attribute(alignStationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -18285,6 +19074,10 @@ public virtual string alignStationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18303,6 +19096,10 @@ public virtual System.Double? alignOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName upperStadiaXName = System.Xml.Linq.XName.Get("upperStadia", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18321,6 +19118,10 @@ public virtual System.Double? upperStadia { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rodXName = System.Xml.Linq.XName.Get("rod", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18339,6 +19140,10 @@ public virtual System.Double? rod { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lowerStadiaXName = System.Xml.Linq.XName.Get("lowerStadia", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18357,6 +19162,10 @@ public virtual System.Double? lowerStadia { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName circlePositionSetXName = System.Xml.Linq.XName.Get("circlePositionSet", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18375,6 +19184,10 @@ public virtual System.Double? circlePositionSet { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18386,13 +19199,35 @@ public virtual LandXml.v1_2.observationStatusType? status { if ((x == null)) { return null; } - return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(statusXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(statusXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(statusXName, value.ToString(), "status", global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TestObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + static TestObservation() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -18400,6 +19235,13 @@ public virtual LandXml.v1_2.observationStatusType? status { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18420,6 +19262,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class OffsetVals : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -18433,54 +19278,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TestObservation Load(string xmlFile) { - return XTypedServices.Load<TestObservation>(xmlFile); + public static OffsetVals Load(string xmlFile) { + return XTypedServices.Load<OffsetVals>(xmlFile); } - public static TestObservation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TestObservation>(xmlFile); + public static OffsetVals Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OffsetVals>(xmlFile); } - public static TestObservation Parse(string xml) { - return XTypedServices.Parse<TestObservation>(xml); + public static OffsetVals Parse(string xml) { + return XTypedServices.Parse<OffsetVals>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TestObservation>(this); - } + public static explicit operator OffsetVals(XElement xe) { return XTypedServices.ToXTypedElement<OffsetVals>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OffsetVals>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public OffsetVals() { } - } - - public partial class OffsetVals : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetInOutXName = System.Xml.Linq.XName.Get("offsetInOut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetLeftRightXName = System.Xml.Linq.XName.Get("offsetLeftRight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetUpDownXName = System.Xml.Linq.XName.Get("offsetUpDown", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator OffsetVals(XElement xe) { return XTypedServices.ToXTypedElement<OffsetVals>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public OffsetVals() { - } + protected internal static readonly System.Xml.Linq.XName offsetInOutXName = System.Xml.Linq.XName.Get("offsetInOut", ""); /// <summary> /// <para> @@ -18500,6 +19321,10 @@ public virtual System.Double? offsetInOut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName offsetLeftRightXName = System.Xml.Linq.XName.Get("offsetLeftRight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18518,6 +19343,10 @@ public virtual System.Double? offsetLeftRight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName offsetUpDownXName = System.Xml.Linq.XName.Get("offsetUpDown", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18536,6 +19365,12 @@ public virtual System.Double? offsetUpDown { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18556,6 +19391,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint, GPSQCInfoLevel1?, GPSQCInfoLevel2?, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class GPSVector : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -18569,125 +19412,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OffsetVals Load(string xmlFile) { - return XTypedServices.Load<OffsetVals>(xmlFile); - } - - public static OffsetVals Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OffsetVals>(xmlFile); - } - - public static OffsetVals Parse(string xml) { - return XTypedServices.Parse<OffsetVals>(xml); + public static GPSVector Load(string xmlFile) { + return XTypedServices.Load<GPSVector>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OffsetVals>(this); + public static GPSVector Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GPSVector>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static GPSVector Parse(string xml) { + return XTypedServices.Parse<GPSVector>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint, GPSQCInfoLevel1?, GPSQCInfoLevel2?, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class GPSVector : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSQCInfoLevel1XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel1", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSQCInfoLevel2XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel2", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dXXName = System.Xml.Linq.XName.Get("dX", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dYXName = System.Xml.Linq.XName.Get("dY", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dZXName = System.Xml.Linq.XName.Get("dZ", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupID_AXName = System.Xml.Linq.XName.Get("setupID_A", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupID_BXName = System.Xml.Linq.XName.Get("setupID_B", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endTimeXName = System.Xml.Linq.XName.Get("endTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizontalPrecisionXName = System.Xml.Linq.XName.Get("horizontalPrecision", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName verticalPrecisionXName = System.Xml.Linq.XName.Get("verticalPrecision", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName solutionDataLinkXName = System.Xml.Linq.XName.Get("solutionDataLink", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSVector", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator GPSVector(XElement xe) { return XTypedServices.ToXTypedElement<GPSVector>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GPSVector() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(GPSQCInfoLevel1XName), new NamedContentModelEntity(GPSQCInfoLevel2XName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GPSVector>(this); } /// <summary> @@ -18698,6 +19438,10 @@ static GPSVector() { public GPSVector() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -18716,6 +19460,10 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSQCInfoLevel1XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel1", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -18727,6 +19475,9 @@ public virtual TargetPoint TargetPoint { public virtual GPSQCInfoLevel1 GPSQCInfoLevel1 { get { XElement x = this.GetElement(GPSQCInfoLevel1XName); + if ((x == null)) { + return null; + } return ((GPSQCInfoLevel1)(x)); } set { @@ -18734,6 +19485,10 @@ public virtual GPSQCInfoLevel1 GPSQCInfoLevel1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSQCInfoLevel2XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel2", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -18745,6 +19500,9 @@ public virtual GPSQCInfoLevel1 GPSQCInfoLevel1 { public virtual GPSQCInfoLevel2 GPSQCInfoLevel2 { get { XElement x = this.GetElement(GPSQCInfoLevel2XName); + if ((x == null)) { + return null; + } return ((GPSQCInfoLevel2)(x)); } set { @@ -18752,6 +19510,13 @@ public virtual GPSQCInfoLevel2 GPSQCInfoLevel2 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -18785,6 +19550,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -18818,6 +19590,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dXXName = System.Xml.Linq.XName.Get("dX", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18833,6 +19609,10 @@ public virtual double dX { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dYXName = System.Xml.Linq.XName.Get("dY", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18848,6 +19628,10 @@ public virtual double dY { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dZXName = System.Xml.Linq.XName.Get("dZ", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18863,6 +19647,10 @@ public virtual double dZ { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupID_AXName = System.Xml.Linq.XName.Get("setupID_A", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18878,6 +19666,10 @@ public virtual string setupID_A { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupID_BXName = System.Xml.Linq.XName.Get("setupID_B", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18893,6 +19685,10 @@ public virtual string setupID_B { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18911,6 +19707,10 @@ public virtual System.DateTime? startTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endTimeXName = System.Xml.Linq.XName.Get("endTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18929,6 +19729,10 @@ public virtual System.DateTime? endTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizontalPrecisionXName = System.Xml.Linq.XName.Get("horizontalPrecision", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18947,6 +19751,10 @@ public virtual System.Double? horizontalPrecision { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName verticalPrecisionXName = System.Xml.Linq.XName.Get("verticalPrecision", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18965,6 +19773,10 @@ public virtual System.Double? verticalPrecision { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18976,13 +19788,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18991,6 +19812,9 @@ public virtual LandXml.v1_2.purposeType? purpose { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -18998,6 +19822,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName solutionDataLinkXName = System.Xml.Linq.XName.Get("solutionDataLink", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19006,6 +19834,9 @@ public virtual string setID { public virtual string solutionDataLink { get { XAttribute x = this.Attribute(solutionDataLinkXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -19013,6 +19844,10 @@ public virtual string solutionDataLink { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19021,6 +19856,9 @@ public virtual string solutionDataLink { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -19028,6 +19866,24 @@ public virtual IList<string> coordGeomRefs { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSVector", "http://www.landxml.org/schema/LandXML-1.2"); + + static GPSVector() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(GPSQCInfoLevel1XName), new NamedContentModelEntity(GPSQCInfoLevel2XName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(GPSQCInfoLevel1XName, typeof(GPSQCInfoLevel1)); + localElementDictionary.Add(GPSQCInfoLevel2XName, typeof(GPSQCInfoLevel2)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19035,6 +19891,13 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19055,6 +19918,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint, GPSQCInfoLevel1?, GPSQCInfoLevel2?, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class GPSPosition : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -19068,113 +19939,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GPSVector Load(string xmlFile) { - return XTypedServices.Load<GPSVector>(xmlFile); - } - - public static GPSVector Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GPSVector>(xmlFile); - } - - public static GPSVector Parse(string xml) { - return XTypedServices.Parse<GPSVector>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GPSVector>(this); + public static GPSPosition Load(string xmlFile) { + return XTypedServices.Load<GPSPosition>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(GPSQCInfoLevel1XName, typeof(GPSQCInfoLevel1)); - localElementDictionary.Add(GPSQCInfoLevel2XName, typeof(GPSQCInfoLevel2)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static GPSPosition Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GPSPosition>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static GPSPosition Parse(string xml) { + return XTypedServices.Parse<GPSPosition>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint, GPSQCInfoLevel1?, GPSQCInfoLevel2?, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class GPSPosition : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSQCInfoLevel1XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel1", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSQCInfoLevel2XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel2", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName wgsHeightXName = System.Xml.Linq.XName.Get("wgsHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName wgsLatitudeXName = System.Xml.Linq.XName.Get("wgsLatitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName wgsLongitudeXName = System.Xml.Linq.XName.Get("wgsLongitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSPosition", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator GPSPosition(XElement xe) { return XTypedServices.ToXTypedElement<GPSPosition>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GPSPosition() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(GPSQCInfoLevel1XName), new NamedContentModelEntity(GPSQCInfoLevel2XName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GPSPosition>(this); } /// <summary> @@ -19185,6 +19965,10 @@ static GPSPosition() { public GPSPosition() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -19203,6 +19987,10 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSQCInfoLevel1XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel1", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -19214,6 +20002,9 @@ public virtual TargetPoint TargetPoint { public virtual GPSQCInfoLevel1 GPSQCInfoLevel1 { get { XElement x = this.GetElement(GPSQCInfoLevel1XName); + if ((x == null)) { + return null; + } return ((GPSQCInfoLevel1)(x)); } set { @@ -19221,6 +20012,10 @@ public virtual GPSQCInfoLevel1 GPSQCInfoLevel1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSQCInfoLevel2XName = System.Xml.Linq.XName.Get("GPSQCInfoLevel2", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -19232,6 +20027,9 @@ public virtual GPSQCInfoLevel1 GPSQCInfoLevel1 { public virtual GPSQCInfoLevel2 GPSQCInfoLevel2 { get { XElement x = this.GetElement(GPSQCInfoLevel2XName); + if ((x == null)) { + return null; + } return ((GPSQCInfoLevel2)(x)); } set { @@ -19239,6 +20037,13 @@ public virtual GPSQCInfoLevel2 GPSQCInfoLevel2 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -19272,6 +20077,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -19305,6 +20117,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19313,6 +20129,9 @@ public virtual IList<Feature> Feature { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -19320,6 +20139,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19328,6 +20151,9 @@ public virtual string setupID { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -19335,6 +20161,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName wgsHeightXName = System.Xml.Linq.XName.Get("wgsHeight", ""); + /// <summary> /// <para> /// Occurrence: required @@ -19350,6 +20180,10 @@ public virtual double wgsHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName wgsLatitudeXName = System.Xml.Linq.XName.Get("wgsLatitude", ""); + /// <summary> /// <para> /// Occurrence: required @@ -19365,6 +20199,10 @@ public virtual double wgsLatitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName wgsLongitudeXName = System.Xml.Linq.XName.Get("wgsLongitude", ""); + /// <summary> /// <para> /// Occurrence: required @@ -19380,6 +20218,10 @@ public virtual double wgsLongitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19388,6 +20230,9 @@ public virtual double wgsLongitude { public virtual string purpose { get { XAttribute x = this.Attribute(purposeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -19395,6 +20240,10 @@ public virtual string purpose { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19403,6 +20252,9 @@ public virtual string purpose { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -19410,6 +20262,10 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19418,6 +20274,9 @@ public virtual IList<string> coordGeomRefs { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -19425,6 +20284,24 @@ public virtual string pntRef { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSPosition", "http://www.landxml.org/schema/LandXML-1.2"); + + static GPSPosition() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(GPSQCInfoLevel1XName), new NamedContentModelEntity(GPSQCInfoLevel2XName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(GPSQCInfoLevel1XName, typeof(GPSQCInfoLevel1)); + localElementDictionary.Add(GPSQCInfoLevel2XName, typeof(GPSQCInfoLevel2)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19432,6 +20309,13 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19452,6 +20336,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class GPSQCInfoLevel1 : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -19465,90 +20352,85 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GPSPosition Load(string xmlFile) { - return XTypedServices.Load<GPSPosition>(xmlFile); + public static GPSQCInfoLevel1 Load(string xmlFile) { + return XTypedServices.Load<GPSQCInfoLevel1>(xmlFile); } - public static GPSPosition Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GPSPosition>(xmlFile); + public static GPSQCInfoLevel1 Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GPSQCInfoLevel1>(xmlFile); } - public static GPSPosition Parse(string xml) { - return XTypedServices.Parse<GPSPosition>(xml); + public static GPSQCInfoLevel1 Parse(string xml) { + return XTypedServices.Parse<GPSQCInfoLevel1>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GPSPosition>(this); - } + public static explicit operator GPSQCInfoLevel1(XElement xe) { return XTypedServices.ToXTypedElement<GPSQCInfoLevel1>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(GPSQCInfoLevel1XName, typeof(GPSQCInfoLevel1)); - localElementDictionary.Add(GPSQCInfoLevel2XName, typeof(GPSQCInfoLevel2)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GPSQCInfoLevel1>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public GPSQCInfoLevel1() { } - } - - public partial class GPSQCInfoLevel1 : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSSolnTypeXName = System.Xml.Linq.XName.Get("GPSSolnType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSSolnFreqXName = System.Xml.Linq.XName.Get("GPSSolnFreq", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nbrSatellitesXName = System.Xml.Linq.XName.Get("nbrSatellites", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RDOPXName = System.Xml.Linq.XName.Get("RDOP", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSQCInfoLevel1", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator GPSQCInfoLevel1(XElement xe) { return XTypedServices.ToXTypedElement<GPSQCInfoLevel1>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public GPSQCInfoLevel1() { - } + protected internal static readonly System.Xml.Linq.XName GPSSolnTypeXName = System.Xml.Linq.XName.Get("GPSSolnType", ""); /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string GPSSolnType { + public virtual LandXml.v1_2.GPSSolutionTypeEnum? GPSSolnType { get { XAttribute x = this.Attribute(GPSSolnTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.GPSSolutionTypeEnum)(Enum.Parse(typeof(LandXml.v1_2.GPSSolutionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.GPSSolutionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(GPSSolnTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(GPSSolnTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(GPSSolnTypeXName, value.ToString(), "GPSSolnType", global::LandXml.v1_2.GPSSolutionTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSSolnFreqXName = System.Xml.Linq.XName.Get("GPSSolnFreq", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string GPSSolnFreq { + public virtual LandXml.v1_2.GPSSolutionFrequencyEnum? GPSSolnFreq { get { XAttribute x = this.Attribute(GPSSolnFreqXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.GPSSolutionFrequencyEnum)(Enum.Parse(typeof(LandXml.v1_2.GPSSolutionFrequencyEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.GPSSolutionFrequencyEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(GPSSolnFreqXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(GPSSolnFreqXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(GPSSolnFreqXName, value.ToString(), "GPSSolnFreq", global::LandXml.v1_2.GPSSolutionFrequencyEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nbrSatellitesXName = System.Xml.Linq.XName.Get("nbrSatellites", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19567,6 +20449,10 @@ public virtual System.Decimal? nbrSatellites { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RDOPXName = System.Xml.Linq.XName.Get("RDOP", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19585,6 +20471,12 @@ public virtual System.Double? RDOP { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSQCInfoLevel1", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19605,6 +20497,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class GPSQCInfoLevel2 : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -19618,91 +20513,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GPSQCInfoLevel1 Load(string xmlFile) { - return XTypedServices.Load<GPSQCInfoLevel1>(xmlFile); + public static GPSQCInfoLevel2 Load(string xmlFile) { + return XTypedServices.Load<GPSQCInfoLevel2>(xmlFile); } - public static GPSQCInfoLevel1 Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GPSQCInfoLevel1>(xmlFile); + public static GPSQCInfoLevel2 Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GPSQCInfoLevel2>(xmlFile); } - public static GPSQCInfoLevel1 Parse(string xml) { - return XTypedServices.Parse<GPSQCInfoLevel1>(xml); + public static GPSQCInfoLevel2 Parse(string xml) { + return XTypedServices.Parse<GPSQCInfoLevel2>(xml); } + public static explicit operator GPSQCInfoLevel2(XElement xe) { return XTypedServices.ToXTypedElement<GPSQCInfoLevel2>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GPSQCInfoLevel1>(this); + return XTypedServices.CloneXTypedElement<GPSQCInfoLevel2>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public GPSQCInfoLevel2() { } - } - - public partial class GPSQCInfoLevel2 : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName covarianceXXXName = System.Xml.Linq.XName.Get("covarianceXX", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName covarianceXYXName = System.Xml.Linq.XName.Get("covarianceXY", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName covarianceXZXName = System.Xml.Linq.XName.Get("covarianceXZ", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName covarianceYYXName = System.Xml.Linq.XName.Get("covarianceYY", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName covarianceYZXName = System.Xml.Linq.XName.Get("covarianceYZ", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName covarianceZZXName = System.Xml.Linq.XName.Get("covarianceZZ", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSSolnTypeXName = System.Xml.Linq.XName.Get("GPSSolnType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GPSSolnFreqXName = System.Xml.Linq.XName.Get("GPSSolnFreq", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RMSXName = System.Xml.Linq.XName.Get("RMS", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ratioXName = System.Xml.Linq.XName.Get("ratio", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName referenceVarianceXName = System.Xml.Linq.XName.Get("referenceVariance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nbrSatellitesXName = System.Xml.Linq.XName.Get("nbrSatellites", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stopTimeXName = System.Xml.Linq.XName.Get("stopTime", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSQCInfoLevel2", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator GPSQCInfoLevel2(XElement xe) { return XTypedServices.ToXTypedElement<GPSQCInfoLevel2>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public GPSQCInfoLevel2() { - } + protected internal static readonly System.Xml.Linq.XName covarianceXXXName = System.Xml.Linq.XName.Get("covarianceXX", ""); /// <summary> /// <para> @@ -19722,6 +20556,10 @@ public virtual System.Double? covarianceXX { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName covarianceXYXName = System.Xml.Linq.XName.Get("covarianceXY", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19740,6 +20578,10 @@ public virtual System.Double? covarianceXY { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName covarianceXZXName = System.Xml.Linq.XName.Get("covarianceXZ", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19758,6 +20600,10 @@ public virtual System.Double? covarianceXZ { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName covarianceYYXName = System.Xml.Linq.XName.Get("covarianceYY", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19776,6 +20622,10 @@ public virtual System.Double? covarianceYY { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName covarianceYZXName = System.Xml.Linq.XName.Get("covarianceYZ", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19794,6 +20644,10 @@ public virtual System.Double? covarianceYZ { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName covarianceZZXName = System.Xml.Linq.XName.Get("covarianceZZ", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19812,36 +20666,64 @@ public virtual System.Double? covarianceZZ { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSSolnTypeXName = System.Xml.Linq.XName.Get("GPSSolnType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string GPSSolnType { + public virtual LandXml.v1_2.GPSSolutionTypeEnum? GPSSolnType { get { XAttribute x = this.Attribute(GPSSolnTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.GPSSolutionTypeEnum)(Enum.Parse(typeof(LandXml.v1_2.GPSSolutionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.GPSSolutionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(GPSSolnTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(GPSSolnTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(GPSSolnTypeXName, value.ToString(), "GPSSolnType", global::LandXml.v1_2.GPSSolutionTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GPSSolnFreqXName = System.Xml.Linq.XName.Get("GPSSolnFreq", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string GPSSolnFreq { + public virtual LandXml.v1_2.GPSSolutionFrequencyEnum? GPSSolnFreq { get { XAttribute x = this.Attribute(GPSSolnFreqXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.GPSSolutionFrequencyEnum)(Enum.Parse(typeof(LandXml.v1_2.GPSSolutionFrequencyEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.GPSSolutionFrequencyEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(GPSSolnFreqXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(GPSSolnFreqXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(GPSSolnFreqXName, value.ToString(), "GPSSolnFreq", global::LandXml.v1_2.GPSSolutionFrequencyEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RMSXName = System.Xml.Linq.XName.Get("RMS", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19860,6 +20742,10 @@ public virtual System.Double? RMS { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ratioXName = System.Xml.Linq.XName.Get("ratio", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19878,6 +20764,10 @@ public virtual System.Double? ratio { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName referenceVarianceXName = System.Xml.Linq.XName.Get("referenceVariance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19896,6 +20786,10 @@ public virtual System.Double? referenceVariance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nbrSatellitesXName = System.Xml.Linq.XName.Get("nbrSatellites", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19914,6 +20808,10 @@ public virtual System.Decimal? nbrSatellites { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startTimeXName = System.Xml.Linq.XName.Get("startTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19932,6 +20830,10 @@ public virtual System.Double? startTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stopTimeXName = System.Xml.Linq.XName.Get("stopTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -19950,6 +20852,12 @@ public virtual System.Double? stopTime { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GPSQCInfoLevel2", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19970,6 +20878,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint?, (Backsight | RawObservation+ | ReducedObservation | RedHorizontalPosition? | ReducedArcObservation? | RedVerticalObservation? | FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class ObservationGroup : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -19983,143 +20899,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GPSQCInfoLevel2 Load(string xmlFile) { - return XTypedServices.Load<GPSQCInfoLevel2>(xmlFile); + public static ObservationGroup Load(string xmlFile) { + return XTypedServices.Load<ObservationGroup>(xmlFile); } - public static GPSQCInfoLevel2 Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GPSQCInfoLevel2>(xmlFile); + public static ObservationGroup Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ObservationGroup>(xmlFile); } - public static GPSQCInfoLevel2 Parse(string xml) { - return XTypedServices.Parse<GPSQCInfoLevel2>(xml); + public static ObservationGroup Parse(string xml) { + return XTypedServices.Parse<ObservationGroup>(xml); } + public static explicit operator ObservationGroup(XElement xe) { return XTypedServices.ToXTypedElement<ObservationGroup>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GPSQCInfoLevel2>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint?, (Backsight | RawObservation+ | ReducedObservation | RedHorizontalPosition? | ReducedArcObservation? | RedVerticalObservation? | FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class ObservationGroup : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BacksightXName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Backsight> BacksightField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RawObservationXName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RawObservation> RawObservationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReducedObservationXName = System.Xml.Linq.XName.Get("ReducedObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ReducedObservation> ReducedObservationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RedHorizontalPositionXName = System.Xml.Linq.XName.Get("RedHorizontalPosition", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RedHorizontalPosition> RedHorizontalPositionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReducedArcObservationXName = System.Xml.Linq.XName.Get("ReducedArcObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ReducedArcObservation> ReducedArcObservationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RedVerticalObservationXName = System.Xml.Linq.XName.Get("RedVerticalObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RedVerticalObservation> RedVerticalObservationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator ObservationGroup(XElement xe) { return XTypedServices.ToXTypedElement<ObservationGroup>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static ObservationGroup() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new ChoiceContentModelEntity(new NamedContentModelEntity(BacksightXName), new NamedContentModelEntity(RawObservationXName), new NamedContentModelEntity(ReducedObservationXName), new NamedContentModelEntity(RedHorizontalPositionXName), new NamedContentModelEntity(ReducedArcObservationXName), new NamedContentModelEntity(RedVerticalObservationXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + return XTypedServices.CloneXTypedElement<ObservationGroup>(this); } /// <summary> @@ -20130,6 +20925,10 @@ static ObservationGroup() { public ObservationGroup() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -20141,6 +20940,9 @@ public ObservationGroup() { public virtual TargetPoint TargetPoint { get { XElement x = this.GetElement(TargetPointXName); + if ((x == null)) { + return null; + } return ((TargetPoint)(x)); } set { @@ -20148,6 +20950,13 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BacksightXName = System.Xml.Linq.XName.Get("Backsight", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Backsight> BacksightField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -20181,6 +20990,13 @@ public virtual IList<Backsight> Backsight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RawObservationXName = System.Xml.Linq.XName.Get("RawObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RawObservation> RawObservationField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -20214,6 +21030,13 @@ public virtual IList<RawObservation> RawObservation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReducedObservationXName = System.Xml.Linq.XName.Get("ReducedObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ReducedObservation> ReducedObservationField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -20247,6 +21070,13 @@ public virtual IList<ReducedObservation> ReducedObservation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RedHorizontalPositionXName = System.Xml.Linq.XName.Get("RedHorizontalPosition", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RedHorizontalPosition> RedHorizontalPositionField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -20280,6 +21110,13 @@ public virtual IList<RedHorizontalPosition> RedHorizontalPosition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReducedArcObservationXName = System.Xml.Linq.XName.Get("ReducedArcObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ReducedArcObservation> ReducedArcObservationField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -20313,6 +21150,13 @@ public virtual IList<ReducedArcObservation> ReducedArcObservation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RedVerticalObservationXName = System.Xml.Linq.XName.Get("RedVerticalObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RedVerticalObservation> RedVerticalObservationField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -20346,6 +21190,13 @@ public virtual IList<RedVerticalObservation> RedVerticalObservation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -20379,6 +21230,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -20412,6 +21270,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20427,6 +21289,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20438,13 +21304,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20453,6 +21328,9 @@ public virtual LandXml.v1_2.purposeType? purpose { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -20460,6 +21338,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20468,6 +21350,9 @@ public virtual string setupID { public virtual string targetSetupID { get { XAttribute x = this.Attribute(targetSetupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -20475,6 +21360,10 @@ public virtual string targetSetupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20483,6 +21372,9 @@ public virtual string targetSetupID { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -20490,6 +21382,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20498,6 +21394,9 @@ public virtual string setID { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20505,6 +21404,10 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20513,6 +21416,9 @@ public virtual IList<string> coordGeomRefs { public virtual string alignRef { get { XAttribute x = this.Attribute(alignRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20520,6 +21426,10 @@ public virtual string alignRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20528,6 +21438,9 @@ public virtual string alignRef { public virtual string alignStationName { get { XAttribute x = this.Attribute(alignStationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20535,6 +21448,10 @@ public virtual string alignStationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20553,6 +21470,28 @@ public virtual System.Double? alignOffset { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); + + static ObservationGroup() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new ChoiceContentModelEntity(new NamedContentModelEntity(BacksightXName), new NamedContentModelEntity(RawObservationXName), new NamedContentModelEntity(ReducedObservationXName), new NamedContentModelEntity(RedHorizontalPositionXName), new NamedContentModelEntity(ReducedArcObservationXName), new NamedContentModelEntity(RedVerticalObservationXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(BacksightXName, typeof(Backsight)); + localElementDictionary.Add(RawObservationXName, typeof(RawObservation)); + localElementDictionary.Add(ReducedObservationXName, typeof(ReducedObservation)); + localElementDictionary.Add(RedHorizontalPositionXName, typeof(RedHorizontalPosition)); + localElementDictionary.Add(ReducedArcObservationXName, typeof(ReducedArcObservation)); + localElementDictionary.Add(RedVerticalObservationXName, typeof(RedVerticalObservation)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20560,6 +21499,13 @@ public virtual System.Double? alignOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20580,6 +21526,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((TestObservation* | ObservationGroup* | PointResults* | FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class ControlChecks : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -20593,94 +21547,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ObservationGroup Load(string xmlFile) { - return XTypedServices.Load<ObservationGroup>(xmlFile); - } - - public static ObservationGroup Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ObservationGroup>(xmlFile); - } - - public static ObservationGroup Parse(string xml) { - return XTypedServices.Parse<ObservationGroup>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ObservationGroup>(this); + public static ControlChecks Load(string xmlFile) { + return XTypedServices.Load<ControlChecks>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(BacksightXName, typeof(Backsight)); - localElementDictionary.Add(RawObservationXName, typeof(RawObservation)); - localElementDictionary.Add(ReducedObservationXName, typeof(ReducedObservation)); - localElementDictionary.Add(RedHorizontalPositionXName, typeof(RedHorizontalPosition)); - localElementDictionary.Add(ReducedArcObservationXName, typeof(ReducedArcObservation)); - localElementDictionary.Add(RedVerticalObservationXName, typeof(RedVerticalObservation)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ControlChecks Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ControlChecks>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ControlChecks Parse(string xml) { + return XTypedServices.Parse<ControlChecks>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((TestObservation* | ObservationGroup* | PointResults* | FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class ControlChecks : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TestObservationXName = System.Xml.Linq.XName.Get("TestObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TestObservation> TestObservationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObservationGroupXName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ObservationGroup> ObservationGroupField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PointResultsXName = System.Xml.Linq.XName.Get("PointResults", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PointResults> PointResultsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ControlChecks", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ControlChecks(XElement xe) { return XTypedServices.ToXTypedElement<ControlChecks>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ControlChecks() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(TestObservationXName), new NamedContentModelEntity(ObservationGroupXName), new NamedContentModelEntity(PointResultsXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ControlChecks>(this); } /// <summary> @@ -20691,6 +21573,13 @@ static ControlChecks() { public ControlChecks() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TestObservationXName = System.Xml.Linq.XName.Get("TestObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TestObservation> TestObservationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -20724,6 +21613,13 @@ public virtual IList<TestObservation> TestObservation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObservationGroupXName = System.Xml.Linq.XName.Get("ObservationGroup", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ObservationGroup> ObservationGroupField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -20757,6 +21653,13 @@ public virtual IList<ObservationGroup> ObservationGroup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PointResultsXName = System.Xml.Linq.XName.Get("PointResults", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PointResults> PointResultsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -20790,6 +21693,13 @@ public virtual IList<PointResults> PointResults { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -20823,6 +21733,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -20856,6 +21773,24 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ControlChecks", "http://www.landxml.org/schema/LandXML-1.2"); + + static ControlChecks() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(TestObservationXName), new NamedContentModelEntity(ObservationGroupXName), new NamedContentModelEntity(PointResultsXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TestObservationXName, typeof(TestObservation)); + localElementDictionary.Add(ObservationGroupXName, typeof(ObservationGroup)); + localElementDictionary.Add(PointResultsXName, typeof(PointResults)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20863,6 +21798,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20883,6 +21825,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint?, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class PointResults : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -20896,105 +21846,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ControlChecks Load(string xmlFile) { - return XTypedServices.Load<ControlChecks>(xmlFile); - } - - public static ControlChecks Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ControlChecks>(xmlFile); - } - - public static ControlChecks Parse(string xml) { - return XTypedServices.Parse<ControlChecks>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ControlChecks>(this); + public static PointResults Load(string xmlFile) { + return XTypedServices.Load<PointResults>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TestObservationXName, typeof(TestObservation)); - localElementDictionary.Add(ObservationGroupXName, typeof(ObservationGroup)); - localElementDictionary.Add(PointResultsXName, typeof(PointResults)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static PointResults Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PointResults>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static PointResults Parse(string xml) { + return XTypedServices.Parse<PointResults>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint?, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class PointResults : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName meanHorizAngleXName = System.Xml.Linq.XName.Get("meanHorizAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizStdDeviationXName = System.Xml.Linq.XName.Get("horizStdDeviation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName meanzenithAngleXName = System.Xml.Linq.XName.Get("meanzenithAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName vertStdDeviationXName = System.Xml.Linq.XName.Get("vertStdDeviation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName meanSlopeDistanceXName = System.Xml.Linq.XName.Get("meanSlopeDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeDistanceStdDeviationXName = System.Xml.Linq.XName.Get("slopeDistanceStdDeviation", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointResults", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator PointResults(XElement xe) { return XTypedServices.ToXTypedElement<PointResults>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PointResults() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PointResults>(this); } /// <summary> @@ -21005,6 +21872,10 @@ static PointResults() { public PointResults() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -21016,6 +21887,9 @@ public PointResults() { public virtual TargetPoint TargetPoint { get { XElement x = this.GetElement(TargetPointXName); + if ((x == null)) { + return null; + } return ((TargetPoint)(x)); } set { @@ -21023,6 +21897,13 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -21056,6 +21937,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -21089,6 +21977,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21097,6 +21989,9 @@ public virtual IList<Feature> Feature { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -21104,6 +21999,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21112,6 +22011,9 @@ public virtual string setupID { public virtual string targetSetupID { get { XAttribute x = this.Attribute(targetSetupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -21119,6 +22021,10 @@ public virtual string targetSetupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName meanHorizAngleXName = System.Xml.Linq.XName.Get("meanHorizAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21137,6 +22043,10 @@ public virtual System.Double? meanHorizAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizStdDeviationXName = System.Xml.Linq.XName.Get("horizStdDeviation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21155,6 +22065,10 @@ public virtual System.Double? horizStdDeviation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName meanzenithAngleXName = System.Xml.Linq.XName.Get("meanzenithAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21173,6 +22087,10 @@ public virtual System.Double? meanzenithAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName vertStdDeviationXName = System.Xml.Linq.XName.Get("vertStdDeviation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21191,6 +22109,10 @@ public virtual System.Double? vertStdDeviation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName meanSlopeDistanceXName = System.Xml.Linq.XName.Get("meanSlopeDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21209,6 +22131,10 @@ public virtual System.Double? meanSlopeDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeDistanceStdDeviationXName = System.Xml.Linq.XName.Get("slopeDistanceStdDeviation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21227,6 +22153,22 @@ public virtual System.Double? slopeDistanceStdDeviation { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointResults", "http://www.landxml.org/schema/LandXML-1.2"); + + static PointResults() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -21234,6 +22176,13 @@ public virtual System.Double? slopeDistanceStdDeviation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -21254,6 +22203,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint?, OffsetVals?, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class ReducedObservation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -21267,227 +22224,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PointResults Load(string xmlFile) { - return XTypedServices.Load<PointResults>(xmlFile); - } - - public static PointResults Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PointResults>(xmlFile); - } - - public static PointResults Parse(string xml) { - return XTypedServices.Parse<PointResults>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PointResults>(this); + public static ReducedObservation Load(string xmlFile) { + return XTypedServices.Load<ReducedObservation>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ReducedObservation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ReducedObservation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ReducedObservation Parse(string xml) { + return XTypedServices.Parse<ReducedObservation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint?, OffsetVals?, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class ReducedObservation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetup2IDXName = System.Xml.Linq.XName.Get("targetSetup2ID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthAccuracyXName = System.Xml.Linq.XName.Get("azimuthAccuracy", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName distanceAccuracyXName = System.Xml.Linq.XName.Get("distanceAccuracy", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName angleAccuracyXName = System.Xml.Linq.XName.Get("angleAccuracy", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName distanceTypeXName = System.Xml.Linq.XName.Get("distanceType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthTypeXName = System.Xml.Linq.XName.Get("azimuthType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName angleTypeXName = System.Xml.Linq.XName.Get("angleType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adoptedAzimuthSurveyXName = System.Xml.Linq.XName.Get("adoptedAzimuthSurvey", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adoptedDistanceSurveyXName = System.Xml.Linq.XName.Get("adoptedDistanceSurvey", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adoptedAngleSurveyXName = System.Xml.Linq.XName.Get("adoptedAngleSurvey", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName distanceAccClassXName = System.Xml.Linq.XName.Get("distanceAccClass", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthAccClassXName = System.Xml.Linq.XName.Get("azimuthAccClass", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName angleAccClassXName = System.Xml.Linq.XName.Get("angleAccClass", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthAdoptionFactorXName = System.Xml.Linq.XName.Get("azimuthAdoptionFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName distanceAdoptionFactorXName = System.Xml.Linq.XName.Get("distanceAdoptionFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MSLDistanceXName = System.Xml.Linq.XName.Get("MSLDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName spherDistanceXName = System.Xml.Linq.XName.Get("spherDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReducedObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ReducedObservation(XElement xe) { return XTypedServices.ToXTypedElement<ReducedObservation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ReducedObservation() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ReducedObservation>(this); } /// <summary> @@ -21498,6 +22250,10 @@ static ReducedObservation() { public ReducedObservation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -21509,6 +22265,9 @@ public ReducedObservation() { public virtual TargetPoint TargetPoint { get { XElement x = this.GetElement(TargetPointXName); + if ((x == null)) { + return null; + } return ((TargetPoint)(x)); } set { @@ -21516,6 +22275,10 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -21527,6 +22290,9 @@ public virtual TargetPoint TargetPoint { public virtual OffsetVals OffsetVals { get { XElement x = this.GetElement(OffsetValsXName); + if ((x == null)) { + return null; + } return ((OffsetVals)(x)); } set { @@ -21534,6 +22300,13 @@ public virtual OffsetVals OffsetVals { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -21567,6 +22340,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -21600,6 +22380,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21611,13 +22395,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21626,6 +22419,9 @@ public virtual LandXml.v1_2.purposeType? purpose { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -21633,6 +22429,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21641,6 +22441,9 @@ public virtual string setupID { public virtual string targetSetupID { get { XAttribute x = this.Attribute(targetSetupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -21648,6 +22451,10 @@ public virtual string targetSetupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetup2IDXName = System.Xml.Linq.XName.Get("targetSetup2ID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21656,6 +22463,9 @@ public virtual string targetSetupID { public virtual string targetSetup2ID { get { XAttribute x = this.Attribute(targetSetup2IDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -21663,6 +22473,10 @@ public virtual string targetSetup2ID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21671,6 +22485,9 @@ public virtual string targetSetup2ID { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -21678,6 +22495,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21696,6 +22517,10 @@ public virtual System.Double? targetHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21714,6 +22539,10 @@ public virtual System.Double? azimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21732,6 +22561,10 @@ public virtual System.Double? horizDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21750,6 +22583,10 @@ public virtual System.Double? vertDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21768,6 +22605,10 @@ public virtual System.Double? horizAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21786,6 +22627,10 @@ public virtual System.Double? slopeDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21804,6 +22649,10 @@ public virtual System.Double? zenithAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21812,6 +22661,9 @@ public virtual System.Double? zenithAngle { public virtual string equipmentUsed { get { XAttribute x = this.Attribute(equipmentUsedXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -21819,6 +22671,10 @@ public virtual string equipmentUsed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthAccuracyXName = System.Xml.Linq.XName.Get("azimuthAccuracy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21837,6 +22693,10 @@ public virtual System.Double? azimuthAccuracy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName distanceAccuracyXName = System.Xml.Linq.XName.Get("distanceAccuracy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21855,6 +22715,10 @@ public virtual System.Double? distanceAccuracy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName angleAccuracyXName = System.Xml.Linq.XName.Get("angleAccuracy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21873,6 +22737,10 @@ public virtual System.Double? angleAccuracy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21891,6 +22759,10 @@ public virtual System.DateTime? date { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName distanceTypeXName = System.Xml.Linq.XName.Get("distanceType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21899,6 +22771,9 @@ public virtual System.DateTime? date { public virtual string distanceType { get { XAttribute x = this.Attribute(distanceTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -21906,6 +22781,10 @@ public virtual string distanceType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthTypeXName = System.Xml.Linq.XName.Get("azimuthType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21914,6 +22793,9 @@ public virtual string distanceType { public virtual string azimuthType { get { XAttribute x = this.Attribute(azimuthTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -21921,6 +22803,10 @@ public virtual string azimuthType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName angleTypeXName = System.Xml.Linq.XName.Get("angleType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21929,13 +22815,20 @@ public virtual string azimuthType { public virtual string angleType { get { XAttribute x = this.Attribute(angleTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { this.SetAttribute(angleTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName adoptedAzimuthSurveyXName = System.Xml.Linq.XName.Get("adoptedAzimuthSurvey", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21944,6 +22837,9 @@ public virtual string angleType { public virtual string adoptedAzimuthSurvey { get { XAttribute x = this.Attribute(adoptedAzimuthSurveyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -21951,6 +22847,10 @@ public virtual string adoptedAzimuthSurvey { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName adoptedDistanceSurveyXName = System.Xml.Linq.XName.Get("adoptedDistanceSurvey", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21959,6 +22859,9 @@ public virtual string adoptedAzimuthSurvey { public virtual string adoptedDistanceSurvey { get { XAttribute x = this.Attribute(adoptedDistanceSurveyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -21966,6 +22869,10 @@ public virtual string adoptedDistanceSurvey { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName adoptedAngleSurveyXName = System.Xml.Linq.XName.Get("adoptedAngleSurvey", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21974,6 +22881,9 @@ public virtual string adoptedDistanceSurvey { public virtual string adoptedAngleSurvey { get { XAttribute x = this.Attribute(adoptedAngleSurveyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -21981,6 +22891,10 @@ public virtual string adoptedAngleSurvey { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName distanceAccClassXName = System.Xml.Linq.XName.Get("distanceAccClass", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -21989,6 +22903,9 @@ public virtual string adoptedAngleSurvey { public virtual string distanceAccClass { get { XAttribute x = this.Attribute(distanceAccClassXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -21996,6 +22913,10 @@ public virtual string distanceAccClass { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthAccClassXName = System.Xml.Linq.XName.Get("azimuthAccClass", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22004,6 +22925,9 @@ public virtual string distanceAccClass { public virtual string azimuthAccClass { get { XAttribute x = this.Attribute(azimuthAccClassXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22011,6 +22935,10 @@ public virtual string azimuthAccClass { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName angleAccClassXName = System.Xml.Linq.XName.Get("angleAccClass", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22019,6 +22947,9 @@ public virtual string azimuthAccClass { public virtual string angleAccClass { get { XAttribute x = this.Attribute(angleAccClassXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22026,6 +22957,10 @@ public virtual string angleAccClass { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthAdoptionFactorXName = System.Xml.Linq.XName.Get("azimuthAdoptionFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22044,6 +22979,10 @@ public virtual System.Double? azimuthAdoptionFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName distanceAdoptionFactorXName = System.Xml.Linq.XName.Get("distanceAdoptionFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22062,6 +23001,10 @@ public virtual System.Double? distanceAdoptionFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22070,6 +23013,9 @@ public virtual System.Double? distanceAdoptionFactor { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22077,6 +23023,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22085,6 +23035,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22092,6 +23045,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22103,13 +23060,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22118,6 +23084,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22125,6 +23094,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MSLDistanceXName = System.Xml.Linq.XName.Get("MSLDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22133,6 +23106,9 @@ public virtual string oID { public virtual string MSLDistance { get { XAttribute x = this.Attribute(MSLDistanceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22140,6 +23116,10 @@ public virtual string MSLDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName spherDistanceXName = System.Xml.Linq.XName.Get("spherDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22148,6 +23128,9 @@ public virtual string MSLDistance { public virtual string spherDistance { get { XAttribute x = this.Attribute(spherDistanceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22155,6 +23138,10 @@ public virtual string spherDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22163,6 +23150,9 @@ public virtual string spherDistance { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22170,6 +23160,10 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22178,6 +23172,9 @@ public virtual IList<string> coordGeomRefs { public virtual string alignRef { get { XAttribute x = this.Attribute(alignRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22185,6 +23182,10 @@ public virtual string alignRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22193,6 +23194,9 @@ public virtual string alignRef { public virtual string alignStationName { get { XAttribute x = this.Attribute(alignStationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22200,6 +23204,10 @@ public virtual string alignStationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22218,6 +23226,23 @@ public virtual System.Double? alignOffset { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReducedObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + static ReducedObservation() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22225,6 +23250,13 @@ public virtual System.Double? alignOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22245,6 +23277,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TargetPoint?, OffsetVals?, (FieldNote* | Feature*)*) + /// </para> + /// </summary> + public partial class ReducedArcObservation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -22258,180 +23298,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ReducedObservation Load(string xmlFile) { - return XTypedServices.Load<ReducedObservation>(xmlFile); - } - - public static ReducedObservation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ReducedObservation>(xmlFile); - } - - public static ReducedObservation Parse(string xml) { - return XTypedServices.Parse<ReducedObservation>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ReducedObservation>(this); + public static ReducedArcObservation Load(string xmlFile) { + return XTypedServices.Load<ReducedArcObservation>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ReducedArcObservation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ReducedArcObservation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ReducedArcObservation Parse(string xml) { + return XTypedServices.Parse<ReducedArcObservation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TargetPoint?, OffsetVals?, (FieldNote* | Feature*)*) - /// </para> - /// </summary> - public partial class ReducedArcObservation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName chordAzimuthXName = System.Xml.Linq.XName.Get("chordAzimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName radiusXName = System.Xml.Linq.XName.Get("radius", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rotXName = System.Xml.Linq.XName.Get("rot", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcAzimuthAccuracyXName = System.Xml.Linq.XName.Get("arcAzimuthAccuracy", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcLengthAccuracyXName = System.Xml.Linq.XName.Get("arcLengthAccuracy", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arcTypeXName = System.Xml.Linq.XName.Get("arcType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adoptedSurveyXName = System.Xml.Linq.XName.Get("adoptedSurvey", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthAccClassXName = System.Xml.Linq.XName.Get("lengthAccClass", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthAccClassXName = System.Xml.Linq.XName.Get("azimuthAccClass", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthAdoptionFactorXName = System.Xml.Linq.XName.Get("azimuthAdoptionFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthAdoptionFactorXName = System.Xml.Linq.XName.Get("lengthAdoptionFactor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReducedArcObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ReducedArcObservation(XElement xe) { return XTypedServices.ToXTypedElement<ReducedArcObservation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ReducedArcObservation() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ReducedArcObservation>(this); } /// <summary> @@ -22442,6 +23324,10 @@ static ReducedArcObservation() { public ReducedArcObservation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -22453,6 +23339,9 @@ public ReducedArcObservation() { public virtual TargetPoint TargetPoint { get { XElement x = this.GetElement(TargetPointXName); + if ((x == null)) { + return null; + } return ((TargetPoint)(x)); } set { @@ -22460,6 +23349,10 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -22471,6 +23364,9 @@ public virtual TargetPoint TargetPoint { public virtual OffsetVals OffsetVals { get { XElement x = this.GetElement(OffsetValsXName); + if ((x == null)) { + return null; + } return ((OffsetVals)(x)); } set { @@ -22478,6 +23374,13 @@ public virtual OffsetVals OffsetVals { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -22511,6 +23414,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -22544,6 +23454,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22555,13 +23469,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22570,6 +23493,9 @@ public virtual LandXml.v1_2.purposeType? purpose { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -22577,6 +23503,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22585,6 +23515,9 @@ public virtual string setupID { public virtual string targetSetupID { get { XAttribute x = this.Attribute(targetSetupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -22592,6 +23525,10 @@ public virtual string targetSetupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22600,6 +23537,9 @@ public virtual string targetSetupID { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -22607,6 +23547,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName chordAzimuthXName = System.Xml.Linq.XName.Get("chordAzimuth", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22622,6 +23566,10 @@ public virtual double chordAzimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName radiusXName = System.Xml.Linq.XName.Get("radius", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22637,6 +23585,10 @@ public virtual double radius { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22652,6 +23604,10 @@ public virtual double length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rotXName = System.Xml.Linq.XName.Get("rot", ""); + /// <summary> /// <para> /// Occurrence: required @@ -22660,13 +23616,17 @@ public virtual double length { public virtual LandXml.v1_2.clockwise rot { get { XAttribute x = this.Attribute(rotXName); - return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.clockwiseValidator.TypeDefinition)))); } set { - this.SetAttribute(rotXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(rotXName, value.ToString(), "rot", global::LandXml.v1_2.clockwiseValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22675,6 +23635,9 @@ public virtual LandXml.v1_2.clockwise rot { public virtual string equipmentUsed { get { XAttribute x = this.Attribute(equipmentUsedXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22682,6 +23645,10 @@ public virtual string equipmentUsed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcAzimuthAccuracyXName = System.Xml.Linq.XName.Get("arcAzimuthAccuracy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22700,6 +23667,10 @@ public virtual System.Double? arcAzimuthAccuracy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcLengthAccuracyXName = System.Xml.Linq.XName.Get("arcLengthAccuracy", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22718,6 +23689,10 @@ public virtual System.Double? arcLengthAccuracy { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22736,6 +23711,10 @@ public virtual System.DateTime? date { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arcTypeXName = System.Xml.Linq.XName.Get("arcType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22744,6 +23723,9 @@ public virtual System.DateTime? date { public virtual string arcType { get { XAttribute x = this.Attribute(arcTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22751,6 +23733,10 @@ public virtual string arcType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName adoptedSurveyXName = System.Xml.Linq.XName.Get("adoptedSurvey", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22759,6 +23745,9 @@ public virtual string arcType { public virtual string adoptedSurvey { get { XAttribute x = this.Attribute(adoptedSurveyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22766,6 +23755,10 @@ public virtual string adoptedSurvey { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthAccClassXName = System.Xml.Linq.XName.Get("lengthAccClass", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22774,6 +23767,9 @@ public virtual string adoptedSurvey { public virtual string lengthAccClass { get { XAttribute x = this.Attribute(lengthAccClassXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22781,6 +23777,10 @@ public virtual string lengthAccClass { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthAccClassXName = System.Xml.Linq.XName.Get("azimuthAccClass", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22789,6 +23789,9 @@ public virtual string lengthAccClass { public virtual string azimuthAccClass { get { XAttribute x = this.Attribute(azimuthAccClassXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22796,6 +23799,10 @@ public virtual string azimuthAccClass { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthAdoptionFactorXName = System.Xml.Linq.XName.Get("azimuthAdoptionFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22814,6 +23821,10 @@ public virtual System.Double? azimuthAdoptionFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthAdoptionFactorXName = System.Xml.Linq.XName.Get("lengthAdoptionFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22832,6 +23843,10 @@ public virtual System.Double? lengthAdoptionFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22840,6 +23855,9 @@ public virtual System.Double? lengthAdoptionFactor { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22847,6 +23865,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22855,6 +23877,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22862,6 +23887,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22873,13 +23902,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22888,6 +23926,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22895,6 +23936,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22903,6 +23948,9 @@ public virtual string oID { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22910,6 +23958,10 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22918,6 +23970,9 @@ public virtual IList<string> coordGeomRefs { public virtual string alignRef { get { XAttribute x = this.Attribute(alignRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22925,6 +23980,10 @@ public virtual string alignRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22933,6 +23992,9 @@ public virtual string alignRef { public virtual string alignStationName { get { XAttribute x = this.Attribute(alignStationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22940,6 +24002,10 @@ public virtual string alignStationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -22958,6 +24024,23 @@ public virtual System.Double? alignOffset { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ReducedArcObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + static ReducedArcObservation() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22965,6 +24048,13 @@ public virtual System.Double? alignOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22985,6 +24075,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (FieldNote* | Feature*)* + /// </para> + /// </summary> + public partial class RedHorizontalPosition : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -22998,150 +24096,39 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ReducedArcObservation Load(string xmlFile) { - return XTypedServices.Load<ReducedArcObservation>(xmlFile); + public static RedHorizontalPosition Load(string xmlFile) { + return XTypedServices.Load<RedHorizontalPosition>(xmlFile); } - public static ReducedArcObservation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ReducedArcObservation>(xmlFile); + public static RedHorizontalPosition Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RedHorizontalPosition>(xmlFile); } - public static ReducedArcObservation Parse(string xml) { - return XTypedServices.Parse<ReducedArcObservation>(xml); + public static RedHorizontalPosition Parse(string xml) { + return XTypedServices.Parse<RedHorizontalPosition>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ReducedArcObservation>(this); - } + public static explicit operator RedHorizontalPosition(XElement xe) { return XTypedServices.ToXTypedElement<RedHorizontalPosition>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RedHorizontalPosition>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (FieldNote* | Feature*)* + /// </para> + /// </summary> + public RedHorizontalPosition() { } - } - - /// <summary> - /// <para> - /// Regular expression: (FieldNote* | Feature*)* - /// </para> - /// </summary> - public partial class RedHorizontalPosition : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<FieldNote> FieldNoteField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizontalDatumXName = System.Xml.Linq.XName.Get("horizontalDatum", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizontalAdjustmentXName = System.Xml.Linq.XName.Get("horizontalAdjustment", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizontalFixXName = System.Xml.Linq.XName.Get("horizontalFix", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName currencyDateXName = System.Xml.Linq.XName.Get("currencyDate", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName localUncertainityXName = System.Xml.Linq.XName.Get("localUncertainity", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName orderXName = System.Xml.Linq.XName.Get("order", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName positionalUncertainityXName = System.Xml.Linq.XName.Get("positionalUncertainity", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RedHorizontalPosition", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator RedHorizontalPosition(XElement xe) { return XTypedServices.ToXTypedElement<RedHorizontalPosition>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static RedHorizontalPosition() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (FieldNote* | Feature*)* - /// </para> - /// </summary> - public RedHorizontalPosition() { - } - /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -23172,6 +24159,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -23202,6 +24196,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23210,6 +24208,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23217,6 +24218,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23232,6 +24237,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23240,6 +24249,9 @@ public virtual string name { public virtual string state { get { XAttribute x = this.Attribute(stateXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23247,6 +24259,10 @@ public virtual string state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23255,6 +24271,9 @@ public virtual string state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23262,6 +24281,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23273,13 +24296,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23288,6 +24320,9 @@ public virtual LandXml.v1_2.purposeType? purpose { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -23295,6 +24330,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23313,6 +24352,10 @@ public virtual System.DateTime? date { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23321,6 +24364,9 @@ public virtual System.DateTime? date { public virtual string equipmentUsed { get { XAttribute x = this.Attribute(equipmentUsedXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23328,6 +24374,10 @@ public virtual string equipmentUsed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizontalDatumXName = System.Xml.Linq.XName.Get("horizontalDatum", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23336,6 +24386,9 @@ public virtual string equipmentUsed { public virtual string horizontalDatum { get { XAttribute x = this.Attribute(horizontalDatumXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23343,6 +24396,10 @@ public virtual string horizontalDatum { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizontalAdjustmentXName = System.Xml.Linq.XName.Get("horizontalAdjustment", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23351,6 +24408,9 @@ public virtual string horizontalDatum { public virtual string horizontalAdjustment { get { XAttribute x = this.Attribute(horizontalAdjustmentXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23358,6 +24418,10 @@ public virtual string horizontalAdjustment { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23366,6 +24430,9 @@ public virtual string horizontalAdjustment { public virtual string latitude { get { XAttribute x = this.Attribute(latitudeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23373,6 +24440,10 @@ public virtual string latitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23381,6 +24452,9 @@ public virtual string latitude { public virtual string longitude { get { XAttribute x = this.Attribute(longitudeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23388,6 +24462,10 @@ public virtual string longitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizontalFixXName = System.Xml.Linq.XName.Get("horizontalFix", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23396,6 +24474,9 @@ public virtual string longitude { public virtual string horizontalFix { get { XAttribute x = this.Attribute(horizontalFixXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23403,6 +24484,10 @@ public virtual string horizontalFix { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName currencyDateXName = System.Xml.Linq.XName.Get("currencyDate", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23411,6 +24496,9 @@ public virtual string horizontalFix { public virtual string currencyDate { get { XAttribute x = this.Attribute(currencyDateXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23418,6 +24506,10 @@ public virtual string currencyDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName localUncertainityXName = System.Xml.Linq.XName.Get("localUncertainity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23436,6 +24528,10 @@ public virtual System.Double? localUncertainity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23444,6 +24540,9 @@ public virtual System.Double? localUncertainity { public virtual string @class { get { XAttribute x = this.Attribute(@classXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23451,6 +24550,10 @@ public virtual string @class { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName orderXName = System.Xml.Linq.XName.Get("order", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23459,6 +24562,9 @@ public virtual string @class { public virtual string order { get { XAttribute x = this.Attribute(orderXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23466,6 +24572,10 @@ public virtual string order { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName positionalUncertainityXName = System.Xml.Linq.XName.Get("positionalUncertainity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23484,6 +24594,21 @@ public virtual System.Double? positionalUncertainity { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RedHorizontalPosition", "http://www.landxml.org/schema/LandXML-1.2"); + + static RedHorizontalPosition() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23491,6 +24616,13 @@ public virtual System.Double? positionalUncertainity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23511,6 +24643,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (FieldNote* | Feature*)* + /// </para> + /// </summary> + public partial class RedVerticalObservation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -23524,150 +24664,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RedHorizontalPosition Load(string xmlFile) { - return XTypedServices.Load<RedHorizontalPosition>(xmlFile); - } - - public static RedHorizontalPosition Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RedHorizontalPosition>(xmlFile); - } - - public static RedHorizontalPosition Parse(string xml) { - return XTypedServices.Parse<RedHorizontalPosition>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RedHorizontalPosition>(this); + public static RedVerticalObservation Load(string xmlFile) { + return XTypedServices.Load<RedVerticalObservation>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static RedVerticalObservation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RedVerticalObservation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static RedVerticalObservation Parse(string xml) { + return XTypedServices.Parse<RedVerticalObservation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (FieldNote* | Feature*)* - /// </para> - /// </summary> - public partial class RedVerticalObservation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName verticalAdjustmentXName = System.Xml.Linq.XName.Get("verticalAdjustment", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName verticalFixXName = System.Xml.Linq.XName.Get("verticalFix", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName geosphoidXName = System.Xml.Linq.XName.Get("geosphoid", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName gsDatumXName = System.Xml.Linq.XName.Get("gsDatum", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName gsModelXName = System.Xml.Linq.XName.Get("gsModel", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName gsMethodXName = System.Xml.Linq.XName.Get("gsMethod", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName originMarkXName = System.Xml.Linq.XName.Get("originMark", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName verticalDatumXName = System.Xml.Linq.XName.Get("verticalDatum", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName localUncertainityXName = System.Xml.Linq.XName.Get("localUncertainity", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName orderXName = System.Xml.Linq.XName.Get("order", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName positionalUncertainityXName = System.Xml.Linq.XName.Get("positionalUncertainity", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RedVerticalObservation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator RedVerticalObservation(XElement xe) { return XTypedServices.ToXTypedElement<RedVerticalObservation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static RedVerticalObservation() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RedVerticalObservation>(this); } /// <summary> @@ -23678,6 +24690,13 @@ static RedVerticalObservation() { public RedVerticalObservation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -23708,6 +24727,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -23738,6 +24764,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23746,6 +24776,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23753,6 +24786,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -23768,6 +24805,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23776,6 +24817,9 @@ public virtual string name { public virtual string state { get { XAttribute x = this.Attribute(stateXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23783,6 +24827,10 @@ public virtual string state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23791,6 +24839,9 @@ public virtual string state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23798,6 +24849,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23809,13 +24864,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23824,6 +24888,9 @@ public virtual LandXml.v1_2.purposeType? purpose { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -23831,6 +24898,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dateXName = System.Xml.Linq.XName.Get("date", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23849,6 +24920,10 @@ public virtual System.DateTime? date { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName equipmentUsedXName = System.Xml.Linq.XName.Get("equipmentUsed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23857,6 +24932,9 @@ public virtual System.DateTime? date { public virtual string equipmentUsed { get { XAttribute x = this.Attribute(equipmentUsedXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23864,6 +24942,10 @@ public virtual string equipmentUsed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23882,6 +24964,10 @@ public virtual System.Double? height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName verticalAdjustmentXName = System.Xml.Linq.XName.Get("verticalAdjustment", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23890,6 +24976,9 @@ public virtual System.Double? height { public virtual string verticalAdjustment { get { XAttribute x = this.Attribute(verticalAdjustmentXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23897,6 +24986,10 @@ public virtual string verticalAdjustment { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName verticalFixXName = System.Xml.Linq.XName.Get("verticalFix", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23905,6 +24998,9 @@ public virtual string verticalAdjustment { public virtual string verticalFix { get { XAttribute x = this.Attribute(verticalFixXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23912,6 +25008,10 @@ public virtual string verticalFix { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName geosphoidXName = System.Xml.Linq.XName.Get("geosphoid", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23930,6 +25030,10 @@ public virtual System.Double? geosphoid { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName gsDatumXName = System.Xml.Linq.XName.Get("gsDatum", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23938,6 +25042,9 @@ public virtual System.Double? geosphoid { public virtual string gsDatum { get { XAttribute x = this.Attribute(gsDatumXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23945,6 +25052,10 @@ public virtual string gsDatum { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName gsModelXName = System.Xml.Linq.XName.Get("gsModel", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23953,6 +25064,9 @@ public virtual string gsDatum { public virtual string gsModel { get { XAttribute x = this.Attribute(gsModelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23960,6 +25074,10 @@ public virtual string gsModel { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName gsMethodXName = System.Xml.Linq.XName.Get("gsMethod", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23968,6 +25086,9 @@ public virtual string gsModel { public virtual string gsMethod { get { XAttribute x = this.Attribute(gsMethodXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23975,6 +25096,10 @@ public virtual string gsMethod { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName originMarkXName = System.Xml.Linq.XName.Get("originMark", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23983,6 +25108,9 @@ public virtual string gsMethod { public virtual string originMark { get { XAttribute x = this.Attribute(originMarkXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23990,6 +25118,10 @@ public virtual string originMark { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName verticalDatumXName = System.Xml.Linq.XName.Get("verticalDatum", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -23998,6 +25130,9 @@ public virtual string originMark { public virtual string verticalDatum { get { XAttribute x = this.Attribute(verticalDatumXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24005,6 +25140,10 @@ public virtual string verticalDatum { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName localUncertainityXName = System.Xml.Linq.XName.Get("localUncertainity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24023,6 +25162,10 @@ public virtual System.Double? localUncertainity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24031,6 +25174,9 @@ public virtual System.Double? localUncertainity { public virtual string @class { get { XAttribute x = this.Attribute(@classXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24038,6 +25184,10 @@ public virtual string @class { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName orderXName = System.Xml.Linq.XName.Get("order", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24046,6 +25196,9 @@ public virtual string @class { public virtual string order { get { XAttribute x = this.Attribute(orderXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24053,6 +25206,10 @@ public virtual string order { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName positionalUncertainityXName = System.Xml.Linq.XName.Get("positionalUncertainity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24071,6 +25228,21 @@ public virtual System.Double? positionalUncertainity { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RedVerticalObservation", "http://www.landxml.org/schema/LandXML-1.2"); + + static RedVerticalObservation() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24078,6 +25250,13 @@ public virtual System.Double? positionalUncertainity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24098,6 +25277,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Monument+, Feature*) + /// </para> + /// </summary> + public partial class Monuments : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -24111,88 +25298,39 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RedVerticalObservation Load(string xmlFile) { - return XTypedServices.Load<RedVerticalObservation>(xmlFile); + public static Monuments Load(string xmlFile) { + return XTypedServices.Load<Monuments>(xmlFile); } - public static RedVerticalObservation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RedVerticalObservation>(xmlFile); + public static Monuments Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Monuments>(xmlFile); } - public static RedVerticalObservation Parse(string xml) { - return XTypedServices.Parse<RedVerticalObservation>(xml); + public static Monuments Parse(string xml) { + return XTypedServices.Parse<Monuments>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RedVerticalObservation>(this); - } + public static explicit operator Monuments(XElement xe) { return XTypedServices.ToXTypedElement<Monuments>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Monuments>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Monument+, Feature*) + /// </para> + /// </summary> + public Monuments() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Monument+, Feature*) - /// </para> - /// </summary> - public partial class Monuments : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MonumentXName = System.Xml.Linq.XName.Get("Monument", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName MonumentXName = System.Xml.Linq.XName.Get("Monument", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Monument> MonumentField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Monuments", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator Monuments(XElement xe) { return XTypedServices.ToXTypedElement<Monuments>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static Monuments() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(MonumentXName), new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (Monument+, Feature*) - /// </para> - /// </summary> - public Monuments() { - } - /// <summary> /// <para> /// Occurrence: required, repeating @@ -24223,6 +25361,13 @@ public virtual IList<Monument> Monument { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -24253,6 +25398,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24261,6 +25410,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24268,6 +25420,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24276,6 +25432,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24283,6 +25442,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24294,13 +25457,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Monuments", "http://www.landxml.org/schema/LandXML-1.2"); + + static Monuments() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(MonumentXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(MonumentXName, typeof(Monument)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24308,6 +25491,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24328,6 +25518,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Monument : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -24341,92 +25534,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Monuments Load(string xmlFile) { - return XTypedServices.Load<Monuments>(xmlFile); + public static Monument Load(string xmlFile) { + return XTypedServices.Load<Monument>(xmlFile); } - public static Monuments Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Monuments>(xmlFile); + public static Monument Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Monument>(xmlFile); } - public static Monuments Parse(string xml) { - return XTypedServices.Parse<Monuments>(xml); + public static Monument Parse(string xml) { + return XTypedServices.Parse<Monument>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Monuments>(this); - } + public static explicit operator Monument(XElement xe) { return XTypedServices.ToXTypedElement<Monument>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(MonumentXName, typeof(Monument)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Monument>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public Monument() { } - } - - public partial class Monument : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName conditionXName = System.Xml.Linq.XName.Get("condition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName categoryXName = System.Xml.Linq.XName.Get("category", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beaconXName = System.Xml.Linq.XName.Get("beacon", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beaconProtectionXName = System.Xml.Linq.XName.Get("beaconProtection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName referenceXName = System.Xml.Linq.XName.Get("reference", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName originSurveyXName = System.Xml.Linq.XName.Get("originSurvey", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Monument", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Monument(XElement xe) { return XTypedServices.ToXTypedElement<Monument>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Monument() { - } + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); /// <summary> /// <para> @@ -24443,6 +25574,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24451,6 +25586,9 @@ public virtual string name { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24458,6 +25596,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24466,6 +25608,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24473,6 +25618,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24481,6 +25630,9 @@ public virtual string featureRef { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24488,6 +25640,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24496,6 +25652,9 @@ public virtual string desc { public virtual string state { get { XAttribute x = this.Attribute(stateXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24503,6 +25662,10 @@ public virtual string state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24511,6 +25674,9 @@ public virtual string state { public virtual string type { get { XAttribute x = this.Attribute(typeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24518,6 +25684,10 @@ public virtual string type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName conditionXName = System.Xml.Linq.XName.Get("condition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24526,6 +25696,9 @@ public virtual string type { public virtual string condition { get { XAttribute x = this.Attribute(conditionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24533,51 +25706,91 @@ public virtual string condition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName categoryXName = System.Xml.Linq.XName.Get("category", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string category { + public virtual LandXml.v1_2.monumentCategory? category { get { XAttribute x = this.Attribute(categoryXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.monumentCategory)(Enum.Parse(typeof(LandXml.v1_2.monumentCategory), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.monumentCategoryValidator.TypeDefinition)))); } set { - this.SetAttribute(categoryXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(categoryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(categoryXName, value.ToString(), "category", global::LandXml.v1_2.monumentCategoryValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beaconXName = System.Xml.Linq.XName.Get("beacon", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string beacon { + public virtual LandXml.v1_2.beaconType? beacon { get { XAttribute x = this.Attribute(beaconXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.beaconType)(Enum.Parse(typeof(LandXml.v1_2.beaconType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.beaconTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(beaconXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(beaconXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(beaconXName, value.ToString(), "beacon", global::LandXml.v1_2.beaconTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beaconProtectionXName = System.Xml.Linq.XName.Get("beaconProtection", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string beaconProtection { + public virtual LandXml.v1_2.beaconProtectionType? beaconProtection { get { XAttribute x = this.Attribute(beaconProtectionXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.beaconProtectionType)(Enum.Parse(typeof(LandXml.v1_2.beaconProtectionType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.beaconProtectionTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(beaconProtectionXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(beaconProtectionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(beaconProtectionXName, value.ToString(), "beaconProtection", global::LandXml.v1_2.beaconProtectionTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24586,6 +25799,9 @@ public virtual string beaconProtection { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24593,6 +25809,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName referenceXName = System.Xml.Linq.XName.Get("reference", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24601,6 +25821,9 @@ public virtual string oID { public virtual string reference { get { XAttribute x = this.Attribute(referenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24608,6 +25831,10 @@ public virtual string reference { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName originSurveyXName = System.Xml.Linq.XName.Get("originSurvey", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24616,6 +25843,9 @@ public virtual string reference { public virtual string originSurvey { get { XAttribute x = this.Attribute(originSurveyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24623,6 +25853,12 @@ public virtual string originSurvey { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Monument", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24643,6 +25879,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Surface+, SurfVolumes*, Feature*) + /// </para> + /// </summary> + public partial class Surfaces : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -24656,80 +25900,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Monument Load(string xmlFile) { - return XTypedServices.Load<Monument>(xmlFile); - } - - public static Monument Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Monument>(xmlFile); - } - - public static Monument Parse(string xml) { - return XTypedServices.Parse<Monument>(xml); + public static Surfaces Load(string xmlFile) { + return XTypedServices.Load<Surfaces>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Monument>(this); + public static Surfaces Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Surfaces>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Surfaces Parse(string xml) { + return XTypedServices.Parse<Surfaces>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Surface+, SurfVolumes*, Feature*) - /// </para> - /// </summary> - public partial class Surfaces : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurfaceXName = System.Xml.Linq.XName.Get("Surface", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Surface> SurfaceField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurfVolumesXName = System.Xml.Linq.XName.Get("SurfVolumes", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SurfVolumes> SurfVolumesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Surfaces", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Surfaces(XElement xe) { return XTypedServices.ToXTypedElement<Surfaces>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Surfaces() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SurfaceXName), new NamedContentModelEntity(SurfVolumesXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Surfaces>(this); } /// <summary> @@ -24740,6 +25926,13 @@ static Surfaces() { public Surfaces() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurfaceXName = System.Xml.Linq.XName.Get("Surface", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Surface> SurfaceField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -24770,6 +25963,13 @@ public virtual IList<Surface> Surface { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurfVolumesXName = System.Xml.Linq.XName.Get("SurfVolumes", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SurfVolumes> SurfVolumesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -24800,6 +26000,13 @@ public virtual IList<SurfVolumes> SurfVolumes { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -24830,6 +26037,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24838,6 +26049,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24845,6 +26059,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24853,6 +26071,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24860,6 +26081,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -24871,13 +26096,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Surfaces", "http://www.landxml.org/schema/LandXML-1.2"); + + static Surfaces() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SurfaceXName), new NamedContentModelEntity(SurfVolumesXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SurfaceXName, typeof(Surface)); + localElementDictionary.Add(SurfVolumesXName, typeof(SurfVolumes)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24885,6 +26131,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24905,6 +26158,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((SourceData? | Definition? | Watersheds?)+, Feature*) + /// </para> + /// </summary> + public partial class Surface : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -24918,97 +26179,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Surfaces Load(string xmlFile) { - return XTypedServices.Load<Surfaces>(xmlFile); - } - - public static Surfaces Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Surfaces>(xmlFile); - } - - public static Surfaces Parse(string xml) { - return XTypedServices.Parse<Surfaces>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Surfaces>(this); + public static Surface Load(string xmlFile) { + return XTypedServices.Load<Surface>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SurfaceXName, typeof(Surface)); - localElementDictionary.Add(SurfVolumesXName, typeof(SurfVolumes)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Surface Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Surface>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Surface Parse(string xml) { + return XTypedServices.Parse<Surface>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((SourceData? | Definition? | Watersheds?)+, Feature*) - /// </para> - /// </summary> - public partial class Surface : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceDataXName = System.Xml.Linq.XName.Get("SourceData", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SourceData> SourceDataField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DefinitionXName = System.Xml.Linq.XName.Get("Definition", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Definition> DefinitionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WatershedsXName = System.Xml.Linq.XName.Get("Watersheds", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Watersheds> WatershedsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OIDXName = System.Xml.Linq.XName.Get("OID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Surface", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Surface(XElement xe) { return XTypedServices.ToXTypedElement<Surface>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Surface() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(SourceDataXName), new NamedContentModelEntity(DefinitionXName), new NamedContentModelEntity(WatershedsXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Surface>(this); } /// <summary> @@ -25019,6 +26205,13 @@ static Surface() { public Surface() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceDataXName = System.Xml.Linq.XName.Get("SourceData", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SourceData> SourceDataField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -25052,6 +26245,13 @@ public virtual IList<SourceData> SourceData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DefinitionXName = System.Xml.Linq.XName.Get("Definition", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Definition> DefinitionField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -25085,6 +26285,13 @@ public virtual IList<Definition> Definition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WatershedsXName = System.Xml.Linq.XName.Get("Watersheds", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Watersheds> WatershedsField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -25118,6 +26325,13 @@ public virtual IList<Watersheds> Watersheds { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -25148,6 +26362,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -25163,6 +26381,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25171,6 +26393,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25178,6 +26403,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OIDXName = System.Xml.Linq.XName.Get("OID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25186,6 +26415,9 @@ public virtual string desc { public virtual string OID { get { XAttribute x = this.Attribute(OIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25193,7 +26425,11 @@ public virtual string OID { } } - /// <summary> + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + + /// <summary> /// <para> /// Occurrence: optional /// </para> @@ -25204,13 +26440,35 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Surface", "http://www.landxml.org/schema/LandXML-1.2"); + + static Surface() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(SourceDataXName), new NamedContentModelEntity(DefinitionXName), new NamedContentModelEntity(WatershedsXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SourceDataXName, typeof(SourceData)); + localElementDictionary.Add(DefinitionXName, typeof(Definition)); + localElementDictionary.Add(WatershedsXName, typeof(Watersheds)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25218,6 +26476,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25238,6 +26503,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((Chain* | PointFiles* | Boundaries* | Breaklines* | Contours* | DataPoints*), Feature*)+ + /// </para> + /// </summary> + public partial class SourceData : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -25251,103 +26524,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Surface Load(string xmlFile) { - return XTypedServices.Load<Surface>(xmlFile); - } - - public static Surface Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Surface>(xmlFile); - } - - public static Surface Parse(string xml) { - return XTypedServices.Parse<Surface>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Surface>(this); + public static SourceData Load(string xmlFile) { + return XTypedServices.Load<SourceData>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SourceDataXName, typeof(SourceData)); - localElementDictionary.Add(DefinitionXName, typeof(Definition)); - localElementDictionary.Add(WatershedsXName, typeof(Watersheds)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static SourceData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SourceData>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static SourceData Parse(string xml) { + return XTypedServices.Parse<SourceData>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((Chain* | PointFiles* | Boundaries* | Breaklines* | Contours* | DataPoints*), Feature*)+ - /// </para> - /// </summary> - public partial class SourceData : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ChainXName = System.Xml.Linq.XName.Get("Chain", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Chain> ChainField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PointFilesXName = System.Xml.Linq.XName.Get("PointFiles", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PointFiles> PointFilesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BoundariesXName = System.Xml.Linq.XName.Get("Boundaries", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Boundaries> BoundariesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BreaklinesXName = System.Xml.Linq.XName.Get("Breaklines", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Breaklines> BreaklinesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ContoursXName = System.Xml.Linq.XName.Get("Contours", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Contours> ContoursField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataPointsXName = System.Xml.Linq.XName.Get("DataPoints", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DataPoints> DataPointsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SourceData", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator SourceData(XElement xe) { return XTypedServices.ToXTypedElement<SourceData>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SourceData() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(ChainXName), new NamedContentModelEntity(PointFilesXName), new NamedContentModelEntity(BoundariesXName), new NamedContentModelEntity(BreaklinesXName), new NamedContentModelEntity(ContoursXName), new NamedContentModelEntity(DataPointsXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SourceData>(this); } /// <summary> @@ -25358,6 +26550,13 @@ static SourceData() { public SourceData() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ChainXName = System.Xml.Linq.XName.Get("Chain", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Chain> ChainField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -25391,6 +26590,13 @@ public virtual IList<Chain> Chain { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PointFilesXName = System.Xml.Linq.XName.Get("PointFiles", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PointFiles> PointFilesField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -25424,6 +26630,13 @@ public virtual IList<PointFiles> PointFiles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BoundariesXName = System.Xml.Linq.XName.Get("Boundaries", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Boundaries> BoundariesField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -25457,6 +26670,13 @@ public virtual IList<Boundaries> Boundaries { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BreaklinesXName = System.Xml.Linq.XName.Get("Breaklines", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Breaklines> BreaklinesField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -25490,6 +26710,13 @@ public virtual IList<Breaklines> Breaklines { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ContoursXName = System.Xml.Linq.XName.Get("Contours", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Contours> ContoursField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -25523,6 +26750,13 @@ public virtual IList<Contours> Contours { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataPointsXName = System.Xml.Linq.XName.Get("DataPoints", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DataPoints> DataPointsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -25556,6 +26790,13 @@ public virtual IList<DataPoints> DataPoints { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -25586,6 +26827,26 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SourceData", "http://www.landxml.org/schema/LandXML-1.2"); + + static SourceData() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(ChainXName), new NamedContentModelEntity(PointFilesXName), new NamedContentModelEntity(BoundariesXName), new NamedContentModelEntity(BreaklinesXName), new NamedContentModelEntity(ContoursXName), new NamedContentModelEntity(DataPointsXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ChainXName, typeof(Chain)); + localElementDictionary.Add(PointFilesXName, typeof(PointFiles)); + localElementDictionary.Add(BoundariesXName, typeof(Boundaries)); + localElementDictionary.Add(BreaklinesXName, typeof(Breaklines)); + localElementDictionary.Add(ContoursXName, typeof(Contours)); + localElementDictionary.Add(DataPointsXName, typeof(DataPoints)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25593,6 +26854,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25613,6 +26881,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PntList3D*, Feature*)+ + /// </para> + /// </summary> + public partial class DataPoints : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -25626,99 +26902,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static SourceData Load(string xmlFile) { - return XTypedServices.Load<SourceData>(xmlFile); - } - - public static SourceData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SourceData>(xmlFile); - } - - public static SourceData Parse(string xml) { - return XTypedServices.Parse<SourceData>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SourceData>(this); + public static DataPoints Load(string xmlFile) { + return XTypedServices.Load<DataPoints>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ChainXName, typeof(Chain)); - localElementDictionary.Add(PointFilesXName, typeof(PointFiles)); - localElementDictionary.Add(BoundariesXName, typeof(Boundaries)); - localElementDictionary.Add(BreaklinesXName, typeof(Breaklines)); - localElementDictionary.Add(ContoursXName, typeof(Contours)); - localElementDictionary.Add(DataPointsXName, typeof(DataPoints)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static DataPoints Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DataPoints>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DataPoints Parse(string xml) { + return XTypedServices.Parse<DataPoints>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (PntList3D*, Feature*)+ - /// </para> - /// </summary> - public partial class DataPoints : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<PntList3D> PntList3DField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DataPoints", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DataPoints(XElement xe) { return XTypedServices.ToXTypedElement<DataPoints>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DataPoints() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList3DXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DataPoints>(this); } /// <summary> @@ -25729,6 +26928,13 @@ static DataPoints() { public DataPoints() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<PntList3D> PntList3DField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -25759,6 +26965,13 @@ public virtual IList<PntList3D> PntList3D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -25789,6 +27002,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25797,6 +27014,9 @@ public virtual IList<Feature> Feature { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25804,6 +27024,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25812,6 +27036,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25819,6 +27046,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25827,6 +27058,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25834,6 +27068,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25845,13 +27083,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25860,6 +27107,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25867,6 +27117,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25878,28 +27132,60 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DataPoints", "http://www.landxml.org/schema/LandXML-1.2"); + + static DataPoints() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList3DXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -25907,6 +27193,13 @@ public virtual string DTMAttribute { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25927,6 +27220,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PointFile+, Feature*) + /// </para> + /// </summary> + public partial class PointFiles : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -25940,66 +27241,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DataPoints Load(string xmlFile) { - return XTypedServices.Load<DataPoints>(xmlFile); - } - - public static DataPoints Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DataPoints>(xmlFile); - } - - public static DataPoints Parse(string xml) { - return XTypedServices.Parse<DataPoints>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DataPoints>(this); + public static PointFiles Load(string xmlFile) { + return XTypedServices.Load<PointFiles>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static PointFiles Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PointFiles>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static PointFiles Parse(string xml) { + return XTypedServices.Parse<PointFiles>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (PointFile+, Feature*) - /// </para> - /// </summary> - public partial class PointFiles : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PointFileXName = System.Xml.Linq.XName.Get("PointFile", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PointFile> PointFileField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointFiles", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator PointFiles(XElement xe) { return XTypedServices.ToXTypedElement<PointFiles>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PointFiles() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PointFileXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PointFiles>(this); } /// <summary> @@ -26010,6 +27267,13 @@ static PointFiles() { public PointFiles() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PointFileXName = System.Xml.Linq.XName.Get("PointFile", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PointFile> PointFileField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -26040,6 +27304,13 @@ public virtual IList<PointFile> PointFile { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -26070,6 +27341,21 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointFiles", "http://www.landxml.org/schema/LandXML-1.2"); + + static PointFiles() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PointFileXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PointFileXName, typeof(PointFile)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -26077,6 +27363,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26097,6 +27390,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class PointFile : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -26110,52 +27406,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PointFiles Load(string xmlFile) { - return XTypedServices.Load<PointFiles>(xmlFile); + public static PointFile Load(string xmlFile) { + return XTypedServices.Load<PointFile>(xmlFile); } - public static PointFiles Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PointFiles>(xmlFile); + public static PointFile Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PointFile>(xmlFile); } - public static PointFiles Parse(string xml) { - return XTypedServices.Parse<PointFiles>(xml); + public static PointFile Parse(string xml) { + return XTypedServices.Parse<PointFile>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PointFiles>(this); - } + public static explicit operator PointFile(XElement xe) { return XTypedServices.ToXTypedElement<PointFile>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PointFileXName, typeof(PointFile)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PointFile>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public PointFile() { } - } - - public partial class PointFile : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fileNameXName = System.Xml.Linq.XName.Get("fileName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fileTypeXName = System.Xml.Linq.XName.Get("fileType", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fileFormatXName = System.Xml.Linq.XName.Get("fileFormat", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointFile", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator PointFile(XElement xe) { return XTypedServices.ToXTypedElement<PointFile>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PointFile() { - } + protected internal static readonly System.Xml.Linq.XName fileNameXName = System.Xml.Linq.XName.Get("fileName", ""); /// <summary> /// <para> @@ -26172,6 +27446,10 @@ public virtual string fileName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fileTypeXName = System.Xml.Linq.XName.Get("fileType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -26187,6 +27465,10 @@ public virtual string fileType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fileFormatXName = System.Xml.Linq.XName.Get("fileFormat", ""); + /// <summary> /// <para> /// Occurrence: required @@ -26202,6 +27484,12 @@ public virtual string fileFormat { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointFile", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26222,6 +27510,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Boundary+, Feature*) + /// </para> + /// </summary> + public partial class Boundaries : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -26235,61 +27531,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PointFile Load(string xmlFile) { - return XTypedServices.Load<PointFile>(xmlFile); - } - - public static PointFile Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PointFile>(xmlFile); - } - - public static PointFile Parse(string xml) { - return XTypedServices.Parse<PointFile>(xml); + public static Boundaries Load(string xmlFile) { + return XTypedServices.Load<Boundaries>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PointFile>(this); + public static Boundaries Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Boundaries>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Boundaries Parse(string xml) { + return XTypedServices.Parse<Boundaries>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Boundary+, Feature*) - /// </para> - /// </summary> - public partial class Boundaries : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BoundaryXName = System.Xml.Linq.XName.Get("Boundary", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Boundary> BoundaryField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Boundaries", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Boundaries(XElement xe) { return XTypedServices.ToXTypedElement<Boundaries>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Boundaries() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(BoundaryXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Boundaries>(this); } /// <summary> @@ -26300,6 +27557,13 @@ static Boundaries() { public Boundaries() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BoundaryXName = System.Xml.Linq.XName.Get("Boundary", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Boundary> BoundaryField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -26330,6 +27594,13 @@ public virtual IList<Boundary> Boundary { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -26360,6 +27631,21 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Boundaries", "http://www.landxml.org/schema/LandXML-1.2"); + + static Boundaries() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(BoundaryXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(BoundaryXName, typeof(Boundary)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -26367,6 +27653,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26387,6 +27680,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((PntList2D | PntList3D), Feature*) + /// </para> + /// </summary> + public partial class Boundary : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -26400,91 +27701,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Boundaries Load(string xmlFile) { - return XTypedServices.Load<Boundaries>(xmlFile); - } - - public static Boundaries Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Boundaries>(xmlFile); - } - - public static Boundaries Parse(string xml) { - return XTypedServices.Parse<Boundaries>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Boundaries>(this); + public static Boundary Load(string xmlFile) { + return XTypedServices.Load<Boundary>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(BoundaryXName, typeof(Boundary)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Boundary Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Boundary>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Boundary Parse(string xml) { + return XTypedServices.Parse<Boundary>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((PntList2D | PntList3D), Feature*) - /// </para> - /// </summary> - public partial class Boundary : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName bndTypeXName = System.Xml.Linq.XName.Get("bndType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName edgeTrimXName = System.Xml.Linq.XName.Get("edgeTrim", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Boundary", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Boundary(XElement xe) { return XTypedServices.ToXTypedElement<Boundary>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Boundary() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Boundary>(this); } /// <summary> @@ -26495,6 +27727,10 @@ static Boundary() { public Boundary() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -26509,6 +27745,9 @@ public Boundary() { public virtual PntList2D PntList2D { get { XElement x = this.GetElement(PntList2DXName); + if ((x == null)) { + return null; + } return ((PntList2D)(x)); } set { @@ -26516,6 +27755,10 @@ public virtual PntList2D PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -26530,6 +27773,9 @@ public virtual PntList2D PntList2D { public virtual PntList3D PntList3D { get { XElement x = this.GetElement(PntList3DXName); + if ((x == null)) { + return null; + } return ((PntList3D)(x)); } set { @@ -26537,6 +27783,13 @@ public virtual PntList3D PntList3D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -26567,21 +27820,29 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName bndTypeXName = System.Xml.Linq.XName.Get("bndType", ""); + /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string bndType { + public virtual LandXml.v1_2.surfBndType bndType { get { XAttribute x = this.Attribute(bndTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return ((LandXml.v1_2.surfBndType)(Enum.Parse(typeof(LandXml.v1_2.surfBndType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surfBndTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(bndTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(bndTypeXName, value.ToString(), "bndType", global::LandXml.v1_2.surfBndTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName edgeTrimXName = System.Xml.Linq.XName.Get("edgeTrim", ""); + /// <summary> /// <para> /// Occurrence: required @@ -26597,6 +27858,10 @@ public virtual bool edgeTrim { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -26615,6 +27880,10 @@ public virtual System.Double? area { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -26623,6 +27892,9 @@ public virtual System.Double? area { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26630,6 +27902,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -26638,6 +27914,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26645,6 +27924,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -26656,13 +27939,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Boundary", "http://www.landxml.org/schema/LandXML-1.2"); + + static Boundary() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -26670,6 +27974,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26690,6 +28001,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Breakline*, RetWall*, Feature*) + /// </para> + /// </summary> + public partial class Breaklines : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -26703,74 +28022,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Boundary Load(string xmlFile) { - return XTypedServices.Load<Boundary>(xmlFile); - } - - public static Boundary Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Boundary>(xmlFile); - } - - public static Boundary Parse(string xml) { - return XTypedServices.Parse<Boundary>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Boundary>(this); + public static Breaklines Load(string xmlFile) { + return XTypedServices.Load<Breaklines>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Breaklines Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Breaklines>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Breaklines Parse(string xml) { + return XTypedServices.Parse<Breaklines>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Breakline*, RetWall*, Feature*) - /// </para> - /// </summary> - public partial class Breaklines : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BreaklineXName = System.Xml.Linq.XName.Get("Breakline", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Breakline> BreaklineField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RetWallXName = System.Xml.Linq.XName.Get("RetWall", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RetWall> RetWallField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Breaklines", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Breaklines(XElement xe) { return XTypedServices.ToXTypedElement<Breaklines>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Breaklines() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(BreaklineXName), new NamedContentModelEntity(RetWallXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Breaklines>(this); } /// <summary> @@ -26781,6 +28048,13 @@ static Breaklines() { public Breaklines() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BreaklineXName = System.Xml.Linq.XName.Get("Breakline", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Breakline> BreaklineField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -26811,6 +28085,13 @@ public virtual IList<Breakline> Breakline { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RetWallXName = System.Xml.Linq.XName.Get("RetWall", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RetWall> RetWallField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -26841,6 +28122,13 @@ public virtual IList<RetWall> RetWall { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -26871,6 +28159,22 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Breaklines", "http://www.landxml.org/schema/LandXML-1.2"); + + static Breaklines() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(BreaklineXName), new NamedContentModelEntity(RetWallXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(BreaklineXName, typeof(Breakline)); + localElementDictionary.Add(RetWallXName, typeof(RetWall)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -26878,6 +28182,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26898,6 +28209,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((PntList2D | PntList3D), Feature*) + /// </para> + /// </summary> + public partial class Breakline : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -26911,84 +28230,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Breaklines Load(string xmlFile) { - return XTypedServices.Load<Breaklines>(xmlFile); - } - - public static Breaklines Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Breaklines>(xmlFile); - } - - public static Breaklines Parse(string xml) { - return XTypedServices.Parse<Breaklines>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Breaklines>(this); + public static Breakline Load(string xmlFile) { + return XTypedServices.Load<Breakline>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(BreaklineXName, typeof(Breakline)); - localElementDictionary.Add(RetWallXName, typeof(RetWall)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Breakline Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Breakline>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Breakline Parse(string xml) { + return XTypedServices.Parse<Breakline>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((PntList2D | PntList3D), Feature*) - /// </para> - /// </summary> - public partial class Breakline : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName brkTypeXName = System.Xml.Linq.XName.Get("brkType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Breakline", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Breakline(XElement xe) { return XTypedServices.ToXTypedElement<Breakline>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Breakline() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Breakline>(this); } /// <summary> @@ -26999,6 +28256,10 @@ static Breakline() { public Breakline() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -27013,6 +28274,9 @@ public Breakline() { public virtual PntList2D PntList2D { get { XElement x = this.GetElement(PntList2DXName); + if ((x == null)) { + return null; + } return ((PntList2D)(x)); } set { @@ -27020,6 +28284,10 @@ public virtual PntList2D PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -27034,6 +28302,9 @@ public virtual PntList2D PntList2D { public virtual PntList3D PntList3D { get { XElement x = this.GetElement(PntList3DXName); + if ((x == null)) { + return null; + } return ((PntList3D)(x)); } set { @@ -27041,6 +28312,13 @@ public virtual PntList3D PntList3D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -27071,6 +28349,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName brkTypeXName = System.Xml.Linq.XName.Get("brkType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27082,13 +28364,22 @@ public virtual LandXml.v1_2.breakLineType? brkType { if ((x == null)) { return null; } - return ((LandXml.v1_2.breakLineType)(Enum.Parse(typeof(LandXml.v1_2.breakLineType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.breakLineType)(Enum.Parse(typeof(LandXml.v1_2.breakLineType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.breakLineTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(brkTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(brkTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(brkTypeXName, value.ToString(), "brkType", global::LandXml.v1_2.breakLineTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27097,6 +28388,9 @@ public virtual LandXml.v1_2.breakLineType? brkType { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27104,6 +28398,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27112,6 +28410,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27119,6 +28420,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27130,13 +28435,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Breakline", "http://www.landxml.org/schema/LandXML-1.2"); + + static Breakline() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -27144,6 +28470,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -27164,6 +28497,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (RetWallPnt+, Feature*) + /// </para> + /// </summary> + public partial class RetWall : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -27177,79 +28518,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Breakline Load(string xmlFile) { - return XTypedServices.Load<Breakline>(xmlFile); - } - - public static Breakline Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Breakline>(xmlFile); - } - - public static Breakline Parse(string xml) { - return XTypedServices.Parse<Breakline>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Breakline>(this); + public static RetWall Load(string xmlFile) { + return XTypedServices.Load<RetWall>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static RetWall Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RetWall>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static RetWall Parse(string xml) { + return XTypedServices.Parse<RetWall>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (RetWallPnt+, Feature*) - /// </para> - /// </summary> - public partial class RetWall : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RetWallPntXName = System.Xml.Linq.XName.Get("RetWallPnt", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RetWallPnt> RetWallPntField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RetWall", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator RetWall(XElement xe) { return XTypedServices.ToXTypedElement<RetWall>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static RetWall() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(RetWallPntXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RetWall>(this); } /// <summary> @@ -27260,6 +28544,13 @@ static RetWall() { public RetWall() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RetWallPntXName = System.Xml.Linq.XName.Get("RetWallPnt", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RetWallPnt> RetWallPntField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -27290,6 +28581,13 @@ public virtual IList<RetWallPnt> RetWallPnt { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -27320,6 +28618,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27328,6 +28630,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27335,6 +28640,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27343,6 +28652,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27350,6 +28662,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27361,13 +28677,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RetWall", "http://www.landxml.org/schema/LandXML-1.2"); + + static RetWall() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(RetWallPntXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(RetWallPntXName, typeof(RetWallPnt)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -27375,6 +28711,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -27395,6 +28738,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class RetWallPnt : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -27408,88 +28754,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RetWall Load(string xmlFile) { - return XTypedServices.Load<RetWall>(xmlFile); + public static RetWallPnt Load(string xmlFile) { + return XTypedServices.Load<RetWallPnt>(xmlFile); } - public static RetWall Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RetWall>(xmlFile); + public static RetWallPnt Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RetWallPnt>(xmlFile); } - public static RetWall Parse(string xml) { - return XTypedServices.Parse<RetWall>(xml); + public static RetWallPnt Parse(string xml) { + return XTypedServices.Parse<RetWallPnt>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RetWall>(this); - } + public static explicit operator RetWallPnt(XElement xe) { return XTypedServices.ToXTypedElement<RetWallPnt>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(RetWallPntXName, typeof(RetWallPnt)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RetWallPnt>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public RetWallPnt() { } - } - - public partial class RetWallPnt : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RetWallPnt", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator RetWallPnt(XElement xe) { return XTypedServices.ToXTypedElement<RetWallPnt>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public RetWallPnt() { - } + protected internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); /// <summary> /// <para> @@ -27506,6 +28794,10 @@ public virtual double height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); + /// <summary> /// <para> /// Occurrence: required @@ -27521,6 +28813,10 @@ public virtual double offset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27529,6 +28825,9 @@ public virtual double offset { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27536,6 +28835,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27544,6 +28847,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27551,6 +28857,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27559,6 +28869,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27566,6 +28879,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27577,13 +28894,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27592,6 +28918,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27599,6 +28928,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27607,6 +28940,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -27614,6 +28950,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27625,28 +28965,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -27665,21 +29026,39 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RetWallPnt", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -27700,6 +29079,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Contour+, Feature*) + /// </para> + /// </summary> + public partial class Contours : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -27713,61 +29100,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RetWallPnt Load(string xmlFile) { - return XTypedServices.Load<RetWallPnt>(xmlFile); - } - - public static RetWallPnt Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RetWallPnt>(xmlFile); - } - - public static RetWallPnt Parse(string xml) { - return XTypedServices.Parse<RetWallPnt>(xml); + public static Contours Load(string xmlFile) { + return XTypedServices.Load<Contours>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RetWallPnt>(this); + public static Contours Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Contours>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Contours Parse(string xml) { + return XTypedServices.Parse<Contours>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Contour+, Feature*) - /// </para> - /// </summary> - public partial class Contours : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ContourXName = System.Xml.Linq.XName.Get("Contour", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Contour> ContourField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Contours", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Contours(XElement xe) { return XTypedServices.ToXTypedElement<Contours>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Contours() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ContourXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Contours>(this); } /// <summary> @@ -27778,6 +29126,13 @@ static Contours() { public Contours() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ContourXName = System.Xml.Linq.XName.Get("Contour", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Contour> ContourField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -27808,6 +29163,13 @@ public virtual IList<Contour> Contour { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -27838,6 +29200,21 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Contours", "http://www.landxml.org/schema/LandXML-1.2"); + + static Contours() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ContourXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ContourXName, typeof(Contour)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -27845,6 +29222,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -27865,6 +29249,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PntList2D, Feature*) + /// </para> + /// </summary> + public partial class Contour : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -27878,67 +29270,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Contours Load(string xmlFile) { - return XTypedServices.Load<Contours>(xmlFile); - } - - public static Contours Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Contours>(xmlFile); - } - - public static Contours Parse(string xml) { - return XTypedServices.Parse<Contours>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Contours>(this); + public static Contour Load(string xmlFile) { + return XTypedServices.Load<Contour>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ContourXName, typeof(Contour)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Contour Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Contour>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Contour Parse(string xml) { + return XTypedServices.Parse<Contour>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (PntList2D, Feature*) - /// </para> - /// </summary> - public partial class Contour : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevXName = System.Xml.Linq.XName.Get("elev", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Contour", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Contour(XElement xe) { return XTypedServices.ToXTypedElement<Contour>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Contour() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Contour>(this); } /// <summary> @@ -27949,6 +29296,10 @@ static Contour() { public Contour() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -27967,6 +29318,13 @@ public virtual PntList2D PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -27997,6 +29355,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevXName = System.Xml.Linq.XName.Get("elev", ""); + /// <summary> /// <para> /// Occurrence: required @@ -28012,6 +29374,21 @@ public virtual double elev { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Contour", "http://www.landxml.org/schema/LandXML-1.2"); + + static Contour() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -28019,6 +29396,13 @@ public virtual double elev { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -28039,6 +29423,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Pnts, Faces+, Feature*) + /// </para> + /// </summary> + public partial class Definition : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -28052,99 +29444,35 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Contour Load(string xmlFile) { - return XTypedServices.Load<Contour>(xmlFile); + public static Definition Load(string xmlFile) { + return XTypedServices.Load<Definition>(xmlFile); } - public static Contour Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Contour>(xmlFile); + public static Definition Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Definition>(xmlFile); } - public static Contour Parse(string xml) { - return XTypedServices.Parse<Contour>(xml); + public static Definition Parse(string xml) { + return XTypedServices.Parse<Definition>(xml); } + public static explicit operator Definition(XElement xe) { return XTypedServices.ToXTypedElement<Definition>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Contour>(this); + return XTypedServices.CloneXTypedElement<Definition>(this); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + /// <summary> + /// <para> + /// Regular expression: (Pnts, Faces+, Feature*) + /// </para> + /// </summary> + public Definition() { } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Regular expression: (Pnts, Faces+, Feature*) - /// </para> - /// </summary> - public partial class Definition : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntsXName = System.Xml.Linq.XName.Get("Pnts", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FacesXName = System.Xml.Linq.XName.Get("Faces", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Faces> FacesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfTypeXName = System.Xml.Linq.XName.Get("surfType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName area2DSurfXName = System.Xml.Linq.XName.Get("area2DSurf", ""); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName area3DSurfXName = System.Xml.Linq.XName.Get("area3DSurf", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevMaxXName = System.Xml.Linq.XName.Get("elevMax", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevMinXName = System.Xml.Linq.XName.Get("elevMin", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Definition", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator Definition(XElement xe) { return XTypedServices.ToXTypedElement<Definition>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static Definition() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntsXName), new NamedContentModelEntity(FacesXName), new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (Pnts, Faces+, Feature*) - /// </para> - /// </summary> - public Definition() { - } + protected internal static readonly System.Xml.Linq.XName PntsXName = System.Xml.Linq.XName.Get("Pnts", "http://www.landxml.org/schema/LandXML-1.2"); /// <summary> /// <para> @@ -28164,6 +29492,13 @@ public virtual Pnts Pnts { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FacesXName = System.Xml.Linq.XName.Get("Faces", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Faces> FacesField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -28194,6 +29529,13 @@ public virtual IList<Faces> Faces { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -28224,6 +29566,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfTypeXName = System.Xml.Linq.XName.Get("surfType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -28232,13 +29578,17 @@ public virtual IList<Feature> Feature { public virtual LandXml.v1_2.surfTypeEnum surfType { get { XAttribute x = this.Attribute(surfTypeXName); - return ((LandXml.v1_2.surfTypeEnum)(Enum.Parse(typeof(LandXml.v1_2.surfTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.surfTypeEnum)(Enum.Parse(typeof(LandXml.v1_2.surfTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surfTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(surfTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(surfTypeXName, value.ToString(), "surfType", global::LandXml.v1_2.surfTypeEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName area2DSurfXName = System.Xml.Linq.XName.Get("area2DSurf", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28257,6 +29607,10 @@ public virtual System.Double? area2DSurf { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName area3DSurfXName = System.Xml.Linq.XName.Get("area3DSurf", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28275,6 +29629,10 @@ public virtual System.Double? area3DSurf { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevMaxXName = System.Xml.Linq.XName.Get("elevMax", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28293,6 +29651,10 @@ public virtual System.Double? elevMax { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevMinXName = System.Xml.Linq.XName.Get("elevMin", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28311,6 +29673,22 @@ public virtual System.Double? elevMin { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Definition", "http://www.landxml.org/schema/LandXML-1.2"); + + static Definition() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntsXName), new NamedContentModelEntity(FacesXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntsXName, typeof(Pnts)); + localElementDictionary.Add(FacesXName, typeof(Faces)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -28318,6 +29696,13 @@ public virtual System.Double? elevMin { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -28338,6 +29723,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (P+) + /// </para> + /// </summary> + public partial class Pnts : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -28351,60 +29744,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Definition Load(string xmlFile) { - return XTypedServices.Load<Definition>(xmlFile); - } - - public static Definition Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Definition>(xmlFile); - } - - public static Definition Parse(string xml) { - return XTypedServices.Parse<Definition>(xml); + public static Pnts Load(string xmlFile) { + return XTypedServices.Load<Pnts>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Definition>(this); + public static Pnts Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Pnts>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntsXName, typeof(Pnts)); - localElementDictionary.Add(FacesXName, typeof(Faces)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Pnts Parse(string xml) { + return XTypedServices.Parse<Pnts>(xml); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Regular expression: (P+) - /// </para> - /// </summary> - public partial class Pnts : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PXName = System.Xml.Linq.XName.Get("P", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<P> PField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Pnts", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator Pnts(XElement xe) { return XTypedServices.ToXTypedElement<Pnts>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Pnts() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Pnts>(this); } /// <summary> @@ -28415,6 +29770,13 @@ static Pnts() { public Pnts() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PXName = System.Xml.Linq.XName.Get("P", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<P> PField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -28445,6 +29807,20 @@ public virtual IList<P> P { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Pnts", "http://www.landxml.org/schema/LandXML-1.2"); + + static Pnts() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PXName, typeof(P)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -28452,6 +29828,13 @@ public virtual IList<P> P { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -28472,6 +29855,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class P : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -28485,115 +29871,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Pnts Load(string xmlFile) { - return XTypedServices.Load<Pnts>(xmlFile); + public static P Load(string xmlFile) { + return XTypedServices.Load<P>(xmlFile); } - public static Pnts Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Pnts>(xmlFile); + public static P Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<P>(xmlFile); } - public static Pnts Parse(string xml) { - return XTypedServices.Parse<Pnts>(xml); + public static P Parse(string xml) { + return XTypedServices.Parse<P>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Pnts>(this); - } + public static explicit operator P(XElement xe) { return XTypedServices.ToXTypedElement<P>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PXName, typeof(P)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<P>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public P() { } - } - - public partial class P : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("P", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator P(XElement xe) { return XTypedServices.ToXTypedElement<P>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public P() { - } + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); /// <summary> /// <para> @@ -28610,6 +29911,10 @@ public virtual decimal id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28618,6 +29923,9 @@ public virtual decimal id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28625,6 +29933,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28633,6 +29945,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28640,6 +29955,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28648,6 +29967,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28655,6 +29977,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28666,13 +29992,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28681,6 +30016,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28688,6 +30026,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28696,6 +30038,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28703,6 +30048,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28714,28 +30063,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28754,21 +30124,37 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28787,6 +30173,10 @@ public virtual System.DateTime? determinedTimeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28805,6 +30195,10 @@ public virtual System.Double? ellipsoidHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28823,6 +30217,10 @@ public virtual System.Double? latitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28841,6 +30239,10 @@ public virtual System.Double? longitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28849,6 +30251,9 @@ public virtual System.Double? longitude { public virtual string zone { get { XAttribute x = this.Attribute(zoneXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28856,6 +30261,10 @@ public virtual string zone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28874,6 +30283,10 @@ public virtual System.Double? northingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28892,6 +30305,10 @@ public virtual System.Double? eastingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -28910,6 +30327,12 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("P", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -28930,6 +30353,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (F+, Feature*) + /// </para> + /// </summary> + public partial class Faces : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -28943,73 +30374,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static P Load(string xmlFile) { - return XTypedServices.Load<P>(xmlFile); - } - - public static P Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<P>(xmlFile); - } - - public static P Parse(string xml) { - return XTypedServices.Parse<P>(xml); + public static Faces Load(string xmlFile) { + return XTypedServices.Load<Faces>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<P>(this); + public static Faces Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Faces>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Faces Parse(string xml) { + return XTypedServices.Parse<Faces>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (F+, Feature*) - /// </para> - /// </summary> - public partial class Faces : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FXName = System.Xml.Linq.XName.Get("F", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<F> FField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Faces", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Faces(XElement xe) { return XTypedServices.ToXTypedElement<Faces>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Faces() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Faces>(this); } /// <summary> @@ -29020,6 +30400,13 @@ static Faces() { public Faces() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FXName = System.Xml.Linq.XName.Get("F", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<F> FField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -29050,6 +30437,13 @@ public virtual IList<F> F { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -29080,6 +30474,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29088,6 +30486,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29095,6 +30496,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29103,6 +30508,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29110,6 +30518,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29121,13 +30533,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Faces", "http://www.landxml.org/schema/LandXML-1.2"); + + static Faces() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FXName, typeof(F)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -29135,6 +30567,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29155,6 +30594,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class F : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -29168,56 +30610,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Faces Load(string xmlFile) { - return XTypedServices.Load<Faces>(xmlFile); + public static F Load(string xmlFile) { + return XTypedServices.Load<F>(xmlFile); } - public static Faces Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Faces>(xmlFile); + public static F Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<F>(xmlFile); } - public static Faces Parse(string xml) { - return XTypedServices.Parse<Faces>(xml); + public static F Parse(string xml) { + return XTypedServices.Parse<F>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Faces>(this); - } + public static explicit operator F(XElement xe) { return XTypedServices.ToXTypedElement<F>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FXName, typeof(F)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<F>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public F() { } - } - - public partial class F : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName iXName = System.Xml.Linq.XName.Get("i", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nXName = System.Xml.Linq.XName.Get("n", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName bXName = System.Xml.Linq.XName.Get("b", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("F", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator F(XElement xe) { return XTypedServices.ToXTypedElement<F>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public F() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<decimal> TypedValue { get { @@ -29229,6 +30645,10 @@ public virtual IList<decimal> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName iXName = System.Xml.Linq.XName.Get("i", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29247,6 +30667,10 @@ public virtual System.Decimal? i { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nXName = System.Xml.Linq.XName.Get("n", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29255,6 +30679,9 @@ public virtual System.Decimal? i { public virtual IList<decimal> n { get { XAttribute x = this.Attribute(nXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<decimal>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Integer).Datatype); } set { @@ -29262,6 +30689,10 @@ public virtual IList<decimal> n { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName bXName = System.Xml.Linq.XName.Get("b", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29280,6 +30711,12 @@ public virtual System.Decimal? b { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("F", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29300,6 +30737,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Watershed+, Feature*) + /// </para> + /// </summary> + public partial class Watersheds : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -29313,61 +30758,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static F Load(string xmlFile) { - return XTypedServices.Load<F>(xmlFile); - } - - public static F Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<F>(xmlFile); - } - - public static F Parse(string xml) { - return XTypedServices.Parse<F>(xml); + public static Watersheds Load(string xmlFile) { + return XTypedServices.Load<Watersheds>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<F>(this); + public static Watersheds Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Watersheds>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Watersheds Parse(string xml) { + return XTypedServices.Parse<Watersheds>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Watershed+, Feature*) - /// </para> - /// </summary> - public partial class Watersheds : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WatershedXName = System.Xml.Linq.XName.Get("Watershed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Watershed> WatershedField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Watersheds", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Watersheds(XElement xe) { return XTypedServices.ToXTypedElement<Watersheds>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Watersheds() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(WatershedXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Watersheds>(this); } /// <summary> @@ -29378,6 +30784,13 @@ static Watersheds() { public Watersheds() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WatershedXName = System.Xml.Linq.XName.Get("Watershed", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Watershed> WatershedField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -29408,6 +30821,13 @@ public virtual IList<Watershed> Watershed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -29438,6 +30858,21 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Watersheds", "http://www.landxml.org/schema/LandXML-1.2"); + + static Watersheds() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(WatershedXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(WatershedXName, typeof(Watershed)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -29445,6 +30880,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29465,6 +30907,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((PntList2D | PntList3D), Outlet*, Feature*) + /// </para> + /// </summary> + public partial class Watershed : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -29478,86 +30928,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Watersheds Load(string xmlFile) { - return XTypedServices.Load<Watersheds>(xmlFile); - } - - public static Watersheds Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Watersheds>(xmlFile); - } - - public static Watersheds Parse(string xml) { - return XTypedServices.Parse<Watersheds>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Watersheds>(this); + public static Watershed Load(string xmlFile) { + return XTypedServices.Load<Watershed>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(WatershedXName, typeof(Watershed)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Watershed Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Watershed>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Watershed Parse(string xml) { + return XTypedServices.Parse<Watershed>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((PntList2D | PntList3D), Outlet*, Feature*) - /// </para> - /// </summary> - public partial class Watershed : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutletXName = System.Xml.Linq.XName.Get("Outlet", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Outlet> OutletField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Watershed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Watershed(XElement xe) { return XTypedServices.ToXTypedElement<Watershed>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Watershed() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(OutletXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Watershed>(this); } /// <summary> @@ -29568,6 +30954,10 @@ static Watershed() { public Watershed() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -29582,6 +30972,9 @@ public Watershed() { public virtual PntList2D PntList2D { get { XElement x = this.GetElement(PntList2DXName); + if ((x == null)) { + return null; + } return ((PntList2D)(x)); } set { @@ -29589,6 +30982,10 @@ public virtual PntList2D PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList3DXName = System.Xml.Linq.XName.Get("PntList3D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -29603,6 +31000,9 @@ public virtual PntList2D PntList2D { public virtual PntList3D PntList3D { get { XElement x = this.GetElement(PntList3DXName); + if ((x == null)) { + return null; + } return ((PntList3D)(x)); } set { @@ -29610,6 +31010,13 @@ public virtual PntList3D PntList3D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutletXName = System.Xml.Linq.XName.Get("Outlet", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Outlet> OutletField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -29640,6 +31047,13 @@ public virtual IList<Outlet> Outlet { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -29670,6 +31084,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -29685,6 +31103,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29703,6 +31125,10 @@ public virtual System.Double? area { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29711,6 +31137,9 @@ public virtual System.Double? area { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29718,6 +31147,23 @@ public virtual string desc { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Watershed", "http://www.landxml.org/schema/LandXML-1.2"); + + static Watershed() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(PntList3DXName)), new NamedContentModelEntity(OutletXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); + localElementDictionary.Add(OutletXName, typeof(Outlet)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -29725,6 +31171,13 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29745,6 +31198,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Outlet : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -29758,86 +31214,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Watershed Load(string xmlFile) { - return XTypedServices.Load<Watershed>(xmlFile); + public static Outlet Load(string xmlFile) { + return XTypedServices.Load<Outlet>(xmlFile); } - public static Watershed Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Watershed>(xmlFile); + public static Outlet Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Outlet>(xmlFile); } - public static Watershed Parse(string xml) { - return XTypedServices.Parse<Watershed>(xml); + public static Outlet Parse(string xml) { + return XTypedServices.Parse<Outlet>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Watershed>(this); - } + public static explicit operator Outlet(XElement xe) { return XTypedServices.ToXTypedElement<Outlet>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(PntList3DXName, typeof(PntList3D)); - localElementDictionary.Add(OutletXName, typeof(Outlet)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Outlet>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public Outlet() { } - } - - public partial class Outlet : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName refWSXName = System.Xml.Linq.XName.Get("refWS", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Outlet", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Outlet(XElement xe) { return XTypedServices.ToXTypedElement<Outlet>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Outlet() { - } + protected internal static readonly System.Xml.Linq.XName refWSXName = System.Xml.Linq.XName.Get("refWS", ""); /// <summary> /// <para> @@ -29847,6 +31247,9 @@ public Outlet() { public virtual string refWS { get { XAttribute x = this.Attribute(refWSXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29854,6 +31257,10 @@ public virtual string refWS { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29862,6 +31269,9 @@ public virtual string refWS { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29869,6 +31279,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29877,6 +31291,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29884,6 +31301,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29892,6 +31313,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29899,6 +31323,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29910,13 +31338,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29925,6 +31362,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29932,6 +31372,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29940,6 +31384,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29947,6 +31394,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29958,28 +31409,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -29998,21 +31470,39 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Outlet", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -30033,6 +31523,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (SurfVolume+, Feature*) + /// </para> + /// </summary> + public partial class SurfVolumes : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -30046,73 +31544,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Outlet Load(string xmlFile) { - return XTypedServices.Load<Outlet>(xmlFile); + public static SurfVolumes Load(string xmlFile) { + return XTypedServices.Load<SurfVolumes>(xmlFile); } - public static Outlet Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Outlet>(xmlFile); + public static SurfVolumes Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SurfVolumes>(xmlFile); } - public static Outlet Parse(string xml) { - return XTypedServices.Parse<Outlet>(xml); + public static SurfVolumes Parse(string xml) { + return XTypedServices.Parse<SurfVolumes>(xml); } + public static explicit operator SurfVolumes(XElement xe) { return XTypedServices.ToXTypedElement<SurfVolumes>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Outlet>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Regular expression: (SurfVolume+, Feature*) - /// </para> - /// </summary> - public partial class SurfVolumes : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SurfVolumeXName = System.Xml.Linq.XName.Get("SurfVolume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SurfVolume> SurfVolumeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfVolCalcMethodXName = System.Xml.Linq.XName.Get("surfVolCalcMethod", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurfVolumes", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator SurfVolumes(XElement xe) { return XTypedServices.ToXTypedElement<SurfVolumes>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static SurfVolumes() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SurfVolumeXName), new NamedContentModelEntity(FeatureXName)); + return XTypedServices.CloneXTypedElement<SurfVolumes>(this); } /// <summary> @@ -30123,6 +31570,13 @@ static SurfVolumes() { public SurfVolumes() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SurfVolumeXName = System.Xml.Linq.XName.Get("SurfVolume", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SurfVolume> SurfVolumeField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -30153,6 +31607,13 @@ public virtual IList<SurfVolume> SurfVolume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -30183,6 +31644,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -30191,6 +31656,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30198,6 +31666,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -30206,6 +31678,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30213,6 +31688,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfVolCalcMethodXName = System.Xml.Linq.XName.Get("surfVolCalcMethod", ""); + /// <summary> /// <para> /// Occurrence: required @@ -30221,13 +31700,28 @@ public virtual string name { public virtual LandXml.v1_2.surfVolCMethodType surfVolCalcMethod { get { XAttribute x = this.Attribute(surfVolCalcMethodXName); - return ((LandXml.v1_2.surfVolCMethodType)(Enum.Parse(typeof(LandXml.v1_2.surfVolCMethodType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.surfVolCMethodType)(Enum.Parse(typeof(LandXml.v1_2.surfVolCMethodType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surfVolCMethodTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(surfVolCalcMethodXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(surfVolCalcMethodXName, value.ToString(), "surfVolCalcMethod", global::LandXml.v1_2.surfVolCMethodTypeValidator.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurfVolumes", "http://www.landxml.org/schema/LandXML-1.2"); + + static SurfVolumes() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SurfVolumeXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SurfVolumeXName, typeof(SurfVolume)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -30235,6 +31729,13 @@ public virtual LandXml.v1_2.surfVolCMethodType surfVolCalcMethod { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -30255,6 +31756,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class SurfVolume : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -30268,87 +31777,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static SurfVolumes Load(string xmlFile) { - return XTypedServices.Load<SurfVolumes>(xmlFile); - } - - public static SurfVolumes Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SurfVolumes>(xmlFile); - } - - public static SurfVolumes Parse(string xml) { - return XTypedServices.Parse<SurfVolumes>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SurfVolumes>(this); + public static SurfVolume Load(string xmlFile) { + return XTypedServices.Load<SurfVolume>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SurfVolumeXName, typeof(SurfVolume)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static SurfVolume Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SurfVolume>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static SurfVolume Parse(string xml) { + return XTypedServices.Parse<SurfVolume>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class SurfVolume : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfBaseXName = System.Xml.Linq.XName.Get("surfBase", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfCompareXName = System.Xml.Linq.XName.Get("surfCompare", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volCutXName = System.Xml.Linq.XName.Get("volCut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volFillXName = System.Xml.Linq.XName.Get("volFill", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volTotalXName = System.Xml.Linq.XName.Get("volTotal", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurfVolume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator SurfVolume(XElement xe) { return XTypedServices.ToXTypedElement<SurfVolume>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SurfVolume() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SurfVolume>(this); } /// <summary> @@ -30359,6 +31803,13 @@ static SurfVolume() { public SurfVolume() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -30389,6 +31840,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfBaseXName = System.Xml.Linq.XName.Get("surfBase", ""); + /// <summary> /// <para> /// Occurrence: required @@ -30404,6 +31859,10 @@ public virtual string surfBase { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfCompareXName = System.Xml.Linq.XName.Get("surfCompare", ""); + /// <summary> /// <para> /// Occurrence: required @@ -30419,6 +31878,10 @@ public virtual string surfCompare { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volCutXName = System.Xml.Linq.XName.Get("volCut", ""); + /// <summary> /// <para> /// Occurrence: required @@ -30434,6 +31897,10 @@ public virtual double volCut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volFillXName = System.Xml.Linq.XName.Get("volFill", ""); + /// <summary> /// <para> /// Occurrence: required @@ -30449,6 +31916,10 @@ public virtual double volFill { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volTotalXName = System.Xml.Linq.XName.Get("volTotal", ""); + /// <summary> /// <para> /// Occurrence: required @@ -30464,6 +31935,10 @@ public virtual double volTotal { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -30472,6 +31947,9 @@ public virtual double volTotal { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30479,6 +31957,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -30487,6 +31969,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30494,6 +31979,20 @@ public virtual string name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SurfVolume", "http://www.landxml.org/schema/LandXML-1.2"); + + static SurfVolume() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -30501,6 +32000,13 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -30521,6 +32027,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Parcel+, Feature*) + /// </para> + /// </summary> + public partial class Parcels : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -30534,77 +32048,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static SurfVolume Load(string xmlFile) { - return XTypedServices.Load<SurfVolume>(xmlFile); - } - - public static SurfVolume Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SurfVolume>(xmlFile); - } - - public static SurfVolume Parse(string xml) { - return XTypedServices.Parse<SurfVolume>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SurfVolume>(this); + public static Parcels Load(string xmlFile) { + return XTypedServices.Load<Parcels>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Parcels Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Parcels>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Parcels Parse(string xml) { + return XTypedServices.Parse<Parcels>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Parcel+, Feature*) - /// </para> - /// </summary> - public partial class Parcels : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParcelXName = System.Xml.Linq.XName.Get("Parcel", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Parcel> ParcelField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Parcels", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Parcels(XElement xe) { return XTypedServices.ToXTypedElement<Parcels>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Parcels() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ParcelXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Parcels>(this); } /// <summary> @@ -30615,6 +32074,13 @@ static Parcels() { public Parcels() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParcelXName = System.Xml.Linq.XName.Get("Parcel", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Parcel> ParcelField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -30645,6 +32111,13 @@ public virtual IList<Parcel> Parcel { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -30675,6 +32148,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -30683,6 +32160,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30690,6 +32170,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -30698,6 +32182,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30705,6 +32192,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -30716,13 +32207,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Parcels", "http://www.landxml.org/schema/LandXML-1.2"); + + static Parcels() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ParcelXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ParcelXName, typeof(Parcel)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -30730,6 +32241,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -30750,6 +32268,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) + /// </para> + /// </summary> + public partial class Parcel : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -30763,304 +32289,158 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Parcels Load(string xmlFile) { - return XTypedServices.Load<Parcels>(xmlFile); + public static Parcel Load(string xmlFile) { + return XTypedServices.Load<Parcel>(xmlFile); } - public static Parcels Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Parcels>(xmlFile); + public static Parcel Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Parcel>(xmlFile); } - public static Parcels Parse(string xml) { - return XTypedServices.Parse<Parcels>(xml); + public static Parcel Parse(string xml) { + return XTypedServices.Parse<Parcel>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Parcels>(this); - } + public static explicit operator Parcel(XElement xe) { return XTypedServices.ToXTypedElement<Parcel>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ParcelXName, typeof(Parcel)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Parcel>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) + /// </para> + /// </summary> + public Parcel() { } - } - - /// <summary> - /// <para> - /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) - /// </para> - /// </summary> - public partial class Parcel : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Center> CenterField; + /// <summary> + /// <para> + /// Occurrence: optional, choice + /// </para> + /// <para> + /// Setter: Appends + /// </para> + /// <para> + /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) + /// </para> + /// </summary> + public virtual IList<Center> Center { + get { + if ((this.CenterField == null)) { + this.CenterField = new XTypedList<Center>(this, LinqToXsdTypeManager.Instance, CenterXName); + } + return this.CenterField; + } + set { + if ((value == null)) { + this.CenterField = null; + } + else { + if ((this.CenterField == null)) { + this.CenterField = XTypedList<Center>.Initialize(this, LinqToXsdTypeManager.Instance, value, CenterXName); + } + else { + XTypedServices.SetList<Center>(this.CenterField, value); + } + } + } + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<CoordGeom> CoordGeomField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VolumeGeomXName = System.Xml.Linq.XName.Get("VolumeGeom", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<VolumeGeom> VolumeGeomField; + /// <summary> + /// <para> + /// Occurrence: required, choice + /// </para> + /// <para> + /// Setter: Appends + /// </para> + /// <para> + /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) + /// </para> + /// </summary> + public virtual IList<CoordGeom> CoordGeom { + get { + if ((this.CoordGeomField == null)) { + this.CoordGeomField = new XTypedList<CoordGeom>(this, LinqToXsdTypeManager.Instance, CoordGeomXName); + } + return this.CoordGeomField; + } + set { + if ((value == null)) { + this.CoordGeomField = null; + } + else { + if ((this.CoordGeomField == null)) { + this.CoordGeomField = XTypedList<CoordGeom>.Initialize(this, LinqToXsdTypeManager.Instance, value, CoordGeomXName); + } + else { + XTypedServices.SetList<CoordGeom>(this.CoordGeomField, value); + } + } + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParcelsXName = System.Xml.Linq.XName.Get("Parcels", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Parcels> ParcelsField; + protected internal static readonly System.Xml.Linq.XName VolumeGeomXName = System.Xml.Linq.XName.Get("VolumeGeom", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TitleXName = System.Xml.Linq.XName.Get("Title", "http://www.landxml.org/schema/LandXML-1.2"); + private XTypedList<VolumeGeom> VolumeGeomField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Title> TitleField; + /// <summary> + /// <para> + /// Occurrence: optional, repeating, choice + /// </para> + /// <para> + /// Setter: Appends + /// </para> + /// <para> + /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) + /// </para> + /// </summary> + public virtual IList<VolumeGeom> VolumeGeom { + get { + if ((this.VolumeGeomField == null)) { + this.VolumeGeomField = new XTypedList<VolumeGeom>(this, LinqToXsdTypeManager.Instance, VolumeGeomXName); + } + return this.VolumeGeomField; + } + set { + if ((value == null)) { + this.VolumeGeomField = null; + } + else { + if ((this.VolumeGeomField == null)) { + this.VolumeGeomField = XTypedList<VolumeGeom>.Initialize(this, LinqToXsdTypeManager.Instance, value, VolumeGeomXName); + } + else { + XTypedServices.SetList<VolumeGeom>(this.VolumeGeomField, value); + } + } + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExclusionsXName = System.Xml.Linq.XName.Get("Exclusions", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName ParcelsXName = System.Xml.Linq.XName.Get("Parcels", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Exclusions> ExclusionsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocationAddressXName = System.Xml.Linq.XName.Get("LocationAddress", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LocationAddress> LocationAddressField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dirClosureXName = System.Xml.Linq.XName.Get("dirClosure", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName distClosureXName = System.Xml.Linq.XName.Get("distClosure", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ownerXName = System.Xml.Linq.XName.Get("owner", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName parcelTypeXName = System.Xml.Linq.XName.Get("parcelType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setbackFrontXName = System.Xml.Linq.XName.Get("setbackFront", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setbackRearXName = System.Xml.Linq.XName.Get("setbackRear", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setbackSideXName = System.Xml.Linq.XName.Get("setbackSide", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName taxIdXName = System.Xml.Linq.XName.Get("taxId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName useOfParcelXName = System.Xml.Linq.XName.Get("useOfParcel", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName parcelFormatXName = System.Xml.Linq.XName.Get("parcelFormat", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName buildingNoXName = System.Xml.Linq.XName.Get("buildingNo", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName buildingLevelNoXName = System.Xml.Linq.XName.Get("buildingLevelNo", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lotEntitlementsXName = System.Xml.Linq.XName.Get("lotEntitlements", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName liabilityApportionmentXName = System.Xml.Linq.XName.Get("liabilityApportionment", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Parcel", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator Parcel(XElement xe) { return XTypedServices.ToXTypedElement<Parcel>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static Parcel() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(CenterXName), new NamedContentModelEntity(CoordGeomXName), new NamedContentModelEntity(VolumeGeomXName), new NamedContentModelEntity(ParcelsXName), new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(ExclusionsXName), new NamedContentModelEntity(LocationAddressXName)), new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) - /// </para> - /// </summary> - public Parcel() { - } - - /// <summary> - /// <para> - /// Occurrence: optional, choice - /// </para> - /// <para> - /// Setter: Appends - /// </para> - /// <para> - /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) - /// </para> - /// </summary> - public virtual IList<Center> Center { - get { - if ((this.CenterField == null)) { - this.CenterField = new XTypedList<Center>(this, LinqToXsdTypeManager.Instance, CenterXName); - } - return this.CenterField; - } - set { - if ((value == null)) { - this.CenterField = null; - } - else { - if ((this.CenterField == null)) { - this.CenterField = XTypedList<Center>.Initialize(this, LinqToXsdTypeManager.Instance, value, CenterXName); - } - else { - XTypedServices.SetList<Center>(this.CenterField, value); - } - } - } - } - - /// <summary> - /// <para> - /// Occurrence: required, choice - /// </para> - /// <para> - /// Setter: Appends - /// </para> - /// <para> - /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) - /// </para> - /// </summary> - public virtual IList<CoordGeom> CoordGeom { - get { - if ((this.CoordGeomField == null)) { - this.CoordGeomField = new XTypedList<CoordGeom>(this, LinqToXsdTypeManager.Instance, CoordGeomXName); - } - return this.CoordGeomField; - } - set { - if ((value == null)) { - this.CoordGeomField = null; - } - else { - if ((this.CoordGeomField == null)) { - this.CoordGeomField = XTypedList<CoordGeom>.Initialize(this, LinqToXsdTypeManager.Instance, value, CoordGeomXName); - } - else { - XTypedServices.SetList<CoordGeom>(this.CoordGeomField, value); - } - } - } - } - - /// <summary> - /// <para> - /// Occurrence: optional, repeating, choice - /// </para> - /// <para> - /// Setter: Appends - /// </para> - /// <para> - /// Regular expression: ((Center? | CoordGeom | VolumeGeom* | Parcels* | Title* | Exclusions* | LocationAddress*)+, Feature*) - /// </para> - /// </summary> - public virtual IList<VolumeGeom> VolumeGeom { - get { - if ((this.VolumeGeomField == null)) { - this.VolumeGeomField = new XTypedList<VolumeGeom>(this, LinqToXsdTypeManager.Instance, VolumeGeomXName); - } - return this.VolumeGeomField; - } - set { - if ((value == null)) { - this.VolumeGeomField = null; - } - else { - if ((this.VolumeGeomField == null)) { - this.VolumeGeomField = XTypedList<VolumeGeom>.Initialize(this, LinqToXsdTypeManager.Instance, value, VolumeGeomXName); - } - else { - XTypedServices.SetList<VolumeGeom>(this.VolumeGeomField, value); - } - } - } - } + private XTypedList<Parcels> ParcelsField; /// <summary> /// <para> @@ -31095,6 +32475,13 @@ public virtual IList<Parcels> Parcels { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TitleXName = System.Xml.Linq.XName.Get("Title", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Title> TitleField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -31128,6 +32515,13 @@ public virtual IList<Title> Title { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExclusionsXName = System.Xml.Linq.XName.Get("Exclusions", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Exclusions> ExclusionsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -31161,6 +32555,13 @@ public virtual IList<Exclusions> Exclusions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocationAddressXName = System.Xml.Linq.XName.Get("LocationAddress", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LocationAddress> LocationAddressField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -31194,6 +32595,13 @@ public virtual IList<LocationAddress> LocationAddress { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -31224,6 +32632,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -31239,6 +32651,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31247,6 +32663,9 @@ public virtual string name { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31254,6 +32673,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31272,6 +32695,10 @@ public virtual System.Double? area { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31280,6 +32707,9 @@ public virtual System.Double? area { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31287,6 +32717,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dirClosureXName = System.Xml.Linq.XName.Get("dirClosure", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31305,6 +32739,10 @@ public virtual System.Double? dirClosure { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName distClosureXName = System.Xml.Linq.XName.Get("distClosure", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31323,6 +32761,10 @@ public virtual System.Double? distClosure { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ownerXName = System.Xml.Linq.XName.Get("owner", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31331,6 +32773,9 @@ public virtual System.Double? distClosure { public virtual string owner { get { XAttribute x = this.Attribute(ownerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31338,6 +32783,10 @@ public virtual string owner { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName parcelTypeXName = System.Xml.Linq.XName.Get("parcelType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31346,6 +32795,9 @@ public virtual string owner { public virtual string parcelType { get { XAttribute x = this.Attribute(parcelTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31353,6 +32805,10 @@ public virtual string parcelType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setbackFrontXName = System.Xml.Linq.XName.Get("setbackFront", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31371,6 +32827,10 @@ public virtual System.Double? setbackFront { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setbackRearXName = System.Xml.Linq.XName.Get("setbackRear", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31389,6 +32849,10 @@ public virtual System.Double? setbackRear { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setbackSideXName = System.Xml.Linq.XName.Get("setbackSide", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31407,6 +32871,10 @@ public virtual System.Double? setbackSide { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31418,13 +32886,22 @@ public virtual LandXml.v1_2.parcelStateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.parcelStateType)(Enum.Parse(typeof(LandXml.v1_2.parcelStateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.parcelStateType)(Enum.Parse(typeof(LandXml.v1_2.parcelStateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.parcelStateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.parcelStateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName taxIdXName = System.Xml.Linq.XName.Get("taxId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31433,6 +32910,9 @@ public virtual LandXml.v1_2.parcelStateType? state { public virtual string taxId { get { XAttribute x = this.Attribute(taxIdXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31440,6 +32920,10 @@ public virtual string taxId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName @classXName = System.Xml.Linq.XName.Get("class", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31448,6 +32932,9 @@ public virtual string taxId { public virtual string @class { get { XAttribute x = this.Attribute(@classXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31455,6 +32942,10 @@ public virtual string @class { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName useOfParcelXName = System.Xml.Linq.XName.Get("useOfParcel", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31463,6 +32954,9 @@ public virtual string @class { public virtual string useOfParcel { get { XAttribute x = this.Attribute(useOfParcelXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31470,6 +32964,10 @@ public virtual string useOfParcel { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName parcelFormatXName = System.Xml.Linq.XName.Get("parcelFormat", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31478,6 +32976,9 @@ public virtual string useOfParcel { public virtual string parcelFormat { get { XAttribute x = this.Attribute(parcelFormatXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31485,6 +32986,10 @@ public virtual string parcelFormat { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName buildingNoXName = System.Xml.Linq.XName.Get("buildingNo", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31493,6 +32998,9 @@ public virtual string parcelFormat { public virtual string buildingNo { get { XAttribute x = this.Attribute(buildingNoXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31500,6 +33008,10 @@ public virtual string buildingNo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName buildingLevelNoXName = System.Xml.Linq.XName.Get("buildingLevelNo", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31508,6 +33020,9 @@ public virtual string buildingNo { public virtual string buildingLevelNo { get { XAttribute x = this.Attribute(buildingLevelNoXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31515,6 +33030,10 @@ public virtual string buildingLevelNo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31523,6 +33042,9 @@ public virtual string buildingLevelNo { public virtual string volume { get { XAttribute x = this.Attribute(volumeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31530,6 +33052,10 @@ public virtual string volume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31538,6 +33064,9 @@ public virtual string volume { public virtual string pclRef { get { XAttribute x = this.Attribute(pclRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31545,6 +33074,10 @@ public virtual string pclRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lotEntitlementsXName = System.Xml.Linq.XName.Get("lotEntitlements", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31553,6 +33086,9 @@ public virtual string pclRef { public virtual string lotEntitlements { get { XAttribute x = this.Attribute(lotEntitlementsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31560,6 +33096,10 @@ public virtual string lotEntitlements { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName liabilityApportionmentXName = System.Xml.Linq.XName.Get("liabilityApportionment", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31568,6 +33108,9 @@ public virtual string lotEntitlements { public virtual string liabilityApportionment { get { XAttribute x = this.Attribute(liabilityApportionmentXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31575,6 +33118,27 @@ public virtual string liabilityApportionment { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Parcel", "http://www.landxml.org/schema/LandXML-1.2"); + + static Parcel() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(CenterXName), new NamedContentModelEntity(CoordGeomXName), new NamedContentModelEntity(VolumeGeomXName), new NamedContentModelEntity(ParcelsXName), new NamedContentModelEntity(TitleXName), new NamedContentModelEntity(ExclusionsXName), new NamedContentModelEntity(LocationAddressXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CenterXName, typeof(Center)); + localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); + localElementDictionary.Add(VolumeGeomXName, typeof(VolumeGeom)); + localElementDictionary.Add(ParcelsXName, typeof(Parcels)); + localElementDictionary.Add(TitleXName, typeof(Title)); + localElementDictionary.Add(ExclusionsXName, typeof(Exclusions)); + localElementDictionary.Add(LocationAddressXName, typeof(LocationAddress)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -31582,6 +33146,13 @@ public virtual string liabilityApportionment { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -31602,6 +33173,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (CoordGeom)+ + /// </para> + /// </summary> + public partial class VolumeGeom : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -31615,81 +33194,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Parcel Load(string xmlFile) { - return XTypedServices.Load<Parcel>(xmlFile); - } - - public static Parcel Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Parcel>(xmlFile); - } - - public static Parcel Parse(string xml) { - return XTypedServices.Parse<Parcel>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Parcel>(this); + public static VolumeGeom Load(string xmlFile) { + return XTypedServices.Load<VolumeGeom>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CenterXName, typeof(Center)); - localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); - localElementDictionary.Add(VolumeGeomXName, typeof(VolumeGeom)); - localElementDictionary.Add(ParcelsXName, typeof(Parcels)); - localElementDictionary.Add(TitleXName, typeof(Title)); - localElementDictionary.Add(ExclusionsXName, typeof(Exclusions)); - localElementDictionary.Add(LocationAddressXName, typeof(LocationAddress)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static VolumeGeom Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<VolumeGeom>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static VolumeGeom Parse(string xml) { + return XTypedServices.Parse<VolumeGeom>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (CoordGeom)+ - /// </para> - /// </summary> - public partial class VolumeGeom : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CoordGeom> CoordGeomField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("VolumeGeom", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator VolumeGeom(XElement xe) { return XTypedServices.ToXTypedElement<VolumeGeom>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static VolumeGeom() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(CoordGeomXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<VolumeGeom>(this); } /// <summary> @@ -31700,6 +33220,13 @@ static VolumeGeom() { public VolumeGeom() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CoordGeom> CoordGeomField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -31730,6 +33257,10 @@ public virtual IList<CoordGeom> CoordGeom { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31738,6 +33269,9 @@ public virtual IList<CoordGeom> CoordGeom { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31745,6 +33279,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -31760,6 +33298,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31771,13 +33313,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31786,6 +33337,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31793,6 +33347,20 @@ public virtual string oID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("VolumeGeom", "http://www.landxml.org/schema/LandXML-1.2"); + + static VolumeGeom() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(CoordGeomXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -31800,6 +33368,13 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -31820,6 +33395,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Title : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -31833,47 +33411,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static VolumeGeom Load(string xmlFile) { - return XTypedServices.Load<VolumeGeom>(xmlFile); + public static Title Load(string xmlFile) { + return XTypedServices.Load<Title>(xmlFile); } - public static VolumeGeom Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<VolumeGeom>(xmlFile); + public static Title Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Title>(xmlFile); } - public static VolumeGeom Parse(string xml) { - return XTypedServices.Parse<VolumeGeom>(xml); + public static Title Parse(string xml) { + return XTypedServices.Parse<Title>(xml); } + public static explicit operator Title(XElement xe) { return XTypedServices.ToXTypedElement<Title>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<VolumeGeom>(this); + return XTypedServices.CloneXTypedElement<Title>(this); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); + public Title() { } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - public partial class Title : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName titleTypeXName = System.Xml.Linq.XName.Get("titleType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Title", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Title(XElement xe) { return XTypedServices.ToXTypedElement<Title>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Title() { - } + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); /// <summary> /// <para> @@ -31890,6 +33451,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName titleTypeXName = System.Xml.Linq.XName.Get("titleType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -31898,6 +33463,9 @@ public virtual string name { public virtual string titleType { get { XAttribute x = this.Attribute(titleTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -31905,6 +33473,12 @@ public virtual string titleType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Title", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -31925,6 +33499,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Exclusions : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -31938,43 +33515,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Title Load(string xmlFile) { - return XTypedServices.Load<Title>(xmlFile); + public static Exclusions Load(string xmlFile) { + return XTypedServices.Load<Exclusions>(xmlFile); } - public static Title Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Title>(xmlFile); + public static Exclusions Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Exclusions>(xmlFile); } - public static Title Parse(string xml) { - return XTypedServices.Parse<Title>(xml); + public static Exclusions Parse(string xml) { + return XTypedServices.Parse<Exclusions>(xml); } + public static explicit operator Exclusions(XElement xe) { return XTypedServices.ToXTypedElement<Exclusions>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Title>(this); + return XTypedServices.CloneXTypedElement<Exclusions>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public Exclusions() { } - } - - public partial class Exclusions : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName exclusionTypeXName = System.Xml.Linq.XName.Get("exclusionType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exclusions", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Exclusions(XElement xe) { return XTypedServices.ToXTypedElement<Exclusions>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Exclusions() { - } + protected internal static readonly System.Xml.Linq.XName exclusionTypeXName = System.Xml.Linq.XName.Get("exclusionType", ""); /// <summary> /// <para> @@ -31991,6 +33555,10 @@ public virtual string exclusionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaXName = System.Xml.Linq.XName.Get("area", ""); + /// <summary> /// <para> /// Occurrence: required @@ -32006,6 +33574,12 @@ public virtual double area { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exclusions", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -32026,6 +33600,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (ComplexName*, RoadName*, AdministrativeArea*, AddressPoint*) + /// </para> + /// </summary> + public partial class LocationAddress : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -32039,111 +33621,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Exclusions Load(string xmlFile) { - return XTypedServices.Load<Exclusions>(xmlFile); - } - - public static Exclusions Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Exclusions>(xmlFile); - } - - public static Exclusions Parse(string xml) { - return XTypedServices.Parse<Exclusions>(xml); + public static LocationAddress Load(string xmlFile) { + return XTypedServices.Load<LocationAddress>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Exclusions>(this); + public static LocationAddress Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<LocationAddress>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static LocationAddress Parse(string xml) { + return XTypedServices.Parse<LocationAddress>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (ComplexName*, RoadName*, AdministrativeArea*, AddressPoint*) - /// </para> - /// </summary> - public partial class LocationAddress : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ComplexNameXName = System.Xml.Linq.XName.Get("ComplexName", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ComplexName> ComplexNameField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RoadNameXName = System.Xml.Linq.XName.Get("RoadName", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RoadName> RoadNameField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AdministrativeAreaXName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AdministrativeArea> AdministrativeAreaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AddressPointXName = System.Xml.Linq.XName.Get("AddressPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AddressPoint> AddressPointField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName addressTypeXName = System.Xml.Linq.XName.Get("addressType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName flatTypeXName = System.Xml.Linq.XName.Get("flatType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName flatNumberXName = System.Xml.Linq.XName.Get("flatNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName floorLevelTypeXName = System.Xml.Linq.XName.Get("floorLevelType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName floorLevelNumberXName = System.Xml.Linq.XName.Get("floorLevelNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName numberFirstXName = System.Xml.Linq.XName.Get("numberFirst", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName numberSuffixFirstXName = System.Xml.Linq.XName.Get("numberSuffixFirst", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName numberLastXName = System.Xml.Linq.XName.Get("numberLast", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName numberSuffixLastXName = System.Xml.Linq.XName.Get("numberSuffixLast", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LocationAddress", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator LocationAddress(XElement xe) { return XTypedServices.ToXTypedElement<LocationAddress>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LocationAddress() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ComplexNameXName), new NamedContentModelEntity(RoadNameXName), new NamedContentModelEntity(AdministrativeAreaXName), new NamedContentModelEntity(AddressPointXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LocationAddress>(this); } /// <summary> @@ -32154,6 +33647,13 @@ static LocationAddress() { public LocationAddress() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ComplexNameXName = System.Xml.Linq.XName.Get("ComplexName", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ComplexName> ComplexNameField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -32184,6 +33684,13 @@ public virtual IList<ComplexName> ComplexName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RoadNameXName = System.Xml.Linq.XName.Get("RoadName", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RoadName> RoadNameField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -32214,6 +33721,13 @@ public virtual IList<RoadName> RoadName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AdministrativeAreaXName = System.Xml.Linq.XName.Get("AdministrativeArea", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AdministrativeArea> AdministrativeAreaField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -32244,6 +33758,13 @@ public virtual IList<AdministrativeArea> AdministrativeArea { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AddressPointXName = System.Xml.Linq.XName.Get("AddressPoint", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AddressPoint> AddressPointField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -32274,6 +33795,10 @@ public virtual IList<AddressPoint> AddressPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName addressTypeXName = System.Xml.Linq.XName.Get("addressType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32282,6 +33807,9 @@ public virtual IList<AddressPoint> AddressPoint { public virtual string addressType { get { XAttribute x = this.Attribute(addressTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32289,6 +33817,10 @@ public virtual string addressType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName flatTypeXName = System.Xml.Linq.XName.Get("flatType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32297,6 +33829,9 @@ public virtual string addressType { public virtual string flatType { get { XAttribute x = this.Attribute(flatTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32304,6 +33839,10 @@ public virtual string flatType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName flatNumberXName = System.Xml.Linq.XName.Get("flatNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32312,6 +33851,9 @@ public virtual string flatType { public virtual string flatNumber { get { XAttribute x = this.Attribute(flatNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32319,6 +33861,10 @@ public virtual string flatNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName floorLevelTypeXName = System.Xml.Linq.XName.Get("floorLevelType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32327,6 +33873,9 @@ public virtual string flatNumber { public virtual string floorLevelType { get { XAttribute x = this.Attribute(floorLevelTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32334,6 +33883,10 @@ public virtual string floorLevelType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName floorLevelNumberXName = System.Xml.Linq.XName.Get("floorLevelNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32342,6 +33895,9 @@ public virtual string floorLevelType { public virtual string floorLevelNumber { get { XAttribute x = this.Attribute(floorLevelNumberXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32349,6 +33905,10 @@ public virtual string floorLevelNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName numberFirstXName = System.Xml.Linq.XName.Get("numberFirst", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32367,6 +33927,10 @@ public virtual System.Int32? numberFirst { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName numberSuffixFirstXName = System.Xml.Linq.XName.Get("numberSuffixFirst", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32375,6 +33939,9 @@ public virtual System.Int32? numberFirst { public virtual string numberSuffixFirst { get { XAttribute x = this.Attribute(numberSuffixFirstXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32382,6 +33949,10 @@ public virtual string numberSuffixFirst { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName numberLastXName = System.Xml.Linq.XName.Get("numberLast", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32400,6 +33971,10 @@ public virtual System.Int32? numberLast { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName numberSuffixLastXName = System.Xml.Linq.XName.Get("numberSuffixLast", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32408,6 +33983,9 @@ public virtual System.Int32? numberLast { public virtual string numberSuffixLast { get { XAttribute x = this.Attribute(numberSuffixLastXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32415,6 +33993,23 @@ public virtual string numberSuffixLast { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LocationAddress", "http://www.landxml.org/schema/LandXML-1.2"); + + static LocationAddress() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ComplexNameXName), new NamedContentModelEntity(RoadNameXName), new NamedContentModelEntity(AdministrativeAreaXName), new NamedContentModelEntity(AddressPointXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ComplexNameXName, typeof(ComplexName)); + localElementDictionary.Add(RoadNameXName, typeof(RoadName)); + localElementDictionary.Add(AdministrativeAreaXName, typeof(AdministrativeArea)); + localElementDictionary.Add(AddressPointXName, typeof(AddressPoint)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -32422,6 +34017,13 @@ public virtual string numberSuffixLast { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -32442,6 +34044,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class ComplexName : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -32455,50 +34060,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static LocationAddress Load(string xmlFile) { - return XTypedServices.Load<LocationAddress>(xmlFile); + public static ComplexName Load(string xmlFile) { + return XTypedServices.Load<ComplexName>(xmlFile); } - public static LocationAddress Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<LocationAddress>(xmlFile); + public static ComplexName Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ComplexName>(xmlFile); } - public static LocationAddress Parse(string xml) { - return XTypedServices.Parse<LocationAddress>(xml); + public static ComplexName Parse(string xml) { + return XTypedServices.Parse<ComplexName>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LocationAddress>(this); - } + public static explicit operator ComplexName(XElement xe) { return XTypedServices.ToXTypedElement<ComplexName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ComplexNameXName, typeof(ComplexName)); - localElementDictionary.Add(RoadNameXName, typeof(RoadName)); - localElementDictionary.Add(AdministrativeAreaXName, typeof(AdministrativeArea)); - localElementDictionary.Add(AddressPointXName, typeof(AddressPoint)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ComplexName>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public ComplexName() { } - } - - public partial class ComplexName : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName priorityXName = System.Xml.Linq.XName.Get("priority", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ComplexName", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator ComplexName(XElement xe) { return XTypedServices.ToXTypedElement<ComplexName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public ComplexName() { - } + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); /// <summary> /// <para> @@ -32508,6 +34093,9 @@ public ComplexName() { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32515,6 +34103,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName priorityXName = System.Xml.Linq.XName.Get("priority", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32533,6 +34125,12 @@ public virtual System.Int32? priority { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ComplexName", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -32553,6 +34151,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class RoadName : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -32566,55 +34167,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ComplexName Load(string xmlFile) { - return XTypedServices.Load<ComplexName>(xmlFile); + public static RoadName Load(string xmlFile) { + return XTypedServices.Load<RoadName>(xmlFile); } - public static ComplexName Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ComplexName>(xmlFile); + public static RoadName Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RoadName>(xmlFile); } - public static ComplexName Parse(string xml) { - return XTypedServices.Parse<ComplexName>(xml); + public static RoadName Parse(string xml) { + return XTypedServices.Parse<RoadName>(xml); } + public static explicit operator RoadName(XElement xe) { return XTypedServices.ToXTypedElement<RoadName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ComplexName>(this); + return XTypedServices.CloneXTypedElement<RoadName>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public RoadName() { } - } - - public partial class RoadName : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roadNameTypeXName = System.Xml.Linq.XName.Get("roadNameType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roadName1XName = System.Xml.Linq.XName.Get("roadName", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roadNameSuffixXName = System.Xml.Linq.XName.Get("roadNameSuffix", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roadTypeXName = System.Xml.Linq.XName.Get("roadType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RoadName", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator RoadName(XElement xe) { return XTypedServices.ToXTypedElement<RoadName>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public RoadName() { - } + protected internal static readonly System.Xml.Linq.XName roadNameTypeXName = System.Xml.Linq.XName.Get("roadNameType", ""); /// <summary> /// <para> @@ -32624,6 +34200,9 @@ public RoadName() { public virtual string roadNameType { get { XAttribute x = this.Attribute(roadNameTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32631,6 +34210,10 @@ public virtual string roadNameType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roadName1XName = System.Xml.Linq.XName.Get("roadName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32639,6 +34222,9 @@ public virtual string roadNameType { public virtual string roadName1 { get { XAttribute x = this.Attribute(roadName1XName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32646,6 +34232,10 @@ public virtual string roadName1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roadNameSuffixXName = System.Xml.Linq.XName.Get("roadNameSuffix", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32654,6 +34244,9 @@ public virtual string roadName1 { public virtual string roadNameSuffix { get { XAttribute x = this.Attribute(roadNameSuffixXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32661,6 +34254,10 @@ public virtual string roadNameSuffix { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roadTypeXName = System.Xml.Linq.XName.Get("roadType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32669,6 +34266,9 @@ public virtual string roadNameSuffix { public virtual string roadType { get { XAttribute x = this.Attribute(roadTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32676,6 +34276,10 @@ public virtual string roadType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pclRefXName = System.Xml.Linq.XName.Get("pclRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32684,6 +34288,9 @@ public virtual string roadType { public virtual IList<string> pclRef { get { XAttribute x = this.Attribute(pclRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32691,6 +34298,12 @@ public virtual IList<string> pclRef { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RoadName", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -32711,6 +34324,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AddressPoint : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -32724,111 +34340,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RoadName Load(string xmlFile) { - return XTypedServices.Load<RoadName>(xmlFile); + public static AddressPoint Load(string xmlFile) { + return XTypedServices.Load<AddressPoint>(xmlFile); } - public static RoadName Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RoadName>(xmlFile); + public static AddressPoint Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AddressPoint>(xmlFile); } - public static RoadName Parse(string xml) { - return XTypedServices.Parse<RoadName>(xml); + public static AddressPoint Parse(string xml) { + return XTypedServices.Parse<AddressPoint>(xml); } + public static explicit operator AddressPoint(XElement xe) { return XTypedServices.ToXTypedElement<AddressPoint>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RoadName>(this); + return XTypedServices.CloneXTypedElement<AddressPoint>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public AddressPoint() { } - } - - public partial class AddressPoint : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName addressPointTypeXName = System.Xml.Linq.XName.Get("addressPointType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AddressPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator AddressPoint(XElement xe) { return XTypedServices.ToXTypedElement<AddressPoint>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public AddressPoint() { - } + protected internal static readonly System.Xml.Linq.XName addressPointTypeXName = System.Xml.Linq.XName.Get("addressPointType", ""); /// <summary> /// <para> @@ -32838,6 +34373,9 @@ public AddressPoint() { public virtual string addressPointType { get { XAttribute x = this.Attribute(addressPointTypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32845,6 +34383,10 @@ public virtual string addressPointType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32853,6 +34395,9 @@ public virtual string addressPointType { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32860,6 +34405,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32868,6 +34417,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32875,6 +34427,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32883,6 +34439,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32890,6 +34449,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32901,14 +34464,23 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } - /// <summary> + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + + /// <summary> /// <para> /// Occurrence: optional /// </para> @@ -32916,6 +34488,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32923,6 +34498,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32931,6 +34510,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32938,6 +34520,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32949,28 +34535,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -32989,21 +34596,37 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33022,6 +34645,10 @@ public virtual System.DateTime? determinedTimeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33040,6 +34667,10 @@ public virtual System.Double? ellipsoidHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33058,6 +34689,10 @@ public virtual System.Double? latitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33076,6 +34711,10 @@ public virtual System.Double? longitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33084,6 +34723,9 @@ public virtual System.Double? longitude { public virtual string zone { get { XAttribute x = this.Attribute(zoneXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33091,6 +34733,10 @@ public virtual string zone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33109,6 +34755,10 @@ public virtual System.Double? northingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33127,6 +34777,10 @@ public virtual System.Double? eastingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33145,6 +34799,12 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AddressPoint", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -33165,6 +34825,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Alignment+, Feature*) + /// </para> + /// </summary> + public partial class Alignments : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -33178,73 +34846,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static AddressPoint Load(string xmlFile) { - return XTypedServices.Load<AddressPoint>(xmlFile); - } - - public static AddressPoint Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AddressPoint>(xmlFile); - } - - public static AddressPoint Parse(string xml) { - return XTypedServices.Parse<AddressPoint>(xml); + public static Alignments Load(string xmlFile) { + return XTypedServices.Load<Alignments>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AddressPoint>(this); + public static Alignments Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Alignments>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Alignments Parse(string xml) { + return XTypedServices.Parse<Alignments>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Alignment+, Feature*) - /// </para> - /// </summary> - public partial class Alignments : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AlignmentXName = System.Xml.Linq.XName.Get("Alignment", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Alignment> AlignmentField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Alignments", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Alignments(XElement xe) { return XTypedServices.ToXTypedElement<Alignments>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Alignments() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AlignmentXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Alignments>(this); } /// <summary> @@ -33255,6 +34872,13 @@ static Alignments() { public Alignments() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AlignmentXName = System.Xml.Linq.XName.Get("Alignment", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Alignment> AlignmentField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -33285,6 +34909,13 @@ public virtual IList<Alignment> Alignment { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -33315,6 +34946,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33323,6 +34958,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33330,6 +34968,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33338,6 +34980,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33345,6 +34990,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33356,13 +35005,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Alignments", "http://www.landxml.org/schema/LandXML-1.2"); + + static Alignments() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AlignmentXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AlignmentXName, typeof(Alignment)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -33370,6 +35039,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -33390,6 +35066,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Start? | CoordGeom | AlignPIs? | Cant? | StaEquation* | Profile* | CrossSects? | Superelevation* | Feature*)+ + /// </para> + /// </summary> + public partial class Alignment : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -33403,139 +35087,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Alignments Load(string xmlFile) { - return XTypedServices.Load<Alignments>(xmlFile); - } - - public static Alignments Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Alignments>(xmlFile); - } - - public static Alignments Parse(string xml) { - return XTypedServices.Parse<Alignments>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Alignments>(this); + public static Alignment Load(string xmlFile) { + return XTypedServices.Load<Alignment>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(AlignmentXName, typeof(Alignment)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Alignment Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Alignment>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Alignment Parse(string xml) { + return XTypedServices.Parse<Alignment>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Start? | CoordGeom | AlignPIs? | Cant? | StaEquation* | Profile* | CrossSects? | Superelevation* | Feature*)+ - /// </para> - /// </summary> - public partial class Alignment : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Start> StartField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CoordGeom> CoordGeomField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AlignPIsXName = System.Xml.Linq.XName.Get("AlignPIs", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AlignPIs> AlignPIsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CantXName = System.Xml.Linq.XName.Get("Cant", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Cant> CantField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StaEquationXName = System.Xml.Linq.XName.Get("StaEquation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<StaEquation> StaEquationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Profile> ProfileField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CrossSectsXName = System.Xml.Linq.XName.Get("CrossSects", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CrossSects> CrossSectsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SuperelevationXName = System.Xml.Linq.XName.Get("Superelevation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Superelevation> SuperelevationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Alignment", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Alignment(XElement xe) { return XTypedServices.ToXTypedElement<Alignment>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Alignment() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(CoordGeomXName), new NamedContentModelEntity(AlignPIsXName), new NamedContentModelEntity(CantXName), new NamedContentModelEntity(StaEquationXName), new NamedContentModelEntity(ProfileXName), new NamedContentModelEntity(CrossSectsXName), new NamedContentModelEntity(SuperelevationXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Alignment>(this); } /// <summary> @@ -33546,6 +35113,13 @@ static Alignment() { public Alignment() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Start> StartField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -33576,6 +35150,13 @@ public virtual IList<Start> Start { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CoordGeom> CoordGeomField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -33606,6 +35187,13 @@ public virtual IList<CoordGeom> CoordGeom { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AlignPIsXName = System.Xml.Linq.XName.Get("AlignPIs", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AlignPIs> AlignPIsField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -33636,6 +35224,13 @@ public virtual IList<AlignPIs> AlignPIs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CantXName = System.Xml.Linq.XName.Get("Cant", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Cant> CantField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -33666,6 +35261,13 @@ public virtual IList<Cant> Cant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StaEquationXName = System.Xml.Linq.XName.Get("StaEquation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<StaEquation> StaEquationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -33696,6 +35298,13 @@ public virtual IList<StaEquation> StaEquation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Profile> ProfileField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -33726,6 +35335,13 @@ public virtual IList<Profile> Profile { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CrossSectsXName = System.Xml.Linq.XName.Get("CrossSects", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CrossSects> CrossSectsField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -33756,6 +35372,13 @@ public virtual IList<CrossSects> CrossSects { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SuperelevationXName = System.Xml.Linq.XName.Get("Superelevation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Superelevation> SuperelevationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -33786,6 +35409,13 @@ public virtual IList<Superelevation> Superelevation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -33816,6 +35446,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -33831,6 +35465,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: required @@ -33846,6 +35484,10 @@ public virtual double length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -33861,6 +35503,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33869,6 +35515,9 @@ public virtual double staStart { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33876,6 +35525,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33884,6 +35537,9 @@ public virtual string desc { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33891,6 +35547,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -33902,13 +35562,40 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Alignment", "http://www.landxml.org/schema/LandXML-1.2"); + + static Alignment() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(CoordGeomXName), new NamedContentModelEntity(AlignPIsXName), new NamedContentModelEntity(CantXName), new NamedContentModelEntity(StaEquationXName), new NamedContentModelEntity(ProfileXName), new NamedContentModelEntity(CrossSectsXName), new NamedContentModelEntity(SuperelevationXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartXName, typeof(Start)); + localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); + localElementDictionary.Add(AlignPIsXName, typeof(AlignPIs)); + localElementDictionary.Add(CantXName, typeof(Cant)); + localElementDictionary.Add(StaEquationXName, typeof(StaEquation)); + localElementDictionary.Add(ProfileXName, typeof(Profile)); + localElementDictionary.Add(CrossSectsXName, typeof(CrossSects)); + localElementDictionary.Add(SuperelevationXName, typeof(Superelevation)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -33916,6 +35603,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -33936,6 +35630,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class StaEquation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -33949,86 +35651,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Alignment Load(string xmlFile) { - return XTypedServices.Load<Alignment>(xmlFile); - } - - public static Alignment Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Alignment>(xmlFile); - } - - public static Alignment Parse(string xml) { - return XTypedServices.Parse<Alignment>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Alignment>(this); + public static StaEquation Load(string xmlFile) { + return XTypedServices.Load<StaEquation>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StartXName, typeof(Start)); - localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); - localElementDictionary.Add(AlignPIsXName, typeof(AlignPIs)); - localElementDictionary.Add(CantXName, typeof(Cant)); - localElementDictionary.Add(StaEquationXName, typeof(StaEquation)); - localElementDictionary.Add(ProfileXName, typeof(Profile)); - localElementDictionary.Add(CrossSectsXName, typeof(CrossSects)); - localElementDictionary.Add(SuperelevationXName, typeof(Superelevation)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static StaEquation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<StaEquation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static StaEquation Parse(string xml) { + return XTypedServices.Parse<StaEquation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class StaEquation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staAheadXName = System.Xml.Linq.XName.Get("staAhead", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staBackXName = System.Xml.Linq.XName.Get("staBack", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staInternalXName = System.Xml.Linq.XName.Get("staInternal", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staIncrementXName = System.Xml.Linq.XName.Get("staIncrement", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StaEquation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator StaEquation(XElement xe) { return XTypedServices.ToXTypedElement<StaEquation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static StaEquation() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<StaEquation>(this); } /// <summary> @@ -34039,6 +35677,13 @@ static StaEquation() { public StaEquation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -34069,6 +35714,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staAheadXName = System.Xml.Linq.XName.Get("staAhead", ""); + /// <summary> /// <para> /// Occurrence: required @@ -34084,6 +35733,10 @@ public virtual double staAhead { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staBackXName = System.Xml.Linq.XName.Get("staBack", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34102,6 +35755,10 @@ public virtual System.Double? staBack { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staInternalXName = System.Xml.Linq.XName.Get("staInternal", ""); + /// <summary> /// <para> /// Occurrence: required @@ -34117,6 +35774,10 @@ public virtual double staInternal { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staIncrementXName = System.Xml.Linq.XName.Get("staIncrement", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34128,13 +35789,22 @@ public virtual LandXml.v1_2.stationIncrementDirectionType? staIncrement { if ((x == null)) { return null; } - return ((LandXml.v1_2.stationIncrementDirectionType)(Enum.Parse(typeof(LandXml.v1_2.stationIncrementDirectionType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stationIncrementDirectionType)(Enum.Parse(typeof(LandXml.v1_2.stationIncrementDirectionType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stationIncrementDirectionTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(staIncrementXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(staIncrementXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(staIncrementXName, value.ToString(), "staIncrement", global::LandXml.v1_2.stationIncrementDirectionTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34143,6 +35813,9 @@ public virtual LandXml.v1_2.stationIncrementDirectionType? staIncrement { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34150,6 +35823,20 @@ public virtual string desc { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StaEquation", "http://www.landxml.org/schema/LandXML-1.2"); + + static StaEquation() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -34157,6 +35844,13 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -34177,6 +35871,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((ProfSurf* | ProfAlign*)+, Feature*) + /// </para> + /// </summary> + public partial class Profile : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -34190,88 +35892,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static StaEquation Load(string xmlFile) { - return XTypedServices.Load<StaEquation>(xmlFile); - } - - public static StaEquation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<StaEquation>(xmlFile); - } - - public static StaEquation Parse(string xml) { - return XTypedServices.Parse<StaEquation>(xml); + public static Profile Load(string xmlFile) { + return XTypedServices.Load<Profile>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<StaEquation>(this); + public static Profile Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Profile>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Profile Parse(string xml) { + return XTypedServices.Parse<Profile>(xml); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Regular expression: ((ProfSurf* | ProfAlign*)+, Feature*) - /// </para> - /// </summary> - public partial class Profile : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProfSurfXName = System.Xml.Linq.XName.Get("ProfSurf", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ProfSurf> ProfSurfField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProfAlignXName = System.Xml.Linq.XName.Get("ProfAlign", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ProfAlign> ProfAlignField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Profile", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator Profile(XElement xe) { return XTypedServices.ToXTypedElement<Profile>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Profile() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(ProfSurfXName), new NamedContentModelEntity(ProfAlignXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Profile>(this); } /// <summary> @@ -34282,6 +35918,13 @@ static Profile() { public Profile() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProfSurfXName = System.Xml.Linq.XName.Get("ProfSurf", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ProfSurf> ProfSurfField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -34315,6 +35958,13 @@ public virtual IList<ProfSurf> ProfSurf { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProfAlignXName = System.Xml.Linq.XName.Get("ProfAlign", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ProfAlign> ProfAlignField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -34348,6 +35998,13 @@ public virtual IList<ProfAlign> ProfAlign { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -34378,6 +36035,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34386,6 +36047,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34393,6 +36057,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34401,6 +36069,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34408,6 +36079,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34426,6 +36101,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34437,13 +36116,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Profile", "http://www.landxml.org/schema/LandXML-1.2"); + + static Profile() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(ProfSurfXName), new NamedContentModelEntity(ProfAlignXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ProfSurfXName, typeof(ProfSurf)); + localElementDictionary.Add(ProfAlignXName, typeof(ProfAlign)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -34451,6 +36151,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -34471,6 +36178,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PntList2D+, Feature*) + /// </para> + /// </summary> + public partial class ProfSurf : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -34484,79 +36199,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Profile Load(string xmlFile) { - return XTypedServices.Load<Profile>(xmlFile); - } - - public static Profile Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Profile>(xmlFile); - } - - public static Profile Parse(string xml) { - return XTypedServices.Parse<Profile>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Profile>(this); + public static ProfSurf Load(string xmlFile) { + return XTypedServices.Load<ProfSurf>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ProfSurfXName, typeof(ProfSurf)); - localElementDictionary.Add(ProfAlignXName, typeof(ProfAlign)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ProfSurf Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ProfSurf>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ProfSurf Parse(string xml) { + return XTypedServices.Parse<ProfSurf>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (PntList2D+, Feature*) - /// </para> - /// </summary> - public partial class ProfSurf : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<PntList2D> PntList2DField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProfSurf", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ProfSurf(XElement xe) { return XTypedServices.ToXTypedElement<ProfSurf>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ProfSurf() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ProfSurf>(this); } /// <summary> @@ -34567,6 +36225,13 @@ static ProfSurf() { public ProfSurf() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<PntList2D> PntList2DField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -34597,6 +36262,13 @@ public virtual IList<PntList2D> PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -34627,6 +36299,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -34642,6 +36318,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34650,6 +36330,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34657,6 +36340,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -34668,13 +36355,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProfSurf", "http://www.landxml.org/schema/LandXML-1.2"); + + static ProfSurf() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -34682,6 +36389,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -34702,6 +36416,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((PVI* | ParaCurve* | UnsymParaCurve* | CircCurve*)+, Feature*) + /// </para> + /// </summary> + public partial class ProfAlign : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -34715,99 +36437,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ProfSurf Load(string xmlFile) { - return XTypedServices.Load<ProfSurf>(xmlFile); - } - - public static ProfSurf Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ProfSurf>(xmlFile); - } - - public static ProfSurf Parse(string xml) { - return XTypedServices.Parse<ProfSurf>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ProfSurf>(this); + public static ProfAlign Load(string xmlFile) { + return XTypedServices.Load<ProfAlign>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ProfAlign Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ProfAlign>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ProfAlign Parse(string xml) { + return XTypedServices.Parse<ProfAlign>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((PVI* | ParaCurve* | UnsymParaCurve* | CircCurve*)+, Feature*) - /// </para> - /// </summary> - public partial class ProfAlign : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PVIXName = System.Xml.Linq.XName.Get("PVI", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PVI> PVIField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParaCurveXName = System.Xml.Linq.XName.Get("ParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ParaCurve> ParaCurveField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UnsymParaCurveXName = System.Xml.Linq.XName.Get("UnsymParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<UnsymParaCurve> UnsymParaCurveField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CircCurveXName = System.Xml.Linq.XName.Get("CircCurve", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CircCurve> CircCurveField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProfAlign", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ProfAlign(XElement xe) { return XTypedServices.ToXTypedElement<ProfAlign>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ProfAlign() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PVIXName), new NamedContentModelEntity(ParaCurveXName), new NamedContentModelEntity(UnsymParaCurveXName), new NamedContentModelEntity(CircCurveXName)), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ProfAlign>(this); } /// <summary> @@ -34818,6 +36463,13 @@ static ProfAlign() { public ProfAlign() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PVIXName = System.Xml.Linq.XName.Get("PVI", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PVI> PVIField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -34851,6 +36503,13 @@ public virtual IList<PVI> PVI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParaCurveXName = System.Xml.Linq.XName.Get("ParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ParaCurve> ParaCurveField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -34884,6 +36543,13 @@ public virtual IList<ParaCurve> ParaCurve { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UnsymParaCurveXName = System.Xml.Linq.XName.Get("UnsymParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<UnsymParaCurve> UnsymParaCurveField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -34917,6 +36583,13 @@ public virtual IList<UnsymParaCurve> UnsymParaCurve { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CircCurveXName = System.Xml.Linq.XName.Get("CircCurve", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CircCurve> CircCurveField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -34950,6 +36623,13 @@ public virtual IList<CircCurve> CircCurve { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -34980,6 +36660,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -34995,6 +36679,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35003,6 +36691,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35010,6 +36701,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35021,13 +36716,36 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ProfAlign", "http://www.landxml.org/schema/LandXML-1.2"); + + static ProfAlign() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(PVIXName), new NamedContentModelEntity(ParaCurveXName), new NamedContentModelEntity(UnsymParaCurveXName), new NamedContentModelEntity(CircCurveXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PVIXName, typeof(PVI)); + localElementDictionary.Add(ParaCurveXName, typeof(ParaCurve)); + localElementDictionary.Add(UnsymParaCurveXName, typeof(UnsymParaCurve)); + localElementDictionary.Add(CircCurveXName, typeof(CircCurve)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -35035,6 +36753,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35055,6 +36780,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class PVI : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -35068,51 +36796,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ProfAlign Load(string xmlFile) { - return XTypedServices.Load<ProfAlign>(xmlFile); + public static PVI Load(string xmlFile) { + return XTypedServices.Load<PVI>(xmlFile); } - public static ProfAlign Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ProfAlign>(xmlFile); + public static PVI Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PVI>(xmlFile); } - public static ProfAlign Parse(string xml) { - return XTypedServices.Parse<ProfAlign>(xml); + public static PVI Parse(string xml) { + return XTypedServices.Parse<PVI>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ProfAlign>(this); - } + public static explicit operator PVI(XElement xe) { return XTypedServices.ToXTypedElement<PVI>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PVIXName, typeof(PVI)); - localElementDictionary.Add(ParaCurveXName, typeof(ParaCurve)); - localElementDictionary.Add(UnsymParaCurveXName, typeof(UnsymParaCurve)); - localElementDictionary.Add(CircCurveXName, typeof(CircCurve)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PVI>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public PVI() { } - } - - public partial class PVI : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PVI", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator PVI(XElement xe) { return XTypedServices.ToXTypedElement<PVI>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PVI() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<double> TypedValue { get { @@ -35124,6 +36831,10 @@ public virtual IList<double> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35132,6 +36843,9 @@ public virtual IList<double> TypedValue { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35139,6 +36853,12 @@ public virtual string desc { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PVI", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35159,6 +36879,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class ParaCurve : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -35172,47 +36895,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PVI Load(string xmlFile) { - return XTypedServices.Load<PVI>(xmlFile); + public static ParaCurve Load(string xmlFile) { + return XTypedServices.Load<ParaCurve>(xmlFile); } - public static PVI Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PVI>(xmlFile); + public static ParaCurve Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ParaCurve>(xmlFile); } - public static PVI Parse(string xml) { - return XTypedServices.Parse<PVI>(xml); + public static ParaCurve Parse(string xml) { + return XTypedServices.Parse<ParaCurve>(xml); } + public static explicit operator ParaCurve(XElement xe) { return XTypedServices.ToXTypedElement<ParaCurve>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PVI>(this); + return XTypedServices.CloneXTypedElement<ParaCurve>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public ParaCurve() { } - } - - public partial class ParaCurve : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator ParaCurve(XElement xe) { return XTypedServices.ToXTypedElement<ParaCurve>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public ParaCurve() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<double> TypedValue { get { @@ -35224,6 +36930,10 @@ public virtual IList<double> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: required @@ -35239,6 +36949,10 @@ public virtual double length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35247,6 +36961,9 @@ public virtual double length { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35254,6 +36971,12 @@ public virtual string desc { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35274,6 +36997,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class UnsymParaCurve : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -35287,51 +37013,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ParaCurve Load(string xmlFile) { - return XTypedServices.Load<ParaCurve>(xmlFile); + public static UnsymParaCurve Load(string xmlFile) { + return XTypedServices.Load<UnsymParaCurve>(xmlFile); } - public static ParaCurve Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ParaCurve>(xmlFile); + public static UnsymParaCurve Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<UnsymParaCurve>(xmlFile); } - public static ParaCurve Parse(string xml) { - return XTypedServices.Parse<ParaCurve>(xml); + public static UnsymParaCurve Parse(string xml) { + return XTypedServices.Parse<UnsymParaCurve>(xml); } + public static explicit operator UnsymParaCurve(XElement xe) { return XTypedServices.ToXTypedElement<UnsymParaCurve>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ParaCurve>(this); + return XTypedServices.CloneXTypedElement<UnsymParaCurve>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public UnsymParaCurve() { } - } - - public partial class UnsymParaCurve : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthInXName = System.Xml.Linq.XName.Get("lengthIn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthOutXName = System.Xml.Linq.XName.Get("lengthOut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UnsymParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator UnsymParaCurve(XElement xe) { return XTypedServices.ToXTypedElement<UnsymParaCurve>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public UnsymParaCurve() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<double> TypedValue { get { @@ -35343,6 +37048,10 @@ public virtual IList<double> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthInXName = System.Xml.Linq.XName.Get("lengthIn", ""); + /// <summary> /// <para> /// Occurrence: required @@ -35358,6 +37067,10 @@ public virtual double lengthIn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthOutXName = System.Xml.Linq.XName.Get("lengthOut", ""); + /// <summary> /// <para> /// Occurrence: required @@ -35373,6 +37086,10 @@ public virtual double lengthOut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35381,6 +37098,9 @@ public virtual double lengthOut { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35388,6 +37108,12 @@ public virtual string desc { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("UnsymParaCurve", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35408,6 +37134,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class CircCurve : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -35421,51 +37150,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static UnsymParaCurve Load(string xmlFile) { - return XTypedServices.Load<UnsymParaCurve>(xmlFile); + public static CircCurve Load(string xmlFile) { + return XTypedServices.Load<CircCurve>(xmlFile); } - public static UnsymParaCurve Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<UnsymParaCurve>(xmlFile); + public static CircCurve Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CircCurve>(xmlFile); } - public static UnsymParaCurve Parse(string xml) { - return XTypedServices.Parse<UnsymParaCurve>(xml); + public static CircCurve Parse(string xml) { + return XTypedServices.Parse<CircCurve>(xml); } + public static explicit operator CircCurve(XElement xe) { return XTypedServices.ToXTypedElement<CircCurve>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<UnsymParaCurve>(this); + return XTypedServices.CloneXTypedElement<CircCurve>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public CircCurve() { } - } - - public partial class CircCurve : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName radiusXName = System.Xml.Linq.XName.Get("radius", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CircCurve", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator CircCurve(XElement xe) { return XTypedServices.ToXTypedElement<CircCurve>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public CircCurve() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<double> TypedValue { get { @@ -35477,6 +37185,10 @@ public virtual IList<double> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: required @@ -35492,6 +37204,10 @@ public virtual double length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName radiusXName = System.Xml.Linq.XName.Get("radius", ""); + /// <summary> /// <para> /// Occurrence: required @@ -35507,6 +37223,10 @@ public virtual double radius { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35515,6 +37235,9 @@ public virtual double radius { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35522,6 +37245,12 @@ public virtual string desc { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CircCurve", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35542,6 +37271,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PipeNetwork+, Feature*) + /// </para> + /// </summary> + public partial class PipeNetworks : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -35555,73 +37292,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CircCurve Load(string xmlFile) { - return XTypedServices.Load<CircCurve>(xmlFile); - } - - public static CircCurve Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CircCurve>(xmlFile); - } - - public static CircCurve Parse(string xml) { - return XTypedServices.Parse<CircCurve>(xml); + public static PipeNetworks Load(string xmlFile) { + return XTypedServices.Load<PipeNetworks>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CircCurve>(this); + public static PipeNetworks Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PipeNetworks>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static PipeNetworks Parse(string xml) { + return XTypedServices.Parse<PipeNetworks>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (PipeNetwork+, Feature*) - /// </para> - /// </summary> - public partial class PipeNetworks : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PipeNetworkXName = System.Xml.Linq.XName.Get("PipeNetwork", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipeNetwork> PipeNetworkField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipeNetworks", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator PipeNetworks(XElement xe) { return XTypedServices.ToXTypedElement<PipeNetworks>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipeNetworks() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PipeNetworkXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipeNetworks>(this); } /// <summary> @@ -35632,6 +37318,13 @@ static PipeNetworks() { public PipeNetworks() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PipeNetworkXName = System.Xml.Linq.XName.Get("PipeNetwork", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipeNetwork> PipeNetworkField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -35662,6 +37355,13 @@ public virtual IList<PipeNetwork> PipeNetwork { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -35692,6 +37392,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35700,6 +37404,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35707,6 +37414,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35715,6 +37426,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35722,6 +37436,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35733,13 +37451,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipeNetworks", "http://www.landxml.org/schema/LandXML-1.2"); + + static PipeNetworks() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PipeNetworkXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PipeNetworkXName, typeof(PipeNetwork)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -35747,6 +37485,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35767,6 +37512,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Structs, Pipes, Feature*) + /// </para> + /// </summary> + public partial class PipeNetwork : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -35780,91 +37533,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PipeNetworks Load(string xmlFile) { - return XTypedServices.Load<PipeNetworks>(xmlFile); - } - - public static PipeNetworks Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PipeNetworks>(xmlFile); - } - - public static PipeNetworks Parse(string xml) { - return XTypedServices.Parse<PipeNetworks>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipeNetworks>(this); + public static PipeNetwork Load(string xmlFile) { + return XTypedServices.Load<PipeNetwork>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PipeNetworkXName, typeof(PipeNetwork)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static PipeNetwork Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PipeNetwork>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static PipeNetwork Parse(string xml) { + return XTypedServices.Parse<PipeNetwork>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Structs, Pipes, Feature*) - /// </para> - /// </summary> - public partial class PipeNetwork : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StructsXName = System.Xml.Linq.XName.Get("Structs", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PipesXName = System.Xml.Linq.XName.Get("Pipes", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pipeNetTypeXName = System.Xml.Linq.XName.Get("pipeNetType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignmentRefXName = System.Xml.Linq.XName.Get("alignmentRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipeNetwork", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator PipeNetwork(XElement xe) { return XTypedServices.ToXTypedElement<PipeNetwork>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipeNetwork() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(StructsXName), new NamedContentModelEntity(PipesXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipeNetwork>(this); } /// <summary> @@ -35875,6 +37559,10 @@ static PipeNetwork() { public PipeNetwork() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StructsXName = System.Xml.Linq.XName.Get("Structs", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -35893,6 +37581,10 @@ public virtual Structs Structs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PipesXName = System.Xml.Linq.XName.Get("Pipes", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -35911,6 +37603,13 @@ public virtual Pipes Pipes { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -35941,6 +37640,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -35956,6 +37659,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pipeNetTypeXName = System.Xml.Linq.XName.Get("pipeNetType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -35964,13 +37671,17 @@ public virtual string name { public virtual LandXml.v1_2.pipeNetworkType pipeNetType { get { XAttribute x = this.Attribute(pipeNetTypeXName); - return ((LandXml.v1_2.pipeNetworkType)(Enum.Parse(typeof(LandXml.v1_2.pipeNetworkType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pipeNetworkType)(Enum.Parse(typeof(LandXml.v1_2.pipeNetworkType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pipeNetworkTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pipeNetTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(pipeNetTypeXName, value.ToString(), "pipeNetType", global::LandXml.v1_2.pipeNetworkTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignmentRefXName = System.Xml.Linq.XName.Get("alignmentRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35979,6 +37690,9 @@ public virtual LandXml.v1_2.pipeNetworkType pipeNetType { public virtual string alignmentRef { get { XAttribute x = this.Attribute(alignmentRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35986,6 +37700,10 @@ public virtual string alignmentRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -35994,6 +37712,9 @@ public virtual string alignmentRef { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -36001,6 +37722,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36009,6 +37734,9 @@ public virtual string desc { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -36016,6 +37744,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36027,13 +37759,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipeNetwork", "http://www.landxml.org/schema/LandXML-1.2"); + + static PipeNetwork() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(StructsXName), new NamedContentModelEntity(PipesXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StructsXName, typeof(Structs)); + localElementDictionary.Add(PipesXName, typeof(Pipes)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -36041,6 +37794,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -36061,6 +37821,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Units?, Pipe+, Feature*) + /// </para> + /// </summary> + public partial class Pipes : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -36074,71 +37842,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PipeNetwork Load(string xmlFile) { - return XTypedServices.Load<PipeNetwork>(xmlFile); - } - - public static PipeNetwork Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PipeNetwork>(xmlFile); - } - - public static PipeNetwork Parse(string xml) { - return XTypedServices.Parse<PipeNetwork>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipeNetwork>(this); + public static Pipes Load(string xmlFile) { + return XTypedServices.Load<Pipes>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StructsXName, typeof(Structs)); - localElementDictionary.Add(PipesXName, typeof(Pipes)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Pipes Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Pipes>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Pipes Parse(string xml) { + return XTypedServices.Parse<Pipes>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Units?, Pipe+, Feature*) - /// </para> - /// </summary> - public partial class Pipes : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PipeXName = System.Xml.Linq.XName.Get("Pipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Pipe> PipeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Pipes", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Pipes(XElement xe) { return XTypedServices.ToXTypedElement<Pipes>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Pipes() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(UnitsXName), new NamedContentModelEntity(PipeXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Pipes>(this); } /// <summary> @@ -36149,6 +37868,10 @@ static Pipes() { public Pipes() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -36160,6 +37883,9 @@ public Pipes() { public virtual Units Units { get { XElement x = this.GetElement(UnitsXName); + if ((x == null)) { + return null; + } return ((Units)(x)); } set { @@ -36167,6 +37893,13 @@ public virtual Units Units { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PipeXName = System.Xml.Linq.XName.Get("Pipe", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Pipe> PipeField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -36197,6 +37930,13 @@ public virtual IList<Pipe> Pipe { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -36227,6 +37967,22 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Pipes", "http://www.landxml.org/schema/LandXML-1.2"); + + static Pipes() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(UnitsXName), new NamedContentModelEntity(PipeXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(UnitsXName, typeof(Units)); + localElementDictionary.Add(PipeXName, typeof(Pipe)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -36234,6 +37990,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -36254,6 +38017,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((CircPipe | EggPipe | ElliPipe | RectPipe | Channel), PipeFlow?, Center?, Feature*) + /// </para> + /// </summary> + public partial class Pipe : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -36267,120 +38038,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Pipes Load(string xmlFile) { - return XTypedServices.Load<Pipes>(xmlFile); - } - - public static Pipes Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Pipes>(xmlFile); - } - - public static Pipes Parse(string xml) { - return XTypedServices.Parse<Pipes>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Pipes>(this); + public static Pipe Load(string xmlFile) { + return XTypedServices.Load<Pipe>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(UnitsXName, typeof(Units)); - localElementDictionary.Add(PipeXName, typeof(Pipe)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Pipe Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Pipe>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Pipe Parse(string xml) { + return XTypedServices.Parse<Pipe>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: ((CircPipe | EggPipe | ElliPipe | RectPipe | Channel), PipeFlow?, Center?, Feature*) - /// </para> - /// </summary> - public partial class Pipe : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CircPipeXName = System.Xml.Linq.XName.Get("CircPipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EggPipeXName = System.Xml.Linq.XName.Get("EggPipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ElliPipeXName = System.Xml.Linq.XName.Get("ElliPipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RectPipeXName = System.Xml.Linq.XName.Get("RectPipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ChannelXName = System.Xml.Linq.XName.Get("Channel", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PipeFlowXName = System.Xml.Linq.XName.Get("PipeFlow", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName refEndXName = System.Xml.Linq.XName.Get("refEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName refStartXName = System.Xml.Linq.XName.Get("refStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeXName = System.Xml.Linq.XName.Get("slope", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Pipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Pipe(XElement xe) { return XTypedServices.ToXTypedElement<Pipe>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Pipe() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(CircPipeXName), new NamedContentModelEntity(EggPipeXName), new NamedContentModelEntity(ElliPipeXName), new NamedContentModelEntity(RectPipeXName), new NamedContentModelEntity(ChannelXName)), new NamedContentModelEntity(PipeFlowXName), new NamedContentModelEntity(CenterXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Pipe>(this); } /// <summary> @@ -36391,6 +38064,10 @@ static Pipe() { public Pipe() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CircPipeXName = System.Xml.Linq.XName.Get("CircPipe", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -36405,6 +38082,9 @@ public Pipe() { public virtual CircPipe CircPipe { get { XElement x = this.GetElement(CircPipeXName); + if ((x == null)) { + return null; + } return ((CircPipe)(x)); } set { @@ -36412,6 +38092,10 @@ public virtual CircPipe CircPipe { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EggPipeXName = System.Xml.Linq.XName.Get("EggPipe", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -36426,6 +38110,9 @@ public virtual CircPipe CircPipe { public virtual EggPipe EggPipe { get { XElement x = this.GetElement(EggPipeXName); + if ((x == null)) { + return null; + } return ((EggPipe)(x)); } set { @@ -36433,6 +38120,10 @@ public virtual EggPipe EggPipe { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ElliPipeXName = System.Xml.Linq.XName.Get("ElliPipe", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -36447,6 +38138,9 @@ public virtual EggPipe EggPipe { public virtual ElliPipe ElliPipe { get { XElement x = this.GetElement(ElliPipeXName); + if ((x == null)) { + return null; + } return ((ElliPipe)(x)); } set { @@ -36454,6 +38148,10 @@ public virtual ElliPipe ElliPipe { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RectPipeXName = System.Xml.Linq.XName.Get("RectPipe", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -36468,6 +38166,9 @@ public virtual ElliPipe ElliPipe { public virtual RectPipe RectPipe { get { XElement x = this.GetElement(RectPipeXName); + if ((x == null)) { + return null; + } return ((RectPipe)(x)); } set { @@ -36475,6 +38176,10 @@ public virtual RectPipe RectPipe { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ChannelXName = System.Xml.Linq.XName.Get("Channel", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -36489,6 +38194,9 @@ public virtual RectPipe RectPipe { public virtual Channel Channel { get { XElement x = this.GetElement(ChannelXName); + if ((x == null)) { + return null; + } return ((Channel)(x)); } set { @@ -36496,6 +38204,10 @@ public virtual Channel Channel { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PipeFlowXName = System.Xml.Linq.XName.Get("PipeFlow", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -36507,6 +38219,9 @@ public virtual Channel Channel { public virtual PipeFlow PipeFlow { get { XElement x = this.GetElement(PipeFlowXName); + if ((x == null)) { + return null; + } return ((PipeFlow)(x)); } set { @@ -36514,6 +38229,10 @@ public virtual PipeFlow PipeFlow { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -36525,6 +38244,9 @@ public virtual PipeFlow PipeFlow { public virtual Center Center { get { XElement x = this.GetElement(CenterXName); + if ((x == null)) { + return null; + } return ((Center)(x)); } set { @@ -36532,6 +38254,13 @@ public virtual Center Center { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -36562,6 +38291,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -36577,6 +38310,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName refEndXName = System.Xml.Linq.XName.Get("refEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -36592,6 +38329,10 @@ public virtual string refEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName refStartXName = System.Xml.Linq.XName.Get("refStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -36607,6 +38348,10 @@ public virtual string refStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36615,6 +38360,9 @@ public virtual string refStart { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -36622,6 +38370,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36640,6 +38392,10 @@ public virtual System.Double? length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36648,6 +38404,9 @@ public virtual System.Double? length { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -36655,6 +38414,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeXName = System.Xml.Linq.XName.Get("slope", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36673,6 +38436,10 @@ public virtual System.Double? slope { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36684,68 +38451,27 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Pipe", "http://www.landxml.org/schema/LandXML-1.2"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } + static Pipe() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(CircPipeXName), new NamedContentModelEntity(EggPipeXName), new NamedContentModelEntity(ElliPipeXName), new NamedContentModelEntity(RectPipeXName), new NamedContentModelEntity(ChannelXName)), new NamedContentModelEntity(PipeFlowXName), new NamedContentModelEntity(CenterXName), new NamedContentModelEntity(FeatureXName)); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Element; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static Pipe Load(string xmlFile) { - return XTypedServices.Load<Pipe>(xmlFile); - } - - public static Pipe Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Pipe>(xmlFile); - } - - public static Pipe Parse(string xml) { - return XTypedServices.Parse<Pipe>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Pipe>(this); - } + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); private static void BuildElementDictionary() { localElementDictionary.Add(CircPipeXName, typeof(CircPipe)); @@ -36758,9 +38484,40 @@ private static void BuildElementDictionary() { localElementDictionary.Add(FeatureXName, typeof(Feature)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + ContentModelEntity IXMetaData.GetContentModel() { return contentModel; } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Element; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } } /// <summary> @@ -36770,50 +38527,34 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class CircPipe : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName diameterXName = System.Xml.Linq.XName.Get("diameter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CircPipe", "http://www.landxml.org/schema/LandXML-1.2"); + public static CircPipe Load(string xmlFile) { + return XTypedServices.Load<CircPipe>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + public static CircPipe Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CircPipe>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public static CircPipe Parse(string xml) { + return XTypedServices.Parse<CircPipe>(xml); + } public static explicit operator CircPipe(XElement xe) { return XTypedServices.ToXTypedElement<CircPipe>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CircPipe() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CircPipe>(this); } /// <summary> @@ -36824,6 +38565,13 @@ static CircPipe() { public CircPipe() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -36854,6 +38602,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName diameterXName = System.Xml.Linq.XName.Get("diameter", ""); + /// <summary> /// <para> /// Occurrence: required @@ -36869,6 +38621,10 @@ public virtual double diameter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36877,6 +38633,9 @@ public virtual double diameter { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -36884,6 +38643,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36902,6 +38665,10 @@ public virtual System.Double? hazenWilliams { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36920,6 +38687,10 @@ public virtual System.Double? mannings { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36928,6 +38699,9 @@ public virtual System.Double? mannings { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -36935,6 +38709,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -36953,6 +38731,20 @@ public virtual System.Double? thickness { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CircPipe", "http://www.landxml.org/schema/LandXML-1.2"); + + static CircPipe() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -36960,6 +38752,13 @@ public virtual System.Double? thickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -36980,6 +38779,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class ElliPipe : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -36993,86 +38800,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CircPipe Load(string xmlFile) { - return XTypedServices.Load<CircPipe>(xmlFile); - } - - public static CircPipe Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CircPipe>(xmlFile); - } - - public static CircPipe Parse(string xml) { - return XTypedServices.Parse<CircPipe>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CircPipe>(this); + public static ElliPipe Load(string xmlFile) { + return XTypedServices.Load<ElliPipe>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ElliPipe Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ElliPipe>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ElliPipe Parse(string xml) { + return XTypedServices.Parse<ElliPipe>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class ElliPipe : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName spanXName = System.Xml.Linq.XName.Get("span", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ElliPipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ElliPipe(XElement xe) { return XTypedServices.ToXTypedElement<ElliPipe>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ElliPipe() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ElliPipe>(this); } /// <summary> @@ -37083,6 +38826,13 @@ static ElliPipe() { public ElliPipe() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -37113,6 +38863,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37128,6 +38882,10 @@ public virtual double height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName spanXName = System.Xml.Linq.XName.Get("span", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37143,6 +38901,10 @@ public virtual double span { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37151,6 +38913,9 @@ public virtual double span { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -37158,6 +38923,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37176,6 +38945,10 @@ public virtual System.Double? hazenWilliams { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37194,6 +38967,10 @@ public virtual System.Double? mannings { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37202,6 +38979,9 @@ public virtual System.Double? mannings { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -37209,6 +38989,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37227,6 +39011,20 @@ public virtual System.Double? thickness { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ElliPipe", "http://www.landxml.org/schema/LandXML-1.2"); + + static ElliPipe() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -37234,6 +39032,13 @@ public virtual System.Double? thickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -37254,6 +39059,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class EggPipe : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -37267,86 +39080,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ElliPipe Load(string xmlFile) { - return XTypedServices.Load<ElliPipe>(xmlFile); - } - - public static ElliPipe Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ElliPipe>(xmlFile); - } - - public static ElliPipe Parse(string xml) { - return XTypedServices.Parse<ElliPipe>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ElliPipe>(this); + public static EggPipe Load(string xmlFile) { + return XTypedServices.Load<EggPipe>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static EggPipe Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<EggPipe>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static EggPipe Parse(string xml) { + return XTypedServices.Parse<EggPipe>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class EggPipe : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName spanXName = System.Xml.Linq.XName.Get("span", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EggPipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator EggPipe(XElement xe) { return XTypedServices.ToXTypedElement<EggPipe>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static EggPipe() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<EggPipe>(this); } /// <summary> @@ -37357,6 +39106,13 @@ static EggPipe() { public EggPipe() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -37387,6 +39143,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37402,6 +39162,10 @@ public virtual double height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName spanXName = System.Xml.Linq.XName.Get("span", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37417,6 +39181,10 @@ public virtual double span { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37425,6 +39193,9 @@ public virtual double span { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -37432,6 +39203,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37450,6 +39225,10 @@ public virtual System.Double? hazenWilliams { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37468,6 +39247,10 @@ public virtual System.Double? mannings { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37476,6 +39259,9 @@ public virtual System.Double? mannings { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -37483,6 +39269,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37501,6 +39291,20 @@ public virtual System.Double? thickness { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EggPipe", "http://www.landxml.org/schema/LandXML-1.2"); + + static EggPipe() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -37508,6 +39312,13 @@ public virtual System.Double? thickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -37528,6 +39339,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class RectPipe : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -37541,125 +39360,72 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static EggPipe Load(string xmlFile) { - return XTypedServices.Load<EggPipe>(xmlFile); + public static RectPipe Load(string xmlFile) { + return XTypedServices.Load<RectPipe>(xmlFile); } - public static EggPipe Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<EggPipe>(xmlFile); + public static RectPipe Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RectPipe>(xmlFile); } - public static EggPipe Parse(string xml) { - return XTypedServices.Parse<EggPipe>(xml); + public static RectPipe Parse(string xml) { + return XTypedServices.Parse<RectPipe>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<EggPipe>(this); - } + public static explicit operator RectPipe(XElement xe) { return XTypedServices.ToXTypedElement<RectPipe>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RectPipe>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public RectPipe() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class RectPipe : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Feature> FeatureField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); + /// <summary> + /// <para> + /// Occurrence: optional, repeating + /// </para> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public virtual IList<Feature> Feature { + get { + if ((this.FeatureField == null)) { + this.FeatureField = new XTypedList<Feature>(this, LinqToXsdTypeManager.Instance, FeatureXName); + } + return this.FeatureField; + } + set { + if ((value == null)) { + this.FeatureField = null; + } + else { + if ((this.FeatureField == null)) { + this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, value, FeatureXName); + } + else { + XTypedServices.SetList<Feature>(this.FeatureField, value); + } + } + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RectPipe", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator RectPipe(XElement xe) { return XTypedServices.ToXTypedElement<RectPipe>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static RectPipe() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public RectPipe() { - } - - /// <summary> - /// <para> - /// Occurrence: optional, repeating - /// </para> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public virtual IList<Feature> Feature { - get { - if ((this.FeatureField == null)) { - this.FeatureField = new XTypedList<Feature>(this, LinqToXsdTypeManager.Instance, FeatureXName); - } - return this.FeatureField; - } - set { - if ((value == null)) { - this.FeatureField = null; - } - else { - if ((this.FeatureField == null)) { - this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, value, FeatureXName); - } - else { - XTypedServices.SetList<Feature>(this.FeatureField, value); - } - } - } - } + protected internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); /// <summary> /// <para> @@ -37676,6 +39442,10 @@ public virtual double height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37691,6 +39461,10 @@ public virtual double width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37699,6 +39473,9 @@ public virtual double width { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -37706,6 +39483,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37724,6 +39505,10 @@ public virtual System.Double? hazenWilliams { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37742,6 +39527,10 @@ public virtual System.Double? mannings { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37750,6 +39539,9 @@ public virtual System.Double? mannings { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -37757,6 +39549,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37775,6 +39571,20 @@ public virtual System.Double? thickness { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RectPipe", "http://www.landxml.org/schema/LandXML-1.2"); + + static RectPipe() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -37782,6 +39592,13 @@ public virtual System.Double? thickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -37802,6 +39619,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class Channel : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -37815,90 +39640,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RectPipe Load(string xmlFile) { - return XTypedServices.Load<RectPipe>(xmlFile); - } - - public static RectPipe Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RectPipe>(xmlFile); - } - - public static RectPipe Parse(string xml) { - return XTypedServices.Parse<RectPipe>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RectPipe>(this); + public static Channel Load(string xmlFile) { + return XTypedServices.Load<Channel>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Channel Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Channel>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Channel Parse(string xml) { + return XTypedServices.Parse<Channel>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class Channel : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthTopXName = System.Xml.Linq.XName.Get("widthTop", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthBottomXName = System.Xml.Linq.XName.Get("widthBottom", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Channel", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Channel(XElement xe) { return XTypedServices.ToXTypedElement<Channel>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Channel() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Channel>(this); } /// <summary> @@ -37909,6 +39666,13 @@ static Channel() { public Channel() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -37939,6 +39703,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37954,6 +39722,10 @@ public virtual double height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthTopXName = System.Xml.Linq.XName.Get("widthTop", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37969,6 +39741,10 @@ public virtual double widthTop { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthBottomXName = System.Xml.Linq.XName.Get("widthBottom", ""); + /// <summary> /// <para> /// Occurrence: required @@ -37984,6 +39760,10 @@ public virtual double widthBottom { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -37992,6 +39772,9 @@ public virtual double widthBottom { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -37999,6 +39782,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hazenWilliamsXName = System.Xml.Linq.XName.Get("hazenWilliams", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38017,6 +39804,10 @@ public virtual System.Double? hazenWilliams { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName manningsXName = System.Xml.Linq.XName.Get("mannings", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38035,6 +39826,10 @@ public virtual System.Double? mannings { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38043,6 +39838,9 @@ public virtual System.Double? mannings { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -38050,6 +39848,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38068,6 +39870,20 @@ public virtual System.Double? thickness { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Channel", "http://www.landxml.org/schema/LandXML-1.2"); + + static Channel() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -38075,6 +39891,13 @@ public virtual System.Double? thickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -38095,6 +39918,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class PipeFlow : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -38108,102 +39939,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Channel Load(string xmlFile) { - return XTypedServices.Load<Channel>(xmlFile); - } - - public static Channel Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Channel>(xmlFile); - } - - public static Channel Parse(string xml) { - return XTypedServices.Parse<Channel>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Channel>(this); + public static PipeFlow Load(string xmlFile) { + return XTypedServices.Load<PipeFlow>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static PipeFlow Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PipeFlow>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static PipeFlow Parse(string xml) { + return XTypedServices.Parse<PipeFlow>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class PipeFlow : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName flowInXName = System.Xml.Linq.XName.Get("flowIn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName areaCatchmentXName = System.Xml.Linq.XName.Get("areaCatchment", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName depthCriticalXName = System.Xml.Linq.XName.Get("depthCritical", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hglDownXName = System.Xml.Linq.XName.Get("hglDown", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hglUpXName = System.Xml.Linq.XName.Get("hglUp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName intensityXName = System.Xml.Linq.XName.Get("intensity", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName runoffCoeffXName = System.Xml.Linq.XName.Get("runoffCoeff", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeCriticalXName = System.Xml.Linq.XName.Get("slopeCritical", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeInletXName = System.Xml.Linq.XName.Get("timeInlet", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName velocityCriticalXName = System.Xml.Linq.XName.Get("velocityCritical", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipeFlow", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator PipeFlow(XElement xe) { return XTypedServices.ToXTypedElement<PipeFlow>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipeFlow() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipeFlow>(this); } /// <summary> @@ -38214,6 +39965,13 @@ static PipeFlow() { public PipeFlow() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -38244,6 +40002,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName flowInXName = System.Xml.Linq.XName.Get("flowIn", ""); + /// <summary> /// <para> /// Occurrence: required @@ -38259,6 +40021,10 @@ public virtual double flowIn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName areaCatchmentXName = System.Xml.Linq.XName.Get("areaCatchment", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38277,6 +40043,10 @@ public virtual System.Double? areaCatchment { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38285,6 +40055,9 @@ public virtual System.Double? areaCatchment { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -38292,6 +40065,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName depthCriticalXName = System.Xml.Linq.XName.Get("depthCritical", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38310,6 +40087,10 @@ public virtual System.Double? depthCritical { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hglDownXName = System.Xml.Linq.XName.Get("hglDown", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38328,6 +40109,10 @@ public virtual System.Double? hglDown { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hglUpXName = System.Xml.Linq.XName.Get("hglUp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38346,6 +40131,10 @@ public virtual System.Double? hglUp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName intensityXName = System.Xml.Linq.XName.Get("intensity", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38364,6 +40153,10 @@ public virtual System.Double? intensity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName runoffCoeffXName = System.Xml.Linq.XName.Get("runoffCoeff", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38382,6 +40175,10 @@ public virtual System.Double? runoffCoeff { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeCriticalXName = System.Xml.Linq.XName.Get("slopeCritical", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38400,6 +40197,10 @@ public virtual System.Double? slopeCritical { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeInletXName = System.Xml.Linq.XName.Get("timeInlet", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38418,6 +40219,10 @@ public virtual System.Double? timeInlet { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName velocityCriticalXName = System.Xml.Linq.XName.Get("velocityCritical", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -38436,6 +40241,20 @@ public virtual System.Double? velocityCritical { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipeFlow", "http://www.landxml.org/schema/LandXML-1.2"); + + static PipeFlow() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -38443,6 +40262,13 @@ public virtual System.Double? velocityCritical { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -38463,6 +40289,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Units?, Struct+, Feature*) + /// </para> + /// </summary> + public partial class Structs : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -38476,69 +40310,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PipeFlow Load(string xmlFile) { - return XTypedServices.Load<PipeFlow>(xmlFile); - } - - public static PipeFlow Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PipeFlow>(xmlFile); - } - - public static PipeFlow Parse(string xml) { - return XTypedServices.Parse<PipeFlow>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipeFlow>(this); + public static Structs Load(string xmlFile) { + return XTypedServices.Load<Structs>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Structs Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Structs>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Structs Parse(string xml) { + return XTypedServices.Parse<Structs>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Units?, Struct+, Feature*) - /// </para> - /// </summary> - public partial class Structs : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StructXName = System.Xml.Linq.XName.Get("Struct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Struct> StructField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Structs", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Structs(XElement xe) { return XTypedServices.ToXTypedElement<Structs>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Structs() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(UnitsXName), new NamedContentModelEntity(StructXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Structs>(this); } /// <summary> @@ -38549,6 +40336,10 @@ static Structs() { public Structs() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UnitsXName = System.Xml.Linq.XName.Get("Units", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -38560,6 +40351,9 @@ public Structs() { public virtual Units Units { get { XElement x = this.GetElement(UnitsXName); + if ((x == null)) { + return null; + } return ((Units)(x)); } set { @@ -38567,6 +40361,13 @@ public virtual Units Units { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StructXName = System.Xml.Linq.XName.Get("Struct", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Struct> StructField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -38597,6 +40398,13 @@ public virtual IList<Struct> Struct { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -38627,6 +40435,22 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Structs", "http://www.landxml.org/schema/LandXML-1.2"); + + static Structs() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(UnitsXName), new NamedContentModelEntity(StructXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(UnitsXName, typeof(Units)); + localElementDictionary.Add(StructXName, typeof(Struct)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -38635,9 +40459,16 @@ public virtual IList<Feature> Feature { } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; } } @@ -38654,6 +40485,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Center, (CircStruct | RectStruct | InletStruct | OutletStruct | Connection), Invert+, StructFlow?, Feature*) + /// </para> + /// </summary> + public partial class Struct : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -38667,119 +40506,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Structs Load(string xmlFile) { - return XTypedServices.Load<Structs>(xmlFile); - } - - public static Structs Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Structs>(xmlFile); - } - - public static Structs Parse(string xml) { - return XTypedServices.Parse<Structs>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Structs>(this); + public static Struct Load(string xmlFile) { + return XTypedServices.Load<Struct>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(UnitsXName, typeof(Units)); - localElementDictionary.Add(StructXName, typeof(Struct)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Struct Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Struct>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Struct Parse(string xml) { + return XTypedServices.Parse<Struct>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Center, (CircStruct | RectStruct | InletStruct | OutletStruct | Connection), Invert+, StructFlow?, Feature*) - /// </para> - /// </summary> - public partial class Struct : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CircStructXName = System.Xml.Linq.XName.Get("CircStruct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RectStructXName = System.Xml.Linq.XName.Get("RectStruct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InletStructXName = System.Xml.Linq.XName.Get("InletStruct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutletStructXName = System.Xml.Linq.XName.Get("OutletStruct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InvertXName = System.Xml.Linq.XName.Get("Invert", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Invert> InvertField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StructFlowXName = System.Xml.Linq.XName.Get("StructFlow", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevRimXName = System.Xml.Linq.XName.Get("elevRim", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevSumpXName = System.Xml.Linq.XName.Get("elevSump", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Struct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Struct(XElement xe) { return XTypedServices.ToXTypedElement<Struct>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Struct() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CenterXName), new ChoiceContentModelEntity(new NamedContentModelEntity(CircStructXName), new NamedContentModelEntity(RectStructXName), new NamedContentModelEntity(InletStructXName), new NamedContentModelEntity(OutletStructXName), new NamedContentModelEntity(ConnectionXName)), new NamedContentModelEntity(InvertXName), new NamedContentModelEntity(StructFlowXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Struct>(this); } /// <summary> @@ -38790,6 +40532,10 @@ static Struct() { public Struct() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CenterXName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -38808,6 +40554,10 @@ public virtual Center Center { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CircStructXName = System.Xml.Linq.XName.Get("CircStruct", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -38822,6 +40572,9 @@ public virtual Center Center { public virtual CircStruct CircStruct { get { XElement x = this.GetElement(CircStructXName); + if ((x == null)) { + return null; + } return ((CircStruct)(x)); } set { @@ -38829,6 +40582,10 @@ public virtual CircStruct CircStruct { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RectStructXName = System.Xml.Linq.XName.Get("RectStruct", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -38843,6 +40600,9 @@ public virtual CircStruct CircStruct { public virtual RectStruct RectStruct { get { XElement x = this.GetElement(RectStructXName); + if ((x == null)) { + return null; + } return ((RectStruct)(x)); } set { @@ -38850,6 +40610,10 @@ public virtual RectStruct RectStruct { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InletStructXName = System.Xml.Linq.XName.Get("InletStruct", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -38864,6 +40628,9 @@ public virtual RectStruct RectStruct { public virtual InletStruct InletStruct { get { XElement x = this.GetElement(InletStructXName); + if ((x == null)) { + return null; + } return ((InletStruct)(x)); } set { @@ -38871,6 +40638,10 @@ public virtual InletStruct InletStruct { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutletStructXName = System.Xml.Linq.XName.Get("OutletStruct", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -38885,6 +40656,9 @@ public virtual InletStruct InletStruct { public virtual OutletStruct OutletStruct { get { XElement x = this.GetElement(OutletStructXName); + if ((x == null)) { + return null; + } return ((OutletStruct)(x)); } set { @@ -38892,6 +40666,10 @@ public virtual OutletStruct OutletStruct { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -38906,6 +40684,9 @@ public virtual OutletStruct OutletStruct { public virtual Connection Connection { get { XElement x = this.GetElement(ConnectionXName); + if ((x == null)) { + return null; + } return ((Connection)(x)); } set { @@ -38913,6 +40694,13 @@ public virtual Connection Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InvertXName = System.Xml.Linq.XName.Get("Invert", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Invert> InvertField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -38943,6 +40731,10 @@ public virtual IList<Invert> Invert { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StructFlowXName = System.Xml.Linq.XName.Get("StructFlow", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -38954,6 +40746,9 @@ public virtual IList<Invert> Invert { public virtual StructFlow StructFlow { get { XElement x = this.GetElement(StructFlowXName); + if ((x == null)) { + return null; + } return ((StructFlow)(x)); } set { @@ -38961,6 +40756,13 @@ public virtual StructFlow StructFlow { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -38991,6 +40793,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -39006,6 +40812,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39014,6 +40824,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -39021,6 +40834,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevRimXName = System.Xml.Linq.XName.Get("elevRim", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39039,6 +40856,10 @@ public virtual System.Double? elevRim { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevSumpXName = System.Xml.Linq.XName.Get("elevSump", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39057,6 +40878,10 @@ public virtual System.Double? elevSump { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName oIDXName = System.Xml.Linq.XName.Get("oID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39065,6 +40890,9 @@ public virtual System.Double? elevSump { public virtual string oID { get { XAttribute x = this.Attribute(oIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -39072,6 +40900,10 @@ public virtual string oID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39083,13 +40915,40 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Struct", "http://www.landxml.org/schema/LandXML-1.2"); + + static Struct() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(CenterXName), new ChoiceContentModelEntity(new NamedContentModelEntity(CircStructXName), new NamedContentModelEntity(RectStructXName), new NamedContentModelEntity(InletStructXName), new NamedContentModelEntity(OutletStructXName), new NamedContentModelEntity(ConnectionXName)), new NamedContentModelEntity(InvertXName), new NamedContentModelEntity(StructFlowXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CenterXName, typeof(Center)); + localElementDictionary.Add(CircStructXName, typeof(CircStruct)); + localElementDictionary.Add(RectStructXName, typeof(RectStruct)); + localElementDictionary.Add(InletStructXName, typeof(InletStruct)); + localElementDictionary.Add(OutletStructXName, typeof(OutletStruct)); + localElementDictionary.Add(ConnectionXName, typeof(Connection)); + localElementDictionary.Add(InvertXName, typeof(Invert)); + localElementDictionary.Add(StructFlowXName, typeof(StructFlow)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -39097,6 +40956,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -39117,6 +40983,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class CircStruct : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -39130,90 +41004,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Struct Load(string xmlFile) { - return XTypedServices.Load<Struct>(xmlFile); - } - - public static Struct Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Struct>(xmlFile); - } - - public static Struct Parse(string xml) { - return XTypedServices.Parse<Struct>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Struct>(this); + public static CircStruct Load(string xmlFile) { + return XTypedServices.Load<CircStruct>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CenterXName, typeof(Center)); - localElementDictionary.Add(CircStructXName, typeof(CircStruct)); - localElementDictionary.Add(RectStructXName, typeof(RectStruct)); - localElementDictionary.Add(InletStructXName, typeof(InletStruct)); - localElementDictionary.Add(OutletStructXName, typeof(OutletStruct)); - localElementDictionary.Add(ConnectionXName, typeof(Connection)); - localElementDictionary.Add(InvertXName, typeof(Invert)); - localElementDictionary.Add(StructFlowXName, typeof(StructFlow)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static CircStruct Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CircStruct>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static CircStruct Parse(string xml) { + return XTypedServices.Parse<CircStruct>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class CircStruct : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName diameterXName = System.Xml.Linq.XName.Get("diameter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName inletCaseXName = System.Xml.Linq.XName.Get("inletCase", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lossCoeffXName = System.Xml.Linq.XName.Get("lossCoeff", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CircStruct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator CircStruct(XElement xe) { return XTypedServices.ToXTypedElement<CircStruct>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CircStruct() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CircStruct>(this); } /// <summary> @@ -39224,6 +41030,13 @@ static CircStruct() { public CircStruct() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -39254,6 +41067,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName diameterXName = System.Xml.Linq.XName.Get("diameter", ""); + /// <summary> /// <para> /// Occurrence: required @@ -39269,6 +41086,10 @@ public virtual double diameter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39277,6 +41098,9 @@ public virtual double diameter { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -39284,6 +41108,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName inletCaseXName = System.Xml.Linq.XName.Get("inletCase", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39292,6 +41120,9 @@ public virtual string desc { public virtual string inletCase { get { XAttribute x = this.Attribute(inletCaseXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -39299,6 +41130,10 @@ public virtual string inletCase { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lossCoeffXName = System.Xml.Linq.XName.Get("lossCoeff", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39317,6 +41152,10 @@ public virtual System.Double? lossCoeff { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39325,6 +41164,9 @@ public virtual System.Double? lossCoeff { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -39332,6 +41174,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39350,6 +41196,20 @@ public virtual System.Double? thickness { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CircStruct", "http://www.landxml.org/schema/LandXML-1.2"); + + static CircStruct() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -39357,6 +41217,13 @@ public virtual System.Double? thickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -39377,6 +41244,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class RectStruct : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -39390,90 +41265,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CircStruct Load(string xmlFile) { - return XTypedServices.Load<CircStruct>(xmlFile); - } - - public static CircStruct Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CircStruct>(xmlFile); - } - - public static CircStruct Parse(string xml) { - return XTypedServices.Parse<CircStruct>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CircStruct>(this); + public static RectStruct Load(string xmlFile) { + return XTypedServices.Load<RectStruct>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static RectStruct Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RectStruct>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static RectStruct Parse(string xml) { + return XTypedServices.Parse<RectStruct>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class RectStruct : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthDirXName = System.Xml.Linq.XName.Get("lengthDir", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName inletCaseXName = System.Xml.Linq.XName.Get("inletCase", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lossCoeffXName = System.Xml.Linq.XName.Get("lossCoeff", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RectStruct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator RectStruct(XElement xe) { return XTypedServices.ToXTypedElement<RectStruct>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static RectStruct() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RectStruct>(this); } /// <summary> @@ -39484,6 +41291,13 @@ static RectStruct() { public RectStruct() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -39514,6 +41328,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: required @@ -39529,6 +41347,10 @@ public virtual double length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthDirXName = System.Xml.Linq.XName.Get("lengthDir", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39547,6 +41369,10 @@ public virtual System.Double? lengthDir { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: required @@ -39562,6 +41388,10 @@ public virtual double width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39570,6 +41400,9 @@ public virtual double width { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -39577,6 +41410,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName inletCaseXName = System.Xml.Linq.XName.Get("inletCase", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39585,6 +41422,9 @@ public virtual string desc { public virtual string inletCase { get { XAttribute x = this.Attribute(inletCaseXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -39592,6 +41432,10 @@ public virtual string inletCase { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lossCoeffXName = System.Xml.Linq.XName.Get("lossCoeff", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39610,6 +41454,10 @@ public virtual System.Double? lossCoeff { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39618,6 +41466,9 @@ public virtual System.Double? lossCoeff { public virtual string material { get { XAttribute x = this.Attribute(materialXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -39625,6 +41476,10 @@ public virtual string material { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName thicknessXName = System.Xml.Linq.XName.Get("thickness", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -39643,6 +41498,20 @@ public virtual System.Double? thickness { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RectStruct", "http://www.landxml.org/schema/LandXML-1.2"); + + static RectStruct() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -39650,6 +41519,13 @@ public virtual System.Double? thickness { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -39670,42 +41546,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static RectStruct Load(string xmlFile) { - return XTypedServices.Load<RectStruct>(xmlFile); - } - - public static RectStruct Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RectStruct>(xmlFile); - } - - public static RectStruct Parse(string xml) { - return XTypedServices.Parse<RectStruct>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RectStruct>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -39715,26 +41555,34 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class InletStruct : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InletStruct", "http://www.landxml.org/schema/LandXML-1.2"); + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + public static InletStruct Load(string xmlFile) { + return XTypedServices.Load<InletStruct>(xmlFile); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + public static InletStruct Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<InletStruct>(xmlFile); + } + + public static InletStruct Parse(string xml) { + return XTypedServices.Parse<InletStruct>(xml); + } public static explicit operator InletStruct(XElement xe) { return XTypedServices.ToXTypedElement<InletStruct>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static InletStruct() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<InletStruct>(this); } /// <summary> @@ -39745,6 +41593,13 @@ static InletStruct() { public InletStruct() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -39775,6 +41630,20 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InletStruct", "http://www.landxml.org/schema/LandXML-1.2"); + + static InletStruct() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -39782,6 +41651,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -39802,6 +41678,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class OutletStruct : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -39815,58 +41699,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static InletStruct Load(string xmlFile) { - return XTypedServices.Load<InletStruct>(xmlFile); - } - - public static InletStruct Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<InletStruct>(xmlFile); - } - - public static InletStruct Parse(string xml) { - return XTypedServices.Parse<InletStruct>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<InletStruct>(this); + public static OutletStruct Load(string xmlFile) { + return XTypedServices.Load<OutletStruct>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static OutletStruct Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OutletStruct>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static OutletStruct Parse(string xml) { + return XTypedServices.Parse<OutletStruct>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class OutletStruct : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OutletStruct", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator OutletStruct(XElement xe) { return XTypedServices.ToXTypedElement<OutletStruct>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static OutletStruct() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OutletStruct>(this); } /// <summary> @@ -39877,6 +41725,13 @@ static OutletStruct() { public OutletStruct() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -39907,6 +41762,20 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OutletStruct", "http://www.landxml.org/schema/LandXML-1.2"); + + static OutletStruct() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -39914,6 +41783,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -39934,6 +41810,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class Connection : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -39947,58 +41831,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OutletStruct Load(string xmlFile) { - return XTypedServices.Load<OutletStruct>(xmlFile); - } - - public static OutletStruct Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OutletStruct>(xmlFile); - } - - public static OutletStruct Parse(string xml) { - return XTypedServices.Parse<OutletStruct>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OutletStruct>(this); + public static Connection Load(string xmlFile) { + return XTypedServices.Load<Connection>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Connection Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Connection>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Connection Parse(string xml) { + return XTypedServices.Parse<Connection>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class Connection : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Connection", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Connection(XElement xe) { return XTypedServices.ToXTypedElement<Connection>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Connection() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Connection>(this); } /// <summary> @@ -40009,6 +41857,13 @@ static Connection() { public Connection() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -40039,6 +41894,20 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Connection", "http://www.landxml.org/schema/LandXML-1.2"); + + static Connection() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -40046,6 +41915,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -40066,6 +41942,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Invert : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -40079,55 +41958,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Connection Load(string xmlFile) { - return XTypedServices.Load<Connection>(xmlFile); + public static Invert Load(string xmlFile) { + return XTypedServices.Load<Invert>(xmlFile); } - public static Connection Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Connection>(xmlFile); + public static Invert Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Invert>(xmlFile); } - public static Connection Parse(string xml) { - return XTypedServices.Parse<Connection>(xml); + public static Invert Parse(string xml) { + return XTypedServices.Parse<Invert>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Connection>(this); - } + public static explicit operator Invert(XElement xe) { return XTypedServices.ToXTypedElement<Invert>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Invert>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public Invert() { } - } - - public partial class Invert : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevXName = System.Xml.Linq.XName.Get("elev", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName flowDirXName = System.Xml.Linq.XName.Get("flowDir", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName refPipeXName = System.Xml.Linq.XName.Get("refPipe", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Invert", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Invert(XElement xe) { return XTypedServices.ToXTypedElement<Invert>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Invert() { - } + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); /// <summary> /// <para> @@ -40137,6 +41991,9 @@ public Invert() { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -40144,6 +42001,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevXName = System.Xml.Linq.XName.Get("elev", ""); + /// <summary> /// <para> /// Occurrence: required @@ -40159,21 +42020,29 @@ public virtual double elev { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName flowDirXName = System.Xml.Linq.XName.Get("flowDir", ""); + /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string flowDir { + public virtual LandXml.v1_2.inOut flowDir { get { XAttribute x = this.Attribute(flowDirXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return ((LandXml.v1_2.inOut)(Enum.Parse(typeof(LandXml.v1_2.inOut), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.inOutValidator.TypeDefinition)))); } set { - this.SetAttribute(flowDirXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(flowDirXName, value.ToString(), "flowDir", global::LandXml.v1_2.inOutValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName refPipeXName = System.Xml.Linq.XName.Get("refPipe", ""); + /// <summary> /// <para> /// Occurrence: required @@ -40189,6 +42058,12 @@ public virtual string refPipe { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Invert", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -40209,6 +42084,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class StructFlow : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -40222,90 +42105,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Invert Load(string xmlFile) { - return XTypedServices.Load<Invert>(xmlFile); - } - - public static Invert Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Invert>(xmlFile); - } - - public static Invert Parse(string xml) { - return XTypedServices.Parse<Invert>(xml); + public static StructFlow Load(string xmlFile) { + return XTypedServices.Load<StructFlow>(xmlFile); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Invert>(this); + public static StructFlow Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<StructFlow>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static StructFlow Parse(string xml) { + return XTypedServices.Parse<StructFlow>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class StructFlow : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lossInXName = System.Xml.Linq.XName.Get("lossIn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lossOutXName = System.Xml.Linq.XName.Get("lossOut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hglInXName = System.Xml.Linq.XName.Get("hglIn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hglOutXName = System.Xml.Linq.XName.Get("hglOut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName localDepressionXName = System.Xml.Linq.XName.Get("localDepression", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeSurfXName = System.Xml.Linq.XName.Get("slopeSurf", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeGutterXName = System.Xml.Linq.XName.Get("slopeGutter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthGutterXName = System.Xml.Linq.XName.Get("widthGutter", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StructFlow", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator StructFlow(XElement xe) { return XTypedServices.ToXTypedElement<StructFlow>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static StructFlow() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<StructFlow>(this); } /// <summary> @@ -40316,6 +42131,13 @@ static StructFlow() { public StructFlow() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -40346,6 +42168,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lossInXName = System.Xml.Linq.XName.Get("lossIn", ""); + /// <summary> /// <para> /// Occurrence: required @@ -40361,6 +42187,10 @@ public virtual double lossIn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lossOutXName = System.Xml.Linq.XName.Get("lossOut", ""); + /// <summary> /// <para> /// Occurrence: required @@ -40376,6 +42206,10 @@ public virtual double lossOut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40384,6 +42218,9 @@ public virtual double lossOut { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -40391,6 +42228,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hglInXName = System.Xml.Linq.XName.Get("hglIn", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40409,6 +42250,10 @@ public virtual System.Double? hglIn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hglOutXName = System.Xml.Linq.XName.Get("hglOut", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40427,6 +42272,10 @@ public virtual System.Double? hglOut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName localDepressionXName = System.Xml.Linq.XName.Get("localDepression", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40445,6 +42294,10 @@ public virtual System.Double? localDepression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeSurfXName = System.Xml.Linq.XName.Get("slopeSurf", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40463,6 +42316,10 @@ public virtual System.Double? slopeSurf { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeGutterXName = System.Xml.Linq.XName.Get("slopeGutter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40481,6 +42338,10 @@ public virtual System.Double? slopeGutter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthGutterXName = System.Xml.Linq.XName.Get("widthGutter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40499,6 +42360,20 @@ public virtual System.Double? widthGutter { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StructFlow", "http://www.landxml.org/schema/LandXML-1.2"); + + static StructFlow() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -40506,6 +42381,13 @@ public virtual System.Double? widthGutter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -40526,6 +42408,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PlanFeature+, Feature*) + /// </para> + /// </summary> + public partial class PlanFeatures : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -40539,87 +42429,39 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static StructFlow Load(string xmlFile) { - return XTypedServices.Load<StructFlow>(xmlFile); + public static PlanFeatures Load(string xmlFile) { + return XTypedServices.Load<PlanFeatures>(xmlFile); } - public static StructFlow Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<StructFlow>(xmlFile); + public static PlanFeatures Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PlanFeatures>(xmlFile); } - public static StructFlow Parse(string xml) { - return XTypedServices.Parse<StructFlow>(xml); + public static PlanFeatures Parse(string xml) { + return XTypedServices.Parse<PlanFeatures>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<StructFlow>(this); - } + public static explicit operator PlanFeatures(XElement xe) { return XTypedServices.ToXTypedElement<PlanFeatures>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PlanFeatures>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (PlanFeature+, Feature*) + /// </para> + /// </summary> + public PlanFeatures() { } - } - - /// <summary> - /// <para> - /// Regular expression: (PlanFeature+, Feature*) - /// </para> - /// </summary> - public partial class PlanFeatures : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PlanFeatureXName = System.Xml.Linq.XName.Get("PlanFeature", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName PlanFeatureXName = System.Xml.Linq.XName.Get("PlanFeature", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<PlanFeature> PlanFeatureField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PlanFeatures", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator PlanFeatures(XElement xe) { return XTypedServices.ToXTypedElement<PlanFeatures>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static PlanFeatures() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PlanFeatureXName), new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (PlanFeature+, Feature*) - /// </para> - /// </summary> - public PlanFeatures() { - } - /// <summary> /// <para> /// Occurrence: required, repeating @@ -40650,6 +42492,13 @@ public virtual IList<PlanFeature> PlanFeature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -40680,6 +42529,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40688,6 +42541,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -40695,6 +42551,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40703,6 +42563,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -40710,6 +42573,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40721,13 +42588,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PlanFeatures", "http://www.landxml.org/schema/LandXML-1.2"); + + static PlanFeatures() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PlanFeatureXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PlanFeatureXName, typeof(PlanFeature)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -40735,6 +42622,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -40755,6 +42649,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (CoordGeom | Location* | FieldNote* | Feature*)* + /// </para> + /// </summary> + public partial class PlanFeature : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -40768,92 +42670,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PlanFeatures Load(string xmlFile) { - return XTypedServices.Load<PlanFeatures>(xmlFile); - } - - public static PlanFeatures Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PlanFeatures>(xmlFile); - } - - public static PlanFeatures Parse(string xml) { - return XTypedServices.Parse<PlanFeatures>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PlanFeatures>(this); + public static PlanFeature Load(string xmlFile) { + return XTypedServices.Load<PlanFeature>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PlanFeatureXName, typeof(PlanFeature)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static PlanFeature Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PlanFeature>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static PlanFeature Parse(string xml) { + return XTypedServices.Parse<PlanFeature>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (CoordGeom | Location* | FieldNote* | Feature*)* - /// </para> - /// </summary> - public partial class PlanFeature : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CoordGeom> CoordGeomField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocationXName = System.Xml.Linq.XName.Get("Location", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Location> LocationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PlanFeature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator PlanFeature(XElement xe) { return XTypedServices.ToXTypedElement<PlanFeature>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PlanFeature() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(CoordGeomXName), new NamedContentModelEntity(LocationXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PlanFeature>(this); } /// <summary> @@ -40864,6 +42696,13 @@ static PlanFeature() { public PlanFeature() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CoordGeomXName = System.Xml.Linq.XName.Get("CoordGeom", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CoordGeom> CoordGeomField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -40894,6 +42733,13 @@ public virtual IList<CoordGeom> CoordGeom { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocationXName = System.Xml.Linq.XName.Get("Location", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Location> LocationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -40924,6 +42770,13 @@ public virtual IList<Location> Location { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -40954,6 +42807,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -40984,6 +42844,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -40992,6 +42856,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -40999,6 +42866,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41007,6 +42878,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41014,6 +42888,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41025,13 +42903,35 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PlanFeature", "http://www.landxml.org/schema/LandXML-1.2"); + + static PlanFeature() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(CoordGeomXName), new NamedContentModelEntity(LocationXName), new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); + localElementDictionary.Add(LocationXName, typeof(Location)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -41039,6 +42939,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -41059,6 +42966,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (GradeSurface+ | Feature*)+ + /// </para> + /// </summary> + public partial class GradeModel : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -41072,80 +42987,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PlanFeature Load(string xmlFile) { - return XTypedServices.Load<PlanFeature>(xmlFile); - } - - public static PlanFeature Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PlanFeature>(xmlFile); - } - - public static PlanFeature Parse(string xml) { - return XTypedServices.Parse<PlanFeature>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PlanFeature>(this); + public static GradeModel Load(string xmlFile) { + return XTypedServices.Load<GradeModel>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CoordGeomXName, typeof(CoordGeom)); - localElementDictionary.Add(LocationXName, typeof(Location)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static GradeModel Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GradeModel>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static GradeModel Parse(string xml) { + return XTypedServices.Parse<GradeModel>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (GradeSurface+ | Feature*)+ - /// </para> - /// </summary> - public partial class GradeModel : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GradeSurfaceXName = System.Xml.Linq.XName.Get("GradeSurface", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<GradeSurface> GradeSurfaceField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GradeModel", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator GradeModel(XElement xe) { return XTypedServices.ToXTypedElement<GradeModel>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GradeModel() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(GradeSurfaceXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GradeModel>(this); } /// <summary> @@ -41156,6 +43013,13 @@ static GradeModel() { public GradeModel() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GradeSurfaceXName = System.Xml.Linq.XName.Get("GradeSurface", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<GradeSurface> GradeSurfaceField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -41186,6 +43050,13 @@ public virtual IList<GradeSurface> GradeSurface { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -41216,6 +43087,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41224,6 +43099,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41231,6 +43109,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41239,6 +43121,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41246,6 +43131,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41257,13 +43146,33 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GradeModel", "http://www.landxml.org/schema/LandXML-1.2"); + + static GradeModel() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(GradeSurfaceXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(GradeSurfaceXName, typeof(GradeSurface)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -41271,6 +43180,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -41291,6 +43207,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Start? | Zones+ | Feature*)+ + /// </para> + /// </summary> + public partial class GradeSurface : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -41304,109 +43228,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GradeModel Load(string xmlFile) { - return XTypedServices.Load<GradeModel>(xmlFile); - } - - public static GradeModel Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GradeModel>(xmlFile); - } - - public static GradeModel Parse(string xml) { - return XTypedServices.Parse<GradeModel>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GradeModel>(this); + public static GradeSurface Load(string xmlFile) { + return XTypedServices.Load<GradeSurface>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(GradeSurfaceXName, typeof(GradeSurface)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static GradeSurface Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<GradeSurface>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static GradeSurface Parse(string xml) { + return XTypedServices.Parse<GradeSurface>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Start? | Zones+ | Feature*)+ - /// </para> - /// </summary> - public partial class GradeSurface : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Start> StartField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZonesXName = System.Xml.Linq.XName.Get("Zones", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Zones> ZonesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignmentRefXName = System.Xml.Linq.XName.Get("alignmentRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationAlignmentRefXName = System.Xml.Linq.XName.Get("stationAlignmentRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfaceTypeXName = System.Xml.Linq.XName.Get("surfaceType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfaceRefXName = System.Xml.Linq.XName.Get("surfaceRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfaceRefsXName = System.Xml.Linq.XName.Get("surfaceRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName cgPointRefsXName = System.Xml.Linq.XName.Get("cgPointRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GradeSurface", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator GradeSurface(XElement xe) { return XTypedServices.ToXTypedElement<GradeSurface>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static GradeSurface() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(ZonesXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<GradeSurface>(this); } /// <summary> @@ -41417,6 +43254,13 @@ static GradeSurface() { public GradeSurface() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartXName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Start> StartField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -41447,6 +43291,13 @@ public virtual IList<Start> Start { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZonesXName = System.Xml.Linq.XName.Get("Zones", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Zones> ZonesField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -41477,6 +43328,13 @@ public virtual IList<Zones> Zones { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -41507,6 +43365,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignmentRefXName = System.Xml.Linq.XName.Get("alignmentRef", ""); + /// <summary> /// <para> /// Occurrence: required @@ -41522,6 +43384,10 @@ public virtual string alignmentRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationAlignmentRefXName = System.Xml.Linq.XName.Get("stationAlignmentRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41530,6 +43396,9 @@ public virtual string alignmentRef { public virtual string stationAlignmentRef { get { XAttribute x = this.Attribute(stationAlignmentRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41537,6 +43406,10 @@ public virtual string stationAlignmentRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfaceTypeXName = System.Xml.Linq.XName.Get("surfaceType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -41545,13 +43418,17 @@ public virtual string stationAlignmentRef { public virtual LandXml.v1_2.zoneSurfaceType surfaceType { get { XAttribute x = this.Attribute(surfaceTypeXName); - return ((LandXml.v1_2.zoneSurfaceType)(Enum.Parse(typeof(LandXml.v1_2.zoneSurfaceType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.zoneSurfaceType)(Enum.Parse(typeof(LandXml.v1_2.zoneSurfaceType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneSurfaceTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(surfaceTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(surfaceTypeXName, value.ToString(), "surfaceType", global::LandXml.v1_2.zoneSurfaceTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfaceRefXName = System.Xml.Linq.XName.Get("surfaceRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41560,6 +43437,9 @@ public virtual LandXml.v1_2.zoneSurfaceType surfaceType { public virtual string surfaceRef { get { XAttribute x = this.Attribute(surfaceRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41567,6 +43447,10 @@ public virtual string surfaceRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfaceRefsXName = System.Xml.Linq.XName.Get("surfaceRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41575,6 +43459,9 @@ public virtual string surfaceRef { public virtual IList<string> surfaceRefs { get { XAttribute x = this.Attribute(surfaceRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41582,6 +43469,10 @@ public virtual IList<string> surfaceRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName cgPointRefsXName = System.Xml.Linq.XName.Get("cgPointRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41590,6 +43481,9 @@ public virtual IList<string> surfaceRefs { public virtual IList<string> cgPointRefs { get { XAttribute x = this.Attribute(cgPointRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41597,6 +43491,10 @@ public virtual IList<string> cgPointRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41605,6 +43503,9 @@ public virtual IList<string> cgPointRefs { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41612,6 +43513,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41620,6 +43525,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41627,6 +43535,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41638,13 +43550,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("GradeSurface", "http://www.landxml.org/schema/LandXML-1.2"); + + static GradeSurface() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StartXName), new NamedContentModelEntity(ZonesXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StartXName, typeof(Start)); + localElementDictionary.Add(ZonesXName, typeof(Zones)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -41652,6 +43585,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -41672,6 +43612,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Zone+ | ZoneHinge* | Feature*)+ + /// </para> + /// </summary> + public partial class Zones : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -41685,90 +43633,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static GradeSurface Load(string xmlFile) { - return XTypedServices.Load<GradeSurface>(xmlFile); - } - - public static GradeSurface Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<GradeSurface>(xmlFile); - } - - public static GradeSurface Parse(string xml) { - return XTypedServices.Parse<GradeSurface>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<GradeSurface>(this); + public static Zones Load(string xmlFile) { + return XTypedServices.Load<Zones>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StartXName, typeof(Start)); - localElementDictionary.Add(ZonesXName, typeof(Zones)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Zones Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Zones>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Zones Parse(string xml) { + return XTypedServices.Parse<Zones>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Zone+ | ZoneHinge* | Feature*)+ - /// </para> - /// </summary> - public partial class Zones : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZoneXName = System.Xml.Linq.XName.Get("Zone", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Zone> ZoneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZoneHingeXName = System.Xml.Linq.XName.Get("ZoneHinge", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ZoneHinge> ZoneHingeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideXName = System.Xml.Linq.XName.Get("side", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Zones", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Zones(XElement xe) { return XTypedServices.ToXTypedElement<Zones>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Zones() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ZoneXName), new NamedContentModelEntity(ZoneHingeXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Zones>(this); } /// <summary> @@ -41779,6 +43659,13 @@ static Zones() { public Zones() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZoneXName = System.Xml.Linq.XName.Get("Zone", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Zone> ZoneField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -41809,6 +43696,13 @@ public virtual IList<Zone> Zone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZoneHingeXName = System.Xml.Linq.XName.Get("ZoneHinge", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ZoneHinge> ZoneHingeField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -41839,6 +43733,13 @@ public virtual IList<ZoneHinge> ZoneHinge { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -41869,6 +43770,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideXName = System.Xml.Linq.XName.Get("side", ""); + /// <summary> /// <para> /// Occurrence: required @@ -41877,13 +43782,17 @@ public virtual IList<Feature> Feature { public virtual LandXml.v1_2.sideofRoadType side { get { XAttribute x = this.Attribute(sideXName); - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(sideXName, value.ToString(), "side", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41892,6 +43801,9 @@ public virtual LandXml.v1_2.sideofRoadType side { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41899,6 +43811,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41907,6 +43823,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -41914,6 +43833,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -41925,13 +43848,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Zones", "http://www.landxml.org/schema/LandXML-1.2"); + + static Zones() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ZoneXName), new NamedContentModelEntity(ZoneHingeXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ZoneXName, typeof(Zone)); + localElementDictionary.Add(ZoneHingeXName, typeof(ZoneHinge)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -41939,6 +43883,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -41959,6 +43910,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (ZoneWidth* | ZoneSlope* | ZoneCutFill* | ZoneMaterial* | ZoneCrossSectStructure* | Feature*)* + /// </para> + /// </summary> + public partial class Zone : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -41972,147 +43931,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Zones Load(string xmlFile) { - return XTypedServices.Load<Zones>(xmlFile); - } - - public static Zones Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Zones>(xmlFile); - } - - public static Zones Parse(string xml) { - return XTypedServices.Parse<Zones>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Zones>(this); + public static Zone Load(string xmlFile) { + return XTypedServices.Load<Zone>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ZoneXName, typeof(Zone)); - localElementDictionary.Add(ZoneHingeXName, typeof(ZoneHinge)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Zone Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Zone>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Zone Parse(string xml) { + return XTypedServices.Parse<Zone>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (ZoneWidth* | ZoneSlope* | ZoneCutFill* | ZoneMaterial* | ZoneCrossSectStructure* | Feature*)* - /// </para> - /// </summary> - public partial class Zone : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZoneWidthXName = System.Xml.Linq.XName.Get("ZoneWidth", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ZoneWidth> ZoneWidthField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZoneSlopeXName = System.Xml.Linq.XName.Get("ZoneSlope", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ZoneSlope> ZoneSlopeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZoneCutFillXName = System.Xml.Linq.XName.Get("ZoneCutFill", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ZoneCutFill> ZoneCutFillField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZoneMaterialXName = System.Xml.Linq.XName.Get("ZoneMaterial", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ZoneMaterial> ZoneMaterialField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ZoneCrossSectStructureXName = System.Xml.Linq.XName.Get("ZoneCrossSectStructure", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ZoneCrossSectStructure> ZoneCrossSectStructureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName priorityXName = System.Xml.Linq.XName.Get("priority", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName categoryXName = System.Xml.Linq.XName.Get("category", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startWidthXName = System.Xml.Linq.XName.Get("startWidth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startVertValueXName = System.Xml.Linq.XName.Get("startVertValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startVertTypeXName = System.Xml.Linq.XName.Get("startVertType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endWidthXName = System.Xml.Linq.XName.Get("endWidth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endVertValueXName = System.Xml.Linq.XName.Get("endVertValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endVertTypeXName = System.Xml.Linq.XName.Get("endVertType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Zone", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Zone(XElement xe) { return XTypedServices.ToXTypedElement<Zone>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Zone() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ZoneWidthXName), new NamedContentModelEntity(ZoneSlopeXName), new NamedContentModelEntity(ZoneCutFillXName), new NamedContentModelEntity(ZoneMaterialXName), new NamedContentModelEntity(ZoneCrossSectStructureXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Zone>(this); } /// <summary> @@ -42123,6 +43957,13 @@ static Zone() { public Zone() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZoneWidthXName = System.Xml.Linq.XName.Get("ZoneWidth", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ZoneWidth> ZoneWidthField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -42153,6 +43994,13 @@ public virtual IList<ZoneWidth> ZoneWidth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZoneSlopeXName = System.Xml.Linq.XName.Get("ZoneSlope", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ZoneSlope> ZoneSlopeField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -42183,6 +44031,13 @@ public virtual IList<ZoneSlope> ZoneSlope { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZoneCutFillXName = System.Xml.Linq.XName.Get("ZoneCutFill", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ZoneCutFill> ZoneCutFillField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -42213,6 +44068,13 @@ public virtual IList<ZoneCutFill> ZoneCutFill { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZoneMaterialXName = System.Xml.Linq.XName.Get("ZoneMaterial", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ZoneMaterial> ZoneMaterialField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -42243,6 +44105,13 @@ public virtual IList<ZoneMaterial> ZoneMaterial { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ZoneCrossSectStructureXName = System.Xml.Linq.XName.Get("ZoneCrossSectStructure", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ZoneCrossSectStructure> ZoneCrossSectStructureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -42273,6 +44142,13 @@ public virtual IList<ZoneCrossSectStructure> ZoneCrossSectStructure { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -42303,6 +44179,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42311,6 +44191,9 @@ public virtual IList<Feature> Feature { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -42318,6 +44201,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42326,6 +44213,9 @@ public virtual string desc { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -42333,6 +44223,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42344,13 +44238,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName priorityXName = System.Xml.Linq.XName.Get("priority", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42366,21 +44269,29 @@ public virtual int priority { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName categoryXName = System.Xml.Linq.XName.Get("category", ""); + /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string category { + public virtual LandXml.v1_2.zoneCategoryType category { get { XAttribute x = this.Attribute(categoryXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return ((LandXml.v1_2.zoneCategoryType)(Enum.Parse(typeof(LandXml.v1_2.zoneCategoryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneCategoryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(categoryXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(categoryXName, value.ToString(), "category", global::LandXml.v1_2.zoneCategoryTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42396,6 +44307,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42414,6 +44329,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startWidthXName = System.Xml.Linq.XName.Get("startWidth", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42429,6 +44348,10 @@ public virtual double startWidth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startVertValueXName = System.Xml.Linq.XName.Get("startVertValue", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42444,21 +44367,29 @@ public virtual double startVertValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startVertTypeXName = System.Xml.Linq.XName.Get("startVertType", ""); + /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string startVertType { + public virtual LandXml.v1_2.zoneVertType startVertType { get { XAttribute x = this.Attribute(startVertTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return ((LandXml.v1_2.zoneVertType)(Enum.Parse(typeof(LandXml.v1_2.zoneVertType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(startVertTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(startVertTypeXName, value.ToString(), "startVertType", global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endWidthXName = System.Xml.Linq.XName.Get("endWidth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42477,6 +44408,10 @@ public virtual System.Double? endWidth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endVertValueXName = System.Xml.Linq.XName.Get("endVertValue", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42495,21 +44430,52 @@ public virtual System.Double? endVertValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endVertTypeXName = System.Xml.Linq.XName.Get("endVertType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string endVertType { + public virtual LandXml.v1_2.zoneVertType? endVertType { get { XAttribute x = this.Attribute(endVertTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.zoneVertType)(Enum.Parse(typeof(LandXml.v1_2.zoneVertType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(endVertTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(endVertTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(endVertTypeXName, value.ToString(), "endVertType", global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Zone", "http://www.landxml.org/schema/LandXML-1.2"); + + static Zone() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ZoneWidthXName), new NamedContentModelEntity(ZoneSlopeXName), new NamedContentModelEntity(ZoneCutFillXName), new NamedContentModelEntity(ZoneMaterialXName), new NamedContentModelEntity(ZoneCrossSectStructureXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ZoneWidthXName, typeof(ZoneWidth)); + localElementDictionary.Add(ZoneSlopeXName, typeof(ZoneSlope)); + localElementDictionary.Add(ZoneCutFillXName, typeof(ZoneCutFill)); + localElementDictionary.Add(ZoneMaterialXName, typeof(ZoneMaterial)); + localElementDictionary.Add(ZoneCrossSectStructureXName, typeof(ZoneCrossSectStructure)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -42517,6 +44483,13 @@ public virtual string endVertType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -42537,6 +44510,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class ZoneWidth : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -42550,96 +44531,42 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Zone Load(string xmlFile) { - return XTypedServices.Load<Zone>(xmlFile); + public static ZoneWidth Load(string xmlFile) { + return XTypedServices.Load<ZoneWidth>(xmlFile); } - public static Zone Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Zone>(xmlFile); + public static ZoneWidth Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ZoneWidth>(xmlFile); } - public static Zone Parse(string xml) { - return XTypedServices.Parse<Zone>(xml); + public static ZoneWidth Parse(string xml) { + return XTypedServices.Parse<ZoneWidth>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Zone>(this); - } + public static explicit operator ZoneWidth(XElement xe) { return XTypedServices.ToXTypedElement<ZoneWidth>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ZoneWidthXName, typeof(ZoneWidth)); - localElementDictionary.Add(ZoneSlopeXName, typeof(ZoneSlope)); - localElementDictionary.Add(ZoneCutFillXName, typeof(ZoneCutFill)); - localElementDictionary.Add(ZoneMaterialXName, typeof(ZoneMaterial)); - localElementDictionary.Add(ZoneCrossSectStructureXName, typeof(ZoneCrossSectStructure)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ZoneWidth>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public ZoneWidth() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class ZoneWidth : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Feature> FeatureField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startWidthXName = System.Xml.Linq.XName.Get("startWidth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endWidthXName = System.Xml.Linq.XName.Get("endWidth", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneWidth", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator ZoneWidth(XElement xe) { return XTypedServices.ToXTypedElement<ZoneWidth>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static ZoneWidth() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); - } - /// <summary> /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public ZoneWidth() { - } - - public ZoneWidth(IEnumerable<Feature> Feature) { - this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, Feature, FeatureXName); - } - - /// <summary> - /// <para> - /// Occurrence: optional, repeating, choice + /// Occurrence: optional, repeating, choice /// </para> /// <para> /// Regular expression: (Feature*) @@ -42667,6 +44594,14 @@ public virtual IList<Feature> Feature { } } + public ZoneWidth(IEnumerable<Feature> Feature) { + this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, Feature, FeatureXName); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42682,6 +44617,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42697,6 +44636,10 @@ public virtual double staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startWidthXName = System.Xml.Linq.XName.Get("startWidth", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42712,6 +44655,10 @@ public virtual double startWidth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endWidthXName = System.Xml.Linq.XName.Get("endWidth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42730,6 +44677,20 @@ public virtual System.Double? endWidth { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneWidth", "http://www.landxml.org/schema/LandXML-1.2"); + + static ZoneWidth() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -42737,6 +44698,13 @@ public virtual System.Double? endWidth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -42757,6 +44725,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class ZoneSlope : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -42770,90 +44746,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ZoneWidth Load(string xmlFile) { - return XTypedServices.Load<ZoneWidth>(xmlFile); - } - - public static ZoneWidth Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ZoneWidth>(xmlFile); - } - - public static ZoneWidth Parse(string xml) { - return XTypedServices.Parse<ZoneWidth>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ZoneWidth>(this); + public static ZoneSlope Load(string xmlFile) { + return XTypedServices.Load<ZoneSlope>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ZoneSlope Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ZoneSlope>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ZoneSlope Parse(string xml) { + return XTypedServices.Parse<ZoneSlope>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class ZoneSlope : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startVertValueXName = System.Xml.Linq.XName.Get("startVertValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startVertTypeXName = System.Xml.Linq.XName.Get("startVertType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endVertValueXName = System.Xml.Linq.XName.Get("endVertValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endVertTypeXName = System.Xml.Linq.XName.Get("endVertType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName parabolicStartStationXName = System.Xml.Linq.XName.Get("parabolicStartStation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName parabolicEndStationXName = System.Xml.Linq.XName.Get("parabolicEndStation", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneSlope", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ZoneSlope(XElement xe) { return XTypedServices.ToXTypedElement<ZoneSlope>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ZoneSlope() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ZoneSlope>(this); } /// <summary> @@ -42864,6 +44772,13 @@ static ZoneSlope() { public ZoneSlope() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -42894,6 +44809,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42909,6 +44828,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42924,6 +44847,10 @@ public virtual double staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startVertValueXName = System.Xml.Linq.XName.Get("startVertValue", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -42942,21 +44869,37 @@ public virtual System.Double? startVertValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startVertTypeXName = System.Xml.Linq.XName.Get("startVertType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string startVertType { + public virtual LandXml.v1_2.zoneVertType? startVertType { get { XAttribute x = this.Attribute(startVertTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.zoneVertType)(Enum.Parse(typeof(LandXml.v1_2.zoneVertType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(startVertTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(startVertTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(startVertTypeXName, value.ToString(), "startVertType", global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endVertValueXName = System.Xml.Linq.XName.Get("endVertValue", ""); + /// <summary> /// <para> /// Occurrence: required @@ -42972,21 +44915,29 @@ public virtual double endVertValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endVertTypeXName = System.Xml.Linq.XName.Get("endVertType", ""); + /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string endVertType { + public virtual LandXml.v1_2.zoneVertType endVertType { get { XAttribute x = this.Attribute(endVertTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return ((LandXml.v1_2.zoneVertType)(Enum.Parse(typeof(LandXml.v1_2.zoneVertType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(endVertTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(endVertTypeXName, value.ToString(), "endVertType", global::LandXml.v1_2.zoneVertTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName parabolicStartStationXName = System.Xml.Linq.XName.Get("parabolicStartStation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -43005,6 +44956,10 @@ public virtual System.Double? parabolicStartStation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName parabolicEndStationXName = System.Xml.Linq.XName.Get("parabolicEndStation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -43023,6 +44978,20 @@ public virtual System.Double? parabolicEndStation { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneSlope", "http://www.landxml.org/schema/LandXML-1.2"); + + static ZoneSlope() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -43030,6 +44999,13 @@ public virtual System.Double? parabolicEndStation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -43050,6 +45026,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*) + /// </para> + /// </summary> + public partial class ZoneHinge : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -43063,74 +45047,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ZoneSlope Load(string xmlFile) { - return XTypedServices.Load<ZoneSlope>(xmlFile); - } - - public static ZoneSlope Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ZoneSlope>(xmlFile); - } - - public static ZoneSlope Parse(string xml) { - return XTypedServices.Parse<ZoneSlope>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ZoneSlope>(this); + public static ZoneHinge Load(string xmlFile) { + return XTypedServices.Load<ZoneHinge>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ZoneHinge Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ZoneHinge>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ZoneHinge Parse(string xml) { + return XTypedServices.Parse<ZoneHinge>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*) - /// </para> - /// </summary> - public partial class ZoneHinge : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hingeTypeXName = System.Xml.Linq.XName.Get("hingeType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zonePriorityRefXName = System.Xml.Linq.XName.Get("zonePriorityRef", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneHinge", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ZoneHinge(XElement xe) { return XTypedServices.ToXTypedElement<ZoneHinge>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ZoneHinge() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ZoneHinge>(this); } /// <summary> @@ -43141,9 +45073,12 @@ static ZoneHinge() { public ZoneHinge() { } - public ZoneHinge(IEnumerable<Feature> Feature) { - this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, Feature, FeatureXName); - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; /// <summary> /// <para> @@ -43175,6 +45110,14 @@ public virtual IList<Feature> Feature { } } + public ZoneHinge(IEnumerable<Feature> Feature) { + this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, Feature, FeatureXName); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43190,6 +45133,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43205,21 +45152,29 @@ public virtual double staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hingeTypeXName = System.Xml.Linq.XName.Get("hingeType", ""); + /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string hingeType { + public virtual LandXml.v1_2.zoneHingeType hingeType { get { XAttribute x = this.Attribute(hingeTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return ((LandXml.v1_2.zoneHingeType)(Enum.Parse(typeof(LandXml.v1_2.zoneHingeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneHingeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(hingeTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(hingeTypeXName, value.ToString(), "hingeType", global::LandXml.v1_2.zoneHingeTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zonePriorityRefXName = System.Xml.Linq.XName.Get("zonePriorityRef", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43235,6 +45190,20 @@ public virtual int zonePriorityRef { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneHinge", "http://www.landxml.org/schema/LandXML-1.2"); + + static ZoneHinge() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -43242,6 +45211,13 @@ public virtual int zonePriorityRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -43262,6 +45238,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class ZoneCutFill : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -43275,74 +45259,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ZoneHinge Load(string xmlFile) { - return XTypedServices.Load<ZoneHinge>(xmlFile); - } - - public static ZoneHinge Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ZoneHinge>(xmlFile); - } - - public static ZoneHinge Parse(string xml) { - return XTypedServices.Parse<ZoneHinge>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ZoneHinge>(this); + public static ZoneCutFill Load(string xmlFile) { + return XTypedServices.Load<ZoneCutFill>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ZoneCutFill Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ZoneCutFill>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ZoneCutFill Parse(string xml) { + return XTypedServices.Parse<ZoneCutFill>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class ZoneCutFill : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName cutSlopeXName = System.Xml.Linq.XName.Get("cutSlope", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fillSlopeXName = System.Xml.Linq.XName.Get("fillSlope", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneCutFill", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ZoneCutFill(XElement xe) { return XTypedServices.ToXTypedElement<ZoneCutFill>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ZoneCutFill() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ZoneCutFill>(this); } /// <summary> @@ -43353,6 +45285,13 @@ static ZoneCutFill() { public ZoneCutFill() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -43383,6 +45322,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43398,6 +45341,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43413,6 +45360,10 @@ public virtual double staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName cutSlopeXName = System.Xml.Linq.XName.Get("cutSlope", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -43431,6 +45382,10 @@ public virtual System.Double? cutSlope { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fillSlopeXName = System.Xml.Linq.XName.Get("fillSlope", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -43449,6 +45404,20 @@ public virtual System.Double? fillSlope { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneCutFill", "http://www.landxml.org/schema/LandXML-1.2"); + + static ZoneCutFill() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -43456,6 +45425,13 @@ public virtual System.Double? fillSlope { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -43476,6 +45452,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class ZoneMaterial : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -43489,70 +45473,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ZoneCutFill Load(string xmlFile) { - return XTypedServices.Load<ZoneCutFill>(xmlFile); - } - - public static ZoneCutFill Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ZoneCutFill>(xmlFile); - } - - public static ZoneCutFill Parse(string xml) { - return XTypedServices.Parse<ZoneCutFill>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ZoneCutFill>(this); + public static ZoneMaterial Load(string xmlFile) { + return XTypedServices.Load<ZoneMaterial>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ZoneMaterial Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ZoneMaterial>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ZoneMaterial Parse(string xml) { + return XTypedServices.Parse<ZoneMaterial>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class ZoneMaterial : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneMaterial", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ZoneMaterial(XElement xe) { return XTypedServices.ToXTypedElement<ZoneMaterial>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ZoneMaterial() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ZoneMaterial>(this); } /// <summary> @@ -43563,6 +45499,13 @@ static ZoneMaterial() { public ZoneMaterial() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -43593,6 +45536,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43608,6 +45555,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43623,29 +45574,54 @@ public virtual double staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName materialXName = System.Xml.Linq.XName.Get("material", ""); + /// <summary> /// <para> /// Occurrence: required /// </para> /// </summary> - public virtual string material { + public virtual LandXml.v1_2.zoneMaterialType material { get { XAttribute x = this.Attribute(materialXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return ((LandXml.v1_2.zoneMaterialType)(Enum.Parse(typeof(LandXml.v1_2.zoneMaterialType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneMaterialTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(materialXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(materialXName, value.ToString(), "material", global::LandXml.v1_2.zoneMaterialTypeValidator.TypeDefinition); } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneMaterial", "http://www.landxml.org/schema/LandXML-1.2"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + static ZoneMaterial() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { return xName; @@ -43665,6 +45641,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (PntList2D, Feature*) + /// </para> + /// </summary> + public partial class ZoneCrossSectStructure : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -43678,127 +45662,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ZoneMaterial Load(string xmlFile) { - return XTypedServices.Load<ZoneMaterial>(xmlFile); - } - - public static ZoneMaterial Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ZoneMaterial>(xmlFile); - } - - public static ZoneMaterial Parse(string xml) { - return XTypedServices.Parse<ZoneMaterial>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ZoneMaterial>(this); + public static ZoneCrossSectStructure Load(string xmlFile) { + return XTypedServices.Load<ZoneCrossSectStructure>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ZoneCrossSectStructure Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ZoneCrossSectStructure>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ZoneCrossSectStructure Parse(string xml) { + return XTypedServices.Parse<ZoneCrossSectStructure>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (PntList2D, Feature*) - /// </para> - /// </summary> - public partial class ZoneCrossSectStructure : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName innerConnectPntXName = System.Xml.Linq.XName.Get("innerConnectPnt", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName outerConnectPntXName = System.Xml.Linq.XName.Get("outerConnectPnt", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetModeXName = System.Xml.Linq.XName.Get("offsetMode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string offsetModeDefaultValue = "zone"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startOffsetXName = System.Xml.Linq.XName.Get("startOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static double startOffsetDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startOffsetElevXName = System.Xml.Linq.XName.Get("startOffsetElev", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static double startOffsetElevDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endOffsetXName = System.Xml.Linq.XName.Get("endOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static double endOffsetDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endOffsetElevXName = System.Xml.Linq.XName.Get("endOffsetElev", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static double endOffsetElevDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName transitionXName = System.Xml.Linq.XName.Get("transition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string transitionDefaultValue = "parallel"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName placementXName = System.Xml.Linq.XName.Get("placement", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string placementDefaultValue = "dependent"; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName catalogReferenceXName = System.Xml.Linq.XName.Get("catalogReference", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneCrossSectStructure", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ZoneCrossSectStructure(XElement xe) { return XTypedServices.ToXTypedElement<ZoneCrossSectStructure>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ZoneCrossSectStructure() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ZoneCrossSectStructure>(this); } /// <summary> @@ -43809,6 +45688,10 @@ static ZoneCrossSectStructure() { public ZoneCrossSectStructure() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PntList2DXName = System.Xml.Linq.XName.Get("PntList2D", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -43827,6 +45710,13 @@ public virtual PntList2D PntList2D { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -43857,6 +45747,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -43865,6 +45759,9 @@ public virtual IList<Feature> Feature { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -43872,6 +45769,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName innerConnectPntXName = System.Xml.Linq.XName.Get("innerConnectPnt", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43887,6 +45788,10 @@ public virtual IList<double> innerConnectPnt { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName outerConnectPntXName = System.Xml.Linq.XName.Get("outerConnectPnt", ""); + /// <summary> /// <para> /// Occurrence: required @@ -43902,6 +45807,13 @@ public virtual IList<double> outerConnectPnt { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName offsetModeXName = System.Xml.Linq.XName.Get("offsetMode", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.zoneOffsetType offsetModeDefaultValue = LandXml.v1_2.zoneOffsetType.zone; + /// <summary> /// <para> /// Occurrence: optional @@ -43910,13 +45822,23 @@ public virtual IList<double> outerConnectPnt { public virtual LandXml.v1_2.zoneOffsetType offsetMode { get { XAttribute x = this.Attribute(offsetModeXName); - return ((LandXml.v1_2.zoneOffsetType)(Enum.Parse(typeof(LandXml.v1_2.zoneOffsetType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, offsetModeDefaultValue)))); + if ((x == null)) { + return offsetModeDefaultValue; + } + return ((LandXml.v1_2.zoneOffsetType)(Enum.Parse(typeof(LandXml.v1_2.zoneOffsetType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneOffsetTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(offsetModeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(offsetModeXName, value.ToString(), "offsetMode", global::LandXml.v1_2.zoneOffsetTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startOffsetXName = System.Xml.Linq.XName.Get("startOffset", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static double startOffsetDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -43925,13 +45847,23 @@ public virtual LandXml.v1_2.zoneOffsetType offsetMode { public virtual double startOffset { get { XAttribute x = this.Attribute(startOffsetXName); - return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype, startOffsetDefaultValue); + if ((x == null)) { + return startOffsetDefaultValue; + } + return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { this.SetAttribute(startOffsetXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startOffsetElevXName = System.Xml.Linq.XName.Get("startOffsetElev", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static double startOffsetElevDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -43940,13 +45872,23 @@ public virtual double startOffset { public virtual double startOffsetElev { get { XAttribute x = this.Attribute(startOffsetElevXName); - return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype, startOffsetElevDefaultValue); + if ((x == null)) { + return startOffsetElevDefaultValue; + } + return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { this.SetAttribute(startOffsetElevXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endOffsetXName = System.Xml.Linq.XName.Get("endOffset", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static double endOffsetDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -43955,13 +45897,23 @@ public virtual double startOffsetElev { public virtual double endOffset { get { XAttribute x = this.Attribute(endOffsetXName); - return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype, endOffsetDefaultValue); + if ((x == null)) { + return endOffsetDefaultValue; + } + return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { this.SetAttribute(endOffsetXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endOffsetElevXName = System.Xml.Linq.XName.Get("endOffsetElev", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static double endOffsetElevDefaultValue = System.Xml.XmlConvert.ToDouble("0.0"); + /// <summary> /// <para> /// Occurrence: optional @@ -43970,13 +45922,23 @@ public virtual double endOffset { public virtual double endOffsetElev { get { XAttribute x = this.Attribute(endOffsetElevXName); - return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype, endOffsetElevDefaultValue); + if ((x == null)) { + return endOffsetElevDefaultValue; + } + return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { this.SetAttribute(endOffsetElevXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName transitionXName = System.Xml.Linq.XName.Get("transition", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.zoneTransitionType transitionDefaultValue = LandXml.v1_2.zoneTransitionType.parallel; + /// <summary> /// <para> /// Occurrence: optional @@ -43985,13 +45947,23 @@ public virtual double endOffsetElev { public virtual LandXml.v1_2.zoneTransitionType transition { get { XAttribute x = this.Attribute(transitionXName); - return ((LandXml.v1_2.zoneTransitionType)(Enum.Parse(typeof(LandXml.v1_2.zoneTransitionType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, transitionDefaultValue)))); + if ((x == null)) { + return transitionDefaultValue; + } + return ((LandXml.v1_2.zoneTransitionType)(Enum.Parse(typeof(LandXml.v1_2.zoneTransitionType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zoneTransitionTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(transitionXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(transitionXName, value.ToString(), "transition", global::LandXml.v1_2.zoneTransitionTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName placementXName = System.Xml.Linq.XName.Get("placement", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LandXml.v1_2.zonePlacementType placementDefaultValue = LandXml.v1_2.zonePlacementType.dependent; + /// <summary> /// <para> /// Occurrence: optional @@ -44000,13 +45972,20 @@ public virtual LandXml.v1_2.zoneTransitionType transition { public virtual LandXml.v1_2.zonePlacementType placement { get { XAttribute x = this.Attribute(placementXName); - return ((LandXml.v1_2.zonePlacementType)(Enum.Parse(typeof(LandXml.v1_2.zonePlacementType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, placementDefaultValue)))); + if ((x == null)) { + return placementDefaultValue; + } + return ((LandXml.v1_2.zonePlacementType)(Enum.Parse(typeof(LandXml.v1_2.zonePlacementType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.zonePlacementTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(placementXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(placementXName, value.ToString(), "placement", global::LandXml.v1_2.zonePlacementTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName catalogReferenceXName = System.Xml.Linq.XName.Get("catalogReference", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44015,6 +45994,9 @@ public virtual LandXml.v1_2.zonePlacementType placement { public virtual System.Uri catalogReference { get { XAttribute x = this.Attribute(catalogReferenceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<System.Uri>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri).Datatype); } set { @@ -44022,6 +46004,21 @@ public virtual System.Uri catalogReference { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ZoneCrossSectStructure", "http://www.landxml.org/schema/LandXML-1.2"); + + static ZoneCrossSectStructure() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PntList2DXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -44029,6 +46026,13 @@ public virtual System.Uri catalogReference { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -44049,6 +46053,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Roadway+ | Intersections* | Feature*) + /// </para> + /// </summary> + public partial class Roadways : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -44062,85 +46074,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ZoneCrossSectStructure Load(string xmlFile) { - return XTypedServices.Load<ZoneCrossSectStructure>(xmlFile); - } - - public static ZoneCrossSectStructure Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ZoneCrossSectStructure>(xmlFile); - } - - public static ZoneCrossSectStructure Parse(string xml) { - return XTypedServices.Parse<ZoneCrossSectStructure>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ZoneCrossSectStructure>(this); + public static Roadways Load(string xmlFile) { + return XTypedServices.Load<Roadways>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(PntList2DXName, typeof(PntList2D)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Roadways Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Roadways>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Roadways Parse(string xml) { + return XTypedServices.Parse<Roadways>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Roadway+ | Intersections* | Feature*) - /// </para> - /// </summary> - public partial class Roadways : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RoadwayXName = System.Xml.Linq.XName.Get("Roadway", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Roadway> RoadwayField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IntersectionsXName = System.Xml.Linq.XName.Get("Intersections", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Intersections> IntersectionsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Roadways", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Roadways(XElement xe) { return XTypedServices.ToXTypedElement<Roadways>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Roadways() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(RoadwayXName), new NamedContentModelEntity(IntersectionsXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Roadways>(this); } /// <summary> @@ -44151,17 +46100,12 @@ static Roadways() { public Roadways() { } - public Roadways(IEnumerable<Roadway> Roadway) { - this.RoadwayField = XTypedList<Roadway>.Initialize(this, LinqToXsdTypeManager.Instance, Roadway, RoadwayXName); - } - - public Roadways(IEnumerable<Intersections> Intersections) { - this.IntersectionsField = XTypedList<Intersections>.Initialize(this, LinqToXsdTypeManager.Instance, Intersections, IntersectionsXName); - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RoadwayXName = System.Xml.Linq.XName.Get("Roadway", "http://www.landxml.org/schema/LandXML-1.2"); - public Roadways(IEnumerable<Feature> Feature) { - this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, Feature, FeatureXName); - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Roadway> RoadwayField; /// <summary> /// <para> @@ -44193,6 +46137,13 @@ public virtual IList<Roadway> Roadway { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IntersectionsXName = System.Xml.Linq.XName.Get("Intersections", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Intersections> IntersectionsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44223,6 +46174,13 @@ public virtual IList<Intersections> Intersections { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44253,6 +46211,22 @@ public virtual IList<Feature> Feature { } } + public Roadways(IEnumerable<Roadway> Roadway) { + this.RoadwayField = XTypedList<Roadway>.Initialize(this, LinqToXsdTypeManager.Instance, Roadway, RoadwayXName); + } + + public Roadways(IEnumerable<Intersections> Intersections) { + this.IntersectionsField = XTypedList<Intersections>.Initialize(this, LinqToXsdTypeManager.Instance, Intersections, IntersectionsXName); + } + + public Roadways(IEnumerable<Feature> Feature) { + this.FeatureField = XTypedList<Feature>.Initialize(this, LinqToXsdTypeManager.Instance, Feature, FeatureXName); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44261,6 +46235,9 @@ public virtual IList<Feature> Feature { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -44268,6 +46245,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44276,6 +46257,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -44283,6 +46267,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44294,13 +46282,34 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Roadways", "http://www.landxml.org/schema/LandXML-1.2"); + + static Roadways() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(RoadwayXName), new NamedContentModelEntity(IntersectionsXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(RoadwayXName, typeof(Roadway)); + localElementDictionary.Add(IntersectionsXName, typeof(Intersections)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -44308,6 +46317,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -44328,6 +46344,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* + /// </para> + /// </summary> + public partial class Roadway : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -44341,236 +46365,113 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Roadways Load(string xmlFile) { - return XTypedServices.Load<Roadways>(xmlFile); + public static Roadway Load(string xmlFile) { + return XTypedServices.Load<Roadway>(xmlFile); } - public static Roadways Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Roadways>(xmlFile); + public static Roadway Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Roadway>(xmlFile); } - public static Roadways Parse(string xml) { - return XTypedServices.Parse<Roadways>(xml); + public static Roadway Parse(string xml) { + return XTypedServices.Parse<Roadway>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Roadways>(this); - } + public static explicit operator Roadway(XElement xe) { return XTypedServices.ToXTypedElement<Roadway>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(RoadwayXName, typeof(Roadway)); - localElementDictionary.Add(IntersectionsXName, typeof(Intersections)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Roadway>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* + /// </para> + /// </summary> + public Roadway() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* - /// </para> - /// </summary> - public partial class Roadway : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ClassificationXName = System.Xml.Linq.XName.Get("Classification", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName ClassificationXName = System.Xml.Linq.XName.Get("Classification", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Classification> ClassificationField; + /// <summary> + /// <para> + /// Occurrence: optional, repeating, choice + /// </para> + /// <para> + /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* + /// </para> + /// </summary> + public virtual IList<Classification> Classification { + get { + if ((this.ClassificationField == null)) { + this.ClassificationField = new XTypedList<Classification>(this, LinqToXsdTypeManager.Instance, ClassificationXName); + } + return this.ClassificationField; + } + set { + if ((value == null)) { + this.ClassificationField = null; + } + else { + if ((this.ClassificationField == null)) { + this.ClassificationField = XTypedList<Classification>.Initialize(this, LinqToXsdTypeManager.Instance, value, ClassificationXName); + } + else { + XTypedServices.SetList<Classification>(this.ClassificationField, value); + } + } + } + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LanesXName = System.Xml.Linq.XName.Get("Lanes", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName LanesXName = System.Xml.Linq.XName.Get("Lanes", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Lanes> LanesField; + /// <summary> + /// <para> + /// Occurrence: optional, repeating, choice + /// </para> + /// <para> + /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* + /// </para> + /// </summary> + public virtual IList<Lanes> Lanes { + get { + if ((this.LanesField == null)) { + this.LanesField = new XTypedList<Lanes>(this, LinqToXsdTypeManager.Instance, LanesXName); + } + return this.LanesField; + } + set { + if ((value == null)) { + this.LanesField = null; + } + else { + if ((this.LanesField == null)) { + this.LanesField = XTypedList<Lanes>.Initialize(this, LinqToXsdTypeManager.Instance, value, LanesXName); + } + else { + XTypedServices.SetList<Lanes>(this.LanesField, value); + } + } + } + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RoadsideXName = System.Xml.Linq.XName.Get("Roadside", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName RoadsideXName = System.Xml.Linq.XName.Get("Roadside", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Roadside> RoadsideField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpeedsXName = System.Xml.Linq.XName.Get("Speeds", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Speeds> SpeedsField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NoPassingZoneXName = System.Xml.Linq.XName.Get("NoPassingZone", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<NoPassingZone> NoPassingZoneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TrafficVolumeXName = System.Xml.Linq.XName.Get("TrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TrafficVolume> TrafficVolumeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CrashDataXName = System.Xml.Linq.XName.Get("CrashData", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CrashData> CrashDataField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DecisionSightDistanceXName = System.Xml.Linq.XName.Get("DecisionSightDistance", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DecisionSightDistance> DecisionSightDistanceField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BridgeElementXName = System.Xml.Linq.XName.Get("BridgeElement", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<BridgeElement> BridgeElementField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PlanFeatureXName = System.Xml.Linq.XName.Get("PlanFeature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PlanFeature> PlanFeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignmentRefsXName = System.Xml.Linq.XName.Get("alignmentRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName surfaceRefsXName = System.Xml.Linq.XName.Get("surfaceRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName gradeModelRefsXName = System.Xml.Linq.XName.Get("gradeModelRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roadTerrainXName = System.Xml.Linq.XName.Get("roadTerrain", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Roadway", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator Roadway(XElement xe) { return XTypedServices.ToXTypedElement<Roadway>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static Roadway() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ClassificationXName), new NamedContentModelEntity(LanesXName), new NamedContentModelEntity(RoadsideXName), new NamedContentModelEntity(SpeedsXName), new NamedContentModelEntity(NoPassingZoneXName), new NamedContentModelEntity(TrafficVolumeXName), new NamedContentModelEntity(CrashDataXName), new NamedContentModelEntity(DecisionSightDistanceXName), new NamedContentModelEntity(BridgeElementXName), new NamedContentModelEntity(PlanFeatureXName), new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* - /// </para> - /// </summary> - public Roadway() { - } - - /// <summary> - /// <para> - /// Occurrence: optional, repeating, choice - /// </para> - /// <para> - /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* - /// </para> - /// </summary> - public virtual IList<Classification> Classification { - get { - if ((this.ClassificationField == null)) { - this.ClassificationField = new XTypedList<Classification>(this, LinqToXsdTypeManager.Instance, ClassificationXName); - } - return this.ClassificationField; - } - set { - if ((value == null)) { - this.ClassificationField = null; - } - else { - if ((this.ClassificationField == null)) { - this.ClassificationField = XTypedList<Classification>.Initialize(this, LinqToXsdTypeManager.Instance, value, ClassificationXName); - } - else { - XTypedServices.SetList<Classification>(this.ClassificationField, value); - } - } - } - } - - /// <summary> - /// <para> - /// Occurrence: optional, repeating, choice - /// </para> - /// <para> - /// Regular expression: (Classification* | Lanes* | Roadside* | Speeds* | NoPassingZone* | TrafficVolume* | CrashData* | DecisionSightDistance* | BridgeElement* | PlanFeature* | Feature*)* - /// </para> - /// </summary> - public virtual IList<Lanes> Lanes { - get { - if ((this.LanesField == null)) { - this.LanesField = new XTypedList<Lanes>(this, LinqToXsdTypeManager.Instance, LanesXName); - } - return this.LanesField; - } - set { - if ((value == null)) { - this.LanesField = null; - } - else { - if ((this.LanesField == null)) { - this.LanesField = XTypedList<Lanes>.Initialize(this, LinqToXsdTypeManager.Instance, value, LanesXName); - } - else { - XTypedServices.SetList<Lanes>(this.LanesField, value); - } - } - } - } - /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44601,6 +46502,13 @@ public virtual IList<Roadside> Roadside { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpeedsXName = System.Xml.Linq.XName.Get("Speeds", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Speeds> SpeedsField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44631,6 +46539,13 @@ public virtual IList<Speeds> Speeds { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NoPassingZoneXName = System.Xml.Linq.XName.Get("NoPassingZone", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<NoPassingZone> NoPassingZoneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44661,6 +46576,13 @@ public virtual IList<NoPassingZone> NoPassingZone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TrafficVolumeXName = System.Xml.Linq.XName.Get("TrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TrafficVolume> TrafficVolumeField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44691,6 +46613,13 @@ public virtual IList<TrafficVolume> TrafficVolume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CrashDataXName = System.Xml.Linq.XName.Get("CrashData", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CrashData> CrashDataField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44721,6 +46650,13 @@ public virtual IList<CrashData> CrashData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DecisionSightDistanceXName = System.Xml.Linq.XName.Get("DecisionSightDistance", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DecisionSightDistance> DecisionSightDistanceField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44751,6 +46687,13 @@ public virtual IList<DecisionSightDistance> DecisionSightDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BridgeElementXName = System.Xml.Linq.XName.Get("BridgeElement", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<BridgeElement> BridgeElementField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44781,6 +46724,13 @@ public virtual IList<BridgeElement> BridgeElement { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PlanFeatureXName = System.Xml.Linq.XName.Get("PlanFeature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PlanFeature> PlanFeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44811,6 +46761,13 @@ public virtual IList<PlanFeature> PlanFeature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -44841,6 +46798,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -44856,6 +46817,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignmentRefsXName = System.Xml.Linq.XName.Get("alignmentRefs", ""); + /// <summary> /// <para> /// Occurrence: required @@ -44871,6 +46836,10 @@ public virtual IList<string> alignmentRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName surfaceRefsXName = System.Xml.Linq.XName.Get("surfaceRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44879,6 +46848,9 @@ public virtual IList<string> alignmentRefs { public virtual IList<string> surfaceRefs { get { XAttribute x = this.Attribute(surfaceRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -44886,6 +46858,10 @@ public virtual IList<string> surfaceRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName gradeModelRefsXName = System.Xml.Linq.XName.Get("gradeModelRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44894,6 +46870,9 @@ public virtual IList<string> surfaceRefs { public virtual IList<string> gradeModelRefs { get { XAttribute x = this.Attribute(gradeModelRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -44901,6 +46880,10 @@ public virtual IList<string> gradeModelRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44919,6 +46902,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44937,6 +46924,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44945,6 +46936,9 @@ public virtual System.Double? staEnd { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -44952,6 +46946,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roadTerrainXName = System.Xml.Linq.XName.Get("roadTerrain", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44963,13 +46961,22 @@ public virtual LandXml.v1_2.roadTerrainType? roadTerrain { if ((x == null)) { return null; } - return ((LandXml.v1_2.roadTerrainType)(Enum.Parse(typeof(LandXml.v1_2.roadTerrainType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.roadTerrainType)(Enum.Parse(typeof(LandXml.v1_2.roadTerrainType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.roadTerrainTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roadTerrainXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roadTerrainXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roadTerrainXName, value.ToString(), "roadTerrain", global::LandXml.v1_2.roadTerrainTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -44981,13 +46988,42 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Roadway", "http://www.landxml.org/schema/LandXML-1.2"); + + static Roadway() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ClassificationXName), new NamedContentModelEntity(LanesXName), new NamedContentModelEntity(RoadsideXName), new NamedContentModelEntity(SpeedsXName), new NamedContentModelEntity(NoPassingZoneXName), new NamedContentModelEntity(TrafficVolumeXName), new NamedContentModelEntity(CrashDataXName), new NamedContentModelEntity(DecisionSightDistanceXName), new NamedContentModelEntity(BridgeElementXName), new NamedContentModelEntity(PlanFeatureXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ClassificationXName, typeof(Classification)); + localElementDictionary.Add(LanesXName, typeof(Lanes)); + localElementDictionary.Add(RoadsideXName, typeof(Roadside)); + localElementDictionary.Add(SpeedsXName, typeof(Speeds)); + localElementDictionary.Add(NoPassingZoneXName, typeof(NoPassingZone)); + localElementDictionary.Add(TrafficVolumeXName, typeof(TrafficVolume)); + localElementDictionary.Add(CrashDataXName, typeof(CrashData)); + localElementDictionary.Add(DecisionSightDistanceXName, typeof(DecisionSightDistance)); + localElementDictionary.Add(BridgeElementXName, typeof(BridgeElement)); + localElementDictionary.Add(PlanFeatureXName, typeof(PlanFeature)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -44995,6 +47031,13 @@ public virtual LandXml.v1_2.stateType? state { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -45015,6 +47058,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class Classification : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -45028,80 +47079,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Roadway Load(string xmlFile) { - return XTypedServices.Load<Roadway>(xmlFile); - } - - public static Roadway Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Roadway>(xmlFile); - } - - public static Roadway Parse(string xml) { - return XTypedServices.Parse<Roadway>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Roadway>(this); + public static Classification Load(string xmlFile) { + return XTypedServices.Load<Classification>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ClassificationXName, typeof(Classification)); - localElementDictionary.Add(LanesXName, typeof(Lanes)); - localElementDictionary.Add(RoadsideXName, typeof(Roadside)); - localElementDictionary.Add(SpeedsXName, typeof(Speeds)); - localElementDictionary.Add(NoPassingZoneXName, typeof(NoPassingZone)); - localElementDictionary.Add(TrafficVolumeXName, typeof(TrafficVolume)); - localElementDictionary.Add(CrashDataXName, typeof(CrashData)); - localElementDictionary.Add(DecisionSightDistanceXName, typeof(DecisionSightDistance)); - localElementDictionary.Add(BridgeElementXName, typeof(BridgeElement)); - localElementDictionary.Add(PlanFeatureXName, typeof(PlanFeature)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Classification Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Classification>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Classification Parse(string xml) { + return XTypedServices.Parse<Classification>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class Classification : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName functionalClassXName = System.Xml.Linq.XName.Get("functionalClass", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Classification", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Classification(XElement xe) { return XTypedServices.ToXTypedElement<Classification>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Classification() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Classification>(this); } /// <summary> @@ -45112,6 +47105,13 @@ static Classification() { public Classification() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -45142,6 +47142,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45160,6 +47164,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45178,21 +47186,47 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName functionalClassXName = System.Xml.Linq.XName.Get("functionalClass", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string functionalClass { + public virtual LandXml.v1_2.functionalClassType? functionalClass { get { XAttribute x = this.Attribute(functionalClassXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.functionalClassType)(Enum.Parse(typeof(LandXml.v1_2.functionalClassType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.functionalClassTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(functionalClassXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(functionalClassXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(functionalClassXName, value.ToString(), "functionalClass", global::LandXml.v1_2.functionalClassTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Classification", "http://www.landxml.org/schema/LandXML-1.2"); + + static Classification() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -45200,6 +47234,13 @@ public virtual string functionalClass { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -45220,6 +47261,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class DesignSpeed : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -45233,70 +47282,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Classification Load(string xmlFile) { - return XTypedServices.Load<Classification>(xmlFile); - } - - public static Classification Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Classification>(xmlFile); - } - - public static Classification Parse(string xml) { - return XTypedServices.Parse<Classification>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Classification>(this); + public static DesignSpeed Load(string xmlFile) { + return XTypedServices.Load<DesignSpeed>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static DesignSpeed Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DesignSpeed>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DesignSpeed Parse(string xml) { + return XTypedServices.Parse<DesignSpeed>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class DesignSpeed : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignSpeed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DesignSpeed(XElement xe) { return XTypedServices.ToXTypedElement<DesignSpeed>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DesignSpeed() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DesignSpeed>(this); } /// <summary> @@ -45307,6 +47308,13 @@ static DesignSpeed() { public DesignSpeed() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -45337,6 +47345,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45355,6 +47367,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45373,6 +47389,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45391,6 +47411,20 @@ public virtual System.Double? speed { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignSpeed", "http://www.landxml.org/schema/LandXML-1.2"); + + static DesignSpeed() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -45398,6 +47432,13 @@ public virtual System.Double? speed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -45418,6 +47459,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class DesignSpeed85th : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -45431,74 +47480,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DesignSpeed Load(string xmlFile) { - return XTypedServices.Load<DesignSpeed>(xmlFile); - } - - public static DesignSpeed Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DesignSpeed>(xmlFile); - } - - public static DesignSpeed Parse(string xml) { - return XTypedServices.Parse<DesignSpeed>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DesignSpeed>(this); + public static DesignSpeed85th Load(string xmlFile) { + return XTypedServices.Load<DesignSpeed85th>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static DesignSpeed85th Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DesignSpeed85th>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DesignSpeed85th Parse(string xml) { + return XTypedServices.Parse<DesignSpeed85th>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class DesignSpeed85th : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignSpeed85th", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DesignSpeed85th(XElement xe) { return XTypedServices.ToXTypedElement<DesignSpeed85th>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DesignSpeed85th() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DesignSpeed85th>(this); } /// <summary> @@ -45509,6 +47506,13 @@ static DesignSpeed85th() { public DesignSpeed85th() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -45539,6 +47543,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45557,6 +47565,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45575,6 +47587,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45586,13 +47602,22 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -45611,6 +47636,20 @@ public virtual System.Double? speed { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignSpeed85th", "http://www.landxml.org/schema/LandXML-1.2"); + + static DesignSpeed85th() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -45618,6 +47657,13 @@ public virtual System.Double? speed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -45638,6 +47684,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (DesignSpeed+ | DesignSpeed85th+ | PostedSpeed* | Feature*)* + /// </para> + /// </summary> + public partial class Speeds : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -45651,79 +47705,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DesignSpeed85th Load(string xmlFile) { - return XTypedServices.Load<DesignSpeed85th>(xmlFile); - } - - public static DesignSpeed85th Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DesignSpeed85th>(xmlFile); - } - - public static DesignSpeed85th Parse(string xml) { - return XTypedServices.Parse<DesignSpeed85th>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DesignSpeed85th>(this); + public static Speeds Load(string xmlFile) { + return XTypedServices.Load<Speeds>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Speeds Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Speeds>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Speeds Parse(string xml) { + return XTypedServices.Parse<Speeds>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (DesignSpeed+ | DesignSpeed85th+ | PostedSpeed* | Feature*)* - /// </para> - /// </summary> - public partial class Speeds : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DesignSpeedXName = System.Xml.Linq.XName.Get("DesignSpeed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DesignSpeed> DesignSpeedField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DesignSpeed85thXName = System.Xml.Linq.XName.Get("DesignSpeed85th", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DesignSpeed85th> DesignSpeed85thField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PostedSpeedXName = System.Xml.Linq.XName.Get("PostedSpeed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PostedSpeed> PostedSpeedField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Speeds", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Speeds(XElement xe) { return XTypedServices.ToXTypedElement<Speeds>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Speeds() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(DesignSpeedXName), new NamedContentModelEntity(DesignSpeed85thXName), new NamedContentModelEntity(PostedSpeedXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Speeds>(this); } /// <summary> @@ -45734,6 +47731,13 @@ static Speeds() { public Speeds() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DesignSpeedXName = System.Xml.Linq.XName.Get("DesignSpeed", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DesignSpeed> DesignSpeedField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -45764,6 +47768,13 @@ public virtual IList<DesignSpeed> DesignSpeed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DesignSpeed85thXName = System.Xml.Linq.XName.Get("DesignSpeed85th", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DesignSpeed85th> DesignSpeed85thField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -45794,6 +47805,13 @@ public virtual IList<DesignSpeed85th> DesignSpeed85th { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PostedSpeedXName = System.Xml.Linq.XName.Get("PostedSpeed", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PostedSpeed> PostedSpeedField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -45824,6 +47842,13 @@ public virtual IList<PostedSpeed> PostedSpeed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -45854,6 +47879,23 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Speeds", "http://www.landxml.org/schema/LandXML-1.2"); + + static Speeds() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(DesignSpeedXName), new NamedContentModelEntity(DesignSpeed85thXName), new NamedContentModelEntity(PostedSpeedXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DesignSpeedXName, typeof(DesignSpeed)); + localElementDictionary.Add(DesignSpeed85thXName, typeof(DesignSpeed85th)); + localElementDictionary.Add(PostedSpeedXName, typeof(PostedSpeed)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -45861,6 +47903,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -45881,6 +47930,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class DailyTrafficVolume : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -45894,81 +47951,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Speeds Load(string xmlFile) { - return XTypedServices.Load<Speeds>(xmlFile); - } - - public static Speeds Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Speeds>(xmlFile); - } - - public static Speeds Parse(string xml) { - return XTypedServices.Parse<Speeds>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Speeds>(this); + public static DailyTrafficVolume Load(string xmlFile) { + return XTypedServices.Load<DailyTrafficVolume>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(DesignSpeedXName, typeof(DesignSpeed)); - localElementDictionary.Add(DesignSpeed85thXName, typeof(DesignSpeed85th)); - localElementDictionary.Add(PostedSpeedXName, typeof(PostedSpeed)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static DailyTrafficVolume Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DailyTrafficVolume>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DailyTrafficVolume Parse(string xml) { + return XTypedServices.Parse<DailyTrafficVolume>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class DailyTrafficVolume : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ADTXName = System.Xml.Linq.XName.Get("ADT", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName yearXName = System.Xml.Linq.XName.Get("year", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName escFactorXName = System.Xml.Linq.XName.Get("escFactor", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DailyTrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DailyTrafficVolume(XElement xe) { return XTypedServices.ToXTypedElement<DailyTrafficVolume>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DailyTrafficVolume() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DailyTrafficVolume>(this); } /// <summary> @@ -45979,6 +47977,13 @@ static DailyTrafficVolume() { public DailyTrafficVolume() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -46009,6 +48014,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46027,6 +48036,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46045,6 +48058,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ADTXName = System.Xml.Linq.XName.Get("ADT", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46063,6 +48080,10 @@ public virtual System.Double? ADT { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName yearXName = System.Xml.Linq.XName.Get("year", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46081,6 +48102,10 @@ public virtual System.DateTime? year { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName escFactorXName = System.Xml.Linq.XName.Get("escFactor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46099,6 +48124,20 @@ public virtual System.Double? escFactor { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DailyTrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); + + static DailyTrafficVolume() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -46106,6 +48145,13 @@ public virtual System.Double? escFactor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -46126,6 +48172,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class DesignHour : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -46139,70 +48193,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DailyTrafficVolume Load(string xmlFile) { - return XTypedServices.Load<DailyTrafficVolume>(xmlFile); - } - - public static DailyTrafficVolume Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DailyTrafficVolume>(xmlFile); - } - - public static DailyTrafficVolume Parse(string xml) { - return XTypedServices.Parse<DailyTrafficVolume>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DailyTrafficVolume>(this); + public static DesignHour Load(string xmlFile) { + return XTypedServices.Load<DesignHour>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static DesignHour Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DesignHour>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DesignHour Parse(string xml) { + return XTypedServices.Parse<DesignHour>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class DesignHour : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignHour", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DesignHour(XElement xe) { return XTypedServices.ToXTypedElement<DesignHour>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DesignHour() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DesignHour>(this); } /// <summary> @@ -46213,6 +48219,13 @@ static DesignHour() { public DesignHour() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -46243,6 +48256,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46261,6 +48278,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46279,6 +48300,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46297,6 +48322,20 @@ public virtual System.Double? volume { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DesignHour", "http://www.landxml.org/schema/LandXML-1.2"); + + static DesignHour() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -46304,6 +48343,13 @@ public virtual System.Double? volume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -46324,6 +48370,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class PeakHour : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -46337,84 +48391,39 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DesignHour Load(string xmlFile) { - return XTypedServices.Load<DesignHour>(xmlFile); + public static PeakHour Load(string xmlFile) { + return XTypedServices.Load<PeakHour>(xmlFile); } - public static DesignHour Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DesignHour>(xmlFile); + public static PeakHour Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PeakHour>(xmlFile); } - public static DesignHour Parse(string xml) { - return XTypedServices.Parse<DesignHour>(xml); + public static PeakHour Parse(string xml) { + return XTypedServices.Parse<PeakHour>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DesignHour>(this); - } + public static explicit operator PeakHour(XElement xe) { return XTypedServices.ToXTypedElement<PeakHour>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PeakHour>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public PeakHour() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class PeakHour : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Feature> FeatureField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PeakHour", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator PeakHour(XElement xe) { return XTypedServices.ToXTypedElement<PeakHour>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static PeakHour() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public PeakHour() { - } - /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -46445,6 +48454,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46463,6 +48476,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46481,6 +48498,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46492,13 +48513,22 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName volumeXName = System.Xml.Linq.XName.Get("volume", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -46517,6 +48547,20 @@ public virtual System.Double? volume { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PeakHour", "http://www.landxml.org/schema/LandXML-1.2"); + + static PeakHour() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -46524,6 +48568,13 @@ public virtual System.Double? volume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -46544,6 +48595,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (DailyTrafficVolume | DesignHour | PeakHour | Feature*)+ + /// </para> + /// </summary> + public partial class TrafficVolume : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -46557,79 +48616,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PeakHour Load(string xmlFile) { - return XTypedServices.Load<PeakHour>(xmlFile); - } - - public static PeakHour Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PeakHour>(xmlFile); - } - - public static PeakHour Parse(string xml) { - return XTypedServices.Parse<PeakHour>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PeakHour>(this); + public static TrafficVolume Load(string xmlFile) { + return XTypedServices.Load<TrafficVolume>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static TrafficVolume Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TrafficVolume>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static TrafficVolume Parse(string xml) { + return XTypedServices.Parse<TrafficVolume>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (DailyTrafficVolume | DesignHour | PeakHour | Feature*)+ - /// </para> - /// </summary> - public partial class TrafficVolume : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DailyTrafficVolumeXName = System.Xml.Linq.XName.Get("DailyTrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DailyTrafficVolume> DailyTrafficVolumeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DesignHourXName = System.Xml.Linq.XName.Get("DesignHour", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DesignHour> DesignHourField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PeakHourXName = System.Xml.Linq.XName.Get("PeakHour", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PeakHour> PeakHourField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator TrafficVolume(XElement xe) { return XTypedServices.ToXTypedElement<TrafficVolume>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TrafficVolume() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(DailyTrafficVolumeXName), new NamedContentModelEntity(DesignHourXName), new NamedContentModelEntity(PeakHourXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TrafficVolume>(this); } /// <summary> @@ -46640,6 +48642,13 @@ static TrafficVolume() { public TrafficVolume() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DailyTrafficVolumeXName = System.Xml.Linq.XName.Get("DailyTrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DailyTrafficVolume> DailyTrafficVolumeField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -46670,6 +48679,13 @@ public virtual IList<DailyTrafficVolume> DailyTrafficVolume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DesignHourXName = System.Xml.Linq.XName.Get("DesignHour", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DesignHour> DesignHourField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -46700,6 +48716,13 @@ public virtual IList<DesignHour> DesignHour { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PeakHourXName = System.Xml.Linq.XName.Get("PeakHour", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PeakHour> PeakHourField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -46730,6 +48753,13 @@ public virtual IList<PeakHour> PeakHour { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -46760,6 +48790,23 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TrafficVolume", "http://www.landxml.org/schema/LandXML-1.2"); + + static TrafficVolume() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(DailyTrafficVolumeXName), new NamedContentModelEntity(DesignHourXName), new NamedContentModelEntity(PeakHourXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DailyTrafficVolumeXName, typeof(DailyTrafficVolume)); + localElementDictionary.Add(DesignHourXName, typeof(DesignHour)); + localElementDictionary.Add(PeakHourXName, typeof(PeakHour)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -46767,6 +48814,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -46787,6 +48841,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (BeginRunoutSta* | BeginRunoffSta* | FullSuperSta* | FullSuperelev+ | RunoffSta* | StartofRunoutSta* | EndofRunoutSta* | AdverseSE* | Feature*)+ + /// </para> + /// </summary> + public partial class Superelevation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -46800,125 +48862,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TrafficVolume Load(string xmlFile) { - return XTypedServices.Load<TrafficVolume>(xmlFile); - } - - public static TrafficVolume Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TrafficVolume>(xmlFile); - } - - public static TrafficVolume Parse(string xml) { - return XTypedServices.Parse<TrafficVolume>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TrafficVolume>(this); + public static Superelevation Load(string xmlFile) { + return XTypedServices.Load<Superelevation>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(DailyTrafficVolumeXName, typeof(DailyTrafficVolume)); - localElementDictionary.Add(DesignHourXName, typeof(DesignHour)); - localElementDictionary.Add(PeakHourXName, typeof(PeakHour)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Superelevation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Superelevation>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Superelevation Parse(string xml) { + return XTypedServices.Parse<Superelevation>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (BeginRunoutSta* | BeginRunoffSta* | FullSuperSta* | FullSuperelev+ | RunoffSta* | StartofRunoutSta* | EndofRunoutSta* | AdverseSE* | Feature*)+ - /// </para> - /// </summary> - public partial class Superelevation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BeginRunoutStaXName = System.Xml.Linq.XName.Get("BeginRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<BeginRunoutSta> BeginRunoutStaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BeginRunoffStaXName = System.Xml.Linq.XName.Get("BeginRunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<BeginRunoffSta> BeginRunoffStaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FullSuperStaXName = System.Xml.Linq.XName.Get("FullSuperSta", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<FullSuperSta> FullSuperStaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FullSuperelevXName = System.Xml.Linq.XName.Get("FullSuperelev", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<FullSuperelev> FullSuperelevField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RunoffStaXName = System.Xml.Linq.XName.Get("RunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<RunoffSta> RunoffStaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StartofRunoutStaXName = System.Xml.Linq.XName.Get("StartofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<StartofRunoutSta> StartofRunoutStaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EndofRunoutStaXName = System.Xml.Linq.XName.Get("EndofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<EndofRunoutSta> EndofRunoutStaField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AdverseSEXName = System.Xml.Linq.XName.Get("AdverseSE", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<AdverseSE> AdverseSEField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Superelevation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Superelevation(XElement xe) { return XTypedServices.ToXTypedElement<Superelevation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Superelevation() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(BeginRunoutStaXName), new NamedContentModelEntity(BeginRunoffStaXName), new NamedContentModelEntity(FullSuperStaXName), new NamedContentModelEntity(FullSuperelevXName), new NamedContentModelEntity(RunoffStaXName), new NamedContentModelEntity(StartofRunoutStaXName), new NamedContentModelEntity(EndofRunoutStaXName), new NamedContentModelEntity(AdverseSEXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Superelevation>(this); } /// <summary> @@ -46929,6 +48888,13 @@ static Superelevation() { public Superelevation() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BeginRunoutStaXName = System.Xml.Linq.XName.Get("BeginRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<BeginRunoutSta> BeginRunoutStaField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -46959,6 +48925,13 @@ public virtual IList<BeginRunoutSta> BeginRunoutSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BeginRunoffStaXName = System.Xml.Linq.XName.Get("BeginRunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<BeginRunoffSta> BeginRunoffStaField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -46989,6 +48962,13 @@ public virtual IList<BeginRunoffSta> BeginRunoffSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FullSuperStaXName = System.Xml.Linq.XName.Get("FullSuperSta", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<FullSuperSta> FullSuperStaField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47019,6 +48999,13 @@ public virtual IList<FullSuperSta> FullSuperSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FullSuperelevXName = System.Xml.Linq.XName.Get("FullSuperelev", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<FullSuperelev> FullSuperelevField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -47049,6 +49036,13 @@ public virtual IList<FullSuperelev> FullSuperelev { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RunoffStaXName = System.Xml.Linq.XName.Get("RunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<RunoffSta> RunoffStaField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47079,6 +49073,13 @@ public virtual IList<RunoffSta> RunoffSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StartofRunoutStaXName = System.Xml.Linq.XName.Get("StartofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<StartofRunoutSta> StartofRunoutStaField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47109,6 +49110,13 @@ public virtual IList<StartofRunoutSta> StartofRunoutSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EndofRunoutStaXName = System.Xml.Linq.XName.Get("EndofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<EndofRunoutSta> EndofRunoutStaField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47139,6 +49147,13 @@ public virtual IList<EndofRunoutSta> EndofRunoutSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AdverseSEXName = System.Xml.Linq.XName.Get("AdverseSE", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<AdverseSE> AdverseSEField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47147,12 +49162,12 @@ public virtual IList<EndofRunoutSta> EndofRunoutSta { /// Regular expression: (BeginRunoutSta* | BeginRunoffSta* | FullSuperSta* | FullSuperelev+ | RunoffSta* | StartofRunoutSta* | EndofRunoutSta* | AdverseSE* | Feature*)+ /// </para> /// </summary> - public virtual IList<AdverseSE> AdverseSE { + public virtual IList<LandXml.v1_2.adverseSEType> AdverseSE { get { if ((this.AdverseSEField == null)) { this.AdverseSEField = new XSimpleList<AdverseSE>(this, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, AdverseSEXName); } - return this.AdverseSEField; + return this.AdverseSEField.Select(item => (LandXml.v1_2.adverseSEType) Enum.Parse(typeof(LandXml.v1_2.adverseSEType), item)).ToList(); } set { if ((value == null)) { @@ -47160,15 +49175,22 @@ public virtual IList<AdverseSE> AdverseSE { } else { if ((this.AdverseSEField == null)) { - this.AdverseSEField = XSimpleList<AdverseSE>.Initialize(this, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, value, AdverseSEXName); + this.AdverseSEField = XSimpleList<AdverseSE>.Initialize(this, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, value.Select(item => item.ToString()), AdverseSEXName); } else { - XTypedServices.SetList<AdverseSE>(this.AdverseSEField, value); + XTypedServices.SetList<AdverseSE>(this.AdverseSEField, value.Select(item => item.ToString()).ToList()); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47199,6 +49221,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -47217,6 +49243,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -47235,6 +49265,28 @@ public virtual System.Double? staEnd { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Superelevation", "http://www.landxml.org/schema/LandXML-1.2"); + + static Superelevation() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(BeginRunoutStaXName), new NamedContentModelEntity(BeginRunoffStaXName), new NamedContentModelEntity(FullSuperStaXName), new NamedContentModelEntity(FullSuperelevXName), new NamedContentModelEntity(RunoffStaXName), new NamedContentModelEntity(StartofRunoutStaXName), new NamedContentModelEntity(EndofRunoutStaXName), new NamedContentModelEntity(AdverseSEXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(BeginRunoutStaXName, typeof(BeginRunoutSta)); + localElementDictionary.Add(BeginRunoffStaXName, typeof(BeginRunoffSta)); + localElementDictionary.Add(FullSuperStaXName, typeof(FullSuperSta)); + localElementDictionary.Add(FullSuperelevXName, typeof(FullSuperelev)); + localElementDictionary.Add(RunoffStaXName, typeof(RunoffSta)); + localElementDictionary.Add(StartofRunoutStaXName, typeof(StartofRunoutSta)); + localElementDictionary.Add(EndofRunoutStaXName, typeof(EndofRunoutSta)); + localElementDictionary.Add(AdverseSEXName, typeof(AdverseSE)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -47242,6 +49294,13 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -47262,6 +49321,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (ThruLane* | PassingLane* | TurnLane* | TwoWayLeftTurnLane* | ClimbLane* | OffsetLane* | WideningLane* | Feature*)* + /// </para> + /// </summary> + public partial class Lanes : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -47275,115 +49342,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Superelevation Load(string xmlFile) { - return XTypedServices.Load<Superelevation>(xmlFile); - } - - public static Superelevation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Superelevation>(xmlFile); - } - - public static Superelevation Parse(string xml) { - return XTypedServices.Parse<Superelevation>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Superelevation>(this); + public static Lanes Load(string xmlFile) { + return XTypedServices.Load<Lanes>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(BeginRunoutStaXName, typeof(BeginRunoutSta)); - localElementDictionary.Add(BeginRunoffStaXName, typeof(BeginRunoffSta)); - localElementDictionary.Add(FullSuperStaXName, typeof(FullSuperSta)); - localElementDictionary.Add(FullSuperelevXName, typeof(FullSuperelev)); - localElementDictionary.Add(RunoffStaXName, typeof(RunoffSta)); - localElementDictionary.Add(StartofRunoutStaXName, typeof(StartofRunoutSta)); - localElementDictionary.Add(EndofRunoutStaXName, typeof(EndofRunoutSta)); - localElementDictionary.Add(AdverseSEXName, typeof(AdverseSE)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Lanes Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Lanes>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Lanes Parse(string xml) { + return XTypedServices.Parse<Lanes>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (ThruLane* | PassingLane* | TurnLane* | TwoWayLeftTurnLane* | ClimbLane* | OffsetLane* | WideningLane* | Feature*)* - /// </para> - /// </summary> - public partial class Lanes : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ThruLaneXName = System.Xml.Linq.XName.Get("ThruLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ThruLane> ThruLaneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PassingLaneXName = System.Xml.Linq.XName.Get("PassingLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PassingLane> PassingLaneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TurnLaneXName = System.Xml.Linq.XName.Get("TurnLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TurnLane> TurnLaneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TwoWayLeftTurnLaneXName = System.Xml.Linq.XName.Get("TwoWayLeftTurnLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TwoWayLeftTurnLane> TwoWayLeftTurnLaneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ClimbLaneXName = System.Xml.Linq.XName.Get("ClimbLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ClimbLane> ClimbLaneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetLaneXName = System.Xml.Linq.XName.Get("OffsetLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OffsetLane> OffsetLaneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WideningLaneXName = System.Xml.Linq.XName.Get("WideningLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<WideningLane> WideningLaneField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Lanes", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Lanes(XElement xe) { return XTypedServices.ToXTypedElement<Lanes>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Lanes() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ThruLaneXName), new NamedContentModelEntity(PassingLaneXName), new NamedContentModelEntity(TurnLaneXName), new NamedContentModelEntity(TwoWayLeftTurnLaneXName), new NamedContentModelEntity(ClimbLaneXName), new NamedContentModelEntity(OffsetLaneXName), new NamedContentModelEntity(WideningLaneXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Lanes>(this); } /// <summary> @@ -47394,6 +49368,13 @@ static Lanes() { public Lanes() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ThruLaneXName = System.Xml.Linq.XName.Get("ThruLane", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ThruLane> ThruLaneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47424,6 +49405,13 @@ public virtual IList<ThruLane> ThruLane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PassingLaneXName = System.Xml.Linq.XName.Get("PassingLane", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PassingLane> PassingLaneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47454,6 +49442,13 @@ public virtual IList<PassingLane> PassingLane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TurnLaneXName = System.Xml.Linq.XName.Get("TurnLane", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TurnLane> TurnLaneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47484,6 +49479,13 @@ public virtual IList<TurnLane> TurnLane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TwoWayLeftTurnLaneXName = System.Xml.Linq.XName.Get("TwoWayLeftTurnLane", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TwoWayLeftTurnLane> TwoWayLeftTurnLaneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47514,6 +49516,13 @@ public virtual IList<TwoWayLeftTurnLane> TwoWayLeftTurnLane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ClimbLaneXName = System.Xml.Linq.XName.Get("ClimbLane", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ClimbLane> ClimbLaneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47544,6 +49553,13 @@ public virtual IList<ClimbLane> ClimbLane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetLaneXName = System.Xml.Linq.XName.Get("OffsetLane", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OffsetLane> OffsetLaneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47574,6 +49590,13 @@ public virtual IList<OffsetLane> OffsetLane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WideningLaneXName = System.Xml.Linq.XName.Get("WideningLane", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<WideningLane> WideningLaneField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47604,6 +49627,13 @@ public virtual IList<WideningLane> WideningLane { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47634,6 +49664,27 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Lanes", "http://www.landxml.org/schema/LandXML-1.2"); + + static Lanes() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ThruLaneXName), new NamedContentModelEntity(PassingLaneXName), new NamedContentModelEntity(TurnLaneXName), new NamedContentModelEntity(TwoWayLeftTurnLaneXName), new NamedContentModelEntity(ClimbLaneXName), new NamedContentModelEntity(OffsetLaneXName), new NamedContentModelEntity(WideningLaneXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ThruLaneXName, typeof(ThruLane)); + localElementDictionary.Add(PassingLaneXName, typeof(PassingLane)); + localElementDictionary.Add(TurnLaneXName, typeof(TurnLane)); + localElementDictionary.Add(TwoWayLeftTurnLaneXName, typeof(TwoWayLeftTurnLane)); + localElementDictionary.Add(ClimbLaneXName, typeof(ClimbLane)); + localElementDictionary.Add(OffsetLaneXName, typeof(OffsetLane)); + localElementDictionary.Add(WideningLaneXName, typeof(WideningLane)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -47641,6 +49692,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -47661,6 +49719,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class ThruLane : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -47674,81 +49740,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Lanes Load(string xmlFile) { - return XTypedServices.Load<Lanes>(xmlFile); - } - - public static Lanes Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Lanes>(xmlFile); - } - - public static Lanes Parse(string xml) { - return XTypedServices.Parse<Lanes>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Lanes>(this); + public static ThruLane Load(string xmlFile) { + return XTypedServices.Load<ThruLane>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ThruLaneXName, typeof(ThruLane)); - localElementDictionary.Add(PassingLaneXName, typeof(PassingLane)); - localElementDictionary.Add(TurnLaneXName, typeof(TurnLane)); - localElementDictionary.Add(TwoWayLeftTurnLaneXName, typeof(TwoWayLeftTurnLane)); - localElementDictionary.Add(ClimbLaneXName, typeof(ClimbLane)); - localElementDictionary.Add(OffsetLaneXName, typeof(OffsetLane)); - localElementDictionary.Add(WideningLaneXName, typeof(WideningLane)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ThruLane Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ThruLane>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ThruLane Parse(string xml) { + return XTypedServices.Parse<ThruLane>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class ThruLane : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ThruLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ThruLane(XElement xe) { return XTypedServices.ToXTypedElement<ThruLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ThruLane() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ThruLane>(this); } /// <summary> @@ -47759,6 +49766,13 @@ static ThruLane() { public ThruLane() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -47789,6 +49803,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -47807,6 +49825,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -47825,6 +49847,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -47843,6 +49869,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -47854,13 +49884,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ThruLane", "http://www.landxml.org/schema/LandXML-1.2"); + + static ThruLane() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -47868,6 +49917,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -47888,6 +49944,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class PassingLane : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -47901,82 +49965,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ThruLane Load(string xmlFile) { - return XTypedServices.Load<ThruLane>(xmlFile); - } - - public static ThruLane Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ThruLane>(xmlFile); - } - - public static ThruLane Parse(string xml) { - return XTypedServices.Parse<ThruLane>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ThruLane>(this); + public static PassingLane Load(string xmlFile) { + return XTypedServices.Load<PassingLane>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static PassingLane Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PassingLane>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static PassingLane Parse(string xml) { + return XTypedServices.Parse<PassingLane>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class PassingLane : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PassingLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator PassingLane(XElement xe) { return XTypedServices.ToXTypedElement<PassingLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PassingLane() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PassingLane>(this); } /// <summary> @@ -47987,6 +49991,13 @@ static PassingLane() { public PassingLane() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -48017,6 +50028,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48035,6 +50050,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48053,6 +50072,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48071,6 +50094,10 @@ public virtual System.Double? beginFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48089,6 +50116,10 @@ public virtual System.Double? endFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48107,6 +50138,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48118,13 +50153,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PassingLane", "http://www.landxml.org/schema/LandXML-1.2"); + + static PassingLane() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -48132,6 +50186,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -48152,6 +50213,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class TurnLane : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -48165,90 +50234,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PassingLane Load(string xmlFile) { - return XTypedServices.Load<PassingLane>(xmlFile); - } - - public static PassingLane Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PassingLane>(xmlFile); - } - - public static PassingLane Parse(string xml) { - return XTypedServices.Parse<PassingLane>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PassingLane>(this); + public static TurnLane Load(string xmlFile) { + return XTypedServices.Load<TurnLane>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static TurnLane Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TurnLane>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static TurnLane Parse(string xml) { + return XTypedServices.Parse<TurnLane>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class TurnLane : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName taperTypeXName = System.Xml.Linq.XName.Get("taperType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName taperTangentLengthXName = System.Xml.Linq.XName.Get("taperTangentLength", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TurnLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator TurnLane(XElement xe) { return XTypedServices.ToXTypedElement<TurnLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TurnLane() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TurnLane>(this); } /// <summary> @@ -48259,6 +50260,13 @@ static TurnLane() { public TurnLane() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -48289,6 +50297,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48307,6 +50319,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48325,6 +50341,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48343,6 +50363,10 @@ public virtual System.Double? beginFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48361,6 +50385,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48372,13 +50400,22 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48390,28 +50427,49 @@ public virtual LandXml.v1_2.turnLaneType? type { if ((x == null)) { return null; } - return ((LandXml.v1_2.turnLaneType)(Enum.Parse(typeof(LandXml.v1_2.turnLaneType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.turnLaneType)(Enum.Parse(typeof(LandXml.v1_2.turnLaneType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.turnLaneTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::LandXml.v1_2.turnLaneTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName taperTypeXName = System.Xml.Linq.XName.Get("taperType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string taperType { + public virtual LandXml.v1_2.laneTaperType? taperType { get { XAttribute x = this.Attribute(taperTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.laneTaperType)(Enum.Parse(typeof(LandXml.v1_2.laneTaperType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.laneTaperTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(taperTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(taperTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(taperTypeXName, value.ToString(), "taperType", global::LandXml.v1_2.laneTaperTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName taperTangentLengthXName = System.Xml.Linq.XName.Get("taperTangentLength", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48430,6 +50488,20 @@ public virtual System.Double? taperTangentLength { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TurnLane", "http://www.landxml.org/schema/LandXML-1.2"); + + static TurnLane() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -48437,6 +50509,13 @@ public virtual System.Double? taperTangentLength { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -48457,6 +50536,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class TwoWayLeftTurnLane : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -48470,90 +50557,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TurnLane Load(string xmlFile) { - return XTypedServices.Load<TurnLane>(xmlFile); - } - - public static TurnLane Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TurnLane>(xmlFile); - } - - public static TurnLane Parse(string xml) { - return XTypedServices.Parse<TurnLane>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TurnLane>(this); + public static TwoWayLeftTurnLane Load(string xmlFile) { + return XTypedServices.Load<TwoWayLeftTurnLane>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static TwoWayLeftTurnLane Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TwoWayLeftTurnLane>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static TwoWayLeftTurnLane Parse(string xml) { + return XTypedServices.Parse<TwoWayLeftTurnLane>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class TwoWayLeftTurnLane : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startOffsetXName = System.Xml.Linq.XName.Get("startOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endOffsetXName = System.Xml.Linq.XName.Get("endOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TwoWayLeftTurnLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator TwoWayLeftTurnLane(XElement xe) { return XTypedServices.ToXTypedElement<TwoWayLeftTurnLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TwoWayLeftTurnLane() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TwoWayLeftTurnLane>(this); } /// <summary> @@ -48564,6 +50583,13 @@ static TwoWayLeftTurnLane() { public TwoWayLeftTurnLane() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -48594,6 +50620,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48612,6 +50642,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48630,6 +50664,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48648,6 +50686,10 @@ public virtual System.Double? beginFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48666,6 +50708,10 @@ public virtual System.Double? endFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startOffsetXName = System.Xml.Linq.XName.Get("startOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48684,6 +50730,10 @@ public virtual System.Double? startOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endOffsetXName = System.Xml.Linq.XName.Get("endOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48702,6 +50752,10 @@ public virtual System.Double? endOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48720,6 +50774,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48731,13 +50789,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TwoWayLeftTurnLane", "http://www.landxml.org/schema/LandXML-1.2"); + + static TwoWayLeftTurnLane() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -48745,6 +50822,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -48765,6 +50849,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class ClimbLane : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -48778,92 +50870,39 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TwoWayLeftTurnLane Load(string xmlFile) { - return XTypedServices.Load<TwoWayLeftTurnLane>(xmlFile); + public static ClimbLane Load(string xmlFile) { + return XTypedServices.Load<ClimbLane>(xmlFile); } - public static TwoWayLeftTurnLane Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TwoWayLeftTurnLane>(xmlFile); + public static ClimbLane Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ClimbLane>(xmlFile); } - public static TwoWayLeftTurnLane Parse(string xml) { - return XTypedServices.Parse<TwoWayLeftTurnLane>(xml); + public static ClimbLane Parse(string xml) { + return XTypedServices.Parse<ClimbLane>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TwoWayLeftTurnLane>(this); - } + public static explicit operator ClimbLane(XElement xe) { return XTypedServices.ToXTypedElement<ClimbLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ClimbLane>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public ClimbLane() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class ClimbLane : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Feature> FeatureField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ClimbLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator ClimbLane(XElement xe) { return XTypedServices.ToXTypedElement<ClimbLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static ClimbLane() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public ClimbLane() { - } - /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -48894,6 +50933,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48912,6 +50955,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48930,6 +50977,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48948,6 +50999,10 @@ public virtual System.Double? beginFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48966,6 +51021,10 @@ public virtual System.Double? endFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48984,6 +51043,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -48995,13 +51058,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ClimbLane", "http://www.landxml.org/schema/LandXML-1.2"); + + static ClimbLane() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -49009,6 +51091,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -49029,6 +51118,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class OffsetLane : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -49042,86 +51139,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ClimbLane Load(string xmlFile) { - return XTypedServices.Load<ClimbLane>(xmlFile); - } - - public static ClimbLane Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ClimbLane>(xmlFile); - } - - public static ClimbLane Parse(string xml) { - return XTypedServices.Parse<ClimbLane>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ClimbLane>(this); + public static OffsetLane Load(string xmlFile) { + return XTypedServices.Load<OffsetLane>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static OffsetLane Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OffsetLane>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static OffsetLane Parse(string xml) { + return XTypedServices.Parse<OffsetLane>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class OffsetLane : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName fullOffsetXName = System.Xml.Linq.XName.Get("fullOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OffsetLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator OffsetLane(XElement xe) { return XTypedServices.ToXTypedElement<OffsetLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static OffsetLane() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OffsetLane>(this); } /// <summary> @@ -49132,6 +51165,13 @@ static OffsetLane() { public OffsetLane() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49162,6 +51202,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49180,6 +51224,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49198,6 +51246,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49216,6 +51268,10 @@ public virtual System.Double? beginFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49234,6 +51290,10 @@ public virtual System.Double? endFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName fullOffsetXName = System.Xml.Linq.XName.Get("fullOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49252,6 +51312,10 @@ public virtual System.Double? fullOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49270,6 +51334,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49281,13 +51349,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OffsetLane", "http://www.landxml.org/schema/LandXML-1.2"); + + static OffsetLane() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -49295,6 +51382,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -49315,6 +51409,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class WideningLane : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -49328,90 +51430,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OffsetLane Load(string xmlFile) { - return XTypedServices.Load<OffsetLane>(xmlFile); - } - - public static OffsetLane Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OffsetLane>(xmlFile); - } - - public static OffsetLane Parse(string xml) { - return XTypedServices.Parse<OffsetLane>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OffsetLane>(this); + public static WideningLane Load(string xmlFile) { + return XTypedServices.Load<WideningLane>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static WideningLane Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<WideningLane>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static WideningLane Parse(string xml) { + return XTypedServices.Parse<WideningLane>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class WideningLane : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName wideningXName = System.Xml.Linq.XName.Get("widening", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WideningLane", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator WideningLane(XElement xe) { return XTypedServices.ToXTypedElement<WideningLane>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static WideningLane() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<WideningLane>(this); } /// <summary> @@ -49422,6 +51456,13 @@ static WideningLane() { public WideningLane() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49452,6 +51493,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49470,6 +51515,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49488,6 +51537,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName beginFullWidthStaXName = System.Xml.Linq.XName.Get("beginFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49506,6 +51559,10 @@ public virtual System.Double? beginFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endFullWidthStaXName = System.Xml.Linq.XName.Get("endFullWidthSta", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49524,6 +51581,10 @@ public virtual System.Double? endFullWidthSta { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49542,6 +51603,10 @@ public virtual System.Double? offset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName wideningXName = System.Xml.Linq.XName.Get("widening", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49560,6 +51625,10 @@ public virtual System.Double? widening { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49578,6 +51647,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -49589,13 +51662,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WideningLane", "http://www.landxml.org/schema/LandXML-1.2"); + + static WideningLane() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -49603,6 +51695,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -49623,6 +51722,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (ObstructionOffset* | BikeFacilities* | RoadSign* | DrivewayDensity* | HazardRating* | Ditch* | Feature*)* + /// </para> + /// </summary> + public partial class Roadside : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -49636,100 +51743,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static WideningLane Load(string xmlFile) { - return XTypedServices.Load<WideningLane>(xmlFile); - } - - public static WideningLane Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<WideningLane>(xmlFile); - } - - public static WideningLane Parse(string xml) { - return XTypedServices.Parse<WideningLane>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<WideningLane>(this); + public static Roadside Load(string xmlFile) { + return XTypedServices.Load<Roadside>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Roadside Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Roadside>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Roadside Parse(string xml) { + return XTypedServices.Parse<Roadside>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (ObstructionOffset* | BikeFacilities* | RoadSign* | DrivewayDensity* | HazardRating* | Ditch* | Feature*)* - /// </para> - /// </summary> - public partial class Roadside : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObstructionOffsetXName = System.Xml.Linq.XName.Get("ObstructionOffset", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ObstructionOffset> ObstructionOffsetField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BikeFacilitiesXName = System.Xml.Linq.XName.Get("BikeFacilities", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<BikeFacilities> BikeFacilitiesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RoadSignXName = System.Xml.Linq.XName.Get("RoadSign", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RoadSign> RoadSignField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DrivewayDensityXName = System.Xml.Linq.XName.Get("DrivewayDensity", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<DrivewayDensity> DrivewayDensityField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HazardRatingXName = System.Xml.Linq.XName.Get("HazardRating", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<HazardRating> HazardRatingField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DitchXName = System.Xml.Linq.XName.Get("Ditch", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Ditch> DitchField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Roadside", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Roadside(XElement xe) { return XTypedServices.ToXTypedElement<Roadside>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Roadside() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ObstructionOffsetXName), new NamedContentModelEntity(BikeFacilitiesXName), new NamedContentModelEntity(RoadSignXName), new NamedContentModelEntity(DrivewayDensityXName), new NamedContentModelEntity(HazardRatingXName), new NamedContentModelEntity(DitchXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Roadside>(this); } /// <summary> @@ -49740,6 +51769,13 @@ static Roadside() { public Roadside() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObstructionOffsetXName = System.Xml.Linq.XName.Get("ObstructionOffset", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ObstructionOffset> ObstructionOffsetField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49770,6 +51806,13 @@ public virtual IList<ObstructionOffset> ObstructionOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BikeFacilitiesXName = System.Xml.Linq.XName.Get("BikeFacilities", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<BikeFacilities> BikeFacilitiesField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49800,6 +51843,13 @@ public virtual IList<BikeFacilities> BikeFacilities { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RoadSignXName = System.Xml.Linq.XName.Get("RoadSign", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RoadSign> RoadSignField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49830,6 +51880,13 @@ public virtual IList<RoadSign> RoadSign { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DrivewayDensityXName = System.Xml.Linq.XName.Get("DrivewayDensity", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<DrivewayDensity> DrivewayDensityField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49860,6 +51917,13 @@ public virtual IList<DrivewayDensity> DrivewayDensity { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HazardRatingXName = System.Xml.Linq.XName.Get("HazardRating", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<HazardRating> HazardRatingField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49890,6 +51954,13 @@ public virtual IList<HazardRating> HazardRating { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DitchXName = System.Xml.Linq.XName.Get("Ditch", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Ditch> DitchField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49920,6 +51991,13 @@ public virtual IList<Ditch> Ditch { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -49950,6 +52028,26 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Roadside", "http://www.landxml.org/schema/LandXML-1.2"); + + static Roadside() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ObstructionOffsetXName), new NamedContentModelEntity(BikeFacilitiesXName), new NamedContentModelEntity(RoadSignXName), new NamedContentModelEntity(DrivewayDensityXName), new NamedContentModelEntity(HazardRatingXName), new NamedContentModelEntity(DitchXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ObstructionOffsetXName, typeof(ObstructionOffset)); + localElementDictionary.Add(BikeFacilitiesXName, typeof(BikeFacilities)); + localElementDictionary.Add(RoadSignXName, typeof(RoadSign)); + localElementDictionary.Add(DrivewayDensityXName, typeof(DrivewayDensity)); + localElementDictionary.Add(HazardRatingXName, typeof(HazardRating)); + localElementDictionary.Add(DitchXName, typeof(Ditch)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -49957,6 +52055,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -49977,6 +52082,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class Ditch : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -49990,80 +52103,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Roadside Load(string xmlFile) { - return XTypedServices.Load<Roadside>(xmlFile); - } - - public static Roadside Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Roadside>(xmlFile); - } - - public static Roadside Parse(string xml) { - return XTypedServices.Parse<Roadside>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Roadside>(this); + public static Ditch Load(string xmlFile) { + return XTypedServices.Load<Ditch>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(ObstructionOffsetXName, typeof(ObstructionOffset)); - localElementDictionary.Add(BikeFacilitiesXName, typeof(BikeFacilities)); - localElementDictionary.Add(RoadSignXName, typeof(RoadSign)); - localElementDictionary.Add(DrivewayDensityXName, typeof(DrivewayDensity)); - localElementDictionary.Add(HazardRatingXName, typeof(HazardRating)); - localElementDictionary.Add(DitchXName, typeof(Ditch)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Ditch Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Ditch>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Ditch Parse(string xml) { + return XTypedServices.Parse<Ditch>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class Ditch : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName bottomWidthXName = System.Xml.Linq.XName.Get("bottomWidth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName bottomShapeXName = System.Xml.Linq.XName.Get("bottomShape", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Ditch", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Ditch(XElement xe) { return XTypedServices.ToXTypedElement<Ditch>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Ditch() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Ditch>(this); } /// <summary> @@ -50074,6 +52129,13 @@ static Ditch() { public Ditch() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -50104,6 +52166,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: required @@ -50119,6 +52185,10 @@ public virtual double staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: required @@ -50134,6 +52204,10 @@ public virtual double staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName bottomWidthXName = System.Xml.Linq.XName.Get("bottomWidth", ""); + /// <summary> /// <para> /// Occurrence: required @@ -50149,21 +52223,47 @@ public virtual double bottomWidth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName bottomShapeXName = System.Xml.Linq.XName.Get("bottomShape", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string bottomShape { + public virtual LandXml.v1_2.ditchBottomShape? bottomShape { get { XAttribute x = this.Attribute(bottomShapeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.ditchBottomShape)(Enum.Parse(typeof(LandXml.v1_2.ditchBottomShape), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.ditchBottomShapeValidator.TypeDefinition)))); } set { - this.SetAttribute(bottomShapeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(bottomShapeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(bottomShapeXName, value.ToString(), "bottomShape", global::LandXml.v1_2.ditchBottomShapeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Ditch", "http://www.landxml.org/schema/LandXML-1.2"); + + static Ditch() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -50171,6 +52271,13 @@ public virtual string bottomShape { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -50191,6 +52298,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class ObstructionOffset : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -50204,74 +52319,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Ditch Load(string xmlFile) { - return XTypedServices.Load<Ditch>(xmlFile); - } - - public static Ditch Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Ditch>(xmlFile); - } - - public static Ditch Parse(string xml) { - return XTypedServices.Parse<Ditch>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Ditch>(this); + public static ObstructionOffset Load(string xmlFile) { + return XTypedServices.Load<ObstructionOffset>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static ObstructionOffset Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ObstructionOffset>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static ObstructionOffset Parse(string xml) { + return XTypedServices.Parse<ObstructionOffset>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class ObstructionOffset : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ObstructionOffset", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator ObstructionOffset(XElement xe) { return XTypedServices.ToXTypedElement<ObstructionOffset>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ObstructionOffset() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ObstructionOffset>(this); } /// <summary> @@ -50282,6 +52345,13 @@ static ObstructionOffset() { public ObstructionOffset() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -50312,6 +52382,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50330,6 +52404,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50348,6 +52426,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50366,6 +52448,10 @@ public virtual System.Double? offset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50377,13 +52463,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ObstructionOffset", "http://www.landxml.org/schema/LandXML-1.2"); + + static ObstructionOffset() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -50391,6 +52496,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -50411,6 +52523,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class BikeFacilities : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -50424,74 +52544,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ObstructionOffset Load(string xmlFile) { - return XTypedServices.Load<ObstructionOffset>(xmlFile); - } - - public static ObstructionOffset Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ObstructionOffset>(xmlFile); - } - - public static ObstructionOffset Parse(string xml) { - return XTypedServices.Parse<ObstructionOffset>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ObstructionOffset>(this); + public static BikeFacilities Load(string xmlFile) { + return XTypedServices.Load<BikeFacilities>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static BikeFacilities Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<BikeFacilities>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static BikeFacilities Parse(string xml) { + return XTypedServices.Parse<BikeFacilities>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class BikeFacilities : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BikeFacilities", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator BikeFacilities(XElement xe) { return XTypedServices.ToXTypedElement<BikeFacilities>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static BikeFacilities() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<BikeFacilities>(this); } /// <summary> @@ -50502,6 +52570,13 @@ static BikeFacilities() { public BikeFacilities() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -50532,6 +52607,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50550,6 +52629,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50568,6 +52651,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50586,6 +52673,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50597,13 +52688,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BikeFacilities", "http://www.landxml.org/schema/LandXML-1.2"); + + static BikeFacilities() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -50611,6 +52721,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -50631,6 +52748,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class RoadSign : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -50644,90 +52769,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static BikeFacilities Load(string xmlFile) { - return XTypedServices.Load<BikeFacilities>(xmlFile); - } - - public static BikeFacilities Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<BikeFacilities>(xmlFile); - } - - public static BikeFacilities Parse(string xml) { - return XTypedServices.Parse<BikeFacilities>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<BikeFacilities>(this); + public static RoadSign Load(string xmlFile) { + return XTypedServices.Load<RoadSign>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static RoadSign Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<RoadSign>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static RoadSign Parse(string xml) { + return XTypedServices.Parse<RoadSign>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class RoadSign : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MUTCDCodeXName = System.Xml.Linq.XName.Get("MUTCDCode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName mountHeightXName = System.Xml.Linq.XName.Get("mountHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RoadSign", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator RoadSign(XElement xe) { return XTypedServices.ToXTypedElement<RoadSign>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static RoadSign() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RoadSign>(this); } /// <summary> @@ -50738,6 +52795,13 @@ static RoadSign() { public RoadSign() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -50768,6 +52832,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MUTCDCodeXName = System.Xml.Linq.XName.Get("MUTCDCode", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50776,6 +52844,9 @@ public virtual IList<Feature> Feature { public virtual string MUTCDCode { get { XAttribute x = this.Attribute(MUTCDCodeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -50783,6 +52854,10 @@ public virtual string MUTCDCode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50801,6 +52876,10 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName offsetXName = System.Xml.Linq.XName.Get("offset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50819,6 +52898,10 @@ public virtual System.Double? offset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50830,28 +52913,49 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string type { + public virtual LandXml.v1_2.roadSignType? type { get { XAttribute x = this.Attribute(typeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.roadSignType)(Enum.Parse(typeof(LandXml.v1_2.roadSignType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.roadSignTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::LandXml.v1_2.roadSignTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName mountHeightXName = System.Xml.Linq.XName.Get("mountHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50870,6 +52974,10 @@ public virtual System.Double? mountHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50888,6 +52996,10 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName heightXName = System.Xml.Linq.XName.Get("height", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -50906,6 +53018,20 @@ public virtual System.Double? height { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RoadSign", "http://www.landxml.org/schema/LandXML-1.2"); + + static RoadSign() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -50913,6 +53039,13 @@ public virtual System.Double? height { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -50933,6 +53066,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class DrivewayDensity : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -50946,70 +53087,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static RoadSign Load(string xmlFile) { - return XTypedServices.Load<RoadSign>(xmlFile); - } - - public static RoadSign Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<RoadSign>(xmlFile); - } - - public static RoadSign Parse(string xml) { - return XTypedServices.Parse<RoadSign>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RoadSign>(this); + public static DrivewayDensity Load(string xmlFile) { + return XTypedServices.Load<DrivewayDensity>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static DrivewayDensity Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DrivewayDensity>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DrivewayDensity Parse(string xml) { + return XTypedServices.Parse<DrivewayDensity>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class DrivewayDensity : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName densityXName = System.Xml.Linq.XName.Get("density", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DrivewayDensity", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DrivewayDensity(XElement xe) { return XTypedServices.ToXTypedElement<DrivewayDensity>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DrivewayDensity() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DrivewayDensity>(this); } /// <summary> @@ -51020,6 +53113,13 @@ static DrivewayDensity() { public DrivewayDensity() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51050,6 +53150,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51068,6 +53172,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51086,6 +53194,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName densityXName = System.Xml.Linq.XName.Get("density", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51104,6 +53216,20 @@ public virtual System.Int32? density { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DrivewayDensity", "http://www.landxml.org/schema/LandXML-1.2"); + + static DrivewayDensity() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -51111,6 +53237,13 @@ public virtual System.Int32? density { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -51131,6 +53264,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class HazardRating : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -51144,70 +53285,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DrivewayDensity Load(string xmlFile) { - return XTypedServices.Load<DrivewayDensity>(xmlFile); - } - - public static DrivewayDensity Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DrivewayDensity>(xmlFile); - } - - public static DrivewayDensity Parse(string xml) { - return XTypedServices.Parse<DrivewayDensity>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DrivewayDensity>(this); + public static HazardRating Load(string xmlFile) { + return XTypedServices.Load<HazardRating>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static HazardRating Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<HazardRating>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static HazardRating Parse(string xml) { + return XTypedServices.Parse<HazardRating>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class HazardRating : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ratingXName = System.Xml.Linq.XName.Get("rating", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HazardRating", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator HazardRating(XElement xe) { return XTypedServices.ToXTypedElement<HazardRating>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static HazardRating() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<HazardRating>(this); } /// <summary> @@ -51218,6 +53311,13 @@ static HazardRating() { public HazardRating() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51248,6 +53348,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51266,6 +53370,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51284,6 +53392,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ratingXName = System.Xml.Linq.XName.Get("rating", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51302,6 +53414,20 @@ public virtual System.Int32? rating { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HazardRating", "http://www.landxml.org/schema/LandXML-1.2"); + + static HazardRating() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -51309,6 +53435,13 @@ public virtual System.Int32? rating { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -51329,6 +53462,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Intersection* | Feature*)+ + /// </para> + /// </summary> + public partial class Intersections : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -51342,65 +53483,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static HazardRating Load(string xmlFile) { - return XTypedServices.Load<HazardRating>(xmlFile); - } - - public static HazardRating Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<HazardRating>(xmlFile); - } - - public static HazardRating Parse(string xml) { - return XTypedServices.Parse<HazardRating>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<HazardRating>(this); + public static Intersections Load(string xmlFile) { + return XTypedServices.Load<Intersections>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Intersections Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Intersections>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Intersections Parse(string xml) { + return XTypedServices.Parse<Intersections>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Intersection* | Feature*)+ - /// </para> - /// </summary> - public partial class Intersections : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IntersectionXName = System.Xml.Linq.XName.Get("Intersection", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Intersection> IntersectionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Intersections", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Intersections(XElement xe) { return XTypedServices.ToXTypedElement<Intersections>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Intersections() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(IntersectionXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Intersections>(this); } /// <summary> @@ -51411,6 +53509,13 @@ static Intersections() { public Intersections() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IntersectionXName = System.Xml.Linq.XName.Get("Intersection", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Intersection> IntersectionField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51441,6 +53546,13 @@ public virtual IList<Intersection> Intersection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51471,6 +53583,21 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Intersections", "http://www.landxml.org/schema/LandXML-1.2"); + + static Intersections() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(IntersectionXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(IntersectionXName, typeof(Intersection)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -51478,6 +53605,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -51498,6 +53632,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (TrafficControl* | Timing* | Volume* | TurnSpeed* | TurnRestriction* | Curb* | Corner* | Feature*)* + /// </para> + /// </summary> + public partial class Intersection : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -51511,128 +53653,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Intersections Load(string xmlFile) { - return XTypedServices.Load<Intersections>(xmlFile); - } - - public static Intersections Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Intersections>(xmlFile); - } - - public static Intersections Parse(string xml) { - return XTypedServices.Parse<Intersections>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Intersections>(this); + public static Intersection Load(string xmlFile) { + return XTypedServices.Load<Intersection>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(IntersectionXName, typeof(Intersection)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Intersection Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Intersection>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Intersection Parse(string xml) { + return XTypedServices.Parse<Intersection>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (TrafficControl* | Timing* | Volume* | TurnSpeed* | TurnRestriction* | Curb* | Corner* | Feature*)* - /// </para> - /// </summary> - public partial class Intersection : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TrafficControlXName = System.Xml.Linq.XName.Get("TrafficControl", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TrafficControl> TrafficControlField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimingXName = System.Xml.Linq.XName.Get("Timing", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Timing> TimingField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VolumeXName = System.Xml.Linq.XName.Get("Volume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Volume> VolumeField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TurnSpeedXName = System.Xml.Linq.XName.Get("TurnSpeed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TurnSpeed> TurnSpeedField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TurnRestrictionXName = System.Xml.Linq.XName.Get("TurnRestriction", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<TurnRestriction> TurnRestrictionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CurbXName = System.Xml.Linq.XName.Get("Curb", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Curb> CurbField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CornerXName = System.Xml.Linq.XName.Get("Corner", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Corner> CornerField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roadwayRefXName = System.Xml.Linq.XName.Get("roadwayRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roadwayPIXName = System.Xml.Linq.XName.Get("roadwayPI", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName intersectingRoadwayRefXName = System.Xml.Linq.XName.Get("intersectingRoadwayRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName intersectRoadwayPIXName = System.Xml.Linq.XName.Get("intersectRoadwayPI", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName contructionTypeXName = System.Xml.Linq.XName.Get("contructionType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Intersection", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Intersection(XElement xe) { return XTypedServices.ToXTypedElement<Intersection>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Intersection() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(TrafficControlXName), new NamedContentModelEntity(TimingXName), new NamedContentModelEntity(VolumeXName), new NamedContentModelEntity(TurnSpeedXName), new NamedContentModelEntity(TurnRestrictionXName), new NamedContentModelEntity(CurbXName), new NamedContentModelEntity(CornerXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Intersection>(this); } /// <summary> @@ -51643,6 +53679,13 @@ static Intersection() { public Intersection() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TrafficControlXName = System.Xml.Linq.XName.Get("TrafficControl", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TrafficControl> TrafficControlField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51673,6 +53716,13 @@ public virtual IList<TrafficControl> TrafficControl { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimingXName = System.Xml.Linq.XName.Get("Timing", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Timing> TimingField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51703,6 +53753,13 @@ public virtual IList<Timing> Timing { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VolumeXName = System.Xml.Linq.XName.Get("Volume", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Volume> VolumeField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51733,6 +53790,13 @@ public virtual IList<Volume> Volume { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TurnSpeedXName = System.Xml.Linq.XName.Get("TurnSpeed", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TurnSpeed> TurnSpeedField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51763,6 +53827,13 @@ public virtual IList<TurnSpeed> TurnSpeed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TurnRestrictionXName = System.Xml.Linq.XName.Get("TurnRestriction", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<TurnRestriction> TurnRestrictionField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51793,6 +53864,13 @@ public virtual IList<TurnRestriction> TurnRestriction { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CurbXName = System.Xml.Linq.XName.Get("Curb", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Curb> CurbField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51823,6 +53901,13 @@ public virtual IList<Curb> Curb { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CornerXName = System.Xml.Linq.XName.Get("Corner", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Corner> CornerField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51853,6 +53938,13 @@ public virtual IList<Corner> Corner { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -51883,6 +53975,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roadwayRefXName = System.Xml.Linq.XName.Get("roadwayRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51891,6 +53987,9 @@ public virtual IList<Feature> Feature { public virtual string roadwayRef { get { XAttribute x = this.Attribute(roadwayRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -51898,6 +53997,10 @@ public virtual string roadwayRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roadwayPIXName = System.Xml.Linq.XName.Get("roadwayPI", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51916,6 +54019,10 @@ public virtual System.Double? roadwayPI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName intersectingRoadwayRefXName = System.Xml.Linq.XName.Get("intersectingRoadwayRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51924,6 +54031,9 @@ public virtual System.Double? roadwayPI { public virtual string intersectingRoadwayRef { get { XAttribute x = this.Attribute(intersectingRoadwayRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -51931,6 +54041,10 @@ public virtual string intersectingRoadwayRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName intersectRoadwayPIXName = System.Xml.Linq.XName.Get("intersectRoadwayPI", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -51949,21 +54063,54 @@ public virtual System.Double? intersectRoadwayPI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName contructionTypeXName = System.Xml.Linq.XName.Get("contructionType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string contructionType { + public virtual LandXml.v1_2.intersectionConstructionType? contructionType { get { XAttribute x = this.Attribute(contructionTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.intersectionConstructionType)(Enum.Parse(typeof(LandXml.v1_2.intersectionConstructionType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.intersectionConstructionTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(contructionTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(contructionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(contructionTypeXName, value.ToString(), "contructionType", global::LandXml.v1_2.intersectionConstructionTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Intersection", "http://www.landxml.org/schema/LandXML-1.2"); + + static Intersection() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(TrafficControlXName), new NamedContentModelEntity(TimingXName), new NamedContentModelEntity(VolumeXName), new NamedContentModelEntity(TurnSpeedXName), new NamedContentModelEntity(TurnRestrictionXName), new NamedContentModelEntity(CurbXName), new NamedContentModelEntity(CornerXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TrafficControlXName, typeof(TrafficControl)); + localElementDictionary.Add(TimingXName, typeof(Timing)); + localElementDictionary.Add(VolumeXName, typeof(Volume)); + localElementDictionary.Add(TurnSpeedXName, typeof(TurnSpeed)); + localElementDictionary.Add(TurnRestrictionXName, typeof(TurnRestriction)); + localElementDictionary.Add(CurbXName, typeof(Curb)); + localElementDictionary.Add(CornerXName, typeof(Corner)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -51971,6 +54118,13 @@ public virtual string contructionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -51991,6 +54145,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class TrafficControl : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -52004,95 +54166,43 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Intersection Load(string xmlFile) { - return XTypedServices.Load<Intersection>(xmlFile); + public static TrafficControl Load(string xmlFile) { + return XTypedServices.Load<TrafficControl>(xmlFile); } - public static Intersection Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Intersection>(xmlFile); + public static TrafficControl Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TrafficControl>(xmlFile); } - public static Intersection Parse(string xml) { - return XTypedServices.Parse<Intersection>(xml); + public static TrafficControl Parse(string xml) { + return XTypedServices.Parse<TrafficControl>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Intersection>(this); - } + public static explicit operator TrafficControl(XElement xe) { return XTypedServices.ToXTypedElement<TrafficControl>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(TrafficControlXName, typeof(TrafficControl)); - localElementDictionary.Add(TimingXName, typeof(Timing)); - localElementDictionary.Add(VolumeXName, typeof(Volume)); - localElementDictionary.Add(TurnSpeedXName, typeof(TurnSpeed)); - localElementDictionary.Add(TurnRestrictionXName, typeof(TurnRestriction)); - localElementDictionary.Add(CurbXName, typeof(Curb)); - localElementDictionary.Add(CornerXName, typeof(Corner)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TrafficControl>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public TrafficControl() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class TrafficControl : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Feature> FeatureField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName signalPeriodXName = System.Xml.Linq.XName.Get("signalPeriod", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName controlPositionXName = System.Xml.Linq.XName.Get("controlPosition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName controlTypeXName = System.Xml.Linq.XName.Get("controlType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TrafficControl", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator TrafficControl(XElement xe) { return XTypedServices.ToXTypedElement<TrafficControl>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static TrafficControl() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); - } - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public TrafficControl() { - } - - /// <summary> - /// <para> - /// Occurrence: optional, repeating, choice - /// </para> + /// <para> + /// Occurrence: optional, repeating, choice + /// </para> /// <para> /// Regular expression: (Feature*)* /// </para> @@ -52119,6 +54229,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52137,6 +54251,10 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName signalPeriodXName = System.Xml.Linq.XName.Get("signalPeriod", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52155,6 +54273,10 @@ public virtual System.Double? signalPeriod { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName controlPositionXName = System.Xml.Linq.XName.Get("controlPosition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52166,28 +54288,59 @@ public virtual LandXml.v1_2.trafficControlPosition? controlPosition { if ((x == null)) { return null; } - return ((LandXml.v1_2.trafficControlPosition)(Enum.Parse(typeof(LandXml.v1_2.trafficControlPosition), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.trafficControlPosition)(Enum.Parse(typeof(LandXml.v1_2.trafficControlPosition), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.trafficControlPositionValidator.TypeDefinition)))); } set { - this.SetAttribute(controlPositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(controlPositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(controlPositionXName, value.ToString(), "controlPosition", global::LandXml.v1_2.trafficControlPositionValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName controlTypeXName = System.Xml.Linq.XName.Get("controlType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string controlType { + public virtual LandXml.v1_2.trafficControlType? controlType { get { XAttribute x = this.Attribute(controlTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.trafficControlType)(Enum.Parse(typeof(LandXml.v1_2.trafficControlType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.trafficControlTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(controlTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(controlTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(controlTypeXName, value.ToString(), "controlType", global::LandXml.v1_2.trafficControlTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TrafficControl", "http://www.landxml.org/schema/LandXML-1.2"); + + static TrafficControl() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -52195,6 +54348,13 @@ public virtual string controlType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -52215,6 +54375,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class Timing : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -52228,74 +54396,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TrafficControl Load(string xmlFile) { - return XTypedServices.Load<TrafficControl>(xmlFile); - } - - public static TrafficControl Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TrafficControl>(xmlFile); - } - - public static TrafficControl Parse(string xml) { - return XTypedServices.Parse<TrafficControl>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TrafficControl>(this); + public static Timing Load(string xmlFile) { + return XTypedServices.Load<Timing>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Timing Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Timing>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Timing Parse(string xml) { + return XTypedServices.Parse<Timing>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class Timing : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName protectedTurnPercentXName = System.Xml.Linq.XName.Get("protectedTurnPercent", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName unprotectedTurnPercentXName = System.Xml.Linq.XName.Get("unprotectedTurnPercent", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Timing", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Timing(XElement xe) { return XTypedServices.ToXTypedElement<Timing>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Timing() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Timing>(this); } /// <summary> @@ -52306,6 +54422,13 @@ static Timing() { public Timing() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -52336,6 +54459,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52354,6 +54481,10 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52372,6 +54503,10 @@ public virtual System.Int32? legNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName protectedTurnPercentXName = System.Xml.Linq.XName.Get("protectedTurnPercent", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52390,6 +54525,10 @@ public virtual System.Double? protectedTurnPercent { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName unprotectedTurnPercentXName = System.Xml.Linq.XName.Get("unprotectedTurnPercent", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52408,6 +54547,20 @@ public virtual System.Double? unprotectedTurnPercent { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Timing", "http://www.landxml.org/schema/LandXML-1.2"); + + static Timing() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -52415,6 +54568,13 @@ public virtual System.Double? unprotectedTurnPercent { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -52435,6 +54595,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class Volume : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -52448,74 +54616,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Timing Load(string xmlFile) { - return XTypedServices.Load<Timing>(xmlFile); - } - - public static Timing Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Timing>(xmlFile); - } - - public static Timing Parse(string xml) { - return XTypedServices.Parse<Timing>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Timing>(this); + public static Volume Load(string xmlFile) { + return XTypedServices.Load<Volume>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Volume Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Volume>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Volume Parse(string xml) { + return XTypedServices.Parse<Volume>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class Volume : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName turnPercentXName = System.Xml.Linq.XName.Get("turnPercent", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName percentTrucksXName = System.Xml.Linq.XName.Get("percentTrucks", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Volume", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Volume(XElement xe) { return XTypedServices.ToXTypedElement<Volume>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Volume() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Volume>(this); } /// <summary> @@ -52526,6 +54642,13 @@ static Volume() { public Volume() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -52556,6 +54679,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52574,6 +54701,10 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52592,6 +54723,10 @@ public virtual System.Int32? legNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName turnPercentXName = System.Xml.Linq.XName.Get("turnPercent", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52610,6 +54745,10 @@ public virtual System.Double? turnPercent { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName percentTrucksXName = System.Xml.Linq.XName.Get("percentTrucks", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52628,6 +54767,20 @@ public virtual System.Double? percentTrucks { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Volume", "http://www.landxml.org/schema/LandXML-1.2"); + + static Volume() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -52635,6 +54788,13 @@ public virtual System.Double? percentTrucks { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -52655,6 +54815,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class TurnSpeed : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -52668,70 +54836,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Volume Load(string xmlFile) { - return XTypedServices.Load<Volume>(xmlFile); - } - - public static Volume Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Volume>(xmlFile); - } - - public static Volume Parse(string xml) { - return XTypedServices.Parse<Volume>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Volume>(this); + public static TurnSpeed Load(string xmlFile) { + return XTypedServices.Load<TurnSpeed>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static TurnSpeed Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TurnSpeed>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static TurnSpeed Parse(string xml) { + return XTypedServices.Parse<TurnSpeed>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class TurnSpeed : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TurnSpeed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator TurnSpeed(XElement xe) { return XTypedServices.ToXTypedElement<TurnSpeed>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TurnSpeed() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TurnSpeed>(this); } /// <summary> @@ -52742,6 +54862,13 @@ static TurnSpeed() { public TurnSpeed() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -52772,6 +54899,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52790,6 +54921,10 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52808,6 +54943,10 @@ public virtual System.Int32? legNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52826,6 +54965,20 @@ public virtual System.Double? speed { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TurnSpeed", "http://www.landxml.org/schema/LandXML-1.2"); + + static TurnSpeed() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -52833,6 +54986,13 @@ public virtual System.Double? speed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -52853,6 +55013,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class TurnRestriction : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -52866,70 +55034,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TurnSpeed Load(string xmlFile) { - return XTypedServices.Load<TurnSpeed>(xmlFile); - } - - public static TurnSpeed Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TurnSpeed>(xmlFile); - } - - public static TurnSpeed Parse(string xml) { - return XTypedServices.Parse<TurnSpeed>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TurnSpeed>(this); + public static TurnRestriction Load(string xmlFile) { + return XTypedServices.Load<TurnRestriction>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static TurnRestriction Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TurnRestriction>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static TurnRestriction Parse(string xml) { + return XTypedServices.Parse<TurnRestriction>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class TurnRestriction : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TurnRestriction", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator TurnRestriction(XElement xe) { return XTypedServices.ToXTypedElement<TurnRestriction>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static TurnRestriction() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TurnRestriction>(this); } /// <summary> @@ -52940,6 +55060,13 @@ static TurnRestriction() { public TurnRestriction() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -52970,6 +55097,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -52988,6 +55119,10 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName legNumberXName = System.Xml.Linq.XName.Get("legNumber", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53006,21 +55141,47 @@ public virtual System.Int32? legNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string type { + public virtual LandXml.v1_2.trafficTurnRestriction? type { get { XAttribute x = this.Attribute(typeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.trafficTurnRestriction)(Enum.Parse(typeof(LandXml.v1_2.trafficTurnRestriction), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.trafficTurnRestrictionValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::LandXml.v1_2.trafficTurnRestrictionValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TurnRestriction", "http://www.landxml.org/schema/LandXML-1.2"); + + static TurnRestriction() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -53028,6 +55189,13 @@ public virtual string type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -53048,6 +55216,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class Curb : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -53061,74 +55237,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TurnRestriction Load(string xmlFile) { - return XTypedServices.Load<TurnRestriction>(xmlFile); + public static Curb Load(string xmlFile) { + return XTypedServices.Load<Curb>(xmlFile); } - public static TurnRestriction Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TurnRestriction>(xmlFile); + public static Curb Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Curb>(xmlFile); } - public static TurnRestriction Parse(string xml) { - return XTypedServices.Parse<TurnRestriction>(xml); + public static Curb Parse(string xml) { + return XTypedServices.Parse<Curb>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TurnRestriction>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class Curb : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curb", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator Curb(XElement xe) { return XTypedServices.ToXTypedElement<Curb>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Curb() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Curb>(this); } /// <summary> @@ -53139,6 +55263,13 @@ static Curb() { public Curb() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -53169,6 +55300,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53187,6 +55322,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53205,6 +55344,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53216,13 +55359,22 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53234,13 +55386,32 @@ public virtual LandXml.v1_2.curbType? type { if ((x == null)) { return null; } - return ((LandXml.v1_2.curbType)(Enum.Parse(typeof(LandXml.v1_2.curbType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.curbType)(Enum.Parse(typeof(LandXml.v1_2.curbType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.curbTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::LandXml.v1_2.curbTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curb", "http://www.landxml.org/schema/LandXML-1.2"); + + static Curb() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -53248,6 +55419,13 @@ public virtual LandXml.v1_2.curbType? type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -53268,6 +55446,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class Corner : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -53281,70 +55467,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Curb Load(string xmlFile) { - return XTypedServices.Load<Curb>(xmlFile); - } - - public static Curb Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Curb>(xmlFile); - } - - public static Curb Parse(string xml) { - return XTypedServices.Parse<Curb>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Curb>(this); + public static Corner Load(string xmlFile) { + return XTypedServices.Load<Corner>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static Corner Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Corner>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static Corner Parse(string xml) { + return XTypedServices.Parse<Corner>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class Corner : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Corner", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator Corner(XElement xe) { return XTypedServices.ToXTypedElement<Corner>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Corner() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Corner>(this); } /// <summary> @@ -53355,6 +55493,13 @@ static Corner() { public Corner() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -53385,6 +55530,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53403,6 +55552,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53421,6 +55574,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeXName = System.Xml.Linq.XName.Get("type", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53432,13 +55589,32 @@ public virtual LandXml.v1_2.cornerType? type { if ((x == null)) { return null; } - return ((LandXml.v1_2.cornerType)(Enum.Parse(typeof(LandXml.v1_2.cornerType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.cornerType)(Enum.Parse(typeof(LandXml.v1_2.cornerType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.cornerTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(typeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(typeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(typeXName, value.ToString(), "type", global::LandXml.v1_2.cornerTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Corner", "http://www.landxml.org/schema/LandXML-1.2"); + + static Corner() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -53446,6 +55622,13 @@ public virtual LandXml.v1_2.cornerType? type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -53466,6 +55649,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (CrashHistory+ | Feature*)+ + /// </para> + /// </summary> + public partial class CrashData : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -53479,65 +55670,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Corner Load(string xmlFile) { - return XTypedServices.Load<Corner>(xmlFile); - } - - public static Corner Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Corner>(xmlFile); - } - - public static Corner Parse(string xml) { - return XTypedServices.Parse<Corner>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Corner>(this); + public static CrashData Load(string xmlFile) { + return XTypedServices.Load<CrashData>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static CrashData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CrashData>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static CrashData Parse(string xml) { + return XTypedServices.Parse<CrashData>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (CrashHistory+ | Feature*)+ - /// </para> - /// </summary> - public partial class CrashData : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CrashHistoryXName = System.Xml.Linq.XName.Get("CrashHistory", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CrashHistory> CrashHistoryField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrashData", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator CrashData(XElement xe) { return XTypedServices.ToXTypedElement<CrashData>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CrashData() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(CrashHistoryXName), new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CrashData>(this); } /// <summary> @@ -53548,6 +55696,13 @@ static CrashData() { public CrashData() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CrashHistoryXName = System.Xml.Linq.XName.Get("CrashHistory", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CrashHistory> CrashHistoryField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -53578,6 +55733,13 @@ public virtual IList<CrashHistory> CrashHistory { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -53608,6 +55770,21 @@ public virtual IList<Feature> Feature { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrashData", "http://www.landxml.org/schema/LandXML-1.2"); + + static CrashData() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(CrashHistoryXName), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CrashHistoryXName, typeof(CrashHistory)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -53615,6 +55792,13 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -53635,6 +55819,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class CrashHistory : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -53648,83 +55840,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CrashData Load(string xmlFile) { - return XTypedServices.Load<CrashData>(xmlFile); - } - - public static CrashData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CrashData>(xmlFile); - } - - public static CrashData Parse(string xml) { - return XTypedServices.Parse<CrashData>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CrashData>(this); + public static CrashHistory Load(string xmlFile) { + return XTypedServices.Load<CrashHistory>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CrashHistoryXName, typeof(CrashHistory)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static CrashHistory Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CrashHistory>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static CrashHistory Parse(string xml) { + return XTypedServices.Parse<CrashHistory>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class CrashHistory : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName yearXName = System.Xml.Linq.XName.Get("year", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName location1XName = System.Xml.Linq.XName.Get("location-1", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName location2XName = System.Xml.Linq.XName.Get("location-2", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName severityXName = System.Xml.Linq.XName.Get("severity", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName intersectionRelationXName = System.Xml.Linq.XName.Get("intersectionRelation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName intersectionLocationXName = System.Xml.Linq.XName.Get("intersectionLocation", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrashHistory", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator CrashHistory(XElement xe) { return XTypedServices.ToXTypedElement<CrashHistory>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CrashHistory() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CrashHistory>(this); } /// <summary> @@ -53735,6 +55866,13 @@ static CrashHistory() { public CrashHistory() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -53765,6 +55903,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName yearXName = System.Xml.Linq.XName.Get("year", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53783,6 +55925,10 @@ public virtual System.DateTime? year { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName location1XName = System.Xml.Linq.XName.Get("location-1", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53801,6 +55947,10 @@ public virtual System.Double? location1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName location2XName = System.Xml.Linq.XName.Get("location-2", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53819,36 +55969,64 @@ public virtual System.Double? location2 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName severityXName = System.Xml.Linq.XName.Get("severity", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string severity { + public virtual LandXml.v1_2.crashSeverityType? severity { get { XAttribute x = this.Attribute(severityXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.crashSeverityType)(Enum.Parse(typeof(LandXml.v1_2.crashSeverityType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.crashSeverityTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(severityXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(severityXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(severityXName, value.ToString(), "severity", global::LandXml.v1_2.crashSeverityTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName intersectionRelationXName = System.Xml.Linq.XName.Get("intersectionRelation", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string intersectionRelation { + public virtual LandXml.v1_2.crashIntersectionRelation? intersectionRelation { get { XAttribute x = this.Attribute(intersectionRelationXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.crashIntersectionRelation)(Enum.Parse(typeof(LandXml.v1_2.crashIntersectionRelation), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.crashIntersectionRelationValidator.TypeDefinition)))); } set { - this.SetAttribute(intersectionRelationXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(intersectionRelationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(intersectionRelationXName, value.ToString(), "intersectionRelation", global::LandXml.v1_2.crashIntersectionRelationValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName intersectionLocationXName = System.Xml.Linq.XName.Get("intersectionLocation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -53867,6 +56045,20 @@ public virtual System.Double? intersectionLocation { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CrashHistory", "http://www.landxml.org/schema/LandXML-1.2"); + + static CrashHistory() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -53874,6 +56066,13 @@ public virtual System.Double? intersectionLocation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -53894,6 +56093,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class PostedSpeed : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -53907,88 +56114,43 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CrashHistory Load(string xmlFile) { - return XTypedServices.Load<CrashHistory>(xmlFile); + public static PostedSpeed Load(string xmlFile) { + return XTypedServices.Load<PostedSpeed>(xmlFile); } - public static CrashHistory Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CrashHistory>(xmlFile); + public static PostedSpeed Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PostedSpeed>(xmlFile); } - public static CrashHistory Parse(string xml) { - return XTypedServices.Parse<CrashHistory>(xml); + public static PostedSpeed Parse(string xml) { + return XTypedServices.Parse<PostedSpeed>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CrashHistory>(this); - } + public static explicit operator PostedSpeed(XElement xe) { return XTypedServices.ToXTypedElement<PostedSpeed>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PostedSpeed>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public PostedSpeed() { } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class PostedSpeed : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<Feature> FeatureField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName speedLimitXName = System.Xml.Linq.XName.Get("speedLimit", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PostedSpeed", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator PostedSpeed(XElement xe) { return XTypedServices.ToXTypedElement<PostedSpeed>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static PostedSpeed() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); - } - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public PostedSpeed() { - } - - /// <summary> - /// <para> - /// Occurrence: optional, repeating, choice - /// </para> + /// <para> + /// Occurrence: optional, repeating, choice + /// </para> /// <para> /// Regular expression: (Feature*)* /// </para> @@ -54015,6 +56177,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54033,6 +56199,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54051,6 +56221,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54062,13 +56236,22 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName speedLimitXName = System.Xml.Linq.XName.Get("speedLimit", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54087,6 +56270,20 @@ public virtual System.Double? speedLimit { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PostedSpeed", "http://www.landxml.org/schema/LandXML-1.2"); + + static PostedSpeed() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -54094,6 +56291,13 @@ public virtual System.Double? speedLimit { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -54114,6 +56318,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class NoPassingZone : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -54127,70 +56339,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PostedSpeed Load(string xmlFile) { - return XTypedServices.Load<PostedSpeed>(xmlFile); - } - - public static PostedSpeed Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PostedSpeed>(xmlFile); - } - - public static PostedSpeed Parse(string xml) { - return XTypedServices.Parse<PostedSpeed>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PostedSpeed>(this); + public static NoPassingZone Load(string xmlFile) { + return XTypedServices.Load<NoPassingZone>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static NoPassingZone Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<NoPassingZone>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static NoPassingZone Parse(string xml) { + return XTypedServices.Parse<NoPassingZone>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class NoPassingZone : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("NoPassingZone", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator NoPassingZone(XElement xe) { return XTypedServices.ToXTypedElement<NoPassingZone>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static NoPassingZone() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<NoPassingZone>(this); } /// <summary> @@ -54201,6 +56365,13 @@ static NoPassingZone() { public NoPassingZone() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -54231,6 +56402,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54249,6 +56424,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54267,6 +56446,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sideofRoadXName = System.Xml.Linq.XName.Get("sideofRoad", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54278,13 +56461,32 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { if ((x == null)) { return null; } - return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.sideofRoadType)(Enum.Parse(typeof(LandXml.v1_2.sideofRoadType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(sideofRoadXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(sideofRoadXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(sideofRoadXName, value.ToString(), "sideofRoad", global::LandXml.v1_2.sideofRoadTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("NoPassingZone", "http://www.landxml.org/schema/LandXML-1.2"); + + static NoPassingZone() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -54292,6 +56494,13 @@ public virtual LandXml.v1_2.sideofRoadType? sideofRoad { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -54312,6 +56521,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class DecisionSightDistance : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -54325,66 +56542,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static NoPassingZone Load(string xmlFile) { - return XTypedServices.Load<NoPassingZone>(xmlFile); - } - - public static NoPassingZone Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<NoPassingZone>(xmlFile); - } - - public static NoPassingZone Parse(string xml) { - return XTypedServices.Parse<NoPassingZone>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<NoPassingZone>(this); + public static DecisionSightDistance Load(string xmlFile) { + return XTypedServices.Load<DecisionSightDistance>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static DecisionSightDistance Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<DecisionSightDistance>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static DecisionSightDistance Parse(string xml) { + return XTypedServices.Parse<DecisionSightDistance>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class DecisionSightDistance : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName maneuverXName = System.Xml.Linq.XName.Get("maneuver", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DecisionSightDistance", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator DecisionSightDistance(XElement xe) { return XTypedServices.ToXTypedElement<DecisionSightDistance>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DecisionSightDistance() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DecisionSightDistance>(this); } /// <summary> @@ -54395,6 +56568,13 @@ static DecisionSightDistance() { public DecisionSightDistance() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -54425,6 +56605,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54443,21 +56627,47 @@ public virtual System.Double? station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName maneuverXName = System.Xml.Linq.XName.Get("maneuver", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string maneuver { + public virtual LandXml.v1_2.maneuverType? maneuver { get { XAttribute x = this.Attribute(maneuverXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.maneuverType)(Enum.Parse(typeof(LandXml.v1_2.maneuverType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.maneuverTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(maneuverXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(maneuverXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(maneuverXName, value.ToString(), "maneuver", global::LandXml.v1_2.maneuverTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DecisionSightDistance", "http://www.landxml.org/schema/LandXML-1.2"); + + static DecisionSightDistance() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -54465,6 +56675,13 @@ public virtual string maneuver { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -54485,6 +56702,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Feature*)* + /// </para> + /// </summary> + public partial class BridgeElement : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -54498,74 +56723,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static DecisionSightDistance Load(string xmlFile) { - return XTypedServices.Load<DecisionSightDistance>(xmlFile); - } - - public static DecisionSightDistance Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<DecisionSightDistance>(xmlFile); - } - - public static DecisionSightDistance Parse(string xml) { - return XTypedServices.Parse<DecisionSightDistance>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DecisionSightDistance>(this); + public static BridgeElement Load(string xmlFile) { + return XTypedServices.Load<BridgeElement>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static BridgeElement Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<BridgeElement>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static BridgeElement Parse(string xml) { + return XTypedServices.Parse<BridgeElement>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Feature*)* - /// </para> - /// </summary> - public partial class BridgeElement : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName projectTypeXName = System.Xml.Linq.XName.Get("projectType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BridgeElement", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator BridgeElement(XElement xe) { return XTypedServices.ToXTypedElement<BridgeElement>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static BridgeElement() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<BridgeElement>(this); } /// <summary> @@ -54576,6 +56749,13 @@ static BridgeElement() { public BridgeElement() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -54606,6 +56786,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staStartXName = System.Xml.Linq.XName.Get("staStart", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54624,6 +56808,10 @@ public virtual System.Double? staStart { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName staEndXName = System.Xml.Linq.XName.Get("staEnd", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54642,6 +56830,10 @@ public virtual System.Double? staEnd { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName widthXName = System.Xml.Linq.XName.Get("width", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -54660,21 +56852,47 @@ public virtual System.Double? width { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName projectTypeXName = System.Xml.Linq.XName.Get("projectType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string projectType { + public virtual LandXml.v1_2.bridgeProjectType? projectType { get { XAttribute x = this.Attribute(projectTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.bridgeProjectType)(Enum.Parse(typeof(LandXml.v1_2.bridgeProjectType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.bridgeProjectTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(projectTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(projectTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(projectTypeXName, value.ToString(), "projectType", global::LandXml.v1_2.bridgeProjectTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BridgeElement", "http://www.landxml.org/schema/LandXML-1.2"); + + static BridgeElement() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -54682,6 +56900,13 @@ public virtual string projectType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -54702,6 +56927,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Spiral) + /// </para> + /// </summary> + public partial class InSpiral : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -54715,51 +56948,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static BridgeElement Load(string xmlFile) { - return XTypedServices.Load<BridgeElement>(xmlFile); - } - - public static BridgeElement Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<BridgeElement>(xmlFile); - } - - public static BridgeElement Parse(string xml) { - return XTypedServices.Parse<BridgeElement>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<BridgeElement>(this); + public static InSpiral Load(string xmlFile) { + return XTypedServices.Load<InSpiral>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public static InSpiral Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<InSpiral>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static InSpiral Parse(string xml) { + return XTypedServices.Parse<InSpiral>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Spiral) - /// </para> - /// </summary> - public partial class InSpiral : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InSpiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); public static explicit operator InSpiral(XElement xe) { return XTypedServices.ToXTypedElement<InSpiral>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static InSpiral() { - BuildElementDictionary(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<InSpiral>(this); } /// <summary> @@ -54770,6 +56974,10 @@ static InSpiral() { public InSpiral() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -54788,6 +56996,19 @@ public virtual Spiral Spiral { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InSpiral", "http://www.landxml.org/schema/LandXML-1.2"); + + static InSpiral() { + BuildElementDictionary(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SpiralXName, typeof(Spiral)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -54795,6 +57016,10 @@ public virtual Spiral Spiral { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -54815,6 +57040,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Curve) + /// </para> + /// </summary> + public partial class Curve1 : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -54828,51 +57061,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static InSpiral Load(string xmlFile) { - return XTypedServices.Load<InSpiral>(xmlFile); - } - - public static InSpiral Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<InSpiral>(xmlFile); - } - - public static InSpiral Parse(string xml) { - return XTypedServices.Parse<InSpiral>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<InSpiral>(this); + public static Curve1 Load(string xmlFile) { + return XTypedServices.Load<Curve1>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SpiralXName, typeof(Spiral)); + public static Curve1 Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Curve1>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Curve1 Parse(string xml) { + return XTypedServices.Parse<Curve1>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Curve) - /// </para> - /// </summary> - public partial class Curve1 : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CurveXName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curve1", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); public static explicit operator Curve1(XElement xe) { return XTypedServices.ToXTypedElement<Curve1>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Curve1() { - BuildElementDictionary(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Curve1>(this); } /// <summary> @@ -54883,6 +57087,10 @@ static Curve1() { public Curve1() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CurveXName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -54901,11 +57109,28 @@ public virtual Curve Curve { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curve1", "http://www.landxml.org/schema/LandXML-1.2"); + + static Curve1() { + BuildElementDictionary(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CurveXName, typeof(Curve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] @@ -54928,6 +57153,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Spiral) + /// </para> + /// </summary> + public partial class ConnSpiral : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -54941,51 +57174,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Curve1 Load(string xmlFile) { - return XTypedServices.Load<Curve1>(xmlFile); - } - - public static Curve1 Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Curve1>(xmlFile); - } - - public static Curve1 Parse(string xml) { - return XTypedServices.Parse<Curve1>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Curve1>(this); + public static ConnSpiral Load(string xmlFile) { + return XTypedServices.Load<ConnSpiral>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CurveXName, typeof(Curve)); + public static ConnSpiral Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ConnSpiral>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static ConnSpiral Parse(string xml) { + return XTypedServices.Parse<ConnSpiral>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Spiral) - /// </para> - /// </summary> - public partial class ConnSpiral : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnSpiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); public static explicit operator ConnSpiral(XElement xe) { return XTypedServices.ToXTypedElement<ConnSpiral>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ConnSpiral() { - BuildElementDictionary(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnSpiral>(this); } /// <summary> @@ -54996,6 +57200,10 @@ static ConnSpiral() { public ConnSpiral() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -55014,6 +57222,19 @@ public virtual Spiral Spiral { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnSpiral", "http://www.landxml.org/schema/LandXML-1.2"); + + static ConnSpiral() { + BuildElementDictionary(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SpiralXName, typeof(Spiral)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -55021,6 +57242,10 @@ public virtual Spiral Spiral { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -55041,6 +57266,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Curve) + /// </para> + /// </summary> + public partial class Curve2 : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -55054,51 +57287,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static ConnSpiral Load(string xmlFile) { - return XTypedServices.Load<ConnSpiral>(xmlFile); - } - - public static ConnSpiral Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ConnSpiral>(xmlFile); - } - - public static ConnSpiral Parse(string xml) { - return XTypedServices.Parse<ConnSpiral>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnSpiral>(this); + public static Curve2 Load(string xmlFile) { + return XTypedServices.Load<Curve2>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SpiralXName, typeof(Spiral)); + public static Curve2 Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Curve2>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static Curve2 Parse(string xml) { + return XTypedServices.Parse<Curve2>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Curve) - /// </para> - /// </summary> - public partial class Curve2 : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CurveXName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curve2", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); public static explicit operator Curve2(XElement xe) { return XTypedServices.ToXTypedElement<Curve2>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Curve2() { - BuildElementDictionary(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Curve2>(this); } /// <summary> @@ -55109,6 +57313,10 @@ static Curve2() { public Curve2() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CurveXName = System.Xml.Linq.XName.Get("Curve", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -55127,6 +57335,19 @@ public virtual Curve Curve { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Curve2", "http://www.landxml.org/schema/LandXML-1.2"); + + static Curve2() { + BuildElementDictionary(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CurveXName, typeof(Curve)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -55134,6 +57355,10 @@ public virtual Curve Curve { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -55154,6 +57379,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Spiral) + /// </para> + /// </summary> + public partial class OutSpiral : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -55167,51 +57400,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Curve2 Load(string xmlFile) { - return XTypedServices.Load<Curve2>(xmlFile); - } - - public static Curve2 Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Curve2>(xmlFile); - } - - public static Curve2 Parse(string xml) { - return XTypedServices.Parse<Curve2>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Curve2>(this); + public static OutSpiral Load(string xmlFile) { + return XTypedServices.Load<OutSpiral>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CurveXName, typeof(Curve)); + public static OutSpiral Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<OutSpiral>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static OutSpiral Parse(string xml) { + return XTypedServices.Parse<OutSpiral>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Spiral) - /// </para> - /// </summary> - public partial class OutSpiral : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OutSpiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); public static explicit operator OutSpiral(XElement xe) { return XTypedServices.ToXTypedElement<OutSpiral>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static OutSpiral() { - BuildElementDictionary(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OutSpiral>(this); } /// <summary> @@ -55222,6 +57426,10 @@ static OutSpiral() { public OutSpiral() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpiralXName = System.Xml.Linq.XName.Get("Spiral", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -55240,6 +57448,19 @@ public virtual Spiral Spiral { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OutSpiral", "http://www.landxml.org/schema/LandXML-1.2"); + + static OutSpiral() { + BuildElementDictionary(); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SpiralXName, typeof(Spiral)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -55247,6 +57468,10 @@ public virtual Spiral Spiral { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -55267,6 +57492,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (Station | PI | InSpiral? | Curve1? | ConnSpiral? | Curve2? | OutSpiral?)+ + /// </para> + /// </summary> + public partial class AlignPI : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -55280,100 +57513,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static OutSpiral Load(string xmlFile) { - return XTypedServices.Load<OutSpiral>(xmlFile); - } - - public static OutSpiral Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<OutSpiral>(xmlFile); - } - - public static OutSpiral Parse(string xml) { - return XTypedServices.Parse<OutSpiral>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OutSpiral>(this); + public static AlignPI Load(string xmlFile) { + return XTypedServices.Load<AlignPI>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SpiralXName, typeof(Spiral)); + public static AlignPI Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AlignPI>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public static AlignPI Parse(string xml) { + return XTypedServices.Parse<AlignPI>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (Station | PI | InSpiral? | Curve1? | ConnSpiral? | Curve2? | OutSpiral?)+ - /// </para> - /// </summary> - public partial class AlignPI : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StationXName = System.Xml.Linq.XName.Get("Station", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XSimpleList<Station> StationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PIXName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PI> PIField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InSpiralXName = System.Xml.Linq.XName.Get("InSpiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<InSpiral> InSpiralField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName Curve1XName = System.Xml.Linq.XName.Get("Curve1", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Curve1> Curve1Field; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnSpiralXName = System.Xml.Linq.XName.Get("ConnSpiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ConnSpiral> ConnSpiralField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName Curve2XName = System.Xml.Linq.XName.Get("Curve2", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Curve2> Curve2Field; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutSpiralXName = System.Xml.Linq.XName.Get("OutSpiral", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OutSpiral> OutSpiralField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AlignPI", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator AlignPI(XElement xe) { return XTypedServices.ToXTypedElement<AlignPI>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AlignPI() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StationXName), new NamedContentModelEntity(PIXName), new NamedContentModelEntity(InSpiralXName), new NamedContentModelEntity(Curve1XName), new NamedContentModelEntity(ConnSpiralXName), new NamedContentModelEntity(Curve2XName), new NamedContentModelEntity(OutSpiralXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AlignPI>(this); } /// <summary> @@ -55384,6 +57539,13 @@ static AlignPI() { public AlignPI() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StationXName = System.Xml.Linq.XName.Get("Station", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XSimpleList<Station> StationField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -55414,6 +57576,13 @@ public virtual IList<Station> Station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PIXName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PI> PIField; + /// <summary> /// <para> /// Occurrence: required, choice @@ -55444,6 +57613,13 @@ public virtual IList<PI> PI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InSpiralXName = System.Xml.Linq.XName.Get("InSpiral", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<InSpiral> InSpiralField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -55474,6 +57650,13 @@ public virtual IList<InSpiral> InSpiral { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName Curve1XName = System.Xml.Linq.XName.Get("Curve1", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Curve1> Curve1Field; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -55504,6 +57687,13 @@ public virtual IList<Curve1> Curve1 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnSpiralXName = System.Xml.Linq.XName.Get("ConnSpiral", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ConnSpiral> ConnSpiralField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -55534,6 +57724,13 @@ public virtual IList<ConnSpiral> ConnSpiral { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName Curve2XName = System.Xml.Linq.XName.Get("Curve2", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Curve2> Curve2Field; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -55564,6 +57761,13 @@ public virtual IList<Curve2> Curve2 { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutSpiralXName = System.Xml.Linq.XName.Get("OutSpiral", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OutSpiral> OutSpiralField; + /// <summary> /// <para> /// Occurrence: optional, choice @@ -55594,6 +57798,26 @@ public virtual IList<OutSpiral> OutSpiral { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AlignPI", "http://www.landxml.org/schema/LandXML-1.2"); + + static AlignPI() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(StationXName), new NamedContentModelEntity(PIXName), new NamedContentModelEntity(InSpiralXName), new NamedContentModelEntity(Curve1XName), new NamedContentModelEntity(ConnSpiralXName), new NamedContentModelEntity(Curve2XName), new NamedContentModelEntity(OutSpiralXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(StationXName, typeof(Station)); + localElementDictionary.Add(PIXName, typeof(PI)); + localElementDictionary.Add(InSpiralXName, typeof(InSpiral)); + localElementDictionary.Add(Curve1XName, typeof(Curve1)); + localElementDictionary.Add(ConnSpiralXName, typeof(ConnSpiral)); + localElementDictionary.Add(Curve2XName, typeof(Curve2)); + localElementDictionary.Add(OutSpiralXName, typeof(OutSpiral)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -55601,6 +57825,13 @@ public virtual IList<OutSpiral> OutSpiral { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -55621,6 +57852,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (AlignPI)+ + /// </para> + /// </summary> + public partial class AlignPIs : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -55634,64 +57873,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static AlignPI Load(string xmlFile) { - return XTypedServices.Load<AlignPI>(xmlFile); - } - - public static AlignPI Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AlignPI>(xmlFile); - } - - public static AlignPI Parse(string xml) { - return XTypedServices.Parse<AlignPI>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AlignPI>(this); + public static AlignPIs Load(string xmlFile) { + return XTypedServices.Load<AlignPIs>(xmlFile); } - private static void BuildElementDictionary() { - localElementDictionary.Add(StationXName, typeof(Station)); - localElementDictionary.Add(PIXName, typeof(PI)); - localElementDictionary.Add(InSpiralXName, typeof(InSpiral)); - localElementDictionary.Add(Curve1XName, typeof(Curve1)); - localElementDictionary.Add(ConnSpiralXName, typeof(ConnSpiral)); - localElementDictionary.Add(Curve2XName, typeof(Curve2)); - localElementDictionary.Add(OutSpiralXName, typeof(OutSpiral)); + public static AlignPIs Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<AlignPIs>(xmlFile); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public static AlignPIs Parse(string xml) { + return XTypedServices.Parse<AlignPIs>(xml); } - } - - /// <summary> - /// <para> - /// Regular expression: (AlignPI)+ - /// </para> - /// </summary> - public partial class AlignPIs : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AlignPIXName = System.Xml.Linq.XName.Get("AlignPI", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AlignPI> AlignPIField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AlignPIs", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; public static explicit operator AlignPIs(XElement xe) { return XTypedServices.ToXTypedElement<AlignPIs>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AlignPIs() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AlignPIXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AlignPIs>(this); } /// <summary> @@ -55702,6 +57899,13 @@ static AlignPIs() { public AlignPIs() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AlignPIXName = System.Xml.Linq.XName.Get("AlignPI", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AlignPI> AlignPIField; + /// <summary> /// <para> /// Occurrence: required @@ -55732,6 +57936,20 @@ public virtual IList<AlignPI> AlignPI { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AlignPIs", "http://www.landxml.org/schema/LandXML-1.2"); + + static AlignPIs() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AlignPIXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AlignPIXName, typeof(AlignPI)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -55739,6 +57957,13 @@ public virtual IList<AlignPI> AlignPI { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -55759,6 +57984,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: ((CantStation* | SpeedStation*)+, Feature*) + /// </para> + /// </summary> + public partial class Cant : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -55772,100 +58005,22 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static AlignPIs Load(string xmlFile) { - return XTypedServices.Load<AlignPIs>(xmlFile); + public static Cant Load(string xmlFile) { + return XTypedServices.Load<Cant>(xmlFile); } - public static AlignPIs Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<AlignPIs>(xmlFile); + public static Cant Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Cant>(xmlFile); } - public static AlignPIs Parse(string xml) { - return XTypedServices.Parse<AlignPIs>(xml); + public static Cant Parse(string xml) { + return XTypedServices.Parse<Cant>(xml); } + public static explicit operator Cant(XElement xe) { return XTypedServices.ToXTypedElement<Cant>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AlignPIs>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AlignPIXName, typeof(AlignPI)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - } - - /// <summary> - /// <para> - /// Regular expression: ((CantStation* | SpeedStation*)+, Feature*) - /// </para> - /// </summary> - public partial class Cant : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CantStationXName = System.Xml.Linq.XName.Get("CantStation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CantStation> CantStationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SpeedStationXName = System.Xml.Linq.XName.Get("SpeedStation", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SpeedStation> SpeedStationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName equilibriumConstantXName = System.Xml.Linq.XName.Get("equilibriumConstant", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName appliedCantConstantXName = System.Xml.Linq.XName.Get("appliedCantConstant", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName gaugeXName = System.Xml.Linq.XName.Get("gauge", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rotationPointXName = System.Xml.Linq.XName.Get("rotationPoint", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Cant", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator Cant(XElement xe) { return XTypedServices.ToXTypedElement<Cant>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static Cant() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(CantStationXName), new NamedContentModelEntity(SpeedStationXName)), new NamedContentModelEntity(FeatureXName)); + return XTypedServices.CloneXTypedElement<Cant>(this); } /// <summary> @@ -55876,6 +58031,13 @@ static Cant() { public Cant() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CantStationXName = System.Xml.Linq.XName.Get("CantStation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CantStation> CantStationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -55909,6 +58071,13 @@ public virtual IList<CantStation> CantStation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SpeedStationXName = System.Xml.Linq.XName.Get("SpeedStation", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SpeedStation> SpeedStationField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -55942,6 +58111,13 @@ public virtual IList<SpeedStation> SpeedStation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -55972,6 +58148,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: required @@ -55987,6 +58167,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -55995,6 +58179,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -56002,6 +58189,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56013,13 +58204,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName equilibriumConstantXName = System.Xml.Linq.XName.Get("equilibriumConstant", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56038,6 +58238,10 @@ public virtual System.Double? equilibriumConstant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName appliedCantConstantXName = System.Xml.Linq.XName.Get("appliedCantConstant", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56056,6 +58260,10 @@ public virtual System.Double? appliedCantConstant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName gaugeXName = System.Xml.Linq.XName.Get("gauge", ""); + /// <summary> /// <para> /// Occurrence: required @@ -56071,6 +58279,10 @@ public virtual double gauge { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rotationPointXName = System.Xml.Linq.XName.Get("rotationPoint", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56079,6 +58291,9 @@ public virtual double gauge { public virtual string rotationPoint { get { XAttribute x = this.Attribute(rotationPointXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -56086,6 +58301,22 @@ public virtual string rotationPoint { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Cant", "http://www.landxml.org/schema/LandXML-1.2"); + + static Cant() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new ChoiceContentModelEntity(new NamedContentModelEntity(CantStationXName), new NamedContentModelEntity(SpeedStationXName)), new NamedContentModelEntity(FeatureXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(CantStationXName, typeof(CantStation)); + localElementDictionary.Add(SpeedStationXName, typeof(SpeedStation)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -56093,6 +58324,13 @@ public virtual string rotationPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -56113,6 +58351,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class CantStation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -56126,93 +58367,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Cant Load(string xmlFile) { - return XTypedServices.Load<Cant>(xmlFile); + public static CantStation Load(string xmlFile) { + return XTypedServices.Load<CantStation>(xmlFile); } - public static Cant Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Cant>(xmlFile); + public static CantStation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<CantStation>(xmlFile); } - public static Cant Parse(string xml) { - return XTypedServices.Parse<Cant>(xml); + public static CantStation Parse(string xml) { + return XTypedServices.Parse<CantStation>(xml); } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Cant>(this); - } + public static explicit operator CantStation(XElement xe) { return XTypedServices.ToXTypedElement<CantStation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(CantStationXName, typeof(CantStation)); - localElementDictionary.Add(SpeedStationXName, typeof(SpeedStation)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CantStation>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public CantStation() { } - } - - public partial class CantStation : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName equilibriumCantXName = System.Xml.Linq.XName.Get("equilibriumCant", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName appliedCantXName = System.Xml.Linq.XName.Get("appliedCant", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName cantDeficiencyXName = System.Xml.Linq.XName.Get("cantDeficiency", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName cantExcessXName = System.Xml.Linq.XName.Get("cantExcess", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rateOfChangeOfAppliedCantOverTimeXName = System.Xml.Linq.XName.Get("rateOfChangeOfAppliedCantOverTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rateOfChangeOfAppliedCantOverLengthXName = System.Xml.Linq.XName.Get("rateOfChangeOfAppliedCantOverLength", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rateOfChangeOfCantDeficiencyOverTimeXName = System.Xml.Linq.XName.Get("rateOfChangeOfCantDeficiencyOverTime", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName cantGradientXName = System.Xml.Linq.XName.Get("cantGradient", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName transitionTypeXName = System.Xml.Linq.XName.Get("transitionType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName curvatureXName = System.Xml.Linq.XName.Get("curvature", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName adverseXName = System.Xml.Linq.XName.Get("adverse", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CantStation", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator CantStation(XElement xe) { return XTypedServices.ToXTypedElement<CantStation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public CantStation() { - } + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); /// <summary> /// <para> @@ -56229,6 +58407,10 @@ public virtual double station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName equilibriumCantXName = System.Xml.Linq.XName.Get("equilibriumCant", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56247,6 +58429,10 @@ public virtual System.Double? equilibriumCant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName appliedCantXName = System.Xml.Linq.XName.Get("appliedCant", ""); + /// <summary> /// <para> /// Occurrence: required @@ -56262,6 +58448,10 @@ public virtual double appliedCant { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName cantDeficiencyXName = System.Xml.Linq.XName.Get("cantDeficiency", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56280,6 +58470,10 @@ public virtual System.Double? cantDeficiency { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName cantExcessXName = System.Xml.Linq.XName.Get("cantExcess", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56298,6 +58492,10 @@ public virtual System.Double? cantExcess { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rateOfChangeOfAppliedCantOverTimeXName = System.Xml.Linq.XName.Get("rateOfChangeOfAppliedCantOverTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56316,6 +58514,10 @@ public virtual System.Double? rateOfChangeOfAppliedCantOverTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rateOfChangeOfAppliedCantOverLengthXName = System.Xml.Linq.XName.Get("rateOfChangeOfAppliedCantOverLength", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56334,6 +58536,10 @@ public virtual System.Double? rateOfChangeOfAppliedCantOverLength { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rateOfChangeOfCantDeficiencyOverTimeXName = System.Xml.Linq.XName.Get("rateOfChangeOfCantDeficiencyOverTime", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56352,6 +58558,10 @@ public virtual System.Double? rateOfChangeOfCantDeficiencyOverTime { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName cantGradientXName = System.Xml.Linq.XName.Get("cantGradient", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56370,6 +58580,10 @@ public virtual System.Double? cantGradient { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56388,6 +58602,10 @@ public virtual System.Double? speed { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName transitionTypeXName = System.Xml.Linq.XName.Get("transitionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56399,13 +58617,22 @@ public virtual LandXml.v1_2.spiralType? transitionType { if ((x == null)) { return null; } - return ((LandXml.v1_2.spiralType)(Enum.Parse(typeof(LandXml.v1_2.spiralType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.spiralType)(Enum.Parse(typeof(LandXml.v1_2.spiralType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.spiralTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(transitionTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(transitionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(transitionTypeXName, value.ToString(), "transitionType", global::LandXml.v1_2.spiralTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName curvatureXName = System.Xml.Linq.XName.Get("curvature", ""); + /// <summary> /// <para> /// Occurrence: required @@ -56414,13 +58641,17 @@ public virtual LandXml.v1_2.spiralType? transitionType { public virtual LandXml.v1_2.clockwise curvature { get { XAttribute x = this.Attribute(curvatureXName); - return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.clockwise)(Enum.Parse(typeof(LandXml.v1_2.clockwise), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.clockwiseValidator.TypeDefinition)))); } set { - this.SetAttribute(curvatureXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(curvatureXName, value.ToString(), "curvature", global::LandXml.v1_2.clockwiseValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName adverseXName = System.Xml.Linq.XName.Get("adverse", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -56439,6 +58670,12 @@ public virtual System.Boolean? adverse { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CantStation", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -56459,6 +58696,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class SpeedStation : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -56472,43 +58712,30 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static CantStation Load(string xmlFile) { - return XTypedServices.Load<CantStation>(xmlFile); + public static SpeedStation Load(string xmlFile) { + return XTypedServices.Load<SpeedStation>(xmlFile); } - public static CantStation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<CantStation>(xmlFile); + public static SpeedStation Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SpeedStation>(xmlFile); } - public static CantStation Parse(string xml) { - return XTypedServices.Parse<CantStation>(xml); + public static SpeedStation Parse(string xml) { + return XTypedServices.Parse<SpeedStation>(xml); } + public static explicit operator SpeedStation(XElement xe) { return XTypedServices.ToXTypedElement<SpeedStation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CantStation>(this); + return XTypedServices.CloneXTypedElement<SpeedStation>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public SpeedStation() { } - } - - public partial class SpeedStation : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SpeedStation", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator SpeedStation(XElement xe) { return XTypedServices.ToXTypedElement<SpeedStation>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SpeedStation() { - } + protected internal static readonly System.Xml.Linq.XName stationXName = System.Xml.Linq.XName.Get("station", ""); /// <summary> /// <para> @@ -56525,6 +58752,10 @@ public virtual double station { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName speedXName = System.Xml.Linq.XName.Get("speed", ""); + /// <summary> /// <para> /// Occurrence: required @@ -56540,6 +58771,12 @@ public virtual double speed { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SpeedStation", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -56560,38 +58797,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static SpeedStation Load(string xmlFile) { - return XTypedServices.Load<SpeedStation>(xmlFile); - } - - public static SpeedStation Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SpeedStation>(xmlFile); - } - - public static SpeedStation Parse(string xml) { - return XTypedServices.Parse<SpeedStation>(xml); - } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SpeedStation>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -56601,11 +58806,11 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public sealed class ellipsoidHeightType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private ellipsoidHeightType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56631,15 +58836,32 @@ public enum elevationType { /// </summary> public sealed class elevationTypeValidator { + private elevationTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "meter", "kilometer", "feet", "miles"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// Latitude/Longitude coordinate angular values. Latitude (range -90 to +90) positive values for the northern hemispher, negative indicate the southern. Longitude (range -180 to +180) positive values are to the east of the prime meridian, negative values are to the west. Values expressed in "decimal dd.mm.ss" units have the numeric format "45.3025" representing 45 degrees 30 minutes and 25 seconds. Both the minutes and seconds must be two characters with a numeric range between 00 to 60. + /// + /// </para> + /// </summary> + public enum latLongAngularType { - private elevationTypeValidator() { - } + radians, + + grads, + + decimal_degrees, + + decimal_dd_mm_ss, } /// <summary> @@ -56648,17 +58870,17 @@ private elevationTypeValidator() { /// /// </para> /// </summary> - public sealed class latLongAngularType { + public sealed class latLongAngularTypeValidator { + + private latLongAngularTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "radians", "grads", - "decimal degrees", - "decimal dd.mm.ss"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private latLongAngularType() { - } + "decimal degrees:decimal_degrees", + "decimal dd.mm.ss:decimal_dd_mm_ss"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } /// <summary> @@ -56668,11 +58890,11 @@ private latLongAngularType() { /// </summary> public sealed class latLongAngle { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private latLongAngle() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56682,11 +58904,11 @@ private latLongAngle() { /// </summary> public sealed class angle { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private angle() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56698,11 +58920,11 @@ private angle() { /// </summary> public sealed class zenithAngle { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private zenithAngle() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56713,11 +58935,11 @@ private zenithAngle() { /// </summary> public sealed class direction { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private direction() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56727,11 +58949,11 @@ private direction() { /// </summary> public sealed class station { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private station() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56741,11 +58963,11 @@ private station() { /// </summary> public sealed class volume { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private volume() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56755,11 +58977,11 @@ private volume() { /// </summary> public sealed class area { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private area() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56769,11 +58991,11 @@ private area() { /// </summary> public sealed class offsetDistance { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private offsetDistance() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56783,11 +59005,11 @@ private offsetDistance() { /// </summary> public sealed class offsetElevation { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private offsetElevation() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56797,11 +59019,11 @@ private offsetElevation() { /// </summary> public sealed class crossSectSurfaceVolume { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private crossSectSurfaceVolume() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56811,11 +59033,11 @@ private crossSectSurfaceVolume() { /// </summary> public sealed class crossSectSurfaceArea { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private crossSectSurfaceArea() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56825,11 +59047,11 @@ private crossSectSurfaceArea() { /// </summary> public sealed class crossSlope { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private crossSlope() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56839,11 +59061,11 @@ private crossSlope() { /// </summary> public sealed class slope { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private slope() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56853,11 +59075,11 @@ private slope() { /// </summary> public sealed class GPSTime { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private GPSTime() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -56867,11 +59089,11 @@ private GPSTime() { /// </summary> public sealed class pointNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private pointNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -56881,11 +59103,11 @@ private pointNameRef() { /// </summary> public sealed class pointNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private pointNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -56895,11 +59117,11 @@ private pointNameRefs() { /// </summary> public sealed class cgPointsNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private cgPointsNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -56909,11 +59131,11 @@ private cgPointsNameRef() { /// </summary> public sealed class cgPointsNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private cgPointsNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -56923,11 +59145,11 @@ private cgPointsNameRefs() { /// </summary> public sealed class alignmentNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private alignmentNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -56937,11 +59159,11 @@ private alignmentNameRef() { /// </summary> public sealed class alignmentNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private alignmentNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -56951,11 +59173,11 @@ private alignmentNameRefs() { /// </summary> public sealed class surfaceNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private surfaceNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -56965,11 +59187,11 @@ private surfaceNameRef() { /// </summary> public sealed class surfaceNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private surfaceNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -56979,11 +59201,11 @@ private surfaceNameRefs() { /// </summary> public sealed class parcelNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private parcelNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -56993,11 +59215,11 @@ private parcelNameRef() { /// </summary> public sealed class parcelNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private parcelNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -57007,11 +59229,11 @@ private parcelNameRefs() { /// </summary> public sealed class planFeatureNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private planFeatureNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57021,11 +59243,11 @@ private planFeatureNameRef() { /// </summary> public sealed class planFeatureNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private planFeatureNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -57035,11 +59257,11 @@ private planFeatureNameRefs() { /// </summary> public sealed class coordGeomNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private coordGeomNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57049,11 +59271,11 @@ private coordGeomNameRef() { /// </summary> public sealed class coordGeomNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private coordGeomNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -57063,11 +59285,11 @@ private coordGeomNameRefs() { /// </summary> public sealed class pipeNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private pipeNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57077,11 +59299,11 @@ private pipeNameRef() { /// </summary> public sealed class pipeNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private pipeNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -57091,11 +59313,11 @@ private pipeNameRefs() { /// </summary> public sealed class structNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private structNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57105,11 +59327,11 @@ private structNameRef() { /// </summary> public sealed class structNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private structNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -57119,11 +59341,11 @@ private structNameRefs() { /// </summary> public sealed class monumentNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private monumentNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57133,11 +59355,11 @@ private monumentNameRef() { /// </summary> public sealed class waterShedNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private waterShedNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57147,11 +59369,11 @@ private waterShedNameRef() { /// </summary> public sealed class roadwayNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private roadwayNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57161,11 +59383,11 @@ private roadwayNameRef() { /// </summary> public sealed class roadwayNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private roadwayNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -57175,11 +59397,11 @@ private roadwayNameRefs() { /// </summary> public sealed class gradeModelNameRef { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private gradeModelNameRef() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -57189,11 +59411,11 @@ private gradeModelNameRef() { /// </summary> public sealed class gradeModelNameRefs { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); - private gradeModelNameRefs() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null)); } /// <summary> @@ -57203,27 +59425,44 @@ private gradeModelNameRefs() { /// </summary> public sealed class featureNameRef { + private featureNameRef() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); + } + + public enum surveyRoleType { - private featureNameRef() { - } + measured, + + to_stake_out, + + staked_out, + + calculated, + + assistance_point, + + user_entered_point, + + control_point, } - public sealed class surveyRoleType { + public sealed class surveyRoleTypeValidator { + + private surveyRoleTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "measured", - "to stake out", - "staked out", + "to stake out:to_stake_out", + "staked out:staked_out", "calculated", - "assistance point", - "user entered point", - "control point"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private surveyRoleType() { - } + "assistance point:assistance_point", + "user entered point:user_entered_point", + "control point:control_point"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum observationStatusType { @@ -57235,13 +59474,38 @@ public enum observationStatusType { public sealed class observationStatusTypeValidator { + private observationStatusTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "modified", "deleted"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// Indicates any structure that protects the + /// monument, these enumerations may need expanding + /// </para> + /// </summary> + public enum beaconProtectionType { - private observationStatusTypeValidator() { - } + cover, + + cover_and_box, + + fence_enclosure, + + marker_post, + + no_protection, + + other, + + quadripod, + + unknown, } /// <summary> @@ -57250,21 +59514,61 @@ private observationStatusTypeValidator() { /// monument, these enumerations may need expanding /// </para> /// </summary> - public sealed class beaconProtectionType { + public sealed class beaconProtectionTypeValidator { + + private beaconProtectionTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "cover", - "cover and box", - "fence enclosure", - "marker post", - "no protection", + "cover and box:cover_and_box", + "fence enclosure:fence_enclosure", + "marker post:marker_post", + "no protection:no_protection", "other", "quadripod", "unknown"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// Indicates whether there is any physical structure + /// for the monument - helps location, these enumerations may need expanding + /// + /// </para> + /// </summary> + public enum beaconType { - private beaconProtectionType() { - } + cairn, + + chimney, + + large_quadripod, + + lighthouse, + + marine_beacon, + + mast, + + mast_with_targets, + + no_beacon, + + other, + + pillar, + + post, + + small_quadripod, + + tower, + + tripod, + + unknown, } /// <summary> @@ -57274,28 +59578,28 @@ private beaconProtectionType() { /// /// </para> /// </summary> - public sealed class beaconType { + public sealed class beaconTypeValidator { + + private beaconTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "cairn", "chimney", - "large quadripod", + "large quadripod:large_quadripod", "lighthouse", - "marine beacon", + "marine beacon:marine_beacon", "mast", - "mast with targets", - "no beacon", + "mast with targets:mast_with_targets", + "no beacon:no_beacon", "other", "pillar", "post", - "small quadripod", + "small quadripod:small_quadripod", "tower", "tripod", "unknown"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private beaconType() { - } } public enum clockwise { @@ -57307,13 +59611,13 @@ public enum clockwise { public sealed class clockwiseValidator { + private clockwiseValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "cw", "ccw"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private clockwiseValidator() { - } } public enum curveType { @@ -57325,16 +59629,50 @@ public enum curveType { public sealed class curveTypeValidator { + private curveTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "arc", "chord"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum DTMAttributeType { - private curveTypeValidator() { - } + determinebyfeature, + + donotinclude, + + spot, + + spotandbreak, + + @void, + + drapevoid, + + breakvoid, + + island, + + boundary, + + contour, + + feature, + + ground, + + xsection, + + user, } - public sealed class DTMAttributeType { + public sealed class DTMAttributeTypeValidator { + + private DTMAttributeTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { @@ -57342,7 +59680,7 @@ public sealed class DTMAttributeType { "donotinclude", "spot", "spotandbreak", - "void", + "void:@void", "drapevoid", "breakvoid", "island", @@ -57352,9 +59690,30 @@ public sealed class DTMAttributeType { "ground", "xsection", "user"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// The GPS solution type indicates the type of computed solution for a GPS vector or position + /// </para> + /// </summary> + public enum GPSSolutionTypeEnum { - private DTMAttributeType() { - } + Unknown, + + Code, + + Float, + + Fixed, + + Network_Float, + + Network_Fixed, + + WAAS_Float, + + WAAS_Fixed, } /// <summary> @@ -57362,7 +59721,10 @@ private DTMAttributeType() { /// The GPS solution type indicates the type of computed solution for a GPS vector or position /// </para> /// </summary> - public sealed class GPSSolutionTypeEnum { + public sealed class GPSSolutionTypeEnumValidator { + + private GPSSolutionTypeEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { @@ -57370,13 +59732,32 @@ public sealed class GPSSolutionTypeEnum { "Code", "Float", "Fixed", - "Network Float", - "Network Fixed", - "WAAS Float", - "WAAS Fixed"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "Network Float:Network_Float", + "Network Fixed:Network_Fixed", + "WAAS Float:WAAS_Float", + "WAAS Fixed:WAAS_Fixed"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// The GPS solution frequency indicates the GPS frequencies used in the computed solution for a GPS vector or position + /// </para> + /// </summary> + public enum GPSSolutionFrequencyEnum { - private GPSSolutionTypeEnum() { - } + Unknown, + + L1, + + L2, + + L2_Squared, + + Wide_Lane, + + Narrow_Lane, + + Iono_Free, } /// <summary> @@ -57384,20 +59765,20 @@ private GPSSolutionTypeEnum() { /// The GPS solution frequency indicates the GPS frequencies used in the computed solution for a GPS vector or position /// </para> /// </summary> - public sealed class GPSSolutionFrequencyEnum { + public sealed class GPSSolutionFrequencyEnumValidator { + + private GPSSolutionFrequencyEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Unknown", "L1", "L2", - "L2 Squared", - "Wide Lane", - "Narrow Lane", - "Iono Free"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private GPSSolutionFrequencyEnum() { - } + "L2 Squared:L2_Squared", + "Wide Lane:Wide_Lane", + "Narrow Lane:Narrow_Lane", + "Iono Free:Iono_Free"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum impArea { @@ -57413,15 +59794,15 @@ public enum impArea { public sealed class impAreaValidator { + private impAreaValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "acre", "squareFoot", "squareInch", "squareMiles"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impAreaValidator() { - } } public enum impLinear { @@ -57437,15 +59818,15 @@ public enum impLinear { public sealed class impLinearValidator { + private impLinearValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "foot", "USSurveyFoot", "inch", "mile"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impLinearValidator() { - } } public enum impPressure { @@ -57457,13 +59838,13 @@ public enum impPressure { public sealed class impPressureValidator { + private impPressureValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "inchHG", "inHG"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impPressureValidator() { - } } public enum impTemperature { @@ -57475,13 +59856,13 @@ public enum impTemperature { public sealed class impTemperatureValidator { + private impTemperatureValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "fahrenheit", "kelvin"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impTemperatureValidator() { - } } public enum impDiameter { @@ -57495,14 +59876,14 @@ public enum impDiameter { public sealed class impDiameterValidator { + private impDiameterValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "foot", "USSurveyFoot", "inch"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impDiameterValidator() { - } } public enum impWidth { @@ -57516,14 +59897,14 @@ public enum impWidth { public sealed class impWidthValidator { + private impWidthValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "foot", "USSurveyFoot", "inch"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impWidthValidator() { - } } public enum impHeight { @@ -57537,14 +59918,14 @@ public enum impHeight { public sealed class impHeightValidator { + private impHeightValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "foot", "USSurveyFoot", "inch"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impHeightValidator() { - } } public enum impFlow { @@ -57566,6 +59947,9 @@ public enum impFlow { public sealed class impFlowValidator { + private impFlowValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "US_gallonPerDay", @@ -57575,9 +59959,6 @@ public sealed class impFlowValidator { "IMP_gallonPerMinute", "acreFeetDay", "cubicFeetSecond"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impFlowValidator() { - } } public enum impVolume { @@ -57597,6 +59978,9 @@ public enum impVolume { public sealed class impVolumeValidator { + private impVolumeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "US_gallon", @@ -57605,9 +59989,6 @@ public sealed class impVolumeValidator { "cubicFeet", "cubicYard", "acreFeet"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private impVolumeValidator() { - } } public enum impVelocity { @@ -57619,25 +60000,34 @@ public enum impVelocity { public sealed class impVelocityValidator { + private impVelocityValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "feetPerSecond", "milesPerHour"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum inOut { - private impVelocityValidator() { - } + @in, + + @out, + + both, } - public sealed class inOut { + public sealed class inOutValidator { + + private inOutValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "in", - "out", + "in:@in", + "out:@out", "both"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private inOut() { - } } public enum metArea { @@ -57653,15 +60043,15 @@ public enum metArea { public sealed class metAreaValidator { + private metAreaValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "hectare", "squareMeter", "squareMillimeter", "squareCentimeter"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metAreaValidator() { - } } public enum metLinear { @@ -57677,15 +60067,15 @@ public enum metLinear { public sealed class metLinearValidator { + private metLinearValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "millimeter", "centimeter", "meter", "kilometer"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metLinearValidator() { - } } public enum metDiameter { @@ -57701,15 +60091,15 @@ public enum metDiameter { public sealed class metDiameterValidator { + private metDiameterValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "millimeter", "centimeter", "meter", "kilometer"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metDiameterValidator() { - } } public enum metWidth { @@ -57725,15 +60115,15 @@ public enum metWidth { public sealed class metWidthValidator { + private metWidthValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "millimeter", "centimeter", "meter", "kilometer"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metWidthValidator() { - } } public enum metHeight { @@ -57749,15 +60139,15 @@ public enum metHeight { public sealed class metHeightValidator { + private metHeightValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "millimeter", "centimeter", "meter", "kilometer"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metHeightValidator() { - } } public enum metPressure { @@ -57773,15 +60163,15 @@ public enum metPressure { public sealed class metPressureValidator { + private metPressureValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "HPA", "milliBars", "mmHG", "millimeterHG"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metPressureValidator() { - } } public enum metTemperature { @@ -57793,13 +60183,13 @@ public enum metTemperature { public sealed class metTemperatureValidator { + private metTemperatureValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "celsius", "kelvin"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metTemperatureValidator() { - } } public enum metVolume { @@ -57813,14 +60203,14 @@ public enum metVolume { public sealed class metVolumeValidator { + private metVolumeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "cubicMeter", "liter", "hectareMeter"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metVolumeValidator() { - } } public enum metVelocity { @@ -57832,13 +60222,13 @@ public enum metVelocity { public sealed class metVelocityValidator { + private metVelocityValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "metersPerSecond", "kilometersPerHour"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private metVelocityValidator() { - } } public enum metFlow { @@ -57852,14 +60242,34 @@ public enum metFlow { public sealed class metFlowValidator { + private metFlowValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "cubicMeterSecond", "literPerSecond", "literPerMinute"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// This indicates the category of a geodetic Monument + /// </para> + /// </summary> + public enum monumentCategory { - private metFlowValidator() { - } + benchmark, + + central, + + reference, + + rural, + + standard_traverse, + + urban_standard_traverse, } /// <summary> @@ -57867,7 +60277,10 @@ private metFlowValidator() { /// This indicates the category of a geodetic Monument /// </para> /// </summary> - public sealed class monumentCategory { + public sealed class monumentCategoryValidator { + + private monumentCategoryValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { @@ -57875,11 +60288,8 @@ public sealed class monumentCategory { "central", "reference", "rural", - "standard traverse", - "urban standard traverse"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private monumentCategory() { - } + "standard traverse:standard_traverse", + "urban standard traverse:urban_standard_traverse"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } /// <summary> @@ -57913,6 +60323,9 @@ public enum parcelStateType { /// </summary> public sealed class parcelStateTypeValidator { + private parcelStateTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "affected", @@ -57923,9 +60336,6 @@ public sealed class parcelStateTypeValidator { "proposed", "existing", "adjoining"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private parcelStateTypeValidator() { - } } public enum pipeNetworkType { @@ -57941,15 +60351,15 @@ public enum pipeNetworkType { public sealed class pipeNetworkTypeValidator { + private pipeNetworkTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "sanitary", "storm", "water", "other"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private pipeNetworkTypeValidator() { - } } /// <summary> @@ -57995,6 +60405,9 @@ public enum purposeType { /// </summary> public sealed class purposeTypeValidator { + private purposeTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "normal", @@ -58011,9 +60424,6 @@ public sealed class purposeTypeValidator { "topo", "cutSheets", "asbuilt"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private purposeTypeValidator() { - } } public enum sideType { @@ -58025,13 +60435,13 @@ public enum sideType { public sealed class sideTypeValidator { + private sideTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "right", "left"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private sideTypeValidator() { - } } public enum spiralType { @@ -58071,6 +60481,9 @@ public enum spiralType { public sealed class spiralTypeValidator { + private spiralTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "biquadratic", @@ -58089,9 +60502,6 @@ public sealed class spiralTypeValidator { "japaneseCubic", "radioid", "weinerBogen"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private spiralTypeValidator() { - } } public enum stateType { @@ -58107,15 +60517,29 @@ public enum stateType { public sealed class stateTypeValidator { + private stateTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "abandoned", "destroyed", "existing", "proposed"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// Surface boundaries can be one of three types: outer, void, island + /// </para> + /// </summary> + public enum surfBndType { - private stateTypeValidator() { - } + outer, + + @void, + + island, } /// <summary> @@ -58123,16 +60547,16 @@ private stateTypeValidator() { /// Surface boundaries can be one of three types: outer, void, island /// </para> /// </summary> - public sealed class surfBndType { + public sealed class surfBndTypeValidator { + + private surfBndTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "outer", - "void", + "void:@void", "island"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private surfBndType() { - } } /// <summary> @@ -58154,11 +60578,11 @@ private surfBndType() { /// </summary> public sealed class surfFaceType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.PositiveInteger), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.PositiveInteger), null)); - private surfFaceType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.PositiveInteger), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.PositiveInteger), null)); } /// <summary> @@ -58186,13 +60610,13 @@ public enum surfTypeEnum { /// </summary> public sealed class surfTypeEnumValidator { + private surfTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "TIN", "grid"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private surfTypeEnumValidator() { - } } public enum surfVolCMethodType { @@ -58204,13 +60628,13 @@ public enum surfVolCMethodType { public sealed class surfVolCMethodTypeValidator { + private surfVolCMethodTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "grid", "composite"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private surfVolCMethodTypeValidator() { - } } /// <summary> @@ -58234,14 +60658,38 @@ public enum surveyType { /// </summary> public sealed class surveyTypeValidator { + private surveyTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "compiled", "computed", "surveyed"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + /// <summary> + /// <para> + /// Optional COGO Point attribute to designate the survey point type. + /// </para> + /// </summary> + public enum survPntType { - private surveyTypeValidator() { - } + monument, + + control, + + sideshot, + + boundary, + + natural_boundary, + + traverse, + + reference, + + administrative, } /// <summary> @@ -58249,7 +60697,10 @@ private surveyTypeValidator() { /// Optional COGO Point attribute to designate the survey point type. /// </para> /// </summary> - public sealed class survPntType { + public sealed class survPntTypeValidator { + + private survPntTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { @@ -58257,13 +60708,10 @@ public sealed class survPntType { "control", "sideshot", "boundary", - "natural boundary", + "natural boundary:natural_boundary", "traverse", "reference", "administrative"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private survPntType() { - } } public enum xsVolCalcMethodType { @@ -58275,13 +60723,13 @@ public enum xsVolCalcMethodType { public sealed class xsVolCalcMethodTypeValidator { + private xsVolCalcMethodTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "AverageEndArea", "Prismoidal"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private xsVolCalcMethodTypeValidator() { - } } /// <summary> @@ -58291,11 +60739,11 @@ private xsVolCalcMethodTypeValidator() { /// </summary> public sealed class parcelFormat { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private parcelFormat() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58305,11 +60753,11 @@ private parcelFormat() { /// </summary> public sealed class useOfParcelType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private useOfParcelType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58319,11 +60767,11 @@ private useOfParcelType() { /// </summary> public sealed class titleTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private titleTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58333,11 +60781,11 @@ private titleTypeType() { /// </summary> public sealed class surveyFormatType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private surveyFormatType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58347,11 +60795,11 @@ private surveyFormatType() { /// </summary> public sealed class headOfPowerType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private headOfPowerType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58361,11 +60809,11 @@ private headOfPowerType() { /// </summary> public sealed class documentStatusType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private documentStatusType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58375,11 +60823,11 @@ private documentStatusType() { /// </summary> public sealed class surveyStatusType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private surveyStatusType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58389,11 +60837,11 @@ private surveyStatusType() { /// </summary> public sealed class adminAreaTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private adminAreaTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58403,11 +60851,11 @@ private adminAreaTypeType() { /// </summary> public sealed class annotationType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private annotationType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58417,20 +60865,20 @@ private annotationType() { /// </summary> public sealed class jurisdictionType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private jurisdictionType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } public sealed class zoneNumberType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.PositiveInteger), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 99m, 0, null, 1m, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private zoneNumberType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.PositiveInteger), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 99m, 0, null, 1m, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } /// <summary> @@ -58440,34 +60888,50 @@ private zoneNumberType() { /// </summary> public sealed class adminDateTypeType { + private adminDateTypeType() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); + } + + public enum designLocationType { - private adminDateTypeType() { - } + Final_Surface, + + Datum, + + Intermediate, } - public sealed class designLocationType { + public sealed class designLocationTypeValidator { + + private designLocationTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "Final Surface", + "Final Surface:Final_Surface", "Datum", "Intermediate"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum dataFormatType { - private designLocationType() { - } + Offset_Elevation, + + Slope_Distance, } - public sealed class dataFormatType { + public sealed class dataFormatTypeValidator { + + private dataFormatTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "Offset Elevation", - "Slope Distance"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private dataFormatType() { - } + "Offset Elevation:Offset_Elevation", + "Slope Distance:Slope_Distance"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum connectionType { @@ -58481,14 +60945,14 @@ public enum connectionType { public sealed class connectionTypeValidator { + private connectionTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "inner", "outer", "dayLight"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private connectionTypeValidator() { - } } /// <summary> @@ -58498,11 +60962,11 @@ private connectionTypeValidator() { /// </summary> public sealed class addressTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private addressTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58512,11 +60976,11 @@ private addressTypeType() { /// </summary> public sealed class flatTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private flatTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58526,11 +60990,11 @@ private flatTypeType() { /// </summary> public sealed class roadNameSuffixType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private roadNameSuffixType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58540,11 +61004,11 @@ private roadNameSuffixType() { /// </summary> public sealed class roadTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private roadTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58554,11 +61018,11 @@ private roadTypeType() { /// </summary> public sealed class roadNameTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private roadNameTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58568,11 +61032,11 @@ private roadNameTypeType() { /// </summary> public sealed class floorLevelTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private floorLevelTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58582,11 +61046,11 @@ private floorLevelTypeType() { /// </summary> public sealed class addressPointTypeType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private addressPointTypeType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58596,11 +61060,11 @@ private addressPointTypeType() { /// </summary> public sealed class registrationType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private registrationType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58610,11 +61074,11 @@ private registrationType() { /// </summary> public sealed class surveyorRoleType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private surveyorRoleType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58624,11 +61088,11 @@ private surveyorRoleType() { /// </summary> public sealed class purpSurvType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private purpSurvType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58638,11 +61102,11 @@ private purpSurvType() { /// </summary> public sealed class exclusType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private exclusType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58652,11 +61116,11 @@ private exclusType() { /// </summary> public sealed class monumentPurpose { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private monumentPurpose() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58666,11 +61130,11 @@ private monumentPurpose() { /// </summary> public sealed class monumentState { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private monumentState() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58680,11 +61144,11 @@ private monumentState() { /// </summary> public sealed class parcelClass { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private parcelClass() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58694,11 +61158,11 @@ private parcelClass() { /// </summary> public sealed class monumentType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private monumentType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58708,11 +61172,11 @@ private monumentType() { /// </summary> public sealed class observationType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private observationType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58722,11 +61186,11 @@ private observationType() { /// </summary> public sealed class equipmentType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private equipmentType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58736,11 +61200,11 @@ private equipmentType() { /// </summary> public sealed class monumentCondition { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private monumentCondition() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } /// <summary> @@ -58751,38 +61215,38 @@ private monumentCondition() { /// </summary> public sealed class Point { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - private Point() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); } public sealed class Point3dOpt { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(6)), null, 0, 0, null, null, 3, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - private Point3dOpt() { } - } - - public sealed class Point3dReq { [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(6)), null, 0, 0, null, null, 3, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); + } + + public sealed class Point3dReq { private Point3dReq() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(6)), null, 0, 0, null, null, 3, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); } public sealed class Point2dReq { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(1)), null, 0, 2, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - private Point2dReq() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(1)), null, 0, 2, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); } public enum pointGeometryType { @@ -58794,13 +61258,13 @@ public enum pointGeometryType { public sealed class pointGeometryTypeValidator { + private pointGeometryTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "point", "curve"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private pointGeometryTypeValidator() { - } } public enum breakLineType { @@ -58816,15 +61280,15 @@ public enum breakLineType { public sealed class breakLineTypeValidator { + private breakLineTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "standard", "wall", "proximity", "nondestructive"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private breakLineTypeValidator() { - } } /// <summary> @@ -58839,86 +61303,12 @@ private breakLineTypeValidator() { /// </summary> public partial class PointType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointType", "http://www.landxml.org/schema/LandXML-1.2"); - public static explicit operator PointType(XElement xe) { return XTypedServices.ToXTypedElement<PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PointType>(this); + } + /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -58932,6 +61322,10 @@ public partial class PointType : XTypedElement, IXMetaData { public PointType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual IList<double> TypedValue { get { XElement x = this.Untyped; @@ -58942,6 +61336,10 @@ public virtual IList<double> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -58950,6 +61348,9 @@ public virtual IList<double> TypedValue { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -58957,6 +61358,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -58965,6 +61370,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -58972,6 +61380,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -58980,6 +61392,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -58987,6 +61402,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -58998,13 +61417,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59013,6 +61441,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59020,6 +61451,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59028,6 +61463,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59035,6 +61473,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59046,28 +61488,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59086,21 +61549,37 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName determinedTimeStampXName = System.Xml.Linq.XName.Get("determinedTimeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59119,6 +61598,10 @@ public virtual System.DateTime? determinedTimeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ellipsoidHeightXName = System.Xml.Linq.XName.Get("ellipsoidHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59137,6 +61620,10 @@ public virtual System.Double? ellipsoidHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName latitudeXName = System.Xml.Linq.XName.Get("latitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59155,6 +61642,10 @@ public virtual System.Double? latitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName longitudeXName = System.Xml.Linq.XName.Get("longitude", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59173,6 +61664,10 @@ public virtual System.Double? longitude { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zoneXName = System.Xml.Linq.XName.Get("zone", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59181,6 +61676,9 @@ public virtual System.Double? longitude { public virtual string zone { get { XAttribute x = this.Attribute(zoneXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59188,6 +61686,10 @@ public virtual string zone { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName northingStdErrorXName = System.Xml.Linq.XName.Get("northingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59206,6 +61708,10 @@ public virtual System.Double? northingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName eastingStdErrorXName = System.Xml.Linq.XName.Get("eastingStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59224,6 +61730,10 @@ public virtual System.Double? eastingStdError { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName elevationStdErrorXName = System.Xml.Linq.XName.Get("elevationStdError", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59242,6 +61752,12 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointType", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -59262,68 +61778,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PointType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class PointType3dReq : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + public static explicit operator PointType3dReq(XElement xe) { return XTypedServices.ToXTypedElement<PointType3dReq>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PointType3dReq>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + public PointType3dReq() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointType3dReq", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator PointType3dReq(XElement xe) { return XTypedServices.ToXTypedElement<PointType3dReq>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PointType3dReq() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual IList<double> TypedValue { get { @@ -59335,6 +61805,10 @@ public virtual IList<double> TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59343,6 +61817,9 @@ public virtual IList<double> TypedValue { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59350,6 +61827,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descXName = System.Xml.Linq.XName.Get("desc", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59358,6 +61839,9 @@ public virtual string name { public virtual string desc { get { XAttribute x = this.Attribute(descXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59365,6 +61849,10 @@ public virtual string desc { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codeXName = System.Xml.Linq.XName.Get("code", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59373,6 +61861,9 @@ public virtual string desc { public virtual string code { get { XAttribute x = this.Attribute(codeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59380,6 +61871,10 @@ public virtual string code { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59391,13 +61886,22 @@ public virtual LandXml.v1_2.stateType? state { if ((x == null)) { return null; } - return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.stateType)(Enum.Parse(typeof(LandXml.v1_2.stateType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.stateTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::LandXml.v1_2.stateTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pntRefXName = System.Xml.Linq.XName.Get("pntRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59406,6 +61910,9 @@ public virtual LandXml.v1_2.stateType? state { public virtual string pntRef { get { XAttribute x = this.Attribute(pntRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59413,6 +61920,10 @@ public virtual string pntRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName featureRefXName = System.Xml.Linq.XName.Get("featureRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59421,6 +61932,9 @@ public virtual string pntRef { public virtual string featureRef { get { XAttribute x = this.Attribute(featureRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -59428,6 +61942,10 @@ public virtual string featureRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pointGeometryXName = System.Xml.Linq.XName.Get("pointGeometry", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59439,28 +61957,49 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { if ((x == null)) { return null; } - return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.pointGeometryType)(Enum.Parse(typeof(LandXml.v1_2.pointGeometryType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(pointGeometryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(pointGeometryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(pointGeometryXName, value.ToString(), "pointGeometry", global::LandXml.v1_2.pointGeometryTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTMAttributeXName = System.Xml.Linq.XName.Get("DTMAttribute", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { XAttribute x = this.Attribute(DTMAttributeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.DTMAttributeType)(Enum.Parse(typeof(LandXml.v1_2.DTMAttributeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(DTMAttributeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DTMAttributeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DTMAttributeXName, value.ToString(), "DTMAttribute", global::LandXml.v1_2.DTMAttributeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59479,21 +62018,39 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName roleXName = System.Xml.Linq.XName.Get("role", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { XAttribute x = this.Attribute(roleXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((LandXml.v1_2.surveyRoleType)(Enum.Parse(typeof(LandXml.v1_2.surveyRoleType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(roleXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(roleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(roleXName, value.ToString(), "role", global::LandXml.v1_2.surveyRoleTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PointType3dReq", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -59514,14 +62071,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PointType3dReq>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -59534,11 +62083,29 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public sealed class ChainType { + private ChainType() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null, LandXml.v1_2.pointNameRef.TypeDefinition); + } + + /// <summary> + /// <para> + /// angular values expressed in "decimal dd.mm.ss" units have the numeric + /// format "45.3025" representing 45 degrees 30 minutes and 25 seconds. Both the minutes and seconds must be two characters with a numeric range between 00 to 60. + /// + /// </para> + /// </summary> + public enum angularType { - private ChainType() { - } + radians, + + grads, + + decimal_degrees, + + decimal_dd_mm_ss, } /// <summary> @@ -59548,17 +62115,17 @@ private ChainType() { /// /// </para> /// </summary> - public sealed class angularType { + public sealed class angularTypeValidator { + + private angularTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "radians", "grads", - "decimal degrees", - "decimal dd.mm.ss"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private angularType() { - } + "decimal degrees:decimal_degrees", + "decimal dd.mm.ss:decimal_dd_mm_ss"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } /// <summary> @@ -59568,133 +62135,10 @@ private angularType() { /// </summary> public partial class RawObservationType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FieldNote> FieldNoteField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<Feature> FeatureField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName unusedXName = System.Xml.Linq.XName.Get("unused", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName directFaceXName = System.Xml.Linq.XName.Get("directFace", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName upperStadiaXName = System.Xml.Linq.XName.Get("upperStadia", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName rodXName = System.Xml.Linq.XName.Get("rod", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lowerStadiaXName = System.Xml.Linq.XName.Get("lowerStadia", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName circlePositionSetXName = System.Xml.Linq.XName.Get("circlePositionSet", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RawObservationType", "http://www.landxml.org/schema/LandXML-1.2"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator RawObservationType(XElement xe) { return XTypedServices.ToXTypedElement<RawObservationType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static RawObservationType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RawObservationType>(this); } /// <summary> @@ -59705,6 +62149,10 @@ static RawObservationType() { public RawObservationType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TargetPointXName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: required @@ -59723,6 +62171,10 @@ public virtual TargetPoint TargetPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OffsetValsXName = System.Xml.Linq.XName.Get("OffsetVals", "http://www.landxml.org/schema/LandXML-1.2"); + /// <summary> /// <para> /// Occurrence: optional @@ -59734,6 +62186,9 @@ public virtual TargetPoint TargetPoint { public virtual OffsetVals OffsetVals { get { XElement x = this.GetElement(OffsetValsXName); + if ((x == null)) { + return null; + } return ((OffsetVals)(x)); } set { @@ -59741,6 +62196,13 @@ public virtual OffsetVals OffsetVals { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldNoteXName = System.Xml.Linq.XName.Get("FieldNote", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FieldNote> FieldNoteField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -59774,6 +62236,13 @@ public virtual IList<FieldNote> FieldNote { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FeatureXName = System.Xml.Linq.XName.Get("Feature", "http://www.landxml.org/schema/LandXML-1.2"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Feature> FeatureField; + /// <summary> /// <para> /// Occurrence: optional, repeating, choice @@ -59807,6 +62276,10 @@ public virtual IList<Feature> Feature { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setupIDXName = System.Xml.Linq.XName.Get("setupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59815,6 +62288,9 @@ public virtual IList<Feature> Feature { public virtual string setupID { get { XAttribute x = this.Attribute(setupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -59822,6 +62298,10 @@ public virtual string setupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetSetupIDXName = System.Xml.Linq.XName.Get("targetSetupID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59830,6 +62310,9 @@ public virtual string setupID { public virtual string targetSetupID { get { XAttribute x = this.Attribute(targetSetupIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Idref).Datatype); } set { @@ -59837,6 +62320,10 @@ public virtual string targetSetupID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName setIDXName = System.Xml.Linq.XName.Get("setID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59845,6 +62332,9 @@ public virtual string targetSetupID { public virtual string setID { get { XAttribute x = this.Attribute(setIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -59852,6 +62342,10 @@ public virtual string setID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName purposeXName = System.Xml.Linq.XName.Get("purpose", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59863,13 +62357,22 @@ public virtual LandXml.v1_2.purposeType? purpose { if ((x == null)) { return null; } - return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.purposeType)(Enum.Parse(typeof(LandXml.v1_2.purposeType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.purposeTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(purposeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(purposeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(purposeXName, value.ToString(), "purpose", global::LandXml.v1_2.purposeTypeValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName targetHeightXName = System.Xml.Linq.XName.Get("targetHeight", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59888,6 +62391,10 @@ public virtual System.Double? targetHeight { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizAngleXName = System.Xml.Linq.XName.Get("horizAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59906,6 +62413,10 @@ public virtual System.Double? horizAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName slopeDistanceXName = System.Xml.Linq.XName.Get("slopeDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59924,6 +62435,10 @@ public virtual System.Double? slopeDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName zenithAngleXName = System.Xml.Linq.XName.Get("zenithAngle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59942,6 +62457,10 @@ public virtual System.Double? zenithAngle { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName horizDistanceXName = System.Xml.Linq.XName.Get("horizDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59960,6 +62479,10 @@ public virtual System.Double? horizDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName vertDistanceXName = System.Xml.Linq.XName.Get("vertDistance", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59978,6 +62501,10 @@ public virtual System.Double? vertDistance { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName azimuthXName = System.Xml.Linq.XName.Get("azimuth", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -59996,6 +62523,10 @@ public virtual System.Double? azimuth { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName unusedXName = System.Xml.Linq.XName.Get("unused", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60014,6 +62545,10 @@ public virtual System.Boolean? unused { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName directFaceXName = System.Xml.Linq.XName.Get("directFace", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60032,6 +62567,10 @@ public virtual System.Boolean? directFace { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName coordGeomRefsXName = System.Xml.Linq.XName.Get("coordGeomRefs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60040,6 +62579,9 @@ public virtual System.Boolean? directFace { public virtual IList<string> coordGeomRefs { get { XAttribute x = this.Attribute(coordGeomRefsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseListValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -60047,6 +62589,10 @@ public virtual IList<string> coordGeomRefs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName timeStampXName = System.Xml.Linq.XName.Get("timeStamp", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60065,6 +62611,10 @@ public virtual System.DateTime? timeStamp { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignRefXName = System.Xml.Linq.XName.Get("alignRef", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60073,6 +62623,9 @@ public virtual System.DateTime? timeStamp { public virtual string alignRef { get { XAttribute x = this.Attribute(alignRefXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -60080,6 +62633,10 @@ public virtual string alignRef { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignStationNameXName = System.Xml.Linq.XName.Get("alignStationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60088,6 +62645,9 @@ public virtual string alignRef { public virtual string alignStationName { get { XAttribute x = this.Attribute(alignStationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -60095,6 +62655,10 @@ public virtual string alignStationName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName alignOffsetXName = System.Xml.Linq.XName.Get("alignOffset", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60113,6 +62677,10 @@ public virtual System.Double? alignOffset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName upperStadiaXName = System.Xml.Linq.XName.Get("upperStadia", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60131,6 +62699,10 @@ public virtual System.Double? upperStadia { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName rodXName = System.Xml.Linq.XName.Get("rod", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60149,6 +62721,10 @@ public virtual System.Double? rod { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lowerStadiaXName = System.Xml.Linq.XName.Get("lowerStadia", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60167,6 +62743,10 @@ public virtual System.Double? lowerStadia { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName circlePositionSetXName = System.Xml.Linq.XName.Get("circlePositionSet", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60185,6 +62765,10 @@ public virtual System.Double? circlePositionSet { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName statusXName = System.Xml.Linq.XName.Get("status", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -60196,13 +62780,35 @@ public virtual LandXml.v1_2.observationStatusType? status { if ((x == null)) { return null; } - return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((LandXml.v1_2.observationStatusType)(Enum.Parse(typeof(LandXml.v1_2.observationStatusType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(statusXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(statusXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(statusXName, value.ToString(), "status", global::LandXml.v1_2.observationStatusTypeValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RawObservationType", "http://www.landxml.org/schema/LandXML-1.2"); + + static RawObservationType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(TargetPointXName), new NamedContentModelEntity(OffsetValsXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FieldNoteXName), new NamedContentModelEntity(FeatureXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); + localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); + localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); + localElementDictionary.Add(FeatureXName, typeof(Feature)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -60210,6 +62816,13 @@ public virtual LandXml.v1_2.observationStatusType? status { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -60230,30 +62843,15 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RawObservationType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(TargetPointXName, typeof(TargetPoint)); - localElementDictionary.Add(OffsetValsXName, typeof(OffsetVals)); - localElementDictionary.Add(FieldNoteXName, typeof(FieldNote)); - localElementDictionary.Add(FeatureXName, typeof(Feature)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public sealed class FaceType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Integer), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Integer), null)); - private FaceType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Integer), null, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Integer), null)); } public enum stationIncrementDirectionType { @@ -60265,52 +62863,100 @@ public enum stationIncrementDirectionType { public sealed class stationIncrementDirectionTypeValidator { + private stationIncrementDirectionTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "increasing", "decreasing"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum zoneCategoryType { - private stationIncrementDirectionTypeValidator() { - } + road_surface, + + road_subsurface, + + road_shoulder, + + road_foreSlope, + + road_backSlope, + + road_curb_gutter, + + bridge_surface, + + bridge_body, + + sidewalk, + + ground, + + ditch, + + wall, + + channel, + + bike_facilities, + + obstruction_offset, + + longitudinal_barrier, + + sound_barrier, + + bridge_abutment, + + vertical_pillar, } - public sealed class zoneCategoryType { + public sealed class zoneCategoryTypeValidator { + + private zoneCategoryTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "road surface", - "road subsurface", - "road shoulder", - "road foreSlope", - "road backSlope", - "road curb-gutter", - "bridge surface", - "bridge body", + "road surface:road_surface", + "road subsurface:road_subsurface", + "road shoulder:road_shoulder", + "road foreSlope:road_foreSlope", + "road backSlope:road_backSlope", + "road curb-gutter:road_curb_gutter", + "bridge surface:bridge_surface", + "bridge body:bridge_body", "sidewalk", "ground", "ditch", "wall", "channel", - "bike facilities", - "obstruction offset", - "longitudinal barrier", - "sound barrier", - "bridge abutment", - "vertical pillar"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "bike facilities:bike_facilities", + "obstruction offset:obstruction_offset", + "longitudinal barrier:longitudinal_barrier", + "sound barrier:sound_barrier", + "bridge abutment:bridge_abutment", + "vertical pillar:vertical_pillar"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum zoneVertType { - private zoneCategoryType() { - } + slope, + + vertical_distance, } - public sealed class zoneVertType { + public sealed class zoneVertTypeValidator { + + private zoneVertTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "slope", - "vertical distance"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private zoneVertType() { - } + "vertical distance:vertical_distance"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum zoneSurfaceType { @@ -60322,34 +62968,79 @@ public enum zoneSurfaceType { public sealed class zoneSurfaceTypeValidator { + private zoneSurfaceTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "finalSurface", "subgrade"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum zoneHingeType { - private zoneSurfaceTypeValidator() { - } + center, + + left_edge, + + right_edge, } - public sealed class zoneHingeType { + public sealed class zoneHingeTypeValidator { + + private zoneHingeTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "center", - "left edge", - "right edge"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "left edge:left_edge", + "right edge:right_edge"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum zoneMaterialType { - private zoneHingeType() { - } + pavement_high_type, + + pavement_intermediate_type, + + pavement_low_type, + + soil, + + concrete, + + stone, + + riprap, + + turf, + + gravel, + + paved, + + metal, + + metal_grate, + + composite, + + timber, + + other, } - public sealed class zoneMaterialType { + public sealed class zoneMaterialTypeValidator { + + private zoneMaterialTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "pavement-high-type", - "pavement-intermediate-type", - "pavement-low-type", + "pavement-high-type:pavement_high_type", + "pavement-intermediate-type:pavement_intermediate_type", + "pavement-low-type:pavement_low_type", "soil", "concrete", "stone", @@ -60358,13 +63049,10 @@ public sealed class zoneMaterialType { "gravel", "paved", "metal", - "metal grate", + "metal grate:metal_grate", "composite", "timber", "other"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private zoneMaterialType() { - } } public enum zoneTransitionType { @@ -60376,13 +63064,13 @@ public enum zoneTransitionType { public sealed class zoneTransitionTypeValidator { + private zoneTransitionTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "parallel", "linear"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private zoneTransitionTypeValidator() { - } } public enum zoneOffsetType { @@ -60394,13 +63082,13 @@ public enum zoneOffsetType { public sealed class zoneOffsetTypeValidator { + private zoneOffsetTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "centerline", "zone"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private zoneOffsetTypeValidator() { - } } public enum zonePlacementType { @@ -60412,13 +63100,13 @@ public enum zonePlacementType { public sealed class zonePlacementTypeValidator { + private zonePlacementTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "dependent", "independent"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private zonePlacementTypeValidator() { - } } public enum sideofRoadType { @@ -60432,14 +63120,14 @@ public enum sideofRoadType { public sealed class sideofRoadTypeValidator { + private sideofRoadTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "right", "left", "both"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private sideofRoadTypeValidator() { - } } public enum roadTerrainType { @@ -60453,49 +63141,74 @@ public enum roadTerrainType { public sealed class roadTerrainTypeValidator { + private roadTerrainTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "flat", "rolling", "mountainous"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum functionalClassType { - private roadTerrainTypeValidator() { - } + arterial, + + collector_, + + local, } - public sealed class functionalClassType { + public sealed class functionalClassTypeValidator { + + private functionalClassTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "arterial", - "collector ", + "collector :collector_", "local"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum adverseSEType { - private functionalClassType() { - } + non_adverse, + + adverse, } - public sealed class adverseSEType { + public sealed class adverseSETypeValidator { + + private adverseSETypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "non-adverse", + "non-adverse:non_adverse", "adverse"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum pavementSurfaceType { - private adverseSEType() { - } + high_type, + + intermediate_type, + + low_type, } - public sealed class pavementSurfaceType { + public sealed class pavementSurfaceTypeValidator { + + private pavementSurfaceTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "high-type", - "intermediate-type", - "low-type"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private pavementSurfaceType() { - } + "high-type:high_type", + "intermediate-type:intermediate_type", + "low-type:low_type"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum shoulderMaterialType { @@ -60511,15 +63224,15 @@ public enum shoulderMaterialType { public sealed class shoulderMaterialTypeValidator { + private shoulderMaterialTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "turf", "gravel", "paved", "composite"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private shoulderMaterialTypeValidator() { - } } public enum shoulderCategoryType { @@ -60531,26 +63244,37 @@ public enum shoulderCategoryType { public sealed class shoulderCategoryTypeValidator { + private shoulderCategoryTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "usable", "graded"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum laneTaperType { - private shoulderCategoryTypeValidator() { - } + straight_line, + + partial_tangent, + + symmetrical_reverse_curve, + + asymmetrical_reverse_curve, } - public sealed class laneTaperType { + public sealed class laneTaperTypeValidator { + + private laneTaperTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "straight-line", - "partial-tangent", - "symmetrical-reverse-curve", - "asymmetrical-reverse-curve"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private laneTaperType() { - } + "straight-line:straight_line", + "partial-tangent:partial_tangent", + "symmetrical-reverse-curve:symmetrical_reverse_curve", + "asymmetrical-reverse-curve:asymmetrical_reverse_curve"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum turnLaneType { @@ -60562,39 +63286,61 @@ public enum turnLaneType { public sealed class turnLaneTypeValidator { + private turnLaneTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "left", "right"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum ditchBottomShape { - private turnLaneTypeValidator() { - } + true_V, + + rounded_V, + + rounded_trapezoidal, + + flat_trapezoidal, } - public sealed class ditchBottomShape { + public sealed class ditchBottomShapeValidator { + + private ditchBottomShapeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "true-V", - "rounded-V", - "rounded-trapezoidal", - "flat-trapezoidal"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "true-V:true_V", + "rounded-V:rounded_V", + "rounded-trapezoidal:rounded_trapezoidal", + "flat-trapezoidal:flat_trapezoidal"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum trafficControlType { - private ditchBottomShape() { - } + none, + + signal, + + stop, + + _yield, } - public sealed class trafficControlType { + public sealed class trafficControlTypeValidator { + + private trafficControlTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "none", "signal", "stop", - "yield"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private trafficControlType() { - } + "yield:_yield"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum trafficControlPosition { @@ -60606,39 +63352,61 @@ public enum trafficControlPosition { public sealed class trafficControlPositionValidator { + private trafficControlPositionValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "side", "overhead"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum trafficTurnRestriction { - private trafficControlPositionValidator() { - } + none, + + no_left_turn, + + no_right_turn, + + no_U_turn_, + + no_turn_, } - public sealed class trafficTurnRestriction { + public sealed class trafficTurnRestrictionValidator { + + private trafficTurnRestrictionValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "none", - "no-left-turn", - "no-right-turn", - "no-U-turn ", - "no-turn "}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "no-left-turn:no_left_turn", + "no-right-turn:no_right_turn", + "no-U-turn :no_U_turn_", + "no-turn :no_turn_"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum intersectionConstructionType { - private trafficTurnRestriction() { - } + existing, + + improvement, + + @new, } - public sealed class intersectionConstructionType { + public sealed class intersectionConstructionTypeValidator { + + private intersectionConstructionTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "existing", "improvement", - "new"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private intersectionConstructionType() { - } + "new:@new"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum curbType { @@ -60648,12 +63416,12 @@ public enum curbType { public sealed class curbTypeValidator { + private curbTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "unknown"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private curbTypeValidator() { - } } public enum cornerType { @@ -60663,15 +63431,35 @@ public enum cornerType { public sealed class cornerTypeValidator { + private cornerTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "unknown"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum roadSignType { - private cornerTypeValidator() { - } + regulatory, + + guide, + + warning, + + specificService, + + tourist, + + recreation_cultural, + + emergencyManagement, } - public sealed class roadSignType { + public sealed class roadSignTypeValidator { + + private roadSignTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { @@ -60680,57 +63468,87 @@ public sealed class roadSignType { "warning", "specificService", "tourist", - "recreation-cultural", + "recreation-cultural:recreation_cultural", "emergencyManagement"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum crashSeverityType { - private roadSignType() { - } + fatal, + + nonfatal_, + + propery_damage_only, } - public sealed class crashSeverityType { + public sealed class crashSeverityTypeValidator { + + private crashSeverityTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "fatal", - "nonfatal ", - "propery-damage-only"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "nonfatal :nonfatal_", + "propery-damage-only:propery_damage_only"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum crashIntersectionRelation { - private crashSeverityType() { - } + unknown, + + non_intersection_related, + + intersection_related, } - public sealed class crashIntersectionRelation { + public sealed class crashIntersectionRelationValidator { + + private crashIntersectionRelationValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "unknown", - "non-intersection-related", - "intersection-related"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "non-intersection-related:non_intersection_related", + "intersection-related:intersection_related"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum maneuverType { - private crashIntersectionRelation() { - } + A_stop_on_rural_road, + + C_speed_path_direction_change_on_rural_road, } - public sealed class maneuverType { + public sealed class maneuverTypeValidator { + + private maneuverTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "A-stop-on-rural-road", - "C-speed-path-direction-change-on-rural-road"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "A-stop-on-rural-road:A_stop_on_rural_road", + "C-speed-path-direction-change-on-rural-road:C_speed_path_direction_change_on_rura" + + "l_road"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum bridgeProjectType { - private maneuverType() { - } + @new, + + existing, } - public sealed class bridgeProjectType { + public sealed class bridgeProjectTypeValidator { + + private bridgeProjectTypeValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "new", + "new:@new", "existing"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private bridgeProjectType() { - } } /// <summary> @@ -60742,11 +63560,11 @@ private bridgeProjectType() { /// </summary> public sealed class crossSectionPnt { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(1)), null, 0, 2, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); - private crossSectionPnt() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.ListSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(1)), null, 0, 2, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null)); } /// <summary> @@ -60756,11 +63574,11 @@ private crossSectionPnt() { /// </summary> public sealed class drivewayDensity { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private drivewayDensity() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -60770,11 +63588,11 @@ private drivewayDensity() { /// </summary> public sealed class speed { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); - private speed() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), null); } /// <summary> @@ -60789,27 +63607,39 @@ private speed() { /// </summary> public partial class Start : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private PointType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Start Load(string xmlFile) { + return XTypedServices.Load<Start, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Start Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Start, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Start Parse(string xml) { + return XTypedServices.Parse<Start, PointType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator Start(XElement xe) { return XTypedServices.ToXTypedElement<Start, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public Start() { - SetInnerType(new PointType()); + public override XTypedElement Clone() { + return new Start(((PointType)(this.Content.Clone()))); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private PointType ContentField; + /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -60820,8 +63650,8 @@ public Start() { /// /// </para> /// </summary> - public Start(PointType content) { - SetInnerType(content); + public Start() { + SetInnerType(new PointType()); } public override XElement Untyped { @@ -60840,6 +63670,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public Start(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -60952,7 +63801,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -60980,7 +63829,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -61101,6 +63950,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Start", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -61114,6 +63965,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -61134,6 +63989,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class End : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -61147,51 +64015,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Start Load(string xmlFile) { - return XTypedServices.Load<Start, PointType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Start Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Start, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static End Load(string xmlFile) { + return XTypedServices.Load<End, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Start Parse(string xml) { - return XTypedServices.Parse<Start, PointType>(xml, LinqToXsdTypeManager.Instance); + public static End Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<End, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Start(((PointType)(this.Content.Clone()))); + public static End Parse(string xml) { + return XTypedServices.Parse<End, PointType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator End(XElement xe) { return XTypedServices.ToXTypedElement<End, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new End(((PointType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class End : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator End(XElement xe) { return XTypedServices.ToXTypedElement<End, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -61206,20 +64050,6 @@ public End() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public End(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -61236,6 +64066,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public End(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -61348,7 +64197,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -61376,7 +64225,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -61497,6 +64346,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("End", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -61510,6 +64361,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -61530,6 +64385,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class Center : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -61543,51 +64411,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static End Load(string xmlFile) { - return XTypedServices.Load<End, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Center Load(string xmlFile) { + return XTypedServices.Load<Center, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static End Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<End, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Center Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Center, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static End Parse(string xml) { - return XTypedServices.Parse<End, PointType>(xml, LinqToXsdTypeManager.Instance); + public static Center Parse(string xml) { + return XTypedServices.Parse<Center, PointType>(xml, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new End(((PointType)(this.Content.Clone()))); - } + public static explicit operator Center(XElement xe) { return XTypedServices.ToXTypedElement<Center, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + public override XTypedElement Clone() { + return new Center(((PointType)(this.Content.Clone()))); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class Center : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Center(XElement xe) { return XTypedServices.ToXTypedElement<Center, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -61602,20 +64446,6 @@ public Center() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public Center(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -61632,6 +64462,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public Center(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -61744,7 +64593,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -61772,7 +64621,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -61893,6 +64742,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Center", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -61906,6 +64757,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -61926,6 +64781,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class PI : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -61939,51 +64807,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Center Load(string xmlFile) { - return XTypedServices.Load<Center, PointType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Center Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Center, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static PI Load(string xmlFile) { + return XTypedServices.Load<PI, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Center Parse(string xml) { - return XTypedServices.Parse<Center, PointType>(xml, LinqToXsdTypeManager.Instance); + public static PI Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<PI, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Center(((PointType)(this.Content.Clone()))); + public static PI Parse(string xml) { + return XTypedServices.Parse<PI, PointType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator PI(XElement xe) { return XTypedServices.ToXTypedElement<PI, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new PI(((PointType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class PI : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator PI(XElement xe) { return XTypedServices.ToXTypedElement<PI, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -61998,20 +64842,6 @@ public PI() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public PI(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -62028,6 +64858,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public PI(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -62140,7 +64989,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -62168,7 +65017,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -62289,6 +65138,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PI", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -62302,6 +65153,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -62322,6 +65177,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class MapPoint : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -62335,51 +65203,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static PI Load(string xmlFile) { - return XTypedServices.Load<PI, PointType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static PI Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<PI, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static MapPoint Load(string xmlFile) { + return XTypedServices.Load<MapPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static PI Parse(string xml) { - return XTypedServices.Parse<PI, PointType>(xml, LinqToXsdTypeManager.Instance); + public static MapPoint Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<MapPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new PI(((PointType)(this.Content.Clone()))); + public static MapPoint Parse(string xml) { + return XTypedServices.Parse<MapPoint, PointType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator MapPoint(XElement xe) { return XTypedServices.ToXTypedElement<MapPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new MapPoint(((PointType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class MapPoint : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MapPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator MapPoint(XElement xe) { return XTypedServices.ToXTypedElement<MapPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -62394,20 +65238,6 @@ public MapPoint() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public MapPoint(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -62424,6 +65254,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public MapPoint(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -62536,7 +65385,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -62564,7 +65413,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -62685,6 +65534,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MapPoint", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -62698,6 +65549,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -62718,6 +65573,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class InstrumentPoint : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -62731,51 +65599,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static MapPoint Load(string xmlFile) { - return XTypedServices.Load<MapPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static InstrumentPoint Load(string xmlFile) { + return XTypedServices.Load<InstrumentPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static MapPoint Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<MapPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static InstrumentPoint Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<InstrumentPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static MapPoint Parse(string xml) { - return XTypedServices.Parse<MapPoint, PointType>(xml, LinqToXsdTypeManager.Instance); + public static InstrumentPoint Parse(string xml) { + return XTypedServices.Parse<InstrumentPoint, PointType>(xml, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new MapPoint(((PointType)(this.Content.Clone()))); - } + public static explicit operator InstrumentPoint(XElement xe) { return XTypedServices.ToXTypedElement<InstrumentPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + public override XTypedElement Clone() { + return new InstrumentPoint(((PointType)(this.Content.Clone()))); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class InstrumentPoint : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InstrumentPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator InstrumentPoint(XElement xe) { return XTypedServices.ToXTypedElement<InstrumentPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -62790,20 +65634,6 @@ public InstrumentPoint() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public InstrumentPoint(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -62820,6 +65650,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public InstrumentPoint(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -62932,7 +65781,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -62960,7 +65809,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -63081,6 +65930,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InstrumentPoint", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -63094,6 +65945,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -63114,6 +65969,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class Location : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -63127,51 +65995,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static InstrumentPoint Load(string xmlFile) { - return XTypedServices.Load<InstrumentPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static InstrumentPoint Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<InstrumentPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static Location Load(string xmlFile) { + return XTypedServices.Load<Location, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static InstrumentPoint Parse(string xml) { - return XTypedServices.Parse<InstrumentPoint, PointType>(xml, LinqToXsdTypeManager.Instance); + public static Location Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Location, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new InstrumentPoint(((PointType)(this.Content.Clone()))); + public static Location Parse(string xml) { + return XTypedServices.Parse<Location, PointType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator Location(XElement xe) { return XTypedServices.ToXTypedElement<Location, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new Location(((PointType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class Location : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Location", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Location(XElement xe) { return XTypedServices.ToXTypedElement<Location, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -63186,20 +66030,6 @@ public Location() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public Location(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -63216,6 +66046,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public Location(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -63328,7 +66177,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -63356,7 +66205,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -63477,6 +66326,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Location", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -63490,6 +66341,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -63510,6 +66365,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class TargetPoint : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -63523,51 +66391,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static Location Load(string xmlFile) { - return XTypedServices.Load<Location, PointType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Location Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Location, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static TargetPoint Load(string xmlFile) { + return XTypedServices.Load<TargetPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static Location Parse(string xml) { - return XTypedServices.Parse<Location, PointType>(xml, LinqToXsdTypeManager.Instance); + public static TargetPoint Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<TargetPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new Location(((PointType)(this.Content.Clone()))); + public static TargetPoint Parse(string xml) { + return XTypedServices.Parse<TargetPoint, PointType>(xml, LinqToXsdTypeManager.Instance); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } + public static explicit operator TargetPoint(XElement xe) { return XTypedServices.ToXTypedElement<TargetPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public override XTypedElement Clone() { + return new TargetPoint(((PointType)(this.Content.Clone()))); } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class TargetPoint : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator TargetPoint(XElement xe) { return XTypedServices.ToXTypedElement<TargetPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -63582,20 +66426,6 @@ public TargetPoint() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public TargetPoint(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -63612,6 +66442,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public TargetPoint(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -63724,7 +66573,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -63752,7 +66601,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -63873,6 +66722,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TargetPoint", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -63886,6 +66737,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -63906,6 +66761,19 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public partial class BacksightPoint : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -63919,51 +66787,27 @@ public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - public static TargetPoint Load(string xmlFile) { - return XTypedServices.Load<TargetPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static BacksightPoint Load(string xmlFile) { + return XTypedServices.Load<BacksightPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static TargetPoint Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<TargetPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); + public static BacksightPoint Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<BacksightPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); } - public static TargetPoint Parse(string xml) { - return XTypedServices.Parse<TargetPoint, PointType>(xml, LinqToXsdTypeManager.Instance); + public static BacksightPoint Parse(string xml) { + return XTypedServices.Parse<BacksightPoint, PointType>(xml, LinqToXsdTypeManager.Instance); } - public override XTypedElement Clone() { - return new TargetPoint(((PointType)(this.Content.Clone()))); - } + public static explicit operator BacksightPoint(XElement xe) { return XTypedServices.ToXTypedElement<BacksightPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); + public override XTypedElement Clone() { + return new BacksightPoint(((PointType)(this.Content.Clone()))); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public partial class BacksightPoint : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] private PointType ContentField; - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BacksightPoint", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator BacksightPoint(XElement xe) { return XTypedServices.ToXTypedElement<BacksightPoint, PointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. @@ -63978,20 +66822,6 @@ public BacksightPoint() { SetInnerType(new PointType()); } - /// <summary> - /// <para> - /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. - /// </para> - /// <para> - /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. - /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. - /// - /// </para> - /// </summary> - public BacksightPoint(PointType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -64008,6 +66838,25 @@ public virtual PointType Content { } } + private void SetInnerType(PointType ContentField) { + this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + /// <summary> + /// <para> + /// All elements derived from PointType will either contain a coordinate text value ( "north east" or "north east elev"), a "pntRef" attribute value, or both. The "pntRef" attribute contains the value of a PointType derived element "name" attribute that exists elsewhere the instance data. If this element has a "pntRef" value, then it's coordinates will be retrieved from the referenced element. If an element contains both a coordinate value and a pntRef, the coordinate value should be used as the point location and the referenced point is either ignored or is used for point attributes such as number or desc. + /// </para> + /// <para> + /// The featureRef attribute points to a specific named Feature element that contains feature data related to the point. + /// The suggested form is to refer to a feature element within the same CgPoints group or parent element of the point element. + /// + /// </para> + /// </summary> + public BacksightPoint(PointType content) { + SetInnerType(content); + } + public virtual IList<double> TypedValue { get { return this.ContentField.TypedValue; @@ -64120,7 +66969,7 @@ public virtual LandXml.v1_2.pointGeometryType? pointGeometry { /// Occurrence: optional /// </para> /// </summary> - public virtual string DTMAttribute { + public virtual LandXml.v1_2.DTMAttributeType? DTMAttribute { get { return this.ContentField.DTMAttribute; } @@ -64148,7 +66997,7 @@ public virtual System.DateTime? timeStamp { /// Occurrence: optional /// </para> /// </summary> - public virtual string role { + public virtual LandXml.v1_2.surveyRoleType? role { get { return this.ContentField.role; } @@ -64269,6 +67118,8 @@ public virtual System.Double? elevationStdError { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BacksightPoint", "http://www.landxml.org/schema/LandXML-1.2"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -64282,6 +67133,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -64302,43 +67157,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static BacksightPoint Load(string xmlFile) { - return XTypedServices.Load<BacksightPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static BacksightPoint Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<BacksightPoint, PointType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static BacksightPoint Parse(string xml) { - return XTypedServices.Parse<BacksightPoint, PointType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new BacksightPoint(((PointType)(this.Content.Clone()))); - } - - private void SetInnerType(PointType ContentField) { - this.ContentField = ((PointType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -64348,62 +67166,6 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class BeginRunoutSta : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BeginRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator BeginRunoutSta(XElement xe) { return XTypedServices.ToXTypedElement<BeginRunoutSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - /// <summary> - /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. - /// </para> - /// </summary> - public BeginRunoutSta() { - } - - /// <summary> - /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. - /// </para> - /// </summary> - public BeginRunoutSta(double content) { - this.TypedValue = content; - } - - public virtual double TypedValue { - get { - XElement x = this.Untyped; - return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); - } - set { - this.SetValueWithValidation(value, "TypedValue", global::LandXml.v1_2.station.TypeDefinition); - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Element; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); } @@ -64428,36 +67190,18 @@ public static BeginRunoutSta Parse(string xml) { return XTypedServices.Parse<BeginRunoutSta>(xml); } + public static explicit operator BeginRunoutSta(XElement xe) { return XTypedServices.ToXTypedElement<BeginRunoutSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<BeginRunoutSta>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. - /// </para> - /// </summary> - public partial class BeginRunoffSta : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BeginRunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator BeginRunoffSta(XElement xe) { return XTypedServices.ToXTypedElement<BeginRunoffSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public BeginRunoffSta() { + public BeginRunoutSta() { } /// <summary> @@ -64465,10 +67209,14 @@ public BeginRunoffSta() { /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public BeginRunoffSta(double content) { + public BeginRunoutSta(double content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual double TypedValue { get { XElement x = this.Untyped; @@ -64479,6 +67227,12 @@ public virtual double TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BeginRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -64499,6 +67253,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// </para> + /// </summary> + public partial class BeginRunoffSta : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -64524,36 +67286,18 @@ public static BeginRunoffSta Parse(string xml) { return XTypedServices.Parse<BeginRunoffSta>(xml); } + public static explicit operator BeginRunoffSta(XElement xe) { return XTypedServices.ToXTypedElement<BeginRunoffSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<BeginRunoffSta>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. - /// </para> - /// </summary> - public partial class FullSuperSta : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FullSuperSta", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator FullSuperSta(XElement xe) { return XTypedServices.ToXTypedElement<FullSuperSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public FullSuperSta() { + public BeginRunoffSta() { } /// <summary> @@ -64561,10 +67305,14 @@ public FullSuperSta() { /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public FullSuperSta(double content) { + public BeginRunoffSta(double content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual double TypedValue { get { XElement x = this.Untyped; @@ -64575,6 +67323,12 @@ public virtual double TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BeginRunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -64595,6 +67349,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// </para> + /// </summary> + public partial class FullSuperSta : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -64620,57 +67382,49 @@ public static FullSuperSta Parse(string xml) { return XTypedServices.Parse<FullSuperSta>(xml); } + public static explicit operator FullSuperSta(XElement xe) { return XTypedServices.ToXTypedElement<FullSuperSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<FullSuperSta>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// This item is the slope. Unit of measure for this item is PERCENT %. - /// </para> - /// </summary> - public partial class FullSuperelev : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FullSuperelev", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator FullSuperelev(XElement xe) { return XTypedServices.ToXTypedElement<FullSuperelev>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> - /// This item is the slope. Unit of measure for this item is PERCENT %. + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public FullSuperelev() { + public FullSuperSta() { } /// <summary> /// <para> - /// This item is the slope. Unit of measure for this item is PERCENT %. + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public FullSuperelev(double content) { + public FullSuperSta(double content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual double TypedValue { get { XElement x = this.Untyped; return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { - this.SetValueWithValidation(value, "TypedValue", global::LandXml.v1_2.slope.TypeDefinition); + this.SetValueWithValidation(value, "TypedValue", global::LandXml.v1_2.station.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FullSuperSta", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -64691,6 +67445,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// This item is the slope. Unit of measure for this item is PERCENT %. + /// </para> + /// </summary> + public partial class FullSuperelev : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -64716,57 +67478,49 @@ public static FullSuperelev Parse(string xml) { return XTypedServices.Parse<FullSuperelev>(xml); } + public static explicit operator FullSuperelev(XElement xe) { return XTypedServices.ToXTypedElement<FullSuperelev>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<FullSuperelev>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. - /// </para> - /// </summary> - public partial class RunoffSta : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator RunoffSta(XElement xe) { return XTypedServices.ToXTypedElement<RunoffSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// This item is the slope. Unit of measure for this item is PERCENT %. /// </para> /// </summary> - public RunoffSta() { + public FullSuperelev() { } /// <summary> /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// This item is the slope. Unit of measure for this item is PERCENT %. /// </para> /// </summary> - public RunoffSta(double content) { + public FullSuperelev(double content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual double TypedValue { get { XElement x = this.Untyped; return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { - this.SetValueWithValidation(value, "TypedValue", global::LandXml.v1_2.station.TypeDefinition); + this.SetValueWithValidation(value, "TypedValue", global::LandXml.v1_2.slope.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FullSuperelev", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -64787,6 +67541,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// </para> + /// </summary> + public partial class RunoffSta : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -64812,36 +67574,18 @@ public static RunoffSta Parse(string xml) { return XTypedServices.Parse<RunoffSta>(xml); } + public static explicit operator RunoffSta(XElement xe) { return XTypedServices.ToXTypedElement<RunoffSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<RunoffSta>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. - /// </para> - /// </summary> - public partial class StartofRunoutSta : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StartofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator StartofRunoutSta(XElement xe) { return XTypedServices.ToXTypedElement<StartofRunoutSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public StartofRunoutSta() { + public RunoffSta() { } /// <summary> @@ -64849,10 +67593,14 @@ public StartofRunoutSta() { /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public StartofRunoutSta(double content) { + public RunoffSta(double content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual double TypedValue { get { XElement x = this.Untyped; @@ -64863,6 +67611,12 @@ public virtual double TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RunoffSta", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -64883,6 +67637,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// </para> + /// </summary> + public partial class StartofRunoutSta : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -64908,36 +67670,18 @@ public static StartofRunoutSta Parse(string xml) { return XTypedServices.Parse<StartofRunoutSta>(xml); } + public static explicit operator StartofRunoutSta(XElement xe) { return XTypedServices.ToXTypedElement<StartofRunoutSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<StartofRunoutSta>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - /// <summary> - /// <para> - /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. - /// </para> - /// </summary> - public partial class EndofRunoutSta : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EndofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator EndofRunoutSta(XElement xe) { return XTypedServices.ToXTypedElement<EndofRunoutSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - /// <summary> /// <para> /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public EndofRunoutSta() { + public StartofRunoutSta() { } /// <summary> @@ -64945,10 +67689,14 @@ public EndofRunoutSta() { /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. /// </para> /// </summary> - public EndofRunoutSta(double content) { + public StartofRunoutSta(double content) { this.TypedValue = content; } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual double TypedValue { get { XElement x = this.Untyped; @@ -64959,6 +67707,12 @@ public virtual double TypedValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("StartofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -64979,6 +67733,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// </para> + /// </summary> + public partial class EndofRunoutSta : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -65004,42 +67766,49 @@ public static EndofRunoutSta Parse(string xml) { return XTypedServices.Parse<EndofRunoutSta>(xml); } + public static explicit operator EndofRunoutSta(XElement xe) { return XTypedServices.ToXTypedElement<EndofRunoutSta>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<EndofRunoutSta>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - } - - public partial class AdverseSE : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdverseSE", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator AdverseSE(XElement xe) { return XTypedServices.ToXTypedElement<AdverseSE>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public AdverseSE() { + /// <summary> + /// <para> + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// </para> + /// </summary> + public EndofRunoutSta() { } - public AdverseSE(string content) { + /// <summary> + /// <para> + /// Represents the actual measured distance along the geometry in numeric decimal form expressed in linear units. Also known as the internal station value where no station equations are applied. + /// </para> + /// </summary> + public EndofRunoutSta(double content) { this.TypedValue = content; } - public virtual string TypedValue { + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + + public virtual double TypedValue { get { XElement x = this.Untyped; - return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { - this.SetValueWithValidation(value, "TypedValue", global::LandXml.v1_2.adverseSEType.TypeDefinition); + this.SetValueWithValidation(value, "TypedValue", global::LandXml.v1_2.station.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EndofRunoutSta", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -65060,6 +67829,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class AdverseSE : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -65085,42 +67857,39 @@ public static AdverseSE Parse(string xml) { return XTypedServices.Parse<AdverseSE>(xml); } + public static explicit operator AdverseSE(XElement xe) { return XTypedServices.ToXTypedElement<AdverseSE>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<AdverseSE>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public AdverseSE() { } - } - - public partial class Station : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Station", "http://www.landxml.org/schema/LandXML-1.2"); - - public static explicit operator Station(XElement xe) { return XTypedServices.ToXTypedElement<Station>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public Station() { + public AdverseSE(string content) { + this.TypedValue = ((LandXml.v1_2.adverseSEType)(Enum.Parse(typeof(LandXml.v1_2.adverseSEType), content))); } - public Station(double content) { - this.TypedValue = content; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - public virtual double TypedValue { + public virtual LandXml.v1_2.adverseSEType TypedValue { get { XElement x = this.Untyped; - return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); + return ((LandXml.v1_2.adverseSEType)(Enum.Parse(typeof(LandXml.v1_2.adverseSEType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::LandXml.v1_2.adverseSETypeValidator.TypeDefinition)))); } set { - this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); + this.SetValueWithValidation(value.ToString(), "TypedValue", global::LandXml.v1_2.adverseSETypeValidator.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AdverseSE", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -65141,6 +67910,9 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class Station : XTypedElement, IXMetaData { public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -65166,73 +67938,67 @@ public static Station Parse(string xml) { return XTypedServices.Parse<Station>(xml); } + public static explicit operator Station(XElement xe) { return XTypedServices.ToXTypedElement<Station>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { return XTypedServices.CloneXTypedElement<Station>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public Station() { } - } - - public class LinqToXsdTypeManager : ILinqToXsdTypeManager { - - private static Dictionary<System.Xml.Linq.XName, System.Type> typeDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - private static Dictionary<System.Xml.Linq.XName, System.Type> elementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - private static Dictionary<System.Type, System.Type> wrapperDictionary = new Dictionary<System.Type, System.Type>(); - - private static XmlSchemaSet schemaSet; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); - static LinqToXsdTypeManager() { - BuildTypeDictionary(); - BuildElementDictionary(); - BuildWrapperDictionary(); + public Station(double content) { + this.TypedValue = content; } - private LinqToXsdTypeManager() { - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - XmlSchemaSet ILinqToXsdTypeManager.Schemas { + public virtual double TypedValue { get { - if ((schemaSet == null)) { - XmlSchemaSet tempSet = new XmlSchemaSet(); - System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); - } - return schemaSet; + XElement x = this.Untyped; + return XTypedServices.ParseValue<double>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } set { - schemaSet = value; + this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double).Datatype); } } - Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalTypeDictionary { - get { - return typeDictionary; - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Station", "http://www.landxml.org/schema/LandXML-1.2"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; } - Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalElementDictionary { + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { get { - return elementDictionary; + return xName; } } - Dictionary<System.Type, System.Type> ILinqToXsdTypeManager.RootContentTypeMapping { + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { get { - return wrapperDictionary; + return SchemaOrigin.Element; } } - public static LinqToXsdTypeManager Instance { + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { get { - return typeManagerSingleton; + return LinqToXsdTypeManager.Instance; } } + } + + public class LinqToXsdTypeManager : ILinqToXsdTypeManager { + + private LinqToXsdTypeManager() { + } + + private static Dictionary<System.Xml.Linq.XName, System.Type> typeDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); private static void BuildTypeDictionary() { typeDictionary.Add(System.Xml.Linq.XName.Get("PointType", "http://www.landxml.org/schema/LandXML-1.2"), typeof(global::LandXml.v1_2.PointType)); @@ -65240,6 +68006,8 @@ private static void BuildTypeDictionary() { typeDictionary.Add(System.Xml.Linq.XName.Get("RawObservationType", "http://www.landxml.org/schema/LandXML-1.2"), typeof(global::LandXml.v1_2.RawObservationType)); } + private static Dictionary<System.Xml.Linq.XName, System.Type> elementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + private static void BuildElementDictionary() { elementDictionary.Add(System.Xml.Linq.XName.Get("LandXML", "http://www.landxml.org/schema/LandXML-1.2"), typeof(global::LandXml.v1_2.LandXML)); elementDictionary.Add(System.Xml.Linq.XName.Get("CgPoints", "http://www.landxml.org/schema/LandXML-1.2"), typeof(global::LandXml.v1_2.CgPoints)); @@ -65453,6 +68221,8 @@ private static void BuildElementDictionary() { elementDictionary.Add(System.Xml.Linq.XName.Get("Station", "http://www.landxml.org/schema/LandXML-1.2"), typeof(global::LandXml.v1_2.Station)); } + private static Dictionary<System.Type, System.Type> wrapperDictionary = new Dictionary<System.Type, System.Type>(); + private static void BuildWrapperDictionary() { wrapperDictionary.Add(typeof(LandXml.v1_2.Start), typeof(global::LandXml.v1_2.PointType)); wrapperDictionary.Add(typeof(LandXml.v1_2.End), typeof(global::LandXml.v1_2.PointType)); @@ -65465,13 +68235,61 @@ private static void BuildWrapperDictionary() { wrapperDictionary.Add(typeof(LandXml.v1_2.BacksightPoint), typeof(global::LandXml.v1_2.PointType)); } + private static XmlSchemaSet schemaSet; + + XmlSchemaSet ILinqToXsdTypeManager.Schemas { + get { + if ((schemaSet == null)) { + XmlSchemaSet tempSet = new XmlSchemaSet(); + System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); + } + return schemaSet; + } + set { + schemaSet = value; + } + } + protected internal static void AddSchemas(XmlSchemaSet schemas) { schemas.Add(schemaSet); } + Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalTypeDictionary { + get { + return typeDictionary; + } + } + + Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalElementDictionary { + get { + return elementDictionary; + } + } + + Dictionary<System.Type, System.Type> ILinqToXsdTypeManager.RootContentTypeMapping { + get { + return wrapperDictionary; + } + } + + static LinqToXsdTypeManager() { + BuildTypeDictionary(); + BuildElementDictionary(); + BuildWrapperDictionary(); + } + public static System.Type GetRootType() { return elementDictionary[System.Xml.Linq.XName.Get("LandXML", "http://www.landxml.org/schema/LandXML-1.2")]; } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); + + public static LinqToXsdTypeManager Instance { + get { + return typeManagerSingleton; + } + } } public partial class XRootNamespace { @@ -65482,3179 +68300,3597 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; + private XRootNamespace() { + } + + public static XRootNamespace Load(string xmlFile) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlFile); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(string xmlFile, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlFile, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(TextReader textReader) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(textReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(TextReader textReader, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(textReader, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Load(XmlReader xmlReader) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Load(xmlReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Parse(string text) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Parse(text); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRootNamespace Parse(string text, LoadOptions options) { + XRootNamespace root = new XRootNamespace(); + root.doc = XDocument.Parse(text, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public virtual void Save(string fileName) { + doc.Save(fileName); + } + + public virtual void Save(TextWriter textWriter) { + doc.Save(textWriter); + } + + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(LandXML root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public LandXML LandXML { get {return rootObject as LandXML; } } + + public XRootNamespace(CgPoints root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CgPoints CgPoints { get {return rootObject as CgPoints; } } + + public XRootNamespace(CgPoint root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CgPoint CgPoint { get {return rootObject as CgPoint; } } + + public XRootNamespace(DocFileRef root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public DocFileRef DocFileRef { get {return rootObject as DocFileRef; } } + + public XRootNamespace(Property root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Property Property { get {return rootObject as Property; } } + + public XRootNamespace(Feature root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Feature Feature { get {return rootObject as Feature; } } + + public XRootNamespace(FeatureDictionary root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public FeatureDictionary FeatureDictionary { get {return rootObject as FeatureDictionary; } } + + public XRootNamespace(PntList2D root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PntList2D PntList2D { get {return rootObject as PntList2D; } } + + public XRootNamespace(PntList3D root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PntList3D PntList3D { get {return rootObject as PntList3D; } } + + public XRootNamespace(IrregularLine root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public IrregularLine IrregularLine { get {return rootObject as IrregularLine; } } + + public XRootNamespace(Chain root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Chain Chain { get {return rootObject as Chain; } } + + public XRootNamespace(Curve root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Curve Curve { get {return rootObject as Curve; } } + + public XRootNamespace(Spiral root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Spiral Spiral { get {return rootObject as Spiral; } } + + public XRootNamespace(CoordGeom root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CoordGeom CoordGeom { get {return rootObject as CoordGeom; } } + + public XRootNamespace(Line root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Line Line { get {return rootObject as Line; } } + + public XRootNamespace(CrossSects root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CrossSects CrossSects { get {return rootObject as CrossSects; } } + + public XRootNamespace(CrossSect root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CrossSect CrossSect { get {return rootObject as CrossSect; } } + + public XRootNamespace(CrossSectSurf root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CrossSectSurf CrossSectSurf { get {return rootObject as CrossSectSurf; } } + + public XRootNamespace(CrossSectPnt root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CrossSectPnt CrossSectPnt { get {return rootObject as CrossSectPnt; } } + + public XRootNamespace(DesignCrossSectSurf root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public DesignCrossSectSurf DesignCrossSectSurf { get {return rootObject as DesignCrossSectSurf; } } + + public XRootNamespace(Project root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Project Project { get {return rootObject as Project; } } + + public XRootNamespace(Units root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Units Units { get {return rootObject as Units; } } + + public XRootNamespace(Metric root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Metric Metric { get {return rootObject as Metric; } } + + public XRootNamespace(Imperial root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Imperial Imperial { get {return rootObject as Imperial; } } + + public XRootNamespace(CoordinateSystem root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CoordinateSystem CoordinateSystem { get {return rootObject as CoordinateSystem; } } + + public XRootNamespace(Application root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Application Application { get {return rootObject as Application; } } + + public XRootNamespace(Author root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Author Author { get {return rootObject as Author; } } + + public XRootNamespace(Survey root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Survey Survey { get {return rootObject as Survey; } } + + public XRootNamespace(SurveyHeader root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public SurveyHeader SurveyHeader { get {return rootObject as SurveyHeader; } } + + public XRootNamespace(HeadOfPower root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public HeadOfPower HeadOfPower { get {return rootObject as HeadOfPower; } } + + public XRootNamespace(AdministrativeArea root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public AdministrativeArea AdministrativeArea { get {return rootObject as AdministrativeArea; } } + + public XRootNamespace(AdministrativeDate root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public AdministrativeDate AdministrativeDate { get {return rootObject as AdministrativeDate; } } + + public XRootNamespace(Annotation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Annotation Annotation { get {return rootObject as Annotation; } } - + + public XRootNamespace(SurveyorCertificate root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + public SurveyorCertificate SurveyorCertificate { get {return rootObject as SurveyorCertificate; } } + + public XRootNamespace(PurposeOfSurvey root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PurposeOfSurvey PurposeOfSurvey { get {return rootObject as PurposeOfSurvey; } } + + public XRootNamespace(Amendment root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Amendment Amendment { get {return rootObject as Amendment; } } + + public XRootNamespace(AmendmentItem root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public AmendmentItem AmendmentItem { get {return rootObject as AmendmentItem; } } + + public XRootNamespace(Personnel root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Personnel Personnel { get {return rootObject as Personnel; } } + + public XRootNamespace(FieldNote root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public FieldNote FieldNote { get {return rootObject as FieldNote; } } + + public XRootNamespace(Equipment root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Equipment Equipment { get {return rootObject as Equipment; } } + + public XRootNamespace(InstrumentDetails root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public InstrumentDetails InstrumentDetails { get {return rootObject as InstrumentDetails; } } + + public XRootNamespace(LaserDetails root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public LaserDetails LaserDetails { get {return rootObject as LaserDetails; } } + + public XRootNamespace(GPSAntennaDetails root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public GPSAntennaDetails GPSAntennaDetails { get {return rootObject as GPSAntennaDetails; } } + + public XRootNamespace(GPSReceiverDetails root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public GPSReceiverDetails GPSReceiverDetails { get {return rootObject as GPSReceiverDetails; } } + + public XRootNamespace(Corrections root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Corrections Corrections { get {return rootObject as Corrections; } } + + public XRootNamespace(SurveyMonument root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public SurveyMonument SurveyMonument { get {return rootObject as SurveyMonument; } } + + public XRootNamespace(InstrumentSetup root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public InstrumentSetup InstrumentSetup { get {return rootObject as InstrumentSetup; } } + + public XRootNamespace(LaserSetup root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public LaserSetup LaserSetup { get {return rootObject as LaserSetup; } } + + public XRootNamespace(GPSSetup root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public GPSSetup GPSSetup { get {return rootObject as GPSSetup; } } + + public XRootNamespace(TargetSetup root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public TargetSetup TargetSetup { get {return rootObject as TargetSetup; } } + + public XRootNamespace(Backsight root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Backsight Backsight { get {return rootObject as Backsight; } } + + public XRootNamespace(RawObservation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public RawObservation RawObservation { get {return rootObject as RawObservation; } } + + public XRootNamespace(TestObservation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public TestObservation TestObservation { get {return rootObject as TestObservation; } } + + public XRootNamespace(OffsetVals root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public OffsetVals OffsetVals { get {return rootObject as OffsetVals; } } + + public XRootNamespace(GPSVector root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public GPSVector GPSVector { get {return rootObject as GPSVector; } } + + public XRootNamespace(GPSPosition root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public GPSPosition GPSPosition { get {return rootObject as GPSPosition; } } + + public XRootNamespace(GPSQCInfoLevel1 root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public GPSQCInfoLevel1 GPSQCInfoLevel1 { get {return rootObject as GPSQCInfoLevel1; } } + + public XRootNamespace(GPSQCInfoLevel2 root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public GPSQCInfoLevel2 GPSQCInfoLevel2 { get {return rootObject as GPSQCInfoLevel2; } } + + public XRootNamespace(ObservationGroup root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ObservationGroup ObservationGroup { get {return rootObject as ObservationGroup; } } + + public XRootNamespace(ControlChecks root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ControlChecks ControlChecks { get {return rootObject as ControlChecks; } } + + public XRootNamespace(PointResults root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PointResults PointResults { get {return rootObject as PointResults; } } + + public XRootNamespace(ReducedObservation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ReducedObservation ReducedObservation { get {return rootObject as ReducedObservation; } } + + public XRootNamespace(ReducedArcObservation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ReducedArcObservation ReducedArcObservation { get {return rootObject as ReducedArcObservation; } } + + public XRootNamespace(RedHorizontalPosition root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public RedHorizontalPosition RedHorizontalPosition { get {return rootObject as RedHorizontalPosition; } } + + public XRootNamespace(RedVerticalObservation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public RedVerticalObservation RedVerticalObservation { get {return rootObject as RedVerticalObservation; } } + + public XRootNamespace(Monuments root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Monuments Monuments { get {return rootObject as Monuments; } } + + public XRootNamespace(Monument root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Monument Monument { get {return rootObject as Monument; } } + + public XRootNamespace(Surfaces root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Surfaces Surfaces { get {return rootObject as Surfaces; } } + + public XRootNamespace(Surface root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Surface Surface { get {return rootObject as Surface; } } + + public XRootNamespace(SourceData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public SourceData SourceData { get {return rootObject as SourceData; } } + + public XRootNamespace(DataPoints root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public DataPoints DataPoints { get {return rootObject as DataPoints; } } + + public XRootNamespace(PointFiles root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PointFiles PointFiles { get {return rootObject as PointFiles; } } + + public XRootNamespace(PointFile root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PointFile PointFile { get {return rootObject as PointFile; } } + + public XRootNamespace(Boundaries root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Boundaries Boundaries { get {return rootObject as Boundaries; } } + + public XRootNamespace(Boundary root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Boundary Boundary { get {return rootObject as Boundary; } } + + public XRootNamespace(Breaklines root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Breaklines Breaklines { get {return rootObject as Breaklines; } } + + public XRootNamespace(Breakline root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Breakline Breakline { get {return rootObject as Breakline; } } + + public XRootNamespace(RetWall root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public RetWall RetWall { get {return rootObject as RetWall; } } + + public XRootNamespace(RetWallPnt root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public RetWallPnt RetWallPnt { get {return rootObject as RetWallPnt; } } + + public XRootNamespace(Contours root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Contours Contours { get {return rootObject as Contours; } } + + public XRootNamespace(Contour root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Contour Contour { get {return rootObject as Contour; } } + + public XRootNamespace(Definition root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Definition Definition { get {return rootObject as Definition; } } + + public XRootNamespace(Pnts root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Pnts Pnts { get {return rootObject as Pnts; } } + + public XRootNamespace(P root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public P P { get {return rootObject as P; } } + + public XRootNamespace(Faces root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Faces Faces { get {return rootObject as Faces; } } + + public XRootNamespace(F root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public F F { get {return rootObject as F; } } + + public XRootNamespace(Watersheds root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Watersheds Watersheds { get {return rootObject as Watersheds; } } + + public XRootNamespace(Watershed root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Watershed Watershed { get {return rootObject as Watershed; } } + + public XRootNamespace(Outlet root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Outlet Outlet { get {return rootObject as Outlet; } } + + public XRootNamespace(SurfVolumes root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public SurfVolumes SurfVolumes { get {return rootObject as SurfVolumes; } } + + public XRootNamespace(SurfVolume root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public SurfVolume SurfVolume { get {return rootObject as SurfVolume; } } + + public XRootNamespace(Parcels root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Parcels Parcels { get {return rootObject as Parcels; } } + + public XRootNamespace(Parcel root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Parcel Parcel { get {return rootObject as Parcel; } } + + public XRootNamespace(VolumeGeom root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public VolumeGeom VolumeGeom { get {return rootObject as VolumeGeom; } } + + public XRootNamespace(Title root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Title Title { get {return rootObject as Title; } } + + public XRootNamespace(Exclusions root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Exclusions Exclusions { get {return rootObject as Exclusions; } } + + public XRootNamespace(LocationAddress root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public LocationAddress LocationAddress { get {return rootObject as LocationAddress; } } + + public XRootNamespace(ComplexName root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ComplexName ComplexName { get {return rootObject as ComplexName; } } + + public XRootNamespace(RoadName root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public RoadName RoadName { get {return rootObject as RoadName; } } + + public XRootNamespace(AddressPoint root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public AddressPoint AddressPoint { get {return rootObject as AddressPoint; } } + + public XRootNamespace(Alignments root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Alignments Alignments { get {return rootObject as Alignments; } } + + public XRootNamespace(Alignment root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Alignment Alignment { get {return rootObject as Alignment; } } + + public XRootNamespace(StaEquation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public StaEquation StaEquation { get {return rootObject as StaEquation; } } + + public XRootNamespace(Profile root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Profile Profile { get {return rootObject as Profile; } } + + public XRootNamespace(ProfSurf root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ProfSurf ProfSurf { get {return rootObject as ProfSurf; } } + + public XRootNamespace(ProfAlign root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ProfAlign ProfAlign { get {return rootObject as ProfAlign; } } + + public XRootNamespace(PVI root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PVI PVI { get {return rootObject as PVI; } } + + public XRootNamespace(ParaCurve root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ParaCurve ParaCurve { get {return rootObject as ParaCurve; } } + + public XRootNamespace(UnsymParaCurve root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public UnsymParaCurve UnsymParaCurve { get {return rootObject as UnsymParaCurve; } } + + public XRootNamespace(CircCurve root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CircCurve CircCurve { get {return rootObject as CircCurve; } } + + public XRootNamespace(PipeNetworks root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PipeNetworks PipeNetworks { get {return rootObject as PipeNetworks; } } + + public XRootNamespace(PipeNetwork root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public PipeNetwork PipeNetwork { get {return rootObject as PipeNetwork; } } + + public XRootNamespace(Pipes root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Pipes Pipes { get {return rootObject as Pipes; } } + + public XRootNamespace(Pipe root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public Pipe Pipe { get {return rootObject as Pipe; } } + + public XRootNamespace(CircPipe root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public CircPipe CircPipe { get {return rootObject as CircPipe; } } + + public XRootNamespace(ElliPipe root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public ElliPipe ElliPipe { get {return rootObject as ElliPipe; } } + + public XRootNamespace(EggPipe root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public EggPipe EggPipe { get {return rootObject as EggPipe; } } + + public XRootNamespace(RectPipe root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + public RectPipe RectPipe { get {return rootObject as RectPipe; } } - - public Channel Channel { get {return rootObject as Channel; } } - - public PipeFlow PipeFlow { get {return rootObject as PipeFlow; } } - - public Structs Structs { get {return rootObject as Structs; } } - - public Struct Struct { get {return rootObject as Struct; } } - - public CircStruct CircStruct { get {return rootObject as CircStruct; } } - - public RectStruct RectStruct { get {return rootObject as RectStruct; } } - - public InletStruct InletStruct { get {return rootObject as InletStruct; } } - - public OutletStruct OutletStruct { get {return rootObject as OutletStruct; } } - - public Connection Connection { get {return rootObject as Connection; } } - - public Invert Invert { get {return rootObject as Invert; } } - - public StructFlow StructFlow { get {return rootObject as StructFlow; } } - - public PlanFeatures PlanFeatures { get {return rootObject as PlanFeatures; } } - - public PlanFeature PlanFeature { get {return rootObject as PlanFeature; } } - - public GradeModel GradeModel { get {return rootObject as GradeModel; } } - - public GradeSurface GradeSurface { get {return rootObject as GradeSurface; } } - - public Zones Zones { get {return rootObject as Zones; } } - - public Zone Zone { get {return rootObject as Zone; } } - - public ZoneWidth ZoneWidth { get {return rootObject as ZoneWidth; } } - - public ZoneSlope ZoneSlope { get {return rootObject as ZoneSlope; } } - - public ZoneHinge ZoneHinge { get {return rootObject as ZoneHinge; } } - - public ZoneCutFill ZoneCutFill { get {return rootObject as ZoneCutFill; } } - - public ZoneMaterial ZoneMaterial { get {return rootObject as ZoneMaterial; } } - - public ZoneCrossSectStructure ZoneCrossSectStructure { get {return rootObject as ZoneCrossSectStructure; } } - - public Roadways Roadways { get {return rootObject as Roadways; } } - - public Roadway Roadway { get {return rootObject as Roadway; } } - - public Classification Classification { get {return rootObject as Classification; } } - - public DesignSpeed DesignSpeed { get {return rootObject as DesignSpeed; } } - - public DesignSpeed85th DesignSpeed85th { get {return rootObject as DesignSpeed85th; } } - - public Speeds Speeds { get {return rootObject as Speeds; } } - - public DailyTrafficVolume DailyTrafficVolume { get {return rootObject as DailyTrafficVolume; } } - - public DesignHour DesignHour { get {return rootObject as DesignHour; } } - - public PeakHour PeakHour { get {return rootObject as PeakHour; } } - - public TrafficVolume TrafficVolume { get {return rootObject as TrafficVolume; } } - - public Superelevation Superelevation { get {return rootObject as Superelevation; } } - - public Lanes Lanes { get {return rootObject as Lanes; } } - - public ThruLane ThruLane { get {return rootObject as ThruLane; } } - - public PassingLane PassingLane { get {return rootObject as PassingLane; } } - - public TurnLane TurnLane { get {return rootObject as TurnLane; } } - - public TwoWayLeftTurnLane TwoWayLeftTurnLane { get {return rootObject as TwoWayLeftTurnLane; } } - - public ClimbLane ClimbLane { get {return rootObject as ClimbLane; } } - - public OffsetLane OffsetLane { get {return rootObject as OffsetLane; } } - - public WideningLane WideningLane { get {return rootObject as WideningLane; } } - - public Roadside Roadside { get {return rootObject as Roadside; } } - - public Ditch Ditch { get {return rootObject as Ditch; } } - - public ObstructionOffset ObstructionOffset { get {return rootObject as ObstructionOffset; } } - - public BikeFacilities BikeFacilities { get {return rootObject as BikeFacilities; } } - - public RoadSign RoadSign { get {return rootObject as RoadSign; } } - - public DrivewayDensity DrivewayDensity { get {return rootObject as DrivewayDensity; } } - - public HazardRating HazardRating { get {return rootObject as HazardRating; } } - - public Intersections Intersections { get {return rootObject as Intersections; } } - - public Intersection Intersection { get {return rootObject as Intersection; } } - - public TrafficControl TrafficControl { get {return rootObject as TrafficControl; } } - - public Timing Timing { get {return rootObject as Timing; } } - - public Volume Volume { get {return rootObject as Volume; } } - - public TurnSpeed TurnSpeed { get {return rootObject as TurnSpeed; } } - - public TurnRestriction TurnRestriction { get {return rootObject as TurnRestriction; } } - - public Curb Curb { get {return rootObject as Curb; } } - - public Corner Corner { get {return rootObject as Corner; } } - - public CrashData CrashData { get {return rootObject as CrashData; } } - - public CrashHistory CrashHistory { get {return rootObject as CrashHistory; } } - - public PostedSpeed PostedSpeed { get {return rootObject as PostedSpeed; } } - - public NoPassingZone NoPassingZone { get {return rootObject as NoPassingZone; } } - - public DecisionSightDistance DecisionSightDistance { get {return rootObject as DecisionSightDistance; } } - - public BridgeElement BridgeElement { get {return rootObject as BridgeElement; } } - - public InSpiral InSpiral { get {return rootObject as InSpiral; } } - - public Curve1 Curve1 { get {return rootObject as Curve1; } } - - public ConnSpiral ConnSpiral { get {return rootObject as ConnSpiral; } } - - public Curve2 Curve2 { get {return rootObject as Curve2; } } - - public OutSpiral OutSpiral { get {return rootObject as OutSpiral; } } - - public AlignPI AlignPI { get {return rootObject as AlignPI; } } - - public AlignPIs AlignPIs { get {return rootObject as AlignPIs; } } - - public Cant Cant { get {return rootObject as Cant; } } - - public CantStation CantStation { get {return rootObject as CantStation; } } - - public SpeedStation SpeedStation { get {return rootObject as SpeedStation; } } - - public Start Start { get {return rootObject as Start; } } - - public End End { get {return rootObject as End; } } - - public Center Center { get {return rootObject as Center; } } - - public PI PI { get {return rootObject as PI; } } - - public MapPoint MapPoint { get {return rootObject as MapPoint; } } - - public InstrumentPoint InstrumentPoint { get {return rootObject as InstrumentPoint; } } - - public Location Location { get {return rootObject as Location; } } - - public TargetPoint TargetPoint { get {return rootObject as TargetPoint; } } - - public BacksightPoint BacksightPoint { get {return rootObject as BacksightPoint; } } - - public BeginRunoutSta BeginRunoutSta { get {return rootObject as BeginRunoutSta; } } - - public BeginRunoffSta BeginRunoffSta { get {return rootObject as BeginRunoffSta; } } - - public FullSuperSta FullSuperSta { get {return rootObject as FullSuperSta; } } - - public FullSuperelev FullSuperelev { get {return rootObject as FullSuperelev; } } - - public RunoffSta RunoffSta { get {return rootObject as RunoffSta; } } - - public StartofRunoutSta StartofRunoutSta { get {return rootObject as StartofRunoutSta; } } - - public EndofRunoutSta EndofRunoutSta { get {return rootObject as EndofRunoutSta; } } - - public AdverseSE AdverseSE { get {return rootObject as AdverseSE; } } - - public Station Station { get {return rootObject as Station; } } - private XRootNamespace() { + public XRootNamespace(Channel root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; } - public XRootNamespace(LandXML root) { + + public Channel Channel { get {return rootObject as Channel; } } + + public XRootNamespace(PipeFlow root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CgPoints root) { + + public PipeFlow PipeFlow { get {return rootObject as PipeFlow; } } + + public XRootNamespace(Structs root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CgPoint root) { + + public Structs Structs { get {return rootObject as Structs; } } + + public XRootNamespace(Struct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(DocFileRef root) { + + public Struct Struct { get {return rootObject as Struct; } } + + public XRootNamespace(CircStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Property root) { + + public CircStruct CircStruct { get {return rootObject as CircStruct; } } + + public XRootNamespace(RectStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Feature root) { + + public RectStruct RectStruct { get {return rootObject as RectStruct; } } + + public XRootNamespace(InletStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(FeatureDictionary root) { + + public InletStruct InletStruct { get {return rootObject as InletStruct; } } + + public XRootNamespace(OutletStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(PntList2D root) { + + public OutletStruct OutletStruct { get {return rootObject as OutletStruct; } } + + public XRootNamespace(Connection root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(PntList3D root) { + + public Connection Connection { get {return rootObject as Connection; } } + + public XRootNamespace(Invert root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(IrregularLine root) { + + public Invert Invert { get {return rootObject as Invert; } } + + public XRootNamespace(StructFlow root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Chain root) { + + public StructFlow StructFlow { get {return rootObject as StructFlow; } } + + public XRootNamespace(PlanFeatures root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Curve root) { + + public PlanFeatures PlanFeatures { get {return rootObject as PlanFeatures; } } + + public XRootNamespace(PlanFeature root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Spiral root) { + + public PlanFeature PlanFeature { get {return rootObject as PlanFeature; } } + + public XRootNamespace(GradeModel root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CoordGeom root) { + + public GradeModel GradeModel { get {return rootObject as GradeModel; } } + + public XRootNamespace(GradeSurface root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Line root) { + + public GradeSurface GradeSurface { get {return rootObject as GradeSurface; } } + + public XRootNamespace(Zones root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CrossSects root) { + + public Zones Zones { get {return rootObject as Zones; } } + + public XRootNamespace(Zone root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CrossSect root) { + + public Zone Zone { get {return rootObject as Zone; } } + + public XRootNamespace(ZoneWidth root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CrossSectSurf root) { + + public ZoneWidth ZoneWidth { get {return rootObject as ZoneWidth; } } + + public XRootNamespace(ZoneSlope root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CrossSectPnt root) { + + public ZoneSlope ZoneSlope { get {return rootObject as ZoneSlope; } } + + public XRootNamespace(ZoneHinge root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(DesignCrossSectSurf root) { + + public ZoneHinge ZoneHinge { get {return rootObject as ZoneHinge; } } + + public XRootNamespace(ZoneCutFill root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Project root) { + + public ZoneCutFill ZoneCutFill { get {return rootObject as ZoneCutFill; } } + + public XRootNamespace(ZoneMaterial root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Units root) { + + public ZoneMaterial ZoneMaterial { get {return rootObject as ZoneMaterial; } } + + public XRootNamespace(ZoneCrossSectStructure root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Metric root) { + + public ZoneCrossSectStructure ZoneCrossSectStructure { get {return rootObject as ZoneCrossSectStructure; } } + + public XRootNamespace(Roadways root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Imperial root) { + + public Roadways Roadways { get {return rootObject as Roadways; } } + + public XRootNamespace(Roadway root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(CoordinateSystem root) { + + public Roadway Roadway { get {return rootObject as Roadway; } } + + public XRootNamespace(Classification root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Application root) { + + public Classification Classification { get {return rootObject as Classification; } } + + public XRootNamespace(DesignSpeed root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Author root) { + + public DesignSpeed DesignSpeed { get {return rootObject as DesignSpeed; } } + + public XRootNamespace(DesignSpeed85th root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Survey root) { + + public DesignSpeed85th DesignSpeed85th { get {return rootObject as DesignSpeed85th; } } + + public XRootNamespace(Speeds root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(SurveyHeader root) { + + public Speeds Speeds { get {return rootObject as Speeds; } } + + public XRootNamespace(DailyTrafficVolume root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(HeadOfPower root) { + + public DailyTrafficVolume DailyTrafficVolume { get {return rootObject as DailyTrafficVolume; } } + + public XRootNamespace(DesignHour root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(AdministrativeArea root) { + + public DesignHour DesignHour { get {return rootObject as DesignHour; } } + + public XRootNamespace(PeakHour root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(AdministrativeDate root) { + + public PeakHour PeakHour { get {return rootObject as PeakHour; } } + + public XRootNamespace(TrafficVolume root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Annotation root) { + + public TrafficVolume TrafficVolume { get {return rootObject as TrafficVolume; } } + + public XRootNamespace(Superelevation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(SurveyorCertificate root) { + + public Superelevation Superelevation { get {return rootObject as Superelevation; } } + + public XRootNamespace(Lanes root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(PurposeOfSurvey root) { + + public Lanes Lanes { get {return rootObject as Lanes; } } + + public XRootNamespace(ThruLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Amendment root) { + + public ThruLane ThruLane { get {return rootObject as ThruLane; } } + + public XRootNamespace(PassingLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(AmendmentItem root) { + + public PassingLane PassingLane { get {return rootObject as PassingLane; } } + + public XRootNamespace(TurnLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Personnel root) { + + public TurnLane TurnLane { get {return rootObject as TurnLane; } } + + public XRootNamespace(TwoWayLeftTurnLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(FieldNote root) { + + public TwoWayLeftTurnLane TwoWayLeftTurnLane { get {return rootObject as TwoWayLeftTurnLane; } } + + public XRootNamespace(ClimbLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Equipment root) { + + public ClimbLane ClimbLane { get {return rootObject as ClimbLane; } } + + public XRootNamespace(OffsetLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(InstrumentDetails root) { + + public OffsetLane OffsetLane { get {return rootObject as OffsetLane; } } + + public XRootNamespace(WideningLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(LaserDetails root) { + + public WideningLane WideningLane { get {return rootObject as WideningLane; } } + + public XRootNamespace(Roadside root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(GPSAntennaDetails root) { + + public Roadside Roadside { get {return rootObject as Roadside; } } + + public XRootNamespace(Ditch root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(GPSReceiverDetails root) { + + public Ditch Ditch { get {return rootObject as Ditch; } } + + public XRootNamespace(ObstructionOffset root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Corrections root) { + + public ObstructionOffset ObstructionOffset { get {return rootObject as ObstructionOffset; } } + + public XRootNamespace(BikeFacilities root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(SurveyMonument root) { + + public BikeFacilities BikeFacilities { get {return rootObject as BikeFacilities; } } + + public XRootNamespace(RoadSign root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(InstrumentSetup root) { + + public RoadSign RoadSign { get {return rootObject as RoadSign; } } + + public XRootNamespace(DrivewayDensity root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(LaserSetup root) { + + public DrivewayDensity DrivewayDensity { get {return rootObject as DrivewayDensity; } } + + public XRootNamespace(HazardRating root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(GPSSetup root) { + + public HazardRating HazardRating { get {return rootObject as HazardRating; } } + + public XRootNamespace(Intersections root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(TargetSetup root) { + + public Intersections Intersections { get {return rootObject as Intersections; } } + + public XRootNamespace(Intersection root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Backsight root) { + + public Intersection Intersection { get {return rootObject as Intersection; } } + + public XRootNamespace(TrafficControl root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(RawObservation root) { + + public TrafficControl TrafficControl { get {return rootObject as TrafficControl; } } + + public XRootNamespace(Timing root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(TestObservation root) { + + public Timing Timing { get {return rootObject as Timing; } } + + public XRootNamespace(Volume root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(OffsetVals root) { + + public Volume Volume { get {return rootObject as Volume; } } + + public XRootNamespace(TurnSpeed root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(GPSVector root) { + + public TurnSpeed TurnSpeed { get {return rootObject as TurnSpeed; } } + + public XRootNamespace(TurnRestriction root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(GPSPosition root) { + + public TurnRestriction TurnRestriction { get {return rootObject as TurnRestriction; } } + + public XRootNamespace(Curb root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(GPSQCInfoLevel1 root) { + + public Curb Curb { get {return rootObject as Curb; } } + + public XRootNamespace(Corner root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(GPSQCInfoLevel2 root) { + + public Corner Corner { get {return rootObject as Corner; } } + + public XRootNamespace(CrashData root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(ObservationGroup root) { + + public CrashData CrashData { get {return rootObject as CrashData; } } + + public XRootNamespace(CrashHistory root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(ControlChecks root) { + + public CrashHistory CrashHistory { get {return rootObject as CrashHistory; } } + + public XRootNamespace(PostedSpeed root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(PointResults root) { + + public PostedSpeed PostedSpeed { get {return rootObject as PostedSpeed; } } + + public XRootNamespace(NoPassingZone root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(ReducedObservation root) { + + public NoPassingZone NoPassingZone { get {return rootObject as NoPassingZone; } } + + public XRootNamespace(DecisionSightDistance root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(ReducedArcObservation root) { + + public DecisionSightDistance DecisionSightDistance { get {return rootObject as DecisionSightDistance; } } + + public XRootNamespace(BridgeElement root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(RedHorizontalPosition root) { + + public BridgeElement BridgeElement { get {return rootObject as BridgeElement; } } + + public XRootNamespace(InSpiral root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(RedVerticalObservation root) { + + public InSpiral InSpiral { get {return rootObject as InSpiral; } } + + public XRootNamespace(Curve1 root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Monuments root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Monument root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Surfaces root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Surface root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(SourceData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(DataPoints root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PointFiles root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PointFile root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Boundaries root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Boundary root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Breaklines root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Breakline root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(RetWall root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(RetWallPnt root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Contours root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Contour root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Definition root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Pnts root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(P root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Faces root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(F root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Watersheds root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Watershed root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Outlet root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(SurfVolumes root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(SurfVolume root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Parcels root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Parcel root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(VolumeGeom root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Title root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Exclusions root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(LocationAddress root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ComplexName root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(RoadName root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(AddressPoint root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Alignments root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Alignment root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(StaEquation root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Profile root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ProfSurf root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ProfAlign root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PVI root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ParaCurve root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(UnsymParaCurve root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(CircCurve root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PipeNetworks root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PipeNetwork root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Pipes root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Pipe root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(CircPipe root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ElliPipe root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(EggPipe root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(RectPipe root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Channel root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PipeFlow root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Structs root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Struct root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(CircStruct root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(RectStruct root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(InletStruct root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(OutletStruct root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Connection root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Invert root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(StructFlow root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PlanFeatures root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PlanFeature root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(GradeModel root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(GradeSurface root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Zones root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Zone root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ZoneWidth root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ZoneSlope root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ZoneHinge root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ZoneCutFill root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ZoneMaterial root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ZoneCrossSectStructure root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Roadways root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Roadway root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Classification root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(DesignSpeed root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(DesignSpeed85th root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Speeds root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(DailyTrafficVolume root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(DesignHour root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PeakHour root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(TrafficVolume root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Superelevation root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Lanes root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ThruLane root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PassingLane root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(TurnLane root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(TwoWayLeftTurnLane root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ClimbLane root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(OffsetLane root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(WideningLane root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + + public Curve1 Curve1 { get {return rootObject as Curve1; } } - public XRootNamespace(Roadside root) { + public XRootNamespace(ConnSpiral root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Ditch root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + + public ConnSpiral ConnSpiral { get {return rootObject as ConnSpiral; } } - public XRootNamespace(ObstructionOffset root) { + public XRootNamespace(Curve2 root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(BikeFacilities root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + + public Curve2 Curve2 { get {return rootObject as Curve2; } } - public XRootNamespace(RoadSign root) { + public XRootNamespace(OutSpiral root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(DrivewayDensity root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + + public OutSpiral OutSpiral { get {return rootObject as OutSpiral; } } - public XRootNamespace(HazardRating root) { + public XRootNamespace(AlignPI root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(Intersections root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + + public AlignPI AlignPI { get {return rootObject as AlignPI; } } - public XRootNamespace(Intersection root) { + public XRootNamespace(AlignPIs root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRootNamespace(TrafficControl root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Timing root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Volume root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(TurnSpeed root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(TurnRestriction root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Curb root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Corner root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(CrashData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(CrashHistory root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PostedSpeed root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(NoPassingZone root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(DecisionSightDistance root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(BridgeElement root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(InSpiral root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Curve1 root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(ConnSpiral root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Curve2 root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(OutSpiral root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(AlignPI root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(AlignPIs root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Cant root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(CantStation root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(SpeedStation root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Start root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(End root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Center root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(PI root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(MapPoint root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(InstrumentPoint root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Location root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(TargetPoint root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(BacksightPoint root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(BeginRunoutSta root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(BeginRunoffSta root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(FullSuperSta root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(FullSuperelev root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(RunoffSta root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(StartofRunoutSta root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(EndofRunoutSta root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(AdverseSE root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRootNamespace(Station root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - - public static XRootNamespace Load(string xmlFile) { - XRootNamespace root = new XRootNamespace(); - root.doc = XDocument.Load(xmlFile); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRootNamespace Load(string xmlFile, LoadOptions options) { - XRootNamespace root = new XRootNamespace(); - root.doc = XDocument.Load(xmlFile, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRootNamespace Load(TextReader textReader) { - XRootNamespace root = new XRootNamespace(); - root.doc = XDocument.Load(textReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRootNamespace Load(TextReader textReader, LoadOptions options) { - XRootNamespace root = new XRootNamespace(); - root.doc = XDocument.Load(textReader, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRootNamespace Load(XmlReader xmlReader) { - XRootNamespace root = new XRootNamespace(); - root.doc = XDocument.Load(xmlReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRootNamespace Parse(string text) { - XRootNamespace root = new XRootNamespace(); - root.doc = XDocument.Parse(text); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRootNamespace Parse(string text, LoadOptions options) { - XRootNamespace root = new XRootNamespace(); - root.doc = XDocument.Parse(text, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public virtual void Save(string fileName) { - doc.Save(fileName); - } - - public virtual void Save(TextWriter textWriter) { - doc.Save(textWriter); - } - - public virtual void Save(XmlWriter writer) { - doc.Save(writer); - } - - public virtual void Save(TextWriter textWriter, SaveOptions options) { - doc.Save(textWriter, options); - } - - public virtual void Save(string fileName, SaveOptions options) { - doc.Save(fileName, options); - } - } - - public partial class XRoot { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XDocument doc; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedElement rootObject; - - - public global::LandXml.v1_2.LandXML LandXML { get {return rootObject as global::LandXml.v1_2.LandXML; } } - - public global::LandXml.v1_2.CgPoints CgPoints { get {return rootObject as global::LandXml.v1_2.CgPoints; } } - - public global::LandXml.v1_2.CgPoint CgPoint { get {return rootObject as global::LandXml.v1_2.CgPoint; } } - - public global::LandXml.v1_2.DocFileRef DocFileRef { get {return rootObject as global::LandXml.v1_2.DocFileRef; } } - - public global::LandXml.v1_2.Property Property { get {return rootObject as global::LandXml.v1_2.Property; } } - - public global::LandXml.v1_2.Feature Feature { get {return rootObject as global::LandXml.v1_2.Feature; } } - - public global::LandXml.v1_2.FeatureDictionary FeatureDictionary { get {return rootObject as global::LandXml.v1_2.FeatureDictionary; } } - - public global::LandXml.v1_2.PntList2D PntList2D { get {return rootObject as global::LandXml.v1_2.PntList2D; } } - - public global::LandXml.v1_2.PntList3D PntList3D { get {return rootObject as global::LandXml.v1_2.PntList3D; } } - - public global::LandXml.v1_2.IrregularLine IrregularLine { get {return rootObject as global::LandXml.v1_2.IrregularLine; } } - - public global::LandXml.v1_2.Chain Chain { get {return rootObject as global::LandXml.v1_2.Chain; } } - - public global::LandXml.v1_2.Curve Curve { get {return rootObject as global::LandXml.v1_2.Curve; } } - - public global::LandXml.v1_2.Spiral Spiral { get {return rootObject as global::LandXml.v1_2.Spiral; } } - - public global::LandXml.v1_2.CoordGeom CoordGeom { get {return rootObject as global::LandXml.v1_2.CoordGeom; } } - public global::LandXml.v1_2.Line Line { get {return rootObject as global::LandXml.v1_2.Line; } } - - public global::LandXml.v1_2.CrossSects CrossSects { get {return rootObject as global::LandXml.v1_2.CrossSects; } } - - public global::LandXml.v1_2.CrossSect CrossSect { get {return rootObject as global::LandXml.v1_2.CrossSect; } } - - public global::LandXml.v1_2.CrossSectSurf CrossSectSurf { get {return rootObject as global::LandXml.v1_2.CrossSectSurf; } } - - public global::LandXml.v1_2.CrossSectPnt CrossSectPnt { get {return rootObject as global::LandXml.v1_2.CrossSectPnt; } } - - public global::LandXml.v1_2.DesignCrossSectSurf DesignCrossSectSurf { get {return rootObject as global::LandXml.v1_2.DesignCrossSectSurf; } } - - public global::LandXml.v1_2.Project Project { get {return rootObject as global::LandXml.v1_2.Project; } } - - public global::LandXml.v1_2.Units Units { get {return rootObject as global::LandXml.v1_2.Units; } } - - public global::LandXml.v1_2.Metric Metric { get {return rootObject as global::LandXml.v1_2.Metric; } } - - public global::LandXml.v1_2.Imperial Imperial { get {return rootObject as global::LandXml.v1_2.Imperial; } } - - public global::LandXml.v1_2.CoordinateSystem CoordinateSystem { get {return rootObject as global::LandXml.v1_2.CoordinateSystem; } } - - public global::LandXml.v1_2.Application Application { get {return rootObject as global::LandXml.v1_2.Application; } } - - public global::LandXml.v1_2.Author Author { get {return rootObject as global::LandXml.v1_2.Author; } } - - public global::LandXml.v1_2.Survey Survey { get {return rootObject as global::LandXml.v1_2.Survey; } } - - public global::LandXml.v1_2.SurveyHeader SurveyHeader { get {return rootObject as global::LandXml.v1_2.SurveyHeader; } } - - public global::LandXml.v1_2.HeadOfPower HeadOfPower { get {return rootObject as global::LandXml.v1_2.HeadOfPower; } } - - public global::LandXml.v1_2.AdministrativeArea AdministrativeArea { get {return rootObject as global::LandXml.v1_2.AdministrativeArea; } } - - public global::LandXml.v1_2.AdministrativeDate AdministrativeDate { get {return rootObject as global::LandXml.v1_2.AdministrativeDate; } } - - public global::LandXml.v1_2.Annotation Annotation { get {return rootObject as global::LandXml.v1_2.Annotation; } } - - public global::LandXml.v1_2.SurveyorCertificate SurveyorCertificate { get {return rootObject as global::LandXml.v1_2.SurveyorCertificate; } } - - public global::LandXml.v1_2.PurposeOfSurvey PurposeOfSurvey { get {return rootObject as global::LandXml.v1_2.PurposeOfSurvey; } } - - public global::LandXml.v1_2.Amendment Amendment { get {return rootObject as global::LandXml.v1_2.Amendment; } } - - public global::LandXml.v1_2.AmendmentItem AmendmentItem { get {return rootObject as global::LandXml.v1_2.AmendmentItem; } } - - public global::LandXml.v1_2.Personnel Personnel { get {return rootObject as global::LandXml.v1_2.Personnel; } } - - public global::LandXml.v1_2.FieldNote FieldNote { get {return rootObject as global::LandXml.v1_2.FieldNote; } } - - public global::LandXml.v1_2.Equipment Equipment { get {return rootObject as global::LandXml.v1_2.Equipment; } } - - public global::LandXml.v1_2.InstrumentDetails InstrumentDetails { get {return rootObject as global::LandXml.v1_2.InstrumentDetails; } } - - public global::LandXml.v1_2.LaserDetails LaserDetails { get {return rootObject as global::LandXml.v1_2.LaserDetails; } } - - public global::LandXml.v1_2.GPSAntennaDetails GPSAntennaDetails { get {return rootObject as global::LandXml.v1_2.GPSAntennaDetails; } } - - public global::LandXml.v1_2.GPSReceiverDetails GPSReceiverDetails { get {return rootObject as global::LandXml.v1_2.GPSReceiverDetails; } } - - public global::LandXml.v1_2.Corrections Corrections { get {return rootObject as global::LandXml.v1_2.Corrections; } } - - public global::LandXml.v1_2.SurveyMonument SurveyMonument { get {return rootObject as global::LandXml.v1_2.SurveyMonument; } } - - public global::LandXml.v1_2.InstrumentSetup InstrumentSetup { get {return rootObject as global::LandXml.v1_2.InstrumentSetup; } } - - public global::LandXml.v1_2.LaserSetup LaserSetup { get {return rootObject as global::LandXml.v1_2.LaserSetup; } } - - public global::LandXml.v1_2.GPSSetup GPSSetup { get {return rootObject as global::LandXml.v1_2.GPSSetup; } } - - public global::LandXml.v1_2.TargetSetup TargetSetup { get {return rootObject as global::LandXml.v1_2.TargetSetup; } } - - public global::LandXml.v1_2.Backsight Backsight { get {return rootObject as global::LandXml.v1_2.Backsight; } } - - public global::LandXml.v1_2.RawObservation RawObservation { get {return rootObject as global::LandXml.v1_2.RawObservation; } } - - public global::LandXml.v1_2.TestObservation TestObservation { get {return rootObject as global::LandXml.v1_2.TestObservation; } } - - public global::LandXml.v1_2.OffsetVals OffsetVals { get {return rootObject as global::LandXml.v1_2.OffsetVals; } } - - public global::LandXml.v1_2.GPSVector GPSVector { get {return rootObject as global::LandXml.v1_2.GPSVector; } } - - public global::LandXml.v1_2.GPSPosition GPSPosition { get {return rootObject as global::LandXml.v1_2.GPSPosition; } } - - public global::LandXml.v1_2.GPSQCInfoLevel1 GPSQCInfoLevel1 { get {return rootObject as global::LandXml.v1_2.GPSQCInfoLevel1; } } - - public global::LandXml.v1_2.GPSQCInfoLevel2 GPSQCInfoLevel2 { get {return rootObject as global::LandXml.v1_2.GPSQCInfoLevel2; } } - - public global::LandXml.v1_2.ObservationGroup ObservationGroup { get {return rootObject as global::LandXml.v1_2.ObservationGroup; } } - - public global::LandXml.v1_2.ControlChecks ControlChecks { get {return rootObject as global::LandXml.v1_2.ControlChecks; } } - - public global::LandXml.v1_2.PointResults PointResults { get {return rootObject as global::LandXml.v1_2.PointResults; } } - - public global::LandXml.v1_2.ReducedObservation ReducedObservation { get {return rootObject as global::LandXml.v1_2.ReducedObservation; } } - - public global::LandXml.v1_2.ReducedArcObservation ReducedArcObservation { get {return rootObject as global::LandXml.v1_2.ReducedArcObservation; } } - - public global::LandXml.v1_2.RedHorizontalPosition RedHorizontalPosition { get {return rootObject as global::LandXml.v1_2.RedHorizontalPosition; } } - - public global::LandXml.v1_2.RedVerticalObservation RedVerticalObservation { get {return rootObject as global::LandXml.v1_2.RedVerticalObservation; } } - - public global::LandXml.v1_2.Monuments Monuments { get {return rootObject as global::LandXml.v1_2.Monuments; } } - - public global::LandXml.v1_2.Monument Monument { get {return rootObject as global::LandXml.v1_2.Monument; } } - - public global::LandXml.v1_2.Surfaces Surfaces { get {return rootObject as global::LandXml.v1_2.Surfaces; } } - - public global::LandXml.v1_2.Surface Surface { get {return rootObject as global::LandXml.v1_2.Surface; } } - - public global::LandXml.v1_2.SourceData SourceData { get {return rootObject as global::LandXml.v1_2.SourceData; } } - - public global::LandXml.v1_2.DataPoints DataPoints { get {return rootObject as global::LandXml.v1_2.DataPoints; } } - - public global::LandXml.v1_2.PointFiles PointFiles { get {return rootObject as global::LandXml.v1_2.PointFiles; } } - - public global::LandXml.v1_2.PointFile PointFile { get {return rootObject as global::LandXml.v1_2.PointFile; } } - - public global::LandXml.v1_2.Boundaries Boundaries { get {return rootObject as global::LandXml.v1_2.Boundaries; } } - - public global::LandXml.v1_2.Boundary Boundary { get {return rootObject as global::LandXml.v1_2.Boundary; } } - - public global::LandXml.v1_2.Breaklines Breaklines { get {return rootObject as global::LandXml.v1_2.Breaklines; } } - - public global::LandXml.v1_2.Breakline Breakline { get {return rootObject as global::LandXml.v1_2.Breakline; } } - - public global::LandXml.v1_2.RetWall RetWall { get {return rootObject as global::LandXml.v1_2.RetWall; } } - - public global::LandXml.v1_2.RetWallPnt RetWallPnt { get {return rootObject as global::LandXml.v1_2.RetWallPnt; } } - - public global::LandXml.v1_2.Contours Contours { get {return rootObject as global::LandXml.v1_2.Contours; } } - - public global::LandXml.v1_2.Contour Contour { get {return rootObject as global::LandXml.v1_2.Contour; } } - - public global::LandXml.v1_2.Definition Definition { get {return rootObject as global::LandXml.v1_2.Definition; } } - - public global::LandXml.v1_2.Pnts Pnts { get {return rootObject as global::LandXml.v1_2.Pnts; } } - - public global::LandXml.v1_2.P P { get {return rootObject as global::LandXml.v1_2.P; } } - - public global::LandXml.v1_2.Faces Faces { get {return rootObject as global::LandXml.v1_2.Faces; } } - - public global::LandXml.v1_2.F F { get {return rootObject as global::LandXml.v1_2.F; } } - - public global::LandXml.v1_2.Watersheds Watersheds { get {return rootObject as global::LandXml.v1_2.Watersheds; } } - - public global::LandXml.v1_2.Watershed Watershed { get {return rootObject as global::LandXml.v1_2.Watershed; } } - - public global::LandXml.v1_2.Outlet Outlet { get {return rootObject as global::LandXml.v1_2.Outlet; } } - - public global::LandXml.v1_2.SurfVolumes SurfVolumes { get {return rootObject as global::LandXml.v1_2.SurfVolumes; } } - - public global::LandXml.v1_2.SurfVolume SurfVolume { get {return rootObject as global::LandXml.v1_2.SurfVolume; } } - - public global::LandXml.v1_2.Parcels Parcels { get {return rootObject as global::LandXml.v1_2.Parcels; } } - - public global::LandXml.v1_2.Parcel Parcel { get {return rootObject as global::LandXml.v1_2.Parcel; } } - - public global::LandXml.v1_2.VolumeGeom VolumeGeom { get {return rootObject as global::LandXml.v1_2.VolumeGeom; } } - - public global::LandXml.v1_2.Title Title { get {return rootObject as global::LandXml.v1_2.Title; } } - - public global::LandXml.v1_2.Exclusions Exclusions { get {return rootObject as global::LandXml.v1_2.Exclusions; } } - - public global::LandXml.v1_2.LocationAddress LocationAddress { get {return rootObject as global::LandXml.v1_2.LocationAddress; } } - - public global::LandXml.v1_2.ComplexName ComplexName { get {return rootObject as global::LandXml.v1_2.ComplexName; } } - - public global::LandXml.v1_2.RoadName RoadName { get {return rootObject as global::LandXml.v1_2.RoadName; } } - - public global::LandXml.v1_2.AddressPoint AddressPoint { get {return rootObject as global::LandXml.v1_2.AddressPoint; } } - - public global::LandXml.v1_2.Alignments Alignments { get {return rootObject as global::LandXml.v1_2.Alignments; } } - - public global::LandXml.v1_2.Alignment Alignment { get {return rootObject as global::LandXml.v1_2.Alignment; } } - - public global::LandXml.v1_2.StaEquation StaEquation { get {return rootObject as global::LandXml.v1_2.StaEquation; } } - - public global::LandXml.v1_2.Profile Profile { get {return rootObject as global::LandXml.v1_2.Profile; } } - - public global::LandXml.v1_2.ProfSurf ProfSurf { get {return rootObject as global::LandXml.v1_2.ProfSurf; } } - - public global::LandXml.v1_2.ProfAlign ProfAlign { get {return rootObject as global::LandXml.v1_2.ProfAlign; } } - - public global::LandXml.v1_2.PVI PVI { get {return rootObject as global::LandXml.v1_2.PVI; } } - - public global::LandXml.v1_2.ParaCurve ParaCurve { get {return rootObject as global::LandXml.v1_2.ParaCurve; } } - - public global::LandXml.v1_2.UnsymParaCurve UnsymParaCurve { get {return rootObject as global::LandXml.v1_2.UnsymParaCurve; } } - - public global::LandXml.v1_2.CircCurve CircCurve { get {return rootObject as global::LandXml.v1_2.CircCurve; } } - - public global::LandXml.v1_2.PipeNetworks PipeNetworks { get {return rootObject as global::LandXml.v1_2.PipeNetworks; } } - - public global::LandXml.v1_2.PipeNetwork PipeNetwork { get {return rootObject as global::LandXml.v1_2.PipeNetwork; } } - - public global::LandXml.v1_2.Pipes Pipes { get {return rootObject as global::LandXml.v1_2.Pipes; } } - - public global::LandXml.v1_2.Pipe Pipe { get {return rootObject as global::LandXml.v1_2.Pipe; } } - - public global::LandXml.v1_2.CircPipe CircPipe { get {return rootObject as global::LandXml.v1_2.CircPipe; } } - - public global::LandXml.v1_2.ElliPipe ElliPipe { get {return rootObject as global::LandXml.v1_2.ElliPipe; } } - - public global::LandXml.v1_2.EggPipe EggPipe { get {return rootObject as global::LandXml.v1_2.EggPipe; } } - - public global::LandXml.v1_2.RectPipe RectPipe { get {return rootObject as global::LandXml.v1_2.RectPipe; } } - - public global::LandXml.v1_2.Channel Channel { get {return rootObject as global::LandXml.v1_2.Channel; } } - - public global::LandXml.v1_2.PipeFlow PipeFlow { get {return rootObject as global::LandXml.v1_2.PipeFlow; } } - - public global::LandXml.v1_2.Structs Structs { get {return rootObject as global::LandXml.v1_2.Structs; } } - - public global::LandXml.v1_2.Struct Struct { get {return rootObject as global::LandXml.v1_2.Struct; } } - - public global::LandXml.v1_2.CircStruct CircStruct { get {return rootObject as global::LandXml.v1_2.CircStruct; } } - - public global::LandXml.v1_2.RectStruct RectStruct { get {return rootObject as global::LandXml.v1_2.RectStruct; } } - - public global::LandXml.v1_2.InletStruct InletStruct { get {return rootObject as global::LandXml.v1_2.InletStruct; } } - - public global::LandXml.v1_2.OutletStruct OutletStruct { get {return rootObject as global::LandXml.v1_2.OutletStruct; } } - - public global::LandXml.v1_2.Connection Connection { get {return rootObject as global::LandXml.v1_2.Connection; } } - - public global::LandXml.v1_2.Invert Invert { get {return rootObject as global::LandXml.v1_2.Invert; } } - - public global::LandXml.v1_2.StructFlow StructFlow { get {return rootObject as global::LandXml.v1_2.StructFlow; } } - - public global::LandXml.v1_2.PlanFeatures PlanFeatures { get {return rootObject as global::LandXml.v1_2.PlanFeatures; } } - - public global::LandXml.v1_2.PlanFeature PlanFeature { get {return rootObject as global::LandXml.v1_2.PlanFeature; } } - - public global::LandXml.v1_2.GradeModel GradeModel { get {return rootObject as global::LandXml.v1_2.GradeModel; } } - - public global::LandXml.v1_2.GradeSurface GradeSurface { get {return rootObject as global::LandXml.v1_2.GradeSurface; } } - - public global::LandXml.v1_2.Zones Zones { get {return rootObject as global::LandXml.v1_2.Zones; } } - - public global::LandXml.v1_2.Zone Zone { get {return rootObject as global::LandXml.v1_2.Zone; } } - - public global::LandXml.v1_2.ZoneWidth ZoneWidth { get {return rootObject as global::LandXml.v1_2.ZoneWidth; } } - - public global::LandXml.v1_2.ZoneSlope ZoneSlope { get {return rootObject as global::LandXml.v1_2.ZoneSlope; } } - - public global::LandXml.v1_2.ZoneHinge ZoneHinge { get {return rootObject as global::LandXml.v1_2.ZoneHinge; } } - - public global::LandXml.v1_2.ZoneCutFill ZoneCutFill { get {return rootObject as global::LandXml.v1_2.ZoneCutFill; } } - - public global::LandXml.v1_2.ZoneMaterial ZoneMaterial { get {return rootObject as global::LandXml.v1_2.ZoneMaterial; } } - - public global::LandXml.v1_2.ZoneCrossSectStructure ZoneCrossSectStructure { get {return rootObject as global::LandXml.v1_2.ZoneCrossSectStructure; } } - - public global::LandXml.v1_2.Roadways Roadways { get {return rootObject as global::LandXml.v1_2.Roadways; } } - - public global::LandXml.v1_2.Roadway Roadway { get {return rootObject as global::LandXml.v1_2.Roadway; } } - - public global::LandXml.v1_2.Classification Classification { get {return rootObject as global::LandXml.v1_2.Classification; } } - - public global::LandXml.v1_2.DesignSpeed DesignSpeed { get {return rootObject as global::LandXml.v1_2.DesignSpeed; } } - - public global::LandXml.v1_2.DesignSpeed85th DesignSpeed85th { get {return rootObject as global::LandXml.v1_2.DesignSpeed85th; } } - - public global::LandXml.v1_2.Speeds Speeds { get {return rootObject as global::LandXml.v1_2.Speeds; } } - - public global::LandXml.v1_2.DailyTrafficVolume DailyTrafficVolume { get {return rootObject as global::LandXml.v1_2.DailyTrafficVolume; } } - - public global::LandXml.v1_2.DesignHour DesignHour { get {return rootObject as global::LandXml.v1_2.DesignHour; } } - - public global::LandXml.v1_2.PeakHour PeakHour { get {return rootObject as global::LandXml.v1_2.PeakHour; } } - - public global::LandXml.v1_2.TrafficVolume TrafficVolume { get {return rootObject as global::LandXml.v1_2.TrafficVolume; } } - - public global::LandXml.v1_2.Superelevation Superelevation { get {return rootObject as global::LandXml.v1_2.Superelevation; } } - - public global::LandXml.v1_2.Lanes Lanes { get {return rootObject as global::LandXml.v1_2.Lanes; } } - - public global::LandXml.v1_2.ThruLane ThruLane { get {return rootObject as global::LandXml.v1_2.ThruLane; } } - - public global::LandXml.v1_2.PassingLane PassingLane { get {return rootObject as global::LandXml.v1_2.PassingLane; } } - - public global::LandXml.v1_2.TurnLane TurnLane { get {return rootObject as global::LandXml.v1_2.TurnLane; } } - - public global::LandXml.v1_2.TwoWayLeftTurnLane TwoWayLeftTurnLane { get {return rootObject as global::LandXml.v1_2.TwoWayLeftTurnLane; } } - - public global::LandXml.v1_2.ClimbLane ClimbLane { get {return rootObject as global::LandXml.v1_2.ClimbLane; } } - - public global::LandXml.v1_2.OffsetLane OffsetLane { get {return rootObject as global::LandXml.v1_2.OffsetLane; } } - - public global::LandXml.v1_2.WideningLane WideningLane { get {return rootObject as global::LandXml.v1_2.WideningLane; } } - - public global::LandXml.v1_2.Roadside Roadside { get {return rootObject as global::LandXml.v1_2.Roadside; } } - - public global::LandXml.v1_2.Ditch Ditch { get {return rootObject as global::LandXml.v1_2.Ditch; } } - - public global::LandXml.v1_2.ObstructionOffset ObstructionOffset { get {return rootObject as global::LandXml.v1_2.ObstructionOffset; } } - - public global::LandXml.v1_2.BikeFacilities BikeFacilities { get {return rootObject as global::LandXml.v1_2.BikeFacilities; } } - - public global::LandXml.v1_2.RoadSign RoadSign { get {return rootObject as global::LandXml.v1_2.RoadSign; } } - - public global::LandXml.v1_2.DrivewayDensity DrivewayDensity { get {return rootObject as global::LandXml.v1_2.DrivewayDensity; } } - - public global::LandXml.v1_2.HazardRating HazardRating { get {return rootObject as global::LandXml.v1_2.HazardRating; } } - - public global::LandXml.v1_2.Intersections Intersections { get {return rootObject as global::LandXml.v1_2.Intersections; } } - - public global::LandXml.v1_2.Intersection Intersection { get {return rootObject as global::LandXml.v1_2.Intersection; } } - - public global::LandXml.v1_2.TrafficControl TrafficControl { get {return rootObject as global::LandXml.v1_2.TrafficControl; } } - - public global::LandXml.v1_2.Timing Timing { get {return rootObject as global::LandXml.v1_2.Timing; } } - - public global::LandXml.v1_2.Volume Volume { get {return rootObject as global::LandXml.v1_2.Volume; } } - - public global::LandXml.v1_2.TurnSpeed TurnSpeed { get {return rootObject as global::LandXml.v1_2.TurnSpeed; } } - - public global::LandXml.v1_2.TurnRestriction TurnRestriction { get {return rootObject as global::LandXml.v1_2.TurnRestriction; } } - - public global::LandXml.v1_2.Curb Curb { get {return rootObject as global::LandXml.v1_2.Curb; } } - - public global::LandXml.v1_2.Corner Corner { get {return rootObject as global::LandXml.v1_2.Corner; } } - - public global::LandXml.v1_2.CrashData CrashData { get {return rootObject as global::LandXml.v1_2.CrashData; } } - - public global::LandXml.v1_2.CrashHistory CrashHistory { get {return rootObject as global::LandXml.v1_2.CrashHistory; } } - - public global::LandXml.v1_2.PostedSpeed PostedSpeed { get {return rootObject as global::LandXml.v1_2.PostedSpeed; } } - - public global::LandXml.v1_2.NoPassingZone NoPassingZone { get {return rootObject as global::LandXml.v1_2.NoPassingZone; } } - - public global::LandXml.v1_2.DecisionSightDistance DecisionSightDistance { get {return rootObject as global::LandXml.v1_2.DecisionSightDistance; } } - - public global::LandXml.v1_2.BridgeElement BridgeElement { get {return rootObject as global::LandXml.v1_2.BridgeElement; } } - - public global::LandXml.v1_2.InSpiral InSpiral { get {return rootObject as global::LandXml.v1_2.InSpiral; } } - - public global::LandXml.v1_2.Curve1 Curve1 { get {return rootObject as global::LandXml.v1_2.Curve1; } } - - public global::LandXml.v1_2.ConnSpiral ConnSpiral { get {return rootObject as global::LandXml.v1_2.ConnSpiral; } } - - public global::LandXml.v1_2.Curve2 Curve2 { get {return rootObject as global::LandXml.v1_2.Curve2; } } - - public global::LandXml.v1_2.OutSpiral OutSpiral { get {return rootObject as global::LandXml.v1_2.OutSpiral; } } - - public global::LandXml.v1_2.AlignPI AlignPI { get {return rootObject as global::LandXml.v1_2.AlignPI; } } - - public global::LandXml.v1_2.AlignPIs AlignPIs { get {return rootObject as global::LandXml.v1_2.AlignPIs; } } + public AlignPIs AlignPIs { get {return rootObject as AlignPIs; } } + + public XRootNamespace(Cant root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.Cant Cant { get {return rootObject as global::LandXml.v1_2.Cant; } } + public Cant Cant { get {return rootObject as Cant; } } + + public XRootNamespace(CantStation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.CantStation CantStation { get {return rootObject as global::LandXml.v1_2.CantStation; } } + public CantStation CantStation { get {return rootObject as CantStation; } } + + public XRootNamespace(SpeedStation root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.SpeedStation SpeedStation { get {return rootObject as global::LandXml.v1_2.SpeedStation; } } + public SpeedStation SpeedStation { get {return rootObject as SpeedStation; } } + + public XRootNamespace(Start root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.Start Start { get {return rootObject as global::LandXml.v1_2.Start; } } + public Start Start { get {return rootObject as Start; } } + + public XRootNamespace(End root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.End End { get {return rootObject as global::LandXml.v1_2.End; } } + public End End { get {return rootObject as End; } } + + public XRootNamespace(Center root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.Center Center { get {return rootObject as global::LandXml.v1_2.Center; } } + public Center Center { get {return rootObject as Center; } } + + public XRootNamespace(PI root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.PI PI { get {return rootObject as global::LandXml.v1_2.PI; } } + public PI PI { get {return rootObject as PI; } } + + public XRootNamespace(MapPoint root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.MapPoint MapPoint { get {return rootObject as global::LandXml.v1_2.MapPoint; } } + public MapPoint MapPoint { get {return rootObject as MapPoint; } } + + public XRootNamespace(InstrumentPoint root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.InstrumentPoint InstrumentPoint { get {return rootObject as global::LandXml.v1_2.InstrumentPoint; } } + public InstrumentPoint InstrumentPoint { get {return rootObject as InstrumentPoint; } } + + public XRootNamespace(Location root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.Location Location { get {return rootObject as global::LandXml.v1_2.Location; } } + public Location Location { get {return rootObject as Location; } } + + public XRootNamespace(TargetPoint root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.TargetPoint TargetPoint { get {return rootObject as global::LandXml.v1_2.TargetPoint; } } + public TargetPoint TargetPoint { get {return rootObject as TargetPoint; } } + + public XRootNamespace(BacksightPoint root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.BacksightPoint BacksightPoint { get {return rootObject as global::LandXml.v1_2.BacksightPoint; } } + public BacksightPoint BacksightPoint { get {return rootObject as BacksightPoint; } } + + public XRootNamespace(BeginRunoutSta root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.BeginRunoutSta BeginRunoutSta { get {return rootObject as global::LandXml.v1_2.BeginRunoutSta; } } + public BeginRunoutSta BeginRunoutSta { get {return rootObject as BeginRunoutSta; } } + + public XRootNamespace(BeginRunoffSta root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.BeginRunoffSta BeginRunoffSta { get {return rootObject as global::LandXml.v1_2.BeginRunoffSta; } } + public BeginRunoffSta BeginRunoffSta { get {return rootObject as BeginRunoffSta; } } + + public XRootNamespace(FullSuperSta root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.FullSuperSta FullSuperSta { get {return rootObject as global::LandXml.v1_2.FullSuperSta; } } + public FullSuperSta FullSuperSta { get {return rootObject as FullSuperSta; } } + + public XRootNamespace(FullSuperelev root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.FullSuperelev FullSuperelev { get {return rootObject as global::LandXml.v1_2.FullSuperelev; } } + public FullSuperelev FullSuperelev { get {return rootObject as FullSuperelev; } } + + public XRootNamespace(RunoffSta root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.RunoffSta RunoffSta { get {return rootObject as global::LandXml.v1_2.RunoffSta; } } + public RunoffSta RunoffSta { get {return rootObject as RunoffSta; } } + + public XRootNamespace(StartofRunoutSta root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.StartofRunoutSta StartofRunoutSta { get {return rootObject as global::LandXml.v1_2.StartofRunoutSta; } } + public StartofRunoutSta StartofRunoutSta { get {return rootObject as StartofRunoutSta; } } + + public XRootNamespace(EndofRunoutSta root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.EndofRunoutSta EndofRunoutSta { get {return rootObject as global::LandXml.v1_2.EndofRunoutSta; } } + public EndofRunoutSta EndofRunoutSta { get {return rootObject as EndofRunoutSta; } } + + public XRootNamespace(AdverseSE root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.AdverseSE AdverseSE { get {return rootObject as global::LandXml.v1_2.AdverseSE; } } + public AdverseSE AdverseSE { get {return rootObject as AdverseSE; } } + + public XRootNamespace(Station root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + - public global::LandXml.v1_2.Station Station { get {return rootObject as global::LandXml.v1_2.Station; } } + public Station Station { get {return rootObject as Station; } } + } + + public partial class XRoot { + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; private XRoot() { } + public static XRoot Load(string xmlFile) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(string xmlFile, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlFile, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(TextReader textReader, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(textReader, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Load(XmlReader xmlReader) { + XRoot root = new XRoot(); + root.doc = XDocument.Load(xmlReader); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public static XRoot Parse(string text, LoadOptions options) { + XRoot root = new XRoot(); + root.doc = XDocument.Parse(text, options); + XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); + if ((typedRoot == null)) { + throw new LinqToXsdException("Invalid root element in xml document."); + } + root.rootObject = typedRoot; + return root; + } + + public virtual void Save(string fileName) { + doc.Save(fileName); + } + + public virtual void Save(TextWriter textWriter) { + doc.Save(textWriter); + } + + public virtual void Save(XmlWriter writer) { + doc.Save(writer); + } + + public virtual void Save(TextWriter textWriter, SaveOptions options) { + doc.Save(textWriter, options); + } + + public virtual void Save(string fileName, SaveOptions options) { + doc.Save(fileName, options); + } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + public XRoot(global::LandXml.v1_2.LandXML root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.LandXML LandXML { get {return rootObject as global::LandXml.v1_2.LandXML; } } + public XRoot(global::LandXml.v1_2.CgPoints root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CgPoints CgPoints { get {return rootObject as global::LandXml.v1_2.CgPoints; } } + public XRoot(global::LandXml.v1_2.CgPoint root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CgPoint CgPoint { get {return rootObject as global::LandXml.v1_2.CgPoint; } } + public XRoot(global::LandXml.v1_2.DocFileRef root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DocFileRef DocFileRef { get {return rootObject as global::LandXml.v1_2.DocFileRef; } } + public XRoot(global::LandXml.v1_2.Property root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Property Property { get {return rootObject as global::LandXml.v1_2.Property; } } + public XRoot(global::LandXml.v1_2.Feature root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Feature Feature { get {return rootObject as global::LandXml.v1_2.Feature; } } + public XRoot(global::LandXml.v1_2.FeatureDictionary root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.FeatureDictionary FeatureDictionary { get {return rootObject as global::LandXml.v1_2.FeatureDictionary; } } + public XRoot(global::LandXml.v1_2.PntList2D root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PntList2D PntList2D { get {return rootObject as global::LandXml.v1_2.PntList2D; } } + public XRoot(global::LandXml.v1_2.PntList3D root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PntList3D PntList3D { get {return rootObject as global::LandXml.v1_2.PntList3D; } } + public XRoot(global::LandXml.v1_2.IrregularLine root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.IrregularLine IrregularLine { get {return rootObject as global::LandXml.v1_2.IrregularLine; } } + public XRoot(global::LandXml.v1_2.Chain root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Chain Chain { get {return rootObject as global::LandXml.v1_2.Chain; } } + public XRoot(global::LandXml.v1_2.Curve root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Curve Curve { get {return rootObject as global::LandXml.v1_2.Curve; } } + public XRoot(global::LandXml.v1_2.Spiral root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Spiral Spiral { get {return rootObject as global::LandXml.v1_2.Spiral; } } + public XRoot(global::LandXml.v1_2.CoordGeom root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CoordGeom CoordGeom { get {return rootObject as global::LandXml.v1_2.CoordGeom; } } + public XRoot(global::LandXml.v1_2.Line root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Line Line { get {return rootObject as global::LandXml.v1_2.Line; } } + public XRoot(global::LandXml.v1_2.CrossSects root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CrossSects CrossSects { get {return rootObject as global::LandXml.v1_2.CrossSects; } } + public XRoot(global::LandXml.v1_2.CrossSect root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CrossSect CrossSect { get {return rootObject as global::LandXml.v1_2.CrossSect; } } + public XRoot(global::LandXml.v1_2.CrossSectSurf root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CrossSectSurf CrossSectSurf { get {return rootObject as global::LandXml.v1_2.CrossSectSurf; } } + public XRoot(global::LandXml.v1_2.CrossSectPnt root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CrossSectPnt CrossSectPnt { get {return rootObject as global::LandXml.v1_2.CrossSectPnt; } } + public XRoot(global::LandXml.v1_2.DesignCrossSectSurf root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DesignCrossSectSurf DesignCrossSectSurf { get {return rootObject as global::LandXml.v1_2.DesignCrossSectSurf; } } + public XRoot(global::LandXml.v1_2.Project root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Project Project { get {return rootObject as global::LandXml.v1_2.Project; } } + public XRoot(global::LandXml.v1_2.Units root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Units Units { get {return rootObject as global::LandXml.v1_2.Units; } } + public XRoot(global::LandXml.v1_2.Metric root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Metric Metric { get {return rootObject as global::LandXml.v1_2.Metric; } } + public XRoot(global::LandXml.v1_2.Imperial root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Imperial Imperial { get {return rootObject as global::LandXml.v1_2.Imperial; } } + public XRoot(global::LandXml.v1_2.CoordinateSystem root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CoordinateSystem CoordinateSystem { get {return rootObject as global::LandXml.v1_2.CoordinateSystem; } } + public XRoot(global::LandXml.v1_2.Application root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Application Application { get {return rootObject as global::LandXml.v1_2.Application; } } + public XRoot(global::LandXml.v1_2.Author root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Author Author { get {return rootObject as global::LandXml.v1_2.Author; } } + public XRoot(global::LandXml.v1_2.Survey root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Survey Survey { get {return rootObject as global::LandXml.v1_2.Survey; } } + public XRoot(global::LandXml.v1_2.SurveyHeader root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.SurveyHeader SurveyHeader { get {return rootObject as global::LandXml.v1_2.SurveyHeader; } } + public XRoot(global::LandXml.v1_2.HeadOfPower root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.HeadOfPower HeadOfPower { get {return rootObject as global::LandXml.v1_2.HeadOfPower; } } + public XRoot(global::LandXml.v1_2.AdministrativeArea root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.AdministrativeArea AdministrativeArea { get {return rootObject as global::LandXml.v1_2.AdministrativeArea; } } + public XRoot(global::LandXml.v1_2.AdministrativeDate root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.AdministrativeDate AdministrativeDate { get {return rootObject as global::LandXml.v1_2.AdministrativeDate; } } + public XRoot(global::LandXml.v1_2.Annotation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Annotation Annotation { get {return rootObject as global::LandXml.v1_2.Annotation; } } + public XRoot(global::LandXml.v1_2.SurveyorCertificate root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.SurveyorCertificate SurveyorCertificate { get {return rootObject as global::LandXml.v1_2.SurveyorCertificate; } } + public XRoot(global::LandXml.v1_2.PurposeOfSurvey root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PurposeOfSurvey PurposeOfSurvey { get {return rootObject as global::LandXml.v1_2.PurposeOfSurvey; } } + public XRoot(global::LandXml.v1_2.Amendment root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Amendment Amendment { get {return rootObject as global::LandXml.v1_2.Amendment; } } + public XRoot(global::LandXml.v1_2.AmendmentItem root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.AmendmentItem AmendmentItem { get {return rootObject as global::LandXml.v1_2.AmendmentItem; } } + public XRoot(global::LandXml.v1_2.Personnel root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Personnel Personnel { get {return rootObject as global::LandXml.v1_2.Personnel; } } + public XRoot(global::LandXml.v1_2.FieldNote root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.FieldNote FieldNote { get {return rootObject as global::LandXml.v1_2.FieldNote; } } + public XRoot(global::LandXml.v1_2.Equipment root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Equipment Equipment { get {return rootObject as global::LandXml.v1_2.Equipment; } } + public XRoot(global::LandXml.v1_2.InstrumentDetails root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.InstrumentDetails InstrumentDetails { get {return rootObject as global::LandXml.v1_2.InstrumentDetails; } } + public XRoot(global::LandXml.v1_2.LaserDetails root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.LaserDetails LaserDetails { get {return rootObject as global::LandXml.v1_2.LaserDetails; } } + public XRoot(global::LandXml.v1_2.GPSAntennaDetails root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GPSAntennaDetails GPSAntennaDetails { get {return rootObject as global::LandXml.v1_2.GPSAntennaDetails; } } + public XRoot(global::LandXml.v1_2.GPSReceiverDetails root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GPSReceiverDetails GPSReceiverDetails { get {return rootObject as global::LandXml.v1_2.GPSReceiverDetails; } } + public XRoot(global::LandXml.v1_2.Corrections root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Corrections Corrections { get {return rootObject as global::LandXml.v1_2.Corrections; } } + public XRoot(global::LandXml.v1_2.SurveyMonument root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.SurveyMonument SurveyMonument { get {return rootObject as global::LandXml.v1_2.SurveyMonument; } } + public XRoot(global::LandXml.v1_2.InstrumentSetup root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.InstrumentSetup InstrumentSetup { get {return rootObject as global::LandXml.v1_2.InstrumentSetup; } } + public XRoot(global::LandXml.v1_2.LaserSetup root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.LaserSetup LaserSetup { get {return rootObject as global::LandXml.v1_2.LaserSetup; } } + public XRoot(global::LandXml.v1_2.GPSSetup root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GPSSetup GPSSetup { get {return rootObject as global::LandXml.v1_2.GPSSetup; } } + public XRoot(global::LandXml.v1_2.TargetSetup root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TargetSetup TargetSetup { get {return rootObject as global::LandXml.v1_2.TargetSetup; } } + public XRoot(global::LandXml.v1_2.Backsight root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Backsight Backsight { get {return rootObject as global::LandXml.v1_2.Backsight; } } + public XRoot(global::LandXml.v1_2.RawObservation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RawObservation RawObservation { get {return rootObject as global::LandXml.v1_2.RawObservation; } } + public XRoot(global::LandXml.v1_2.TestObservation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TestObservation TestObservation { get {return rootObject as global::LandXml.v1_2.TestObservation; } } + public XRoot(global::LandXml.v1_2.OffsetVals root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.OffsetVals OffsetVals { get {return rootObject as global::LandXml.v1_2.OffsetVals; } } + public XRoot(global::LandXml.v1_2.GPSVector root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GPSVector GPSVector { get {return rootObject as global::LandXml.v1_2.GPSVector; } } + public XRoot(global::LandXml.v1_2.GPSPosition root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GPSPosition GPSPosition { get {return rootObject as global::LandXml.v1_2.GPSPosition; } } + public XRoot(global::LandXml.v1_2.GPSQCInfoLevel1 root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GPSQCInfoLevel1 GPSQCInfoLevel1 { get {return rootObject as global::LandXml.v1_2.GPSQCInfoLevel1; } } + public XRoot(global::LandXml.v1_2.GPSQCInfoLevel2 root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GPSQCInfoLevel2 GPSQCInfoLevel2 { get {return rootObject as global::LandXml.v1_2.GPSQCInfoLevel2; } } + public XRoot(global::LandXml.v1_2.ObservationGroup root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ObservationGroup ObservationGroup { get {return rootObject as global::LandXml.v1_2.ObservationGroup; } } + public XRoot(global::LandXml.v1_2.ControlChecks root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ControlChecks ControlChecks { get {return rootObject as global::LandXml.v1_2.ControlChecks; } } + public XRoot(global::LandXml.v1_2.PointResults root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PointResults PointResults { get {return rootObject as global::LandXml.v1_2.PointResults; } } + public XRoot(global::LandXml.v1_2.ReducedObservation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ReducedObservation ReducedObservation { get {return rootObject as global::LandXml.v1_2.ReducedObservation; } } + public XRoot(global::LandXml.v1_2.ReducedArcObservation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ReducedArcObservation ReducedArcObservation { get {return rootObject as global::LandXml.v1_2.ReducedArcObservation; } } + public XRoot(global::LandXml.v1_2.RedHorizontalPosition root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RedHorizontalPosition RedHorizontalPosition { get {return rootObject as global::LandXml.v1_2.RedHorizontalPosition; } } + public XRoot(global::LandXml.v1_2.RedVerticalObservation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RedVerticalObservation RedVerticalObservation { get {return rootObject as global::LandXml.v1_2.RedVerticalObservation; } } + public XRoot(global::LandXml.v1_2.Monuments root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Monuments Monuments { get {return rootObject as global::LandXml.v1_2.Monuments; } } + public XRoot(global::LandXml.v1_2.Monument root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Monument Monument { get {return rootObject as global::LandXml.v1_2.Monument; } } + public XRoot(global::LandXml.v1_2.Surfaces root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Surfaces Surfaces { get {return rootObject as global::LandXml.v1_2.Surfaces; } } + public XRoot(global::LandXml.v1_2.Surface root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Surface Surface { get {return rootObject as global::LandXml.v1_2.Surface; } } + public XRoot(global::LandXml.v1_2.SourceData root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.SourceData SourceData { get {return rootObject as global::LandXml.v1_2.SourceData; } } + public XRoot(global::LandXml.v1_2.DataPoints root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DataPoints DataPoints { get {return rootObject as global::LandXml.v1_2.DataPoints; } } + public XRoot(global::LandXml.v1_2.PointFiles root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PointFiles PointFiles { get {return rootObject as global::LandXml.v1_2.PointFiles; } } + public XRoot(global::LandXml.v1_2.PointFile root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PointFile PointFile { get {return rootObject as global::LandXml.v1_2.PointFile; } } + public XRoot(global::LandXml.v1_2.Boundaries root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Boundaries Boundaries { get {return rootObject as global::LandXml.v1_2.Boundaries; } } + public XRoot(global::LandXml.v1_2.Boundary root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Boundary Boundary { get {return rootObject as global::LandXml.v1_2.Boundary; } } + public XRoot(global::LandXml.v1_2.Breaklines root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Breaklines Breaklines { get {return rootObject as global::LandXml.v1_2.Breaklines; } } + public XRoot(global::LandXml.v1_2.Breakline root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Breakline Breakline { get {return rootObject as global::LandXml.v1_2.Breakline; } } + public XRoot(global::LandXml.v1_2.RetWall root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RetWall RetWall { get {return rootObject as global::LandXml.v1_2.RetWall; } } + public XRoot(global::LandXml.v1_2.RetWallPnt root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RetWallPnt RetWallPnt { get {return rootObject as global::LandXml.v1_2.RetWallPnt; } } + public XRoot(global::LandXml.v1_2.Contours root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Contours Contours { get {return rootObject as global::LandXml.v1_2.Contours; } } + public XRoot(global::LandXml.v1_2.Contour root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Contour Contour { get {return rootObject as global::LandXml.v1_2.Contour; } } + public XRoot(global::LandXml.v1_2.Definition root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Definition Definition { get {return rootObject as global::LandXml.v1_2.Definition; } } + public XRoot(global::LandXml.v1_2.Pnts root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Pnts Pnts { get {return rootObject as global::LandXml.v1_2.Pnts; } } + public XRoot(global::LandXml.v1_2.P root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.P P { get {return rootObject as global::LandXml.v1_2.P; } } + public XRoot(global::LandXml.v1_2.Faces root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Faces Faces { get {return rootObject as global::LandXml.v1_2.Faces; } } + public XRoot(global::LandXml.v1_2.F root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.F F { get {return rootObject as global::LandXml.v1_2.F; } } + public XRoot(global::LandXml.v1_2.Watersheds root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Watersheds Watersheds { get {return rootObject as global::LandXml.v1_2.Watersheds; } } + public XRoot(global::LandXml.v1_2.Watershed root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Watershed Watershed { get {return rootObject as global::LandXml.v1_2.Watershed; } } + public XRoot(global::LandXml.v1_2.Outlet root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Outlet Outlet { get {return rootObject as global::LandXml.v1_2.Outlet; } } + public XRoot(global::LandXml.v1_2.SurfVolumes root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.SurfVolumes SurfVolumes { get {return rootObject as global::LandXml.v1_2.SurfVolumes; } } + public XRoot(global::LandXml.v1_2.SurfVolume root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.SurfVolume SurfVolume { get {return rootObject as global::LandXml.v1_2.SurfVolume; } } + public XRoot(global::LandXml.v1_2.Parcels root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Parcels Parcels { get {return rootObject as global::LandXml.v1_2.Parcels; } } + public XRoot(global::LandXml.v1_2.Parcel root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Parcel Parcel { get {return rootObject as global::LandXml.v1_2.Parcel; } } + public XRoot(global::LandXml.v1_2.VolumeGeom root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.VolumeGeom VolumeGeom { get {return rootObject as global::LandXml.v1_2.VolumeGeom; } } + public XRoot(global::LandXml.v1_2.Title root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Title Title { get {return rootObject as global::LandXml.v1_2.Title; } } + public XRoot(global::LandXml.v1_2.Exclusions root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Exclusions Exclusions { get {return rootObject as global::LandXml.v1_2.Exclusions; } } + public XRoot(global::LandXml.v1_2.LocationAddress root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.LocationAddress LocationAddress { get {return rootObject as global::LandXml.v1_2.LocationAddress; } } + public XRoot(global::LandXml.v1_2.ComplexName root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ComplexName ComplexName { get {return rootObject as global::LandXml.v1_2.ComplexName; } } + public XRoot(global::LandXml.v1_2.RoadName root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RoadName RoadName { get {return rootObject as global::LandXml.v1_2.RoadName; } } + public XRoot(global::LandXml.v1_2.AddressPoint root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.AddressPoint AddressPoint { get {return rootObject as global::LandXml.v1_2.AddressPoint; } } + public XRoot(global::LandXml.v1_2.Alignments root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Alignments Alignments { get {return rootObject as global::LandXml.v1_2.Alignments; } } + public XRoot(global::LandXml.v1_2.Alignment root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Alignment Alignment { get {return rootObject as global::LandXml.v1_2.Alignment; } } + public XRoot(global::LandXml.v1_2.StaEquation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.StaEquation StaEquation { get {return rootObject as global::LandXml.v1_2.StaEquation; } } + public XRoot(global::LandXml.v1_2.Profile root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Profile Profile { get {return rootObject as global::LandXml.v1_2.Profile; } } + public XRoot(global::LandXml.v1_2.ProfSurf root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ProfSurf ProfSurf { get {return rootObject as global::LandXml.v1_2.ProfSurf; } } + public XRoot(global::LandXml.v1_2.ProfAlign root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ProfAlign ProfAlign { get {return rootObject as global::LandXml.v1_2.ProfAlign; } } + public XRoot(global::LandXml.v1_2.PVI root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PVI PVI { get {return rootObject as global::LandXml.v1_2.PVI; } } + public XRoot(global::LandXml.v1_2.ParaCurve root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ParaCurve ParaCurve { get {return rootObject as global::LandXml.v1_2.ParaCurve; } } + public XRoot(global::LandXml.v1_2.UnsymParaCurve root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.UnsymParaCurve UnsymParaCurve { get {return rootObject as global::LandXml.v1_2.UnsymParaCurve; } } + public XRoot(global::LandXml.v1_2.CircCurve root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CircCurve CircCurve { get {return rootObject as global::LandXml.v1_2.CircCurve; } } + public XRoot(global::LandXml.v1_2.PipeNetworks root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PipeNetworks PipeNetworks { get {return rootObject as global::LandXml.v1_2.PipeNetworks; } } + public XRoot(global::LandXml.v1_2.PipeNetwork root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PipeNetwork PipeNetwork { get {return rootObject as global::LandXml.v1_2.PipeNetwork; } } + public XRoot(global::LandXml.v1_2.Pipes root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Pipes Pipes { get {return rootObject as global::LandXml.v1_2.Pipes; } } + public XRoot(global::LandXml.v1_2.Pipe root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Pipe Pipe { get {return rootObject as global::LandXml.v1_2.Pipe; } } + public XRoot(global::LandXml.v1_2.CircPipe root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CircPipe CircPipe { get {return rootObject as global::LandXml.v1_2.CircPipe; } } + public XRoot(global::LandXml.v1_2.ElliPipe root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ElliPipe ElliPipe { get {return rootObject as global::LandXml.v1_2.ElliPipe; } } + public XRoot(global::LandXml.v1_2.EggPipe root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.EggPipe EggPipe { get {return rootObject as global::LandXml.v1_2.EggPipe; } } + public XRoot(global::LandXml.v1_2.RectPipe root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RectPipe RectPipe { get {return rootObject as global::LandXml.v1_2.RectPipe; } } + public XRoot(global::LandXml.v1_2.Channel root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Channel Channel { get {return rootObject as global::LandXml.v1_2.Channel; } } + public XRoot(global::LandXml.v1_2.PipeFlow root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PipeFlow PipeFlow { get {return rootObject as global::LandXml.v1_2.PipeFlow; } } + public XRoot(global::LandXml.v1_2.Structs root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Structs Structs { get {return rootObject as global::LandXml.v1_2.Structs; } } + public XRoot(global::LandXml.v1_2.Struct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Struct Struct { get {return rootObject as global::LandXml.v1_2.Struct; } } + public XRoot(global::LandXml.v1_2.CircStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CircStruct CircStruct { get {return rootObject as global::LandXml.v1_2.CircStruct; } } + public XRoot(global::LandXml.v1_2.RectStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RectStruct RectStruct { get {return rootObject as global::LandXml.v1_2.RectStruct; } } + public XRoot(global::LandXml.v1_2.InletStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.InletStruct InletStruct { get {return rootObject as global::LandXml.v1_2.InletStruct; } } + public XRoot(global::LandXml.v1_2.OutletStruct root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.OutletStruct OutletStruct { get {return rootObject as global::LandXml.v1_2.OutletStruct; } } + public XRoot(global::LandXml.v1_2.Connection root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Connection Connection { get {return rootObject as global::LandXml.v1_2.Connection; } } + public XRoot(global::LandXml.v1_2.Invert root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Invert Invert { get {return rootObject as global::LandXml.v1_2.Invert; } } + public XRoot(global::LandXml.v1_2.StructFlow root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.StructFlow StructFlow { get {return rootObject as global::LandXml.v1_2.StructFlow; } } + public XRoot(global::LandXml.v1_2.PlanFeatures root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PlanFeatures PlanFeatures { get {return rootObject as global::LandXml.v1_2.PlanFeatures; } } + public XRoot(global::LandXml.v1_2.PlanFeature root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PlanFeature PlanFeature { get {return rootObject as global::LandXml.v1_2.PlanFeature; } } + public XRoot(global::LandXml.v1_2.GradeModel root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GradeModel GradeModel { get {return rootObject as global::LandXml.v1_2.GradeModel; } } + public XRoot(global::LandXml.v1_2.GradeSurface root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.GradeSurface GradeSurface { get {return rootObject as global::LandXml.v1_2.GradeSurface; } } + public XRoot(global::LandXml.v1_2.Zones root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Zones Zones { get {return rootObject as global::LandXml.v1_2.Zones; } } + public XRoot(global::LandXml.v1_2.Zone root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Zone Zone { get {return rootObject as global::LandXml.v1_2.Zone; } } + public XRoot(global::LandXml.v1_2.ZoneWidth root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ZoneWidth ZoneWidth { get {return rootObject as global::LandXml.v1_2.ZoneWidth; } } + public XRoot(global::LandXml.v1_2.ZoneSlope root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ZoneSlope ZoneSlope { get {return rootObject as global::LandXml.v1_2.ZoneSlope; } } + public XRoot(global::LandXml.v1_2.ZoneHinge root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ZoneHinge ZoneHinge { get {return rootObject as global::LandXml.v1_2.ZoneHinge; } } + public XRoot(global::LandXml.v1_2.ZoneCutFill root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ZoneCutFill ZoneCutFill { get {return rootObject as global::LandXml.v1_2.ZoneCutFill; } } + public XRoot(global::LandXml.v1_2.ZoneMaterial root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ZoneMaterial ZoneMaterial { get {return rootObject as global::LandXml.v1_2.ZoneMaterial; } } + public XRoot(global::LandXml.v1_2.ZoneCrossSectStructure root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ZoneCrossSectStructure ZoneCrossSectStructure { get {return rootObject as global::LandXml.v1_2.ZoneCrossSectStructure; } } + public XRoot(global::LandXml.v1_2.Roadways root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Roadways Roadways { get {return rootObject as global::LandXml.v1_2.Roadways; } } + public XRoot(global::LandXml.v1_2.Roadway root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Roadway Roadway { get {return rootObject as global::LandXml.v1_2.Roadway; } } + public XRoot(global::LandXml.v1_2.Classification root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Classification Classification { get {return rootObject as global::LandXml.v1_2.Classification; } } + public XRoot(global::LandXml.v1_2.DesignSpeed root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DesignSpeed DesignSpeed { get {return rootObject as global::LandXml.v1_2.DesignSpeed; } } + public XRoot(global::LandXml.v1_2.DesignSpeed85th root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DesignSpeed85th DesignSpeed85th { get {return rootObject as global::LandXml.v1_2.DesignSpeed85th; } } + public XRoot(global::LandXml.v1_2.Speeds root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Speeds Speeds { get {return rootObject as global::LandXml.v1_2.Speeds; } } + public XRoot(global::LandXml.v1_2.DailyTrafficVolume root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DailyTrafficVolume DailyTrafficVolume { get {return rootObject as global::LandXml.v1_2.DailyTrafficVolume; } } + public XRoot(global::LandXml.v1_2.DesignHour root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DesignHour DesignHour { get {return rootObject as global::LandXml.v1_2.DesignHour; } } + public XRoot(global::LandXml.v1_2.PeakHour root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PeakHour PeakHour { get {return rootObject as global::LandXml.v1_2.PeakHour; } } + public XRoot(global::LandXml.v1_2.TrafficVolume root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TrafficVolume TrafficVolume { get {return rootObject as global::LandXml.v1_2.TrafficVolume; } } + public XRoot(global::LandXml.v1_2.Superelevation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Superelevation Superelevation { get {return rootObject as global::LandXml.v1_2.Superelevation; } } + public XRoot(global::LandXml.v1_2.Lanes root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Lanes Lanes { get {return rootObject as global::LandXml.v1_2.Lanes; } } + public XRoot(global::LandXml.v1_2.ThruLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ThruLane ThruLane { get {return rootObject as global::LandXml.v1_2.ThruLane; } } + public XRoot(global::LandXml.v1_2.PassingLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PassingLane PassingLane { get {return rootObject as global::LandXml.v1_2.PassingLane; } } + public XRoot(global::LandXml.v1_2.TurnLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TurnLane TurnLane { get {return rootObject as global::LandXml.v1_2.TurnLane; } } + public XRoot(global::LandXml.v1_2.TwoWayLeftTurnLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TwoWayLeftTurnLane TwoWayLeftTurnLane { get {return rootObject as global::LandXml.v1_2.TwoWayLeftTurnLane; } } + public XRoot(global::LandXml.v1_2.ClimbLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ClimbLane ClimbLane { get {return rootObject as global::LandXml.v1_2.ClimbLane; } } + public XRoot(global::LandXml.v1_2.OffsetLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.OffsetLane OffsetLane { get {return rootObject as global::LandXml.v1_2.OffsetLane; } } + public XRoot(global::LandXml.v1_2.WideningLane root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.WideningLane WideningLane { get {return rootObject as global::LandXml.v1_2.WideningLane; } } + public XRoot(global::LandXml.v1_2.Roadside root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Roadside Roadside { get {return rootObject as global::LandXml.v1_2.Roadside; } } + public XRoot(global::LandXml.v1_2.Ditch root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Ditch Ditch { get {return rootObject as global::LandXml.v1_2.Ditch; } } + public XRoot(global::LandXml.v1_2.ObstructionOffset root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ObstructionOffset ObstructionOffset { get {return rootObject as global::LandXml.v1_2.ObstructionOffset; } } + public XRoot(global::LandXml.v1_2.BikeFacilities root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.BikeFacilities BikeFacilities { get {return rootObject as global::LandXml.v1_2.BikeFacilities; } } + public XRoot(global::LandXml.v1_2.RoadSign root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RoadSign RoadSign { get {return rootObject as global::LandXml.v1_2.RoadSign; } } + public XRoot(global::LandXml.v1_2.DrivewayDensity root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DrivewayDensity DrivewayDensity { get {return rootObject as global::LandXml.v1_2.DrivewayDensity; } } + public XRoot(global::LandXml.v1_2.HazardRating root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.HazardRating HazardRating { get {return rootObject as global::LandXml.v1_2.HazardRating; } } + public XRoot(global::LandXml.v1_2.Intersections root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Intersections Intersections { get {return rootObject as global::LandXml.v1_2.Intersections; } } + public XRoot(global::LandXml.v1_2.Intersection root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Intersection Intersection { get {return rootObject as global::LandXml.v1_2.Intersection; } } + public XRoot(global::LandXml.v1_2.TrafficControl root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TrafficControl TrafficControl { get {return rootObject as global::LandXml.v1_2.TrafficControl; } } + public XRoot(global::LandXml.v1_2.Timing root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Timing Timing { get {return rootObject as global::LandXml.v1_2.Timing; } } + public XRoot(global::LandXml.v1_2.Volume root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Volume Volume { get {return rootObject as global::LandXml.v1_2.Volume; } } + public XRoot(global::LandXml.v1_2.TurnSpeed root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TurnSpeed TurnSpeed { get {return rootObject as global::LandXml.v1_2.TurnSpeed; } } + public XRoot(global::LandXml.v1_2.TurnRestriction root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TurnRestriction TurnRestriction { get {return rootObject as global::LandXml.v1_2.TurnRestriction; } } + public XRoot(global::LandXml.v1_2.Curb root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Curb Curb { get {return rootObject as global::LandXml.v1_2.Curb; } } + public XRoot(global::LandXml.v1_2.Corner root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Corner Corner { get {return rootObject as global::LandXml.v1_2.Corner; } } + public XRoot(global::LandXml.v1_2.CrashData root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CrashData CrashData { get {return rootObject as global::LandXml.v1_2.CrashData; } } + public XRoot(global::LandXml.v1_2.CrashHistory root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CrashHistory CrashHistory { get {return rootObject as global::LandXml.v1_2.CrashHistory; } } + public XRoot(global::LandXml.v1_2.PostedSpeed root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PostedSpeed PostedSpeed { get {return rootObject as global::LandXml.v1_2.PostedSpeed; } } + public XRoot(global::LandXml.v1_2.NoPassingZone root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.NoPassingZone NoPassingZone { get {return rootObject as global::LandXml.v1_2.NoPassingZone; } } + public XRoot(global::LandXml.v1_2.DecisionSightDistance root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.DecisionSightDistance DecisionSightDistance { get {return rootObject as global::LandXml.v1_2.DecisionSightDistance; } } + public XRoot(global::LandXml.v1_2.BridgeElement root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.BridgeElement BridgeElement { get {return rootObject as global::LandXml.v1_2.BridgeElement; } } + public XRoot(global::LandXml.v1_2.InSpiral root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.InSpiral InSpiral { get {return rootObject as global::LandXml.v1_2.InSpiral; } } + public XRoot(global::LandXml.v1_2.Curve1 root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Curve1 Curve1 { get {return rootObject as global::LandXml.v1_2.Curve1; } } + public XRoot(global::LandXml.v1_2.ConnSpiral root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.ConnSpiral ConnSpiral { get {return rootObject as global::LandXml.v1_2.ConnSpiral; } } + public XRoot(global::LandXml.v1_2.Curve2 root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Curve2 Curve2 { get {return rootObject as global::LandXml.v1_2.Curve2; } } + public XRoot(global::LandXml.v1_2.OutSpiral root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.OutSpiral OutSpiral { get {return rootObject as global::LandXml.v1_2.OutSpiral; } } + public XRoot(global::LandXml.v1_2.AlignPI root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.AlignPI AlignPI { get {return rootObject as global::LandXml.v1_2.AlignPI; } } + public XRoot(global::LandXml.v1_2.AlignPIs root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.AlignPIs AlignPIs { get {return rootObject as global::LandXml.v1_2.AlignPIs; } } + public XRoot(global::LandXml.v1_2.Cant root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Cant Cant { get {return rootObject as global::LandXml.v1_2.Cant; } } + public XRoot(global::LandXml.v1_2.CantStation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.CantStation CantStation { get {return rootObject as global::LandXml.v1_2.CantStation; } } + public XRoot(global::LandXml.v1_2.SpeedStation root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.SpeedStation SpeedStation { get {return rootObject as global::LandXml.v1_2.SpeedStation; } } + public XRoot(global::LandXml.v1_2.Start root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Start Start { get {return rootObject as global::LandXml.v1_2.Start; } } + public XRoot(global::LandXml.v1_2.End root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.End End { get {return rootObject as global::LandXml.v1_2.End; } } + public XRoot(global::LandXml.v1_2.Center root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Center Center { get {return rootObject as global::LandXml.v1_2.Center; } } + public XRoot(global::LandXml.v1_2.PI root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.PI PI { get {return rootObject as global::LandXml.v1_2.PI; } } + public XRoot(global::LandXml.v1_2.MapPoint root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.MapPoint MapPoint { get {return rootObject as global::LandXml.v1_2.MapPoint; } } + public XRoot(global::LandXml.v1_2.InstrumentPoint root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.InstrumentPoint InstrumentPoint { get {return rootObject as global::LandXml.v1_2.InstrumentPoint; } } + public XRoot(global::LandXml.v1_2.Location root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.Location Location { get {return rootObject as global::LandXml.v1_2.Location; } } + public XRoot(global::LandXml.v1_2.TargetPoint root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.TargetPoint TargetPoint { get {return rootObject as global::LandXml.v1_2.TargetPoint; } } + public XRoot(global::LandXml.v1_2.BacksightPoint root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.BacksightPoint BacksightPoint { get {return rootObject as global::LandXml.v1_2.BacksightPoint; } } + public XRoot(global::LandXml.v1_2.BeginRunoutSta root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.BeginRunoutSta BeginRunoutSta { get {return rootObject as global::LandXml.v1_2.BeginRunoutSta; } } + public XRoot(global::LandXml.v1_2.BeginRunoffSta root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.BeginRunoffSta BeginRunoffSta { get {return rootObject as global::LandXml.v1_2.BeginRunoffSta; } } + public XRoot(global::LandXml.v1_2.FullSuperSta root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.FullSuperSta FullSuperSta { get {return rootObject as global::LandXml.v1_2.FullSuperSta; } } + public XRoot(global::LandXml.v1_2.FullSuperelev root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.FullSuperelev FullSuperelev { get {return rootObject as global::LandXml.v1_2.FullSuperelev; } } + public XRoot(global::LandXml.v1_2.RunoffSta root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.RunoffSta RunoffSta { get {return rootObject as global::LandXml.v1_2.RunoffSta; } } + public XRoot(global::LandXml.v1_2.StartofRunoutSta root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.StartofRunoutSta StartofRunoutSta { get {return rootObject as global::LandXml.v1_2.StartofRunoutSta; } } + public XRoot(global::LandXml.v1_2.EndofRunoutSta root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.EndofRunoutSta EndofRunoutSta { get {return rootObject as global::LandXml.v1_2.EndofRunoutSta; } } + public XRoot(global::LandXml.v1_2.AdverseSE root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } + + public global::LandXml.v1_2.AdverseSE AdverseSE { get {return rootObject as global::LandXml.v1_2.AdverseSE; } } + public XRoot(global::LandXml.v1_2.Station root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - - public static XRoot Load(string xmlFile) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlFile); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(string xmlFile, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlFile, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(TextReader textReader) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(textReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(TextReader textReader, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(textReader, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Load(XmlReader xmlReader) { - XRoot root = new XRoot(); - root.doc = XDocument.Load(xmlReader); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Parse(string text) { - XRoot root = new XRoot(); - root.doc = XDocument.Parse(text); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public static XRoot Parse(string text, LoadOptions options) { - XRoot root = new XRoot(); - root.doc = XDocument.Parse(text, options); - XTypedElement typedRoot = XTypedServices.ToXTypedElement(root.doc.Root, LinqToXsdTypeManager.Instance); - if ((typedRoot == null)) { - throw new LinqToXsdException("Invalid root element in xml document."); - } - root.rootObject = typedRoot; - return root; - } - - public virtual void Save(string fileName) { - doc.Save(fileName); - } - - public virtual void Save(TextWriter textWriter) { - doc.Save(textWriter); - } - - public virtual void Save(XmlWriter writer) { - doc.Save(writer); - } - - public virtual void Save(TextWriter textWriter, SaveOptions options) { - doc.Save(textWriter, options); - } - - public virtual void Save(string fileName, SaveOptions options) { - doc.Save(fileName, options); - } + + public global::LandXml.v1_2.Station Station { get {return rootObject as global::LandXml.v1_2.Station; } } } } diff --git a/LinqToXsd/Properties/launchSettings.json b/LinqToXsd/Properties/launchSettings.json index b224e371..e73d3f0e 100644 --- a/LinqToXsd/Properties/launchSettings.json +++ b/LinqToXsd/Properties/launchSettings.json @@ -91,6 +91,12 @@ "workingDirectory": "..\\GeneratedSchemaLibraries\\AkomaNtoso", "hotReloadEnabled": false }, + "3dps": { + "commandName": "Project", + "commandLineArgs": "gen \"3dps-all.xsd\" -a", + "workingDirectory": "..\\GeneratedSchemaLibraries\\3dps-1_0_0", + "hotReloadEnabled": false + }, "AbstractTypeTest": { "commandName": "Project", "commandLineArgs": "gen \"abstracttest.xsd\" -a", @@ -103,6 +109,12 @@ "workingDirectory": "..\\LinqToXsd.Schemas\\XsdFeatureTests\\ImportsXmlNamespace", "hotReloadEnabled": false }, + "LandXML": { + "commandName": "Project", + "commandLineArgs": "gen \"LandXML-1.2.xsd\" -a", + "workingDirectory": "..\\GeneratedSchemaLibraries\\LandXML\\v1.2", + "hotReloadEnabled": false + }, "XQueryX": { "commandName": "Project", "commandLineArgs": "gen -a .\\", From 905f240f00d1e2d7b99832e1620990ea273406f9 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Tue, 24 Mar 2026 23:14:47 +0100 Subject: [PATCH 14/29] Remove loop limit because 1000 is not enough to render xsd code!! --- XObjectsCode/Src/XObjectsCoreGenerator.cs | 1 + XObjectsCode/Templates/file.scriban-cs | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index da75757f..33d7cb08 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -161,6 +161,7 @@ string RenderCodeUnit(IEnumerable<CNamespace> namespaces) var context = new TemplateContext() { + LoopLimit = 0, MemberRenamer = m => m.Name, TemplateLoader = new TemplateLoader(), }; diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 63012029..ce0ed831 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -37,10 +37,12 @@ namespace {{ $ns.Name }} { include 'class.scriban-cs' $type.Dom end }} - {{~ end ~}} + {{~ end # for $type ~}} {{ - if TypeManager.Namespace == $ns; include 'manager.scriban-cs'; end + if TypeManager.Namespace == $ns + include 'manager.scriban-cs'; + end }} {{ include 'root.scriban-cs' XRoot:'XRootNamespace' prefix:'' roots:$ns.Roots accessModifier:$ns.AccessModifier }} @@ -51,4 +53,4 @@ namespace {{ $ns.Name }} { end }} } -{{ end }} \ No newline at end of file +{{ end # for $ns }} \ No newline at end of file From 6ca422e167a8be3090cdb1b99935e21261e2a7e2 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Tue, 24 Mar 2026 23:25:21 +0100 Subject: [PATCH 15/29] Handle line breaks inside comments --- XObjectsCode/Src/Model/CClass.cs | 1 - XObjectsCode/Src/Scriban/ScribanGlobals.cs | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index 26a5e040..f631307a 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -45,6 +45,5 @@ public class CSimpleType(ClrSimpleTypeInfo info) : CClass public string Name => info.clrtypeName; - // TODO: can a.Text contain line breaks? public IEnumerable<string> Comments => info.Annotations?.Select(a => a.Text) ?? []; } \ No newline at end of file diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index 7beafcba..51b31a10 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -12,10 +12,16 @@ namespace Xml.Schema.Linq.CodeGen.Scriban; static class ScribanGlobals { + // Temporary marker comment: in use for real + private static Scope scope = new(); public static void ScopeInit(params string[] names) => scope = new Scope().Init(names); public static string ScopeRename(string name) => scope.Add(name); + public static string NewlinePrefix(string text, string prefix) => text.Replace("\n", "\n" + prefix); + + // Temporary marker comment: temporary helpers to adapt from CodeDom + public static void Comments(TemplateContext ctx, object target) { var comments = target switch From 3438682496b46eb8ee04d32e26754cdc3e7d87b4 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Wed, 25 Mar 2026 00:19:22 +0100 Subject: [PATCH 16/29] Handle multiple namespaces Handle linebreaks inside comments --- XObjectsCode/Src/TypesToCodeDom.cs | 29 -------------- XObjectsCode/Templates/file.scriban-cs | 39 ++++++++++++------- XObjectsCode/Templates/manager.scriban-cs | 4 +- XObjectsCode/Templates/root.scriban-cs | 1 + XObjectsCode/Templates/simple-type.scriban-cs | 2 +- 5 files changed, 28 insertions(+), 47 deletions(-) diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index 921b7904..b19d6b42 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -100,7 +100,6 @@ public IEnumerable<CNamespace> GenerateTypes(ClrMappingInfo binding) } ProcessWrapperTypes(); - CreateTypeManager(); CreateXRoots(); return codeNamespacesTable.Values; @@ -426,34 +425,6 @@ private void ProcessWrapperTypes() } } - private void CreateTypeManager() - { -// TODO: Type manager inclusion and messing around usings - string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); - if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out CNamespace rootCodeNamespace)) - { - // This might happen if the schema set has no global elements and only global types - // then you can create a root tag with xsi:type - rootCodeNamespace = codeNamespacesTable.Values.FirstOrDefault(); - } - - // It might be null if schema has only simple typed global elements or simple types which we are ignoring for now - if (rootCodeNamespace is { Dom: var ns }) - { - // Add using statements in the rest of the namespaces for the root namespace to avoid error on TypeManager reference - // Add using statements in the root namespace for the rest of the namespaces to avoid errors while building type dictionaries - var rootImport = new CodeNamespaceImport(rootCodeNamespace.Name); - foreach (CNamespace cns in codeNamespacesTable.Values) - { - if (cns != rootCodeNamespace && rootCodeNamespace.Name.Length > 0) - { - cns.Dom.Imports.Add(rootImport); - ns.Imports.Add(new CodeNamespaceImport(cns.Name)); - } - } - } - } - private bool ForwardProperty(CodeMemberProperty property) { return property != null && property.ImplementationTypes.Count == 0; //Its not an interface impl (IXMetaData) diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index ce0ed831..53f2119b 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -10,8 +10,7 @@ #nullable enable annotations {{- end }} -{{- for $ns in Namespaces }} - +{{~ for $ns in Namespaces ~}} namespace {{ $ns.Name }} { using System; using System.Collections; @@ -27,6 +26,20 @@ namespace {{ $ns.Name }} { {{~ end ~}} using System.Xml.Linq; using Xml.Schema.Linq; + {{ + if TypeManager.Namespace == $ns + # TypeManager namespace import all other namespaces + for $otherNs in Namespaces + if $otherNs != $ns + "using " + $otherNs.Name + ";\n" + end + end + else + # Other namespaces import the TypeManager namespace + "using " + TypeManager.Namespace.Name + ";\n" + end + "\n" + -}} {{~ for $type in $ns.Types ~}} @@ -37,20 +50,18 @@ namespace {{ $ns.Name }} { include 'class.scriban-cs' $type.Dom end }} - {{~ end # for $type ~}} + {{- end # for $type -}} - {{ - if TypeManager.Namespace == $ns - include 'manager.scriban-cs'; - end - }} - + {{- if TypeManager.Namespace == $ns }} + {{ include 'manager.scriban-cs'; }} + {{- end -}} + + {{- if !$ns.Roots.empty? }} {{ include 'root.scriban-cs' XRoot:'XRootNamespace' prefix:'' roots:$ns.Roots accessModifier:$ns.AccessModifier }} + {{- end -}} - {{ - if XRoot.Namespace == $ns - include 'root.scriban-cs' XRoot:'XRoot' prefix:('global::' + $ns.Name + '.') roots:XRoot.AllRoots accessModifier:$ns.AccessModifier - end - }} + {{- if XRoot.Namespace == $ns }} + {{ include 'root.scriban-cs' XRoot:'XRoot' prefix:('global::' + $ns.Name + '.') roots:XRoot.AllRoots accessModifier:$ns.AccessModifier }} + {{- end }} } {{ end # for $ns }} \ No newline at end of file diff --git a/XObjectsCode/Templates/manager.scriban-cs b/XObjectsCode/Templates/manager.scriban-cs index 2a071535..997d5fbf 100644 --- a/XObjectsCode/Templates/manager.scriban-cs +++ b/XObjectsCode/Templates/manager.scriban-cs @@ -1,6 +1,4 @@ -{{- - with TypeManager --}} +{{~ with TypeManager ~}} {{ Namespace.AccessModifier }} class LinqToXsdTypeManager : ILinqToXsdTypeManager { diff --git a/XObjectsCode/Templates/root.scriban-cs b/XObjectsCode/Templates/root.scriban-cs index 122a9508..f46e6253 100644 --- a/XObjectsCode/Templates/root.scriban-cs +++ b/XObjectsCode/Templates/root.scriban-cs @@ -1,3 +1,4 @@ + {{ $accessModifier }} partial class {{ $XRoot }} { [DebuggerBrowsable(DebuggerBrowsableState.Never)] diff --git a/XObjectsCode/Templates/simple-type.scriban-cs b/XObjectsCode/Templates/simple-type.scriban-cs index 227c087a..5ccf0ecc 100644 --- a/XObjectsCode/Templates/simple-type.scriban-cs +++ b/XObjectsCode/Templates/simple-type.scriban-cs @@ -2,7 +2,7 @@ /// <summary> {{~ for $text in $1.Comments ~}} /// <para> -/// {{ $text }} +/// {{ $text | newline_prefix '///' }} /// </para> {{~ end ~}} /// </summary> From d05301b8b4389ae74ed72f1499df5ffee907b858 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Thu, 26 Mar 2026 00:44:49 +0100 Subject: [PATCH 17/29] Support for restriction facets --- XObjectsCode/Src/ClrSimpleTypeInfo.cs | 2 +- XObjectsCode/Src/CompiledFacets.cs | 322 ++++++------------ XObjectsCode/Src/EnumFacet.cs | 26 +- XObjectsCode/Src/Model/CClass.cs | 5 + XObjectsCode/Src/Scriban/ScribanGlobals.cs | 12 +- XObjectsCode/Src/SimpleTypeCodeDomHelper.cs | 3 +- XObjectsCode/Templates/file.scriban-cs | 21 +- .../Templates/restrictions.scriban-cs | 57 ++++ XObjectsCode/Templates/simple-type.scriban-cs | 13 +- XObjectsCode/XObjectsCodeGen.csproj | 2 +- 10 files changed, 212 insertions(+), 251 deletions(-) create mode 100644 XObjectsCode/Templates/restrictions.scriban-cs diff --git a/XObjectsCode/Src/ClrSimpleTypeInfo.cs b/XObjectsCode/Src/ClrSimpleTypeInfo.cs index fe108d12..11bee00e 100644 --- a/XObjectsCode/Src/ClrSimpleTypeInfo.cs +++ b/XObjectsCode/Src/ClrSimpleTypeInfo.cs @@ -71,7 +71,7 @@ private static CompiledFacets GetFacets(XmlSchemaType type) if (simpleType != null) { - compiledFacets.compileFacets(simpleType); + compiledFacets.CompileFacets(simpleType); } return compiledFacets; diff --git a/XObjectsCode/Src/CompiledFacets.cs b/XObjectsCode/Src/CompiledFacets.cs index ec64fd3d..77f4f17d 100644 --- a/XObjectsCode/Src/CompiledFacets.cs +++ b/XObjectsCode/Src/CompiledFacets.cs @@ -1,248 +1,132 @@ //Copyright (c) Microsoft Corporation. All rights reserved. using System; -using System.Collections; +using System.Collections.Generic; using System.Xml; using System.Xml.Schema; using Xml.Schema.Linq.CodeGen; namespace Xml.Schema.Linq { - public class CompiledFacets + public class CompiledFacets(XmlSchemaDatatype dt) { - RestrictionFlags flags; - - int length; - int minLength; - int maxLength; - object maxInclusive; - object maxExclusive; - object minInclusive; - object minExclusive; - int totalDigits; - int fractionDigits; - ArrayList patterns; - ArrayList enumerations; - XmlSchemaWhiteSpace whiteSpace; - - public CompiledFacets(XmlSchemaDatatype dt) - { - whiteSpace = dt.GetBuiltInWSFacet(); - } - - public int Length - { - get { return length; } - } - - public int MinLength - { - get { return minLength; } - } - - public int MaxLength - { - get { return maxLength; } - } - - public ArrayList Patterns - { - get { return patterns; } - } - - public ArrayList Enumeration - { - get { return enumerations; } - } - - public XmlSchemaWhiteSpace WhiteSpace - { - get { return whiteSpace; } - } + public XmlSchemaWhiteSpace WhiteSpace { get; private set; } = dt.GetBuiltInWSFacet(); - public object MaxInclusive - { - get { return maxInclusive; } - } + public RestrictionFlags Flags { get; private set; } - public object MaxExclusive - { - get { return maxExclusive; } - } + public int Length { get; private set; } + public int MinLength { get; private set; } + public int MaxLength { get; private set; } + + public List<string> Patterns { get; private set; } - public object MinInclusive - { - get { return minInclusive; } - } + public List<object> Enumeration { get; private set; } - public object MinExclusive - { - get { return minExclusive; } - } + public object MaxInclusive { get; private set; } + public object MaxExclusive { get; private set; } + public object MinInclusive { get; private set; } + public object MinExclusive { get; private set; } - public int TotalDigits - { - get { return totalDigits; } - } + public int TotalDigits { get; private set; } + public int FractionDigits { get; private set; } - public int FractionDigits - { - get { return fractionDigits; } - } - - public RestrictionFlags Flags - { - get { return flags; } - } - - public void compileFacets(XmlSchemaSimpleType simpleType) + public void CompileFacets(XmlSchemaSimpleType simpleType) { var isEnum = simpleType.IsEnum(); XmlSchemaSimpleType type = simpleType; - XmlSchemaSimpleType enumSimpleType = null; //simpletype that has most restricted enums. - flags = 0; + XmlSchemaSimpleType enumSimpleType = null; // simpletype that has most restricted enums. + Flags = 0; while (type != null && - !String.Equals(type.QualifiedName.Namespace, Constants.XSD, StringComparison.Ordinal)) + !string.Equals(type.QualifiedName.Namespace, Constants.XSD, StringComparison.Ordinal)) { - XmlSchemaSimpleTypeRestriction simpleTypeRestriction = type.Content as XmlSchemaSimpleTypeRestriction; - if (simpleTypeRestriction != null) + if (type.Content is XmlSchemaSimpleTypeRestriction { Facets: var facets }) { - foreach (XmlSchemaFacet facet in simpleTypeRestriction.Facets) + foreach (XmlSchemaFacet facet in facets) { - if (facet is XmlSchemaMinLengthFacet) - { - if ((flags & RestrictionFlags.MinLength) == 0) - { - minLength = XmlConvert.ToInt32(facet.Value); - flags |= RestrictionFlags.MinLength; - } - } - else if (facet is XmlSchemaMaxLengthFacet) - { - if ((flags & RestrictionFlags.MaxLength) == 0) - { - maxLength = XmlConvert.ToInt32(facet.Value); - flags |= RestrictionFlags.MaxLength; - } - } - else if (facet is XmlSchemaLengthFacet) + switch (facet) { - if ((flags & RestrictionFlags.Length) == 0) - { - length = XmlConvert.ToInt32(facet.Value); - flags |= RestrictionFlags.Length; - } - } - else if (facet is XmlSchemaEnumerationFacet) - { - if (enumSimpleType == null) - { - enumerations = new ArrayList(); - flags |= RestrictionFlags.Enumeration; - enumSimpleType = type; - } - else if (enumSimpleType != type) - { - continue; - } - - NameTable nameTable = null; - // if datatype is NCName then a null nametable causes an exception - if (type.BaseXmlSchemaType.Datatype.TypeCode == XmlTypeCode.NCName) { - nameTable = new NameTable(); - } - var value = type.BaseXmlSchemaType.Datatype.ParseValue(s: facet.Value, nameTable: nameTable, nsmgr: null); - if (isEnum) - { - var enumFacet = new EnumFacet(value.ToString()); - enumerations.Add(enumFacet.ToString()); - } - else - { - enumerations.Add(value); - } - } - else if (facet is XmlSchemaPatternFacet) - { - if (patterns == null) - { - patterns = new ArrayList(); - flags |= RestrictionFlags.Pattern; - } - - patterns.Add(facet.Value); - } - else if (facet is XmlSchemaMaxInclusiveFacet) - { - if ((flags & RestrictionFlags.MaxInclusive) == 0) - { - maxInclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); - flags |= RestrictionFlags.MaxInclusive; - } - } - else if (facet is XmlSchemaMaxExclusiveFacet) - { - if ((flags & RestrictionFlags.MaxExclusive) == 0) - { - maxExclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); - flags |= RestrictionFlags.MaxExclusive; - } - } - else if (facet is XmlSchemaMinExclusiveFacet) - { - if ((flags & RestrictionFlags.MinExclusive) == 0) - { - minExclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); - flags |= RestrictionFlags.MinExclusive; - } - } - else if (facet is XmlSchemaMinInclusiveFacet) - { - if ((flags & RestrictionFlags.MinInclusive) == 0) - { - minInclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); - flags |= RestrictionFlags.MinInclusive; - } - } - else if (facet is XmlSchemaFractionDigitsFacet) - { - if ((flags & RestrictionFlags.FractionDigits) == 0) - { - fractionDigits = XmlConvert.ToInt32(facet.Value); - flags |= RestrictionFlags.FractionDigits; - } - } - else if (facet is XmlSchemaTotalDigitsFacet) - { - if ((flags & RestrictionFlags.TotalDigits) == 0) - { - totalDigits = XmlConvert.ToInt32(facet.Value); - flags |= RestrictionFlags.TotalDigits; - } - } - else if (facet is XmlSchemaWhiteSpaceFacet) - { - if ((flags & RestrictionFlags.WhiteSpace) == 0) - { - if (facet.Value == "preserve") - { - whiteSpace = XmlSchemaWhiteSpace.Preserve; - } - else if (facet.Value == "replace") - { - whiteSpace = XmlSchemaWhiteSpace.Replace; - } - else if (facet.Value == "collapse") - { - whiteSpace = XmlSchemaWhiteSpace.Collapse; + case XmlSchemaMinLengthFacet when !Flags.HasFlag(RestrictionFlags.MinLength): + Flags |= RestrictionFlags.MinLength; + MinLength = XmlConvert.ToInt32(facet.Value); + break; + + case XmlSchemaMaxLengthFacet when !Flags.HasFlag(RestrictionFlags.MaxLength): + Flags |= RestrictionFlags.MaxLength; + MaxLength = XmlConvert.ToInt32(facet.Value); + break; + + case XmlSchemaLengthFacet when !Flags.HasFlag(RestrictionFlags.Length): + Flags |= RestrictionFlags.Length; + Length = XmlConvert.ToInt32(facet.Value); + break; + + case XmlSchemaEnumerationFacet: { + if (enumSimpleType == null) + enumSimpleType = type; + else if (enumSimpleType != type) + continue; + + Flags |= RestrictionFlags.Enumeration; + Enumeration ??= []; + + // if datatype is NCName then a null nametable causes an exception + var nameTable = type.BaseXmlSchemaType.Datatype.TypeCode == XmlTypeCode.NCName + ? new NameTable() + : null; + + var value = type.BaseXmlSchemaType.Datatype.ParseValue(s: facet.Value, nameTable: nameTable, nsmgr: null); + + Enumeration.Add(isEnum + ? EnumFacet.Stringify(value) + : value); + break; } - flags |= RestrictionFlags.WhiteSpace; - } - } - else - { - continue; + case XmlSchemaPatternFacet: + Flags |= RestrictionFlags.Pattern; + Patterns ??= []; + Patterns.Add(facet.Value); + break; + + case XmlSchemaMaxInclusiveFacet when !Flags.HasFlag(RestrictionFlags.MaxInclusive): + Flags |= RestrictionFlags.MaxInclusive; + MaxInclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); + break; + + case XmlSchemaMaxExclusiveFacet when !Flags.HasFlag(RestrictionFlags.MaxExclusive): + Flags |= RestrictionFlags.MaxExclusive; + MaxExclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); + break; + + case XmlSchemaMinExclusiveFacet when !Flags.HasFlag(RestrictionFlags.MinExclusive): + Flags |= RestrictionFlags.MinExclusive; + MinExclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); + break; + + case XmlSchemaMinInclusiveFacet when !Flags.HasFlag(RestrictionFlags.MinInclusive): + Flags |= RestrictionFlags.MinInclusive; + MinInclusive = type.BaseXmlSchemaType.Datatype.ParseValue(facet.Value, null, null); + break; + + case XmlSchemaFractionDigitsFacet when !Flags.HasFlag(RestrictionFlags.FractionDigits): + Flags |= RestrictionFlags.FractionDigits; + FractionDigits = XmlConvert.ToInt32(facet.Value); + break; + + case XmlSchemaTotalDigitsFacet when !Flags.HasFlag(RestrictionFlags.TotalDigits): + Flags |= RestrictionFlags.TotalDigits; + TotalDigits = XmlConvert.ToInt32(facet.Value); + break; + + case XmlSchemaWhiteSpaceFacet when !Flags.HasFlag(RestrictionFlags.WhiteSpace): + Flags |= RestrictionFlags.WhiteSpace; + WhiteSpace = facet.Value switch { + "preserve" => XmlSchemaWhiteSpace.Preserve, + "replace" => XmlSchemaWhiteSpace.Replace, + "collapse" => XmlSchemaWhiteSpace.Collapse, + _ => WhiteSpace, + }; + break; } } } diff --git a/XObjectsCode/Src/EnumFacet.cs b/XObjectsCode/Src/EnumFacet.cs index ef982c94..bb4355fd 100644 --- a/XObjectsCode/Src/EnumFacet.cs +++ b/XObjectsCode/Src/EnumFacet.cs @@ -18,29 +18,35 @@ namespace Xml.Schema.Linq.CodeGen /// </remarks> public class EnumFacet { + public static string Stringify(object value) + => new EnumFacet(value.ToString()).ToString(); + public EnumFacet(string value) { - this.Value = value; - this.IsValid = string.IsNullOrWhiteSpace(value) || CodeDomHelper.CodeProvider.IsValidIdentifier(value); - this.Member = this.IsValid ? value : CreateValidIdentifier(value); + Value = value; + IsValid = string.IsNullOrWhiteSpace(value) || CodeDomHelper.CodeProvider.IsValidIdentifier(value); + Member = IsValid ? value : CreateValidIdentifier(value); } public string Value { get; } public bool IsValid { get; } public string Member { get; } - public override string ToString() => this.IsValid ? this.Value : $"{this.Value}:{this.Member}"; + public override string ToString() => IsValid ? Value : $"{Value}:{Member}"; private static string CreateValidIdentifier(string value) { if (string.IsNullOrEmpty(value)) return value; - if (NameGenerator.IsKeyword(value)) { + if (NameGenerator.IsKeyword(value)) + { return $"@{value}"; } - if (value.Length == 1) { + if (value.Length == 1) + { char ch = value[0]; - if (char.IsSymbol(ch) || char.IsPunctuation(ch)) { + if (char.IsSymbol(ch) || char.IsPunctuation(ch)) + { return NameGenerator.ExpandSymbolToFullWord(value[0]); } } @@ -66,8 +72,8 @@ private static string CreateValidIdentifier(string value) } // allows letter (Lu, Ll, Lt, Lm, or Nl), digit (Nd), connecting (Pc), combining (Mn or Mc), and formatting (Cf) categories - private static readonly UnicodeCategory[] ValidUnicodeCategories = new UnicodeCategory[] - { + private static readonly UnicodeCategory[] ValidUnicodeCategories = + [ UnicodeCategory.UppercaseLetter, UnicodeCategory.LowercaseLetter, UnicodeCategory.TitlecaseLetter, @@ -78,6 +84,6 @@ private static string CreateValidIdentifier(string value) UnicodeCategory.LetterNumber, UnicodeCategory.Format, UnicodeCategory.ConnectorPunctuation, - }; + ]; } } \ No newline at end of file diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index f631307a..7b9955a1 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -3,6 +3,7 @@ using System.CodeDom; using System.Collections.Generic; using System.Linq; +using System.Xml.Schema; namespace Xml.Schema.Linq.CodeGen.Model; @@ -44,6 +45,10 @@ public class CSimpleType(ClrSimpleTypeInfo info) : CClass public override bool IsSimpleType => true; public string Name => info.clrtypeName; + public XmlSchemaDatatypeVariety Variety => info.Variety; + public XmlTypeCode XmlTypeCode => info.TypeCode; + + public CompiledFacets Restrictions => info.RestrictionFacets; public IEnumerable<string> Comments => info.Annotations?.Select(a => a.Text) ?? []; } \ No newline at end of file diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index 51b31a10..2e8ee0ec 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -4,7 +4,7 @@ using System.CodeDom; using System.Collections.Generic; using System.Linq; -using System.Reflection; +using System.Text.Json; using System.Text.RegularExpressions; using Scriban; @@ -20,6 +20,16 @@ static class ScribanGlobals public static string NewlinePrefix(string text, string prefix) => text.Replace("\n", "\n" + prefix); + public static bool HasRestriction(CompiledFacets facets, RestrictionFlags test) + => facets.Flags.HasFlag(test); + + public static string ValueLiteral(object value) + { + if (value is DateTime dt) return $"new System.DateTime({dt.Ticks})"; + // For most types JSON serialization and C# agree on representation :) + return JsonSerializer.Serialize(value); + } + // Temporary marker comment: temporary helpers to adapt from CodeDom public static void Comments(TemplateContext ctx, object target) diff --git a/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs b/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs index 7345cde3..f09533ac 100644 --- a/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs +++ b/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs @@ -200,9 +200,8 @@ public static CodeExpression CreateFacets(ClrSimpleTypeInfo type) CodeArrayCreateExpression patternStrs = new CodeArrayCreateExpression(); patternStrs.CreateType = new CodeTypeReference(XTypedServices.typeOfString); - foreach (object o in facets.Patterns) + foreach (string str in facets.Patterns) { - string str = o.ToString(); patternStrs.Initializers.Add(new CodePrimitiveExpression(str)); } diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 53f2119b..20564b45 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -38,19 +38,16 @@ namespace {{ $ns.Name }} { # Other namespaces import the TypeManager namespace "using " + TypeManager.Namespace.Name + ";\n" end - "\n" - -}} - - {{~ for $type in $ns.Types ~}} - - {{ - if $type.IsSimpleType - include 'simple-type.scriban-cs' $type - else - include 'class.scriban-cs' $type.Dom + + for $type in $ns.Types + "\n\n" + if $type.IsSimpleType + include 'simple-type.scriban-cs' $type + else + include 'class.scriban-cs' $type.Dom + end end - }} - {{- end # for $type -}} + -}} {{- if TypeManager.Namespace == $ns }} {{ include 'manager.scriban-cs'; }} diff --git a/XObjectsCode/Templates/restrictions.scriban-cs b/XObjectsCode/Templates/restrictions.scriban-cs new file mode 100644 index 00000000..ef10505e --- /dev/null +++ b/XObjectsCode/Templates/restrictions.scriban-cs @@ -0,0 +1,57 @@ +{{- + if $1.Flags == 0 + "null" + ret + end +-}} + +new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)({{ $1.Flags + 0 }})), {{ + if $1 | has_restriction "Enumeration" + "new object[] {" + "\n " # match previous CodeDom formatting for now :( + $1.Enumeration | array.join ", " @value_literal + "}" + else + "null" + end + ", " + + $1 | has_restriction "FractionDigits" ? $1.FractionDigits : 0 + ", " + + $1 | has_restriction "Length" ? $1.Length : 0 + ", " + + $1 | has_restriction "MaxExclusive" ? ($1.MaxExclusive | @value_literal) : "null" + ", " + + $1 | has_restriction "MaxInclusive" ? ($1.MaxInclusive | @value_literal) : "null" + ", " + + $1 | has_restriction "MaxLength" ? $1.MaxLength: 0 + ", " + + $1 | has_restriction "MinExclusive" ? ($1.MinExclusive | @value_literal) : "null" + ", " + + $1 | has_restriction "MinInclusive" ? ($1.MinInclusive | @value_literal) : "null" + ", " + + $1 | has_restriction "MinLength" ? $1.MinLength : 0 + ", " + + if $1 | has_restriction "Pattern" + "new string[] {" + "\n " # match previous CodeDom formatting for now :( + $1.Patterns | array.join ", " @string.literal + "}" + else + "null" + end + ", " + + $1 | has_restriction "TotalDigits" ? $1.TotalDigits : 0 + ", " + + "XmlSchemaWhiteSpace." + $1.WhiteSpace +}}) \ No newline at end of file diff --git a/XObjectsCode/Templates/simple-type.scriban-cs b/XObjectsCode/Templates/simple-type.scriban-cs index 5ccf0ecc..eddfd657 100644 --- a/XObjectsCode/Templates/simple-type.scriban-cs +++ b/XObjectsCode/Templates/simple-type.scriban-cs @@ -12,10 +12,13 @@ private {{ $1.Name }}() { } - {{~ - # TODO: review SimpleTypeCodeDomHelper.MaterializeSimpleTypeDef for the initializer. - # It's different for atomic/list/union and picks the right type code and facets - ~}} + {{~ # TODO: add 3rd parameter for lists and unions ~}} [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = {{ # no line break -}} + new Xml.Schema.Linq.{{ $1.Variety }}SimpleTypeValidator( + {{- #no line break -}} + XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.{{ $1.XmlTypeCode }}), {{ + include 'restrictions.scriban-cs' $1.Restrictions + -}} + ); } \ No newline at end of file diff --git a/XObjectsCode/XObjectsCodeGen.csproj b/XObjectsCode/XObjectsCodeGen.csproj index e69e1dda..6e9197fe 100644 --- a/XObjectsCode/XObjectsCodeGen.csproj +++ b/XObjectsCode/XObjectsCodeGen.csproj @@ -17,7 +17,7 @@ <ItemGroup> <PackageReference Include="OneOf" Version="3.0.263" /> - <PackageReference Include="Scriban" Version="6.5.8" /> + <PackageReference Include="Scriban" Version="7.0.3" /> <PackageReference Include="PolySharp" Version="1.15.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> From 7fbe96d614af512335f657f1420ddc63dc6ac790 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Fri, 27 Mar 2026 22:38:54 +0100 Subject: [PATCH 18/29] Regenerate dtsx for reference --- GeneratedSchemaLibraries/DTSX/dtsx.xsd.cs | 22340 ++++++++++++-------- LinqToXsd/Properties/launchSettings.json | 6 + 2 files changed, 13183 insertions(+), 9163 deletions(-) diff --git a/GeneratedSchemaLibraries/DTSX/dtsx.xsd.cs b/GeneratedSchemaLibraries/DTSX/dtsx.xsd.cs index 8e46963d..75e72523 100644 --- a/GeneratedSchemaLibraries/DTSX/dtsx.xsd.cs +++ b/GeneratedSchemaLibraries/DTSX/dtsx.xsd.cs @@ -35,100 +35,10 @@ namespace Microsoft.SqlServer.Dts { /// </summary> public partial class ExecutableTypePackage : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionManagerXName = System.Xml.Linq.XName.Get("ConnectionManager", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ConnectionManagerType> ConnectionManagerField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConfigurationXName = System.Xml.Linq.XName.Get("Configuration", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ConfigurationType> ConfigurationField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LogProviderXName = System.Xml.Linq.XName.Get("LogProvider", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LogProviderType> LogProviderField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VariableXName = System.Xml.Linq.XName.Get("Variable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<VariableType> VariableField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LoggingOptionsXName = System.Xml.Linq.XName.Get("LoggingOptions", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AnyNonPackageExecutableType> ExecutableField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PrecedenceConstraintXName = System.Xml.Linq.XName.Get("PrecedenceConstraint", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PrecedenceConstraintType> PrecedenceConstraintField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EventHandlerXName = System.Xml.Linq.XName.Get("EventHandler", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<EventHandlerType> EventHandlerField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PackageVariableXName = System.Xml.Linq.XName.Get("PackageVariable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PackageVariableType> PackageVariableField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutableTypeXName = System.Xml.Linq.XName.Get("ExecutableType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static string ExecutableTypeFixedValue = "SSIS.Package.2"; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecutableTypePackage", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ExecutableTypePackage(XElement xe) { return XTypedServices.ToXTypedElement<ExecutableTypePackage>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ExecutableTypePackage() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(ConnectionManagerXName), new NamedContentModelEntity(ConfigurationXName), new NamedContentModelEntity(LogProviderXName), new NamedContentModelEntity(VariableXName), new NamedContentModelEntity(LoggingOptionsXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ExecutableXName), new NamedContentModelEntity(PrecedenceConstraintXName), new NamedContentModelEntity(EventHandlerXName), new NamedContentModelEntity(PackageVariableXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ExecutableTypePackage>(this); } /// <summary> @@ -139,6 +49,13 @@ static ExecutableTypePackage() { public ExecutableTypePackage() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.ExecutableTypePackage.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -150,7 +67,7 @@ public ExecutableTypePackage() { public virtual IList<Microsoft.SqlServer.Dts.ExecutableTypePackage.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.ExecutableTypePackage.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -160,15 +77,22 @@ public virtual IList<Microsoft.SqlServer.Dts.ExecutableTypePackage.PropertyLocal } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.ExecutableTypePackage.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.ExecutableTypePackage.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionManagerXName = System.Xml.Linq.XName.Get("ConnectionManager", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ConnectionManagerType> ConnectionManagerField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -199,6 +123,13 @@ public virtual IList<ConnectionManagerType> ConnectionManager { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConfigurationXName = System.Xml.Linq.XName.Get("Configuration", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ConfigurationType> ConfigurationField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -229,6 +160,13 @@ public virtual IList<ConfigurationType> Configuration { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LogProviderXName = System.Xml.Linq.XName.Get("LogProvider", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LogProviderType> LogProviderField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -259,6 +197,13 @@ public virtual IList<LogProviderType> LogProvider { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VariableXName = System.Xml.Linq.XName.Get("Variable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<VariableType> VariableField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -289,6 +234,10 @@ public virtual IList<VariableType> Variable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LoggingOptionsXName = System.Xml.Linq.XName.Get("LoggingOptions", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -307,6 +256,13 @@ public virtual LoggingOptionsType LoggingOptions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -337,6 +293,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AnyNonPackageExecutableType> ExecutableField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -367,6 +330,13 @@ public virtual IList<AnyNonPackageExecutableType> Executable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PrecedenceConstraintXName = System.Xml.Linq.XName.Get("PrecedenceConstraint", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PrecedenceConstraintType> PrecedenceConstraintField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -397,6 +367,13 @@ public virtual IList<PrecedenceConstraintType> PrecedenceConstraint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EventHandlerXName = System.Xml.Linq.XName.Get("EventHandler", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<EventHandlerType> EventHandlerField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -427,6 +404,13 @@ public virtual IList<EventHandlerType> EventHandler { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PackageVariableXName = System.Xml.Linq.XName.Get("PackageVariable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PackageVariableType> PackageVariableField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -457,6 +441,13 @@ public virtual IList<PackageVariableType> PackageVariable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecutableTypeXName = System.Xml.Linq.XName.Get("ExecutableType", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static string ExecutableTypeFixedValue = "SSIS.Package.2"; + /// <summary> /// <para> /// Occurrence: required @@ -467,7 +458,7 @@ public virtual string ExecutableType { return ExecutableTypeFixedValue; } set { - if (value.Equals(ExecutableTypeFixedValue)) { + if (ExecutableTypeFixedValue.Equals(value)) { } else { throw new Xml.Schema.Linq.LinqToXsdFixedValueException(value, ExecutableTypeFixedValue); @@ -476,6 +467,30 @@ public virtual string ExecutableType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecutableTypePackage", "www.microsoft.com/SqlServer/Dts"); + + static ExecutableTypePackage() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(ConnectionManagerXName), new NamedContentModelEntity(ConfigurationXName), new NamedContentModelEntity(LogProviderXName), new NamedContentModelEntity(VariableXName), new NamedContentModelEntity(LoggingOptionsXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ExecutableXName), new NamedContentModelEntity(PrecedenceConstraintXName), new NamedContentModelEntity(EventHandlerXName), new NamedContentModelEntity(PackageVariableXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(ConnectionManagerXName, typeof(ConnectionManagerType)); + localElementDictionary.Add(ConfigurationXName, typeof(ConfigurationType)); + localElementDictionary.Add(LogProviderXName, typeof(LogProviderType)); + localElementDictionary.Add(VariableXName, typeof(VariableType)); + localElementDictionary.Add(LoggingOptionsXName, typeof(LoggingOptionsType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(ExecutableXName, typeof(AnyNonPackageExecutableType)); + localElementDictionary.Add(PrecedenceConstraintXName, typeof(PrecedenceConstraintType)); + localElementDictionary.Add(EventHandlerXName, typeof(EventHandlerType)); + localElementDictionary.Add(PackageVariableXName, typeof(PackageVariableType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -483,6 +498,13 @@ public virtual string ExecutableType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -504,41 +526,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ExecutableTypePackage>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(ConnectionManagerXName, typeof(ConnectionManagerType)); - localElementDictionary.Add(ConfigurationXName, typeof(ConfigurationType)); - localElementDictionary.Add(LogProviderXName, typeof(LogProviderType)); - localElementDictionary.Add(VariableXName, typeof(VariableType)); - localElementDictionary.Add(LoggingOptionsXName, typeof(LoggingOptionsType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(ExecutableXName, typeof(AnyNonPackageExecutableType)); - localElementDictionary.Add(PrecedenceConstraintXName, typeof(PrecedenceConstraintType)); - localElementDictionary.Add(EventHandlerXName, typeof(EventHandlerType)); - localElementDictionary.Add(PackageVariableXName, typeof(PackageVariableType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -554,6 +556,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -574,10 +578,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -588,88 +588,10 @@ public override XTypedElement Clone() { /// </summary> public partial class AnyNonPackageExecutableType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ForEachEnumeratorXName = System.Xml.Linq.XName.Get("ForEachEnumerator", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VariableXName = System.Xml.Linq.XName.Get("Variable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<VariableType> VariableField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LoggingOptionsXName = System.Xml.Linq.XName.Get("LoggingOptions", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AnyNonPackageExecutableType> ExecutableField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PrecedenceConstraintXName = System.Xml.Linq.XName.Get("PrecedenceConstraint", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PrecedenceConstraintType> PrecedenceConstraintField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ForEachVariableMappingXName = System.Xml.Linq.XName.Get("ForEachVariableMapping", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ForEachVariableMappingType> ForEachVariableMappingField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EventHandlerXName = System.Xml.Linq.XName.Get("EventHandler", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<EventHandlerType> EventHandlerField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutableTypeXName = System.Xml.Linq.XName.Get("ExecutableType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ThreadHintXName = System.Xml.Linq.XName.Get("ThreadHint", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AnyNonPackageExecutableType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator AnyNonPackageExecutableType(XElement xe) { return XTypedServices.ToXTypedElement<AnyNonPackageExecutableType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static AnyNonPackageExecutableType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ForEachEnumeratorXName), new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(VariableXName), new NamedContentModelEntity(LoggingOptionsXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ExecutableXName), new NamedContentModelEntity(PrecedenceConstraintXName), new NamedContentModelEntity(ForEachVariableMappingXName), new NamedContentModelEntity(EventHandlerXName), new NamedContentModelEntity(ObjectDataXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AnyNonPackageExecutableType>(this); } /// <summary> @@ -680,6 +602,10 @@ static AnyNonPackageExecutableType() { public AnyNonPackageExecutableType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ForEachEnumeratorXName = System.Xml.Linq.XName.Get("ForEachEnumerator", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -691,6 +617,9 @@ public AnyNonPackageExecutableType() { public virtual ForEachEnumeratorType ForEachEnumerator { get { XElement x = this.GetElement(ForEachEnumeratorXName); + if ((x == null)) { + return null; + } return ((ForEachEnumeratorType)(x)); } set { @@ -698,6 +627,13 @@ public virtual ForEachEnumeratorType ForEachEnumerator { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.AnyNonPackageExecutableType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -709,7 +645,7 @@ public virtual ForEachEnumeratorType ForEachEnumerator { public virtual IList<Microsoft.SqlServer.Dts.AnyNonPackageExecutableType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.AnyNonPackageExecutableType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -719,15 +655,22 @@ public virtual IList<Microsoft.SqlServer.Dts.AnyNonPackageExecutableType.Propert } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.AnyNonPackageExecutableType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.AnyNonPackageExecutableType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VariableXName = System.Xml.Linq.XName.Get("Variable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<VariableType> VariableField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -758,6 +701,10 @@ public virtual IList<VariableType> Variable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LoggingOptionsXName = System.Xml.Linq.XName.Get("LoggingOptions", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -776,6 +723,13 @@ public virtual LoggingOptionsType LoggingOptions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -806,6 +760,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AnyNonPackageExecutableType> ExecutableField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -836,6 +797,13 @@ public virtual IList<AnyNonPackageExecutableType> Executable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PrecedenceConstraintXName = System.Xml.Linq.XName.Get("PrecedenceConstraint", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PrecedenceConstraintType> PrecedenceConstraintField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -866,6 +834,13 @@ public virtual IList<PrecedenceConstraintType> PrecedenceConstraint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ForEachVariableMappingXName = System.Xml.Linq.XName.Get("ForEachVariableMapping", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ForEachVariableMappingType> ForEachVariableMappingField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -896,6 +871,13 @@ public virtual IList<ForEachVariableMappingType> ForEachVariableMapping { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EventHandlerXName = System.Xml.Linq.XName.Get("EventHandler", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<EventHandlerType> EventHandlerField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -926,6 +908,10 @@ public virtual IList<EventHandlerType> EventHandler { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -937,6 +923,9 @@ public virtual IList<EventHandlerType> EventHandler { public virtual ExecutableObjectDataType ObjectData { get { XElement x = this.GetElement(ObjectDataXName); + if ((x == null)) { + return null; + } return ((ExecutableObjectDataType)(x)); } set { @@ -944,6 +933,10 @@ public virtual ExecutableObjectDataType ObjectData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecutableTypeXName = System.Xml.Linq.XName.Get("ExecutableType", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -959,6 +952,10 @@ public virtual string ExecutableType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ThreadHintXName = System.Xml.Linq.XName.Get("ThreadHint", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -977,6 +974,29 @@ public virtual System.Int32? ThreadHint { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AnyNonPackageExecutableType", "www.microsoft.com/SqlServer/Dts"); + + static AnyNonPackageExecutableType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ForEachEnumeratorXName), new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(VariableXName), new NamedContentModelEntity(LoggingOptionsXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ExecutableXName), new NamedContentModelEntity(PrecedenceConstraintXName), new NamedContentModelEntity(ForEachVariableMappingXName), new NamedContentModelEntity(EventHandlerXName), new NamedContentModelEntity(ObjectDataXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ForEachEnumeratorXName, typeof(ForEachEnumeratorType)); + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(VariableXName, typeof(VariableType)); + localElementDictionary.Add(LoggingOptionsXName, typeof(LoggingOptionsType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(ExecutableXName, typeof(AnyNonPackageExecutableType)); + localElementDictionary.Add(PrecedenceConstraintXName, typeof(PrecedenceConstraintType)); + localElementDictionary.Add(ForEachVariableMappingXName, typeof(ForEachVariableMappingType)); + localElementDictionary.Add(EventHandlerXName, typeof(EventHandlerType)); + localElementDictionary.Add(ObjectDataXName, typeof(ExecutableObjectDataType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -984,6 +1004,13 @@ public virtual System.Int32? ThreadHint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1005,40 +1032,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AnyNonPackageExecutableType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ForEachEnumeratorXName, typeof(ForEachEnumeratorType)); - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(VariableXName, typeof(VariableType)); - localElementDictionary.Add(LoggingOptionsXName, typeof(LoggingOptionsType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(ExecutableXName, typeof(AnyNonPackageExecutableType)); - localElementDictionary.Add(PrecedenceConstraintXName, typeof(PrecedenceConstraintType)); - localElementDictionary.Add(ForEachVariableMappingXName, typeof(ForEachVariableMappingType)); - localElementDictionary.Add(EventHandlerXName, typeof(EventHandlerType)); - localElementDictionary.Add(ObjectDataXName, typeof(ExecutableObjectDataType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -1054,6 +1062,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1074,10 +1084,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -1088,33 +1094,10 @@ public override XTypedElement Clone() { /// </summary> public partial class PackageVariableType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PackageVariableType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PackageVariableType(XElement xe) { return XTypedServices.ToXTypedElement<PackageVariableType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PackageVariableType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PackageVariableType>(this); } /// <summary> @@ -1125,6 +1108,13 @@ static PackageVariableType() { public PackageVariableType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.PackageVariableType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -1136,7 +1126,7 @@ public PackageVariableType() { public virtual IList<Microsoft.SqlServer.Dts.PackageVariableType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.PackageVariableType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -1146,15 +1136,22 @@ public virtual IList<Microsoft.SqlServer.Dts.PackageVariableType.PropertyLocalTy } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.PackageVariableType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.PackageVariableType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -1185,6 +1182,21 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PackageVariableType", "www.microsoft.com/SqlServer/Dts"); + + static PackageVariableType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1192,6 +1204,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1213,32 +1232,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PackageVariableType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -1254,6 +1262,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1274,10 +1284,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -1288,33 +1294,10 @@ public override XTypedElement Clone() { /// </summary> public partial class ConfigurationType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConfigurationType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ConfigurationType(XElement xe) { return XTypedServices.ToXTypedElement<ConfigurationType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ConfigurationType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConfigurationType>(this); } /// <summary> @@ -1325,6 +1308,13 @@ static ConfigurationType() { public ConfigurationType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.ConfigurationType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -1336,7 +1326,7 @@ public ConfigurationType() { public virtual IList<Microsoft.SqlServer.Dts.ConfigurationType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.ConfigurationType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -1346,15 +1336,22 @@ public virtual IList<Microsoft.SqlServer.Dts.ConfigurationType.PropertyLocalType } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.ConfigurationType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.ConfigurationType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -1385,6 +1382,21 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConfigurationType", "www.microsoft.com/SqlServer/Dts"); + + static ConfigurationType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1392,6 +1404,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1413,32 +1432,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConfigurationType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -1454,6 +1462,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1474,10 +1484,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -1488,37 +1494,10 @@ public override XTypedElement Clone() { /// </summary> public partial class LogProviderType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LogProviderType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator LogProviderType(XElement xe) { return XTypedServices.ToXTypedElement<LogProviderType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LogProviderType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ObjectDataXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LogProviderType>(this); } /// <summary> @@ -1529,6 +1508,13 @@ static LogProviderType() { public LogProviderType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.LogProviderType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -1540,7 +1526,7 @@ public LogProviderType() { public virtual IList<Microsoft.SqlServer.Dts.LogProviderType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.LogProviderType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -1550,15 +1536,22 @@ public virtual IList<Microsoft.SqlServer.Dts.LogProviderType.PropertyLocalType> } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.LogProviderType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.LogProviderType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -1589,6 +1582,10 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -1607,6 +1604,22 @@ public virtual LogProviderObjectDataType ObjectData { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LogProviderType", "www.microsoft.com/SqlServer/Dts"); + + static LogProviderType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ObjectDataXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(ObjectDataXName, typeof(LogProviderObjectDataType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1614,6 +1627,13 @@ public virtual LogProviderObjectDataType ObjectData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1635,33 +1655,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LogProviderType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(ObjectDataXName, typeof(LogProviderObjectDataType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -1677,6 +1685,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1697,10 +1707,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -1711,37 +1717,10 @@ public override XTypedElement Clone() { /// </summary> public partial class ConnectionManagerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ConnectionManagerType(XElement xe) { return XTypedServices.ToXTypedElement<ConnectionManagerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ConnectionManagerType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ObjectDataXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnectionManagerType>(this); } /// <summary> @@ -1752,6 +1731,13 @@ static ConnectionManagerType() { public ConnectionManagerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.ConnectionManagerType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -1763,7 +1749,7 @@ public ConnectionManagerType() { public virtual IList<Microsoft.SqlServer.Dts.ConnectionManagerType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.ConnectionManagerType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -1773,15 +1759,22 @@ public virtual IList<Microsoft.SqlServer.Dts.ConnectionManagerType.PropertyLocal } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.ConnectionManagerType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.ConnectionManagerType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -1812,6 +1805,10 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -1830,6 +1827,22 @@ public virtual ConnectionManagerObjectDataType ObjectData { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); + + static ConnectionManagerType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ObjectDataXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(ObjectDataXName, typeof(ConnectionManagerObjectDataType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -1837,6 +1850,13 @@ public virtual ConnectionManagerObjectDataType ObjectData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1858,33 +1878,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnectionManagerType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(ObjectDataXName, typeof(ConnectionManagerObjectDataType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -1900,6 +1908,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -1920,10 +1930,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -1934,40 +1940,10 @@ public override XTypedElement Clone() { /// </summary> public partial class PrecedenceConstraintType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PrecedenceConstraintExecutableReferenceType> ExecutableField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PrecedenceConstraintType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PrecedenceConstraintType(XElement xe) { return XTypedServices.ToXTypedElement<PrecedenceConstraintType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PrecedenceConstraintType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ExecutableXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PrecedenceConstraintType>(this); } /// <summary> @@ -1978,6 +1954,13 @@ static PrecedenceConstraintType() { public PrecedenceConstraintType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.PrecedenceConstraintType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -1989,7 +1972,7 @@ public PrecedenceConstraintType() { public virtual IList<Microsoft.SqlServer.Dts.PrecedenceConstraintType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.PrecedenceConstraintType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -1999,15 +1982,22 @@ public virtual IList<Microsoft.SqlServer.Dts.PrecedenceConstraintType.PropertyLo } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.PrecedenceConstraintType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.PrecedenceConstraintType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2038,6 +2028,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PrecedenceConstraintExecutableReferenceType> ExecutableField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -2068,6 +2065,22 @@ public virtual IList<PrecedenceConstraintExecutableReferenceType> Executable { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PrecedenceConstraintType", "www.microsoft.com/SqlServer/Dts"); + + static PrecedenceConstraintType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ExecutableXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(ExecutableXName, typeof(PrecedenceConstraintExecutableReferenceType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2075,6 +2088,13 @@ public virtual IList<PrecedenceConstraintExecutableReferenceType> Executable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2096,33 +2116,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PrecedenceConstraintType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(ExecutableXName, typeof(PrecedenceConstraintExecutableReferenceType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -2138,6 +2146,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2158,30 +2168,24 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } public partial class PrecedenceConstraintExecutableReferenceType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IDREFXName = System.Xml.Linq.XName.Get("IDREF", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsFromXName = System.Xml.Linq.XName.Get("IsFrom", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PrecedenceConstraintExecutableReferenceType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PrecedenceConstraintExecutableReferenceType(XElement xe) { return XTypedServices.ToXTypedElement<PrecedenceConstraintExecutableReferenceType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PrecedenceConstraintExecutableReferenceType>(this); + } + public PrecedenceConstraintExecutableReferenceType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IDREFXName = System.Xml.Linq.XName.Get("IDREF", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -2190,6 +2194,9 @@ public PrecedenceConstraintExecutableReferenceType() { public virtual string IDREF { get { XAttribute x = this.Attribute(IDREFXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2197,6 +2204,10 @@ public virtual string IDREF { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsFromXName = System.Xml.Linq.XName.Get("IsFrom", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -2215,6 +2226,12 @@ public virtual System.Int32? IsFrom { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PrecedenceConstraintExecutableReferenceType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2235,14 +2252,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PrecedenceConstraintExecutableReferenceType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -2252,40 +2261,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class LoggingOptionsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<LoggingOptionsPropertyElementType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedLogProviderXName = System.Xml.Linq.XName.Get("SelectedLogProvider", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SelectedLogProviderType> SelectedLogProviderField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LoggingOptionsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator LoggingOptionsType(XElement xe) { return XTypedServices.ToXTypedElement<LoggingOptionsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LoggingOptionsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(SelectedLogProviderXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LoggingOptionsType>(this); } /// <summary> @@ -2296,6 +2275,13 @@ static LoggingOptionsType() { public LoggingOptionsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<LoggingOptionsPropertyElementType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -2326,6 +2312,13 @@ public virtual IList<LoggingOptionsPropertyElementType> Property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2356,6 +2349,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedLogProviderXName = System.Xml.Linq.XName.Get("SelectedLogProvider", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SelectedLogProviderType> SelectedLogProviderField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2386,6 +2386,22 @@ public virtual IList<SelectedLogProviderType> SelectedLogProvider { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LoggingOptionsType", "www.microsoft.com/SqlServer/Dts"); + + static LoggingOptionsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(SelectedLogProviderXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(LoggingOptionsPropertyElementType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(SelectedLogProviderXName, typeof(SelectedLogProviderType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2393,6 +2409,13 @@ public virtual IList<SelectedLogProviderType> SelectedLogProvider { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2413,20 +2436,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LoggingOptionsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(LoggingOptionsPropertyElementType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(SelectedLogProviderXName, typeof(SelectedLogProviderType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -2436,38 +2445,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class LoggingOptionsPropertyElementType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EventNameXName = System.Xml.Linq.XName.Get("EventName", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LoggingOptionsPropertyElementType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator LoggingOptionsPropertyElementType(XElement xe) { return XTypedServices.ToXTypedElement<LoggingOptionsPropertyElementType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LoggingOptionsPropertyElementType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LoggingOptionsPropertyElementType>(this); } /// <summary> @@ -2478,6 +2459,13 @@ static LoggingOptionsPropertyElementType() { public LoggingOptionsPropertyElementType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.LoggingOptionsPropertyElementType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2489,7 +2477,7 @@ public LoggingOptionsPropertyElementType() { public virtual IList<Microsoft.SqlServer.Dts.LoggingOptionsPropertyElementType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.LoggingOptionsPropertyElementType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -2499,15 +2487,19 @@ public virtual IList<Microsoft.SqlServer.Dts.LoggingOptionsPropertyElementType.P } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.LoggingOptionsPropertyElementType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.LoggingOptionsPropertyElementType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -2516,13 +2508,17 @@ public virtual IList<Microsoft.SqlServer.Dts.LoggingOptionsPropertyElementType.P public virtual Microsoft.SqlServer.Dts.LoggingOptionsPropertyNameEnum Name { get { XAttribute x = this.Attribute(NameXName); - return ((Microsoft.SqlServer.Dts.LoggingOptionsPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.LoggingOptionsPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.LoggingOptionsPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.LoggingOptionsPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.LoggingOptionsPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(NameXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(NameXName, value.ToString(), "Name", global::Microsoft.SqlServer.Dts.LoggingOptionsPropertyNameEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -2541,6 +2537,10 @@ public virtual System.Int32? DataType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EventNameXName = System.Xml.Linq.XName.Get("EventName", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -2549,6 +2549,9 @@ public virtual System.Int32? DataType { public virtual string EventName { get { XAttribute x = this.Attribute(EventNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2556,6 +2559,20 @@ public virtual string EventName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LoggingOptionsPropertyElementType", "www.microsoft.com/SqlServer/Dts"); + + static LoggingOptionsPropertyElementType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2563,6 +2580,13 @@ public virtual string EventName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2584,39 +2608,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LoggingOptionsPropertyElementType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -2627,6 +2633,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -2635,13 +2645,17 @@ public virtual string TypedValue { public virtual Microsoft.SqlServer.Dts.ColumnEventFilterPropertyNameEnum Name { get { XAttribute x = this.Attribute(NameXName); - return ((Microsoft.SqlServer.Dts.ColumnEventFilterPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ColumnEventFilterPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.ColumnEventFilterPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ColumnEventFilterPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.ColumnEventFilterPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(NameXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(NameXName, value.ToString(), "Name", global::Microsoft.SqlServer.Dts.ColumnEventFilterPropertyNameEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -2660,6 +2674,12 @@ public virtual System.Int32? DataType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2680,30 +2700,24 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } } public partial class SelectedLogProviderType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InstanceIDXName = System.Xml.Linq.XName.Get("InstanceID", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SelectedLogProviderType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator SelectedLogProviderType(XElement xe) { return XTypedServices.ToXTypedElement<SelectedLogProviderType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SelectedLogProviderType>(this); + } + public SelectedLogProviderType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InstanceIDXName = System.Xml.Linq.XName.Get("InstanceID", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -2712,6 +2726,9 @@ public SelectedLogProviderType() { public virtual string InstanceID { get { XAttribute x = this.Attribute(InstanceIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -2719,6 +2736,12 @@ public virtual string InstanceID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SelectedLogProviderType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2739,14 +2762,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SelectedLogProviderType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -2756,37 +2771,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class VariableType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VariableValueXName = System.Xml.Linq.XName.Get("VariableValue", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("VariableType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator VariableType(XElement xe) { return XTypedServices.ToXTypedElement<VariableType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static VariableType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(VariableValueXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<VariableType>(this); } /// <summary> @@ -2797,6 +2785,13 @@ static VariableType() { public VariableType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.VariableType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -2808,7 +2803,7 @@ public VariableType() { public virtual IList<Microsoft.SqlServer.Dts.VariableType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.VariableType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -2818,15 +2813,22 @@ public virtual IList<Microsoft.SqlServer.Dts.VariableType.PropertyLocalType> Pro } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.VariableType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.VariableType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -2857,6 +2859,10 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VariableValueXName = System.Xml.Linq.XName.Get("VariableValue", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -2875,6 +2881,22 @@ public virtual VariableValueLocalType VariableValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("VariableType", "www.microsoft.com/SqlServer/Dts"); + + static VariableType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(VariableValueXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(VariableValueXName, typeof(VariableValueLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -2882,6 +2904,13 @@ public virtual VariableValueLocalType VariableValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2903,33 +2932,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<VariableType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(VariableValueXName, typeof(VariableValueLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -2945,6 +2962,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -2965,10 +2984,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } /// <summary> @@ -2978,23 +2993,10 @@ public override XTypedElement Clone() { /// </summary> public partial class VariableValueLocalType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataSubTypeXName = System.Xml.Linq.XName.Get("DataSubType", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("VariableValue", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; - public static explicit operator VariableValueLocalType(XElement xe) { return XTypedServices.ToXTypedElement<VariableValueLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static VariableValueLocalType() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<VariableValueLocalType>(this); } /// <summary> @@ -3016,6 +3018,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -3034,6 +3040,25 @@ public virtual System.Int32? DataType { } } + public enum DataSubTypeEnum { + + ManagedSerializable, + } + + public sealed class DataSubTypeEnumValidator { + + private DataSubTypeEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "ManagedSerializable"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataSubTypeXName = System.Xml.Linq.XName.Get("DataSubType", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -3045,13 +3070,37 @@ public virtual Microsoft.SqlServer.Dts.VariableType.VariableValueLocalType.DataS if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.VariableType.VariableValueLocalType.DataSubTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.VariableType.VariableValueLocalType.DataSubTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.VariableType.VariableValueLocalType.DataSubTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.VariableType.VariableValueLocalType.DataSubTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, DataSubTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DataSubTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DataSubTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DataSubTypeXName, value.ToString(), "DataSubType", DataSubTypeEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("VariableValue", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); + validationStates = new FSM(1, new Set<int>(1), transitions); + } + + static VariableValueLocalType() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3072,25 +3121,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<VariableValueLocalType>(this); - } - - FSM IXMetaData.GetValidationStates() { - return validationStates; - } - - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); - validationStates = new FSM(1, new Set<int>(1), transitions); - } - - public enum DataSubTypeEnum { - - ManagedSerializable, - } } } @@ -3101,58 +3131,10 @@ public enum DataSubTypeEnum { /// </summary> public partial class EventHandlerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VariableXName = System.Xml.Linq.XName.Get("Variable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<VariableType> VariableField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LoggingOptionsXName = System.Xml.Linq.XName.Get("LoggingOptions", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<AnyNonPackageExecutableType> ExecutableField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PrecedenceConstraintXName = System.Xml.Linq.XName.Get("PrecedenceConstraint", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PrecedenceConstraintType> PrecedenceConstraintField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EventHandlerType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator EventHandlerType(XElement xe) { return XTypedServices.ToXTypedElement<EventHandlerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static EventHandlerType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(VariableXName), new NamedContentModelEntity(LoggingOptionsXName), new NamedContentModelEntity(ExecutableXName), new NamedContentModelEntity(PrecedenceConstraintXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<EventHandlerType>(this); } /// <summary> @@ -3163,6 +3145,13 @@ static EventHandlerType() { public EventHandlerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.EventHandlerType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -3174,7 +3163,7 @@ public EventHandlerType() { public virtual IList<Microsoft.SqlServer.Dts.EventHandlerType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.EventHandlerType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -3184,15 +3173,22 @@ public virtual IList<Microsoft.SqlServer.Dts.EventHandlerType.PropertyLocalType> } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.EventHandlerType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.EventHandlerType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3223,6 +3219,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VariableXName = System.Xml.Linq.XName.Get("Variable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<VariableType> VariableField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3253,6 +3256,10 @@ public virtual IList<VariableType> Variable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LoggingOptionsXName = System.Xml.Linq.XName.Get("LoggingOptions", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -3271,6 +3278,13 @@ public virtual LoggingOptionsType LoggingOptions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<AnyNonPackageExecutableType> ExecutableField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3301,6 +3315,13 @@ public virtual IList<AnyNonPackageExecutableType> Executable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PrecedenceConstraintXName = System.Xml.Linq.XName.Get("PrecedenceConstraint", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PrecedenceConstraintType> PrecedenceConstraintField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3331,6 +3352,25 @@ public virtual IList<PrecedenceConstraintType> PrecedenceConstraint { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("EventHandlerType", "www.microsoft.com/SqlServer/Dts"); + + static EventHandlerType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(VariableXName), new NamedContentModelEntity(LoggingOptionsXName), new NamedContentModelEntity(ExecutableXName), new NamedContentModelEntity(PrecedenceConstraintXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(VariableXName, typeof(VariableType)); + localElementDictionary.Add(LoggingOptionsXName, typeof(LoggingOptionsType)); + localElementDictionary.Add(ExecutableXName, typeof(AnyNonPackageExecutableType)); + localElementDictionary.Add(PrecedenceConstraintXName, typeof(PrecedenceConstraintType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3338,6 +3378,13 @@ public virtual IList<PrecedenceConstraintType> PrecedenceConstraint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3359,36 +3406,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<EventHandlerType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(VariableXName, typeof(VariableType)); - localElementDictionary.Add(LoggingOptionsXName, typeof(LoggingOptionsType)); - localElementDictionary.Add(ExecutableXName, typeof(AnyNonPackageExecutableType)); - localElementDictionary.Add(PrecedenceConstraintXName, typeof(PrecedenceConstraintType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -3404,6 +3436,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3424,10 +3458,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -3438,37 +3468,10 @@ public override XTypedElement Clone() { /// </summary> public partial class ForEachEnumeratorType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachEnumeratorType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ForEachEnumeratorType(XElement xe) { return XTypedServices.ToXTypedElement<ForEachEnumeratorType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ForEachEnumeratorType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ObjectDataXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ForEachEnumeratorType>(this); } /// <summary> @@ -3479,6 +3482,13 @@ static ForEachEnumeratorType() { public ForEachEnumeratorType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.ForEachEnumeratorType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -3490,7 +3500,7 @@ public ForEachEnumeratorType() { public virtual IList<Microsoft.SqlServer.Dts.ForEachEnumeratorType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.ForEachEnumeratorType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -3500,15 +3510,22 @@ public virtual IList<Microsoft.SqlServer.Dts.ForEachEnumeratorType.PropertyLocal } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.ForEachEnumeratorType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.ForEachEnumeratorType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3539,6 +3556,10 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ObjectDataXName = System.Xml.Linq.XName.Get("ObjectData", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -3557,6 +3578,22 @@ public virtual ForEachEnumeratorObjectDataType ObjectData { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachEnumeratorType", "www.microsoft.com/SqlServer/Dts"); + + static ForEachEnumeratorType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName), new NamedContentModelEntity(ObjectDataXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + localElementDictionary.Add(ObjectDataXName, typeof(ForEachEnumeratorObjectDataType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3564,6 +3601,13 @@ public virtual ForEachEnumeratorObjectDataType ObjectData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3585,33 +3629,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ForEachEnumeratorType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - localElementDictionary.Add(ObjectDataXName, typeof(ForEachEnumeratorObjectDataType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -3620,13 +3652,15 @@ public PropertyLocalType() { public virtual Microsoft.SqlServer.Dts.BasePropertyNameEnum Name { get { XAttribute x = this.Attribute(NameXName); - return ((Microsoft.SqlServer.Dts.BasePropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.BasePropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.BasePropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.BasePropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(NameXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(NameXName, value.ToString(), "Name", global::Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3647,10 +3681,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -3661,33 +3691,10 @@ public override XTypedElement Clone() { /// </summary> public partial class ForEachVariableMappingType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyExpressionElementType> PropertyExpressionField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachVariableMappingType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ForEachVariableMappingType(XElement xe) { return XTypedServices.ToXTypedElement<ForEachVariableMappingType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ForEachVariableMappingType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ForEachVariableMappingType>(this); } /// <summary> @@ -3698,6 +3705,13 @@ static ForEachVariableMappingType() { public ForEachVariableMappingType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.ForEachVariableMappingType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -3709,7 +3723,7 @@ public ForEachVariableMappingType() { public virtual IList<Microsoft.SqlServer.Dts.ForEachVariableMappingType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.ForEachVariableMappingType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -3719,15 +3733,22 @@ public virtual IList<Microsoft.SqlServer.Dts.ForEachVariableMappingType.Property } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.ForEachVariableMappingType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.ForEachVariableMappingType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyExpressionXName = System.Xml.Linq.XName.Get("PropertyExpression", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PropertyExpressionElementType> PropertyExpressionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -3758,6 +3779,21 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachVariableMappingType", "www.microsoft.com/SqlServer/Dts"); + + static ForEachVariableMappingType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new NamedContentModelEntity(PropertyExpressionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -3765,6 +3801,13 @@ public virtual IList<PropertyExpressionElementType> PropertyExpression { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3786,32 +3829,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ForEachVariableMappingType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(PropertyExpressionXName, typeof(PropertyExpressionElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -3827,6 +3859,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -3847,10 +3881,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -3861,127 +3891,10 @@ public override XTypedElement Clone() { /// </summary> public partial class ExecutableObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pipelineXName = System.Xml.Linq.XName.Get("pipeline", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ActiveXScriptTaskDataXName = System.Xml.Linq.XName.Get("ActiveXScriptTaskData", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ASDdlDataXName = System.Xml.Linq.XName.Get("ASDdlData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ASProcessingDataXName = System.Xml.Linq.XName.Get("ASProcessingData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BulkInsertTaskDataXName = System.Xml.Linq.XName.Get("BulkInsertTaskData", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DMQueryTaskDataXName = System.Xml.Linq.XName.Get("DMQueryTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataProfilingTaskDataXName = System.Xml.Linq.XName.Get("DataProfilingTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName Exec80PackageTaskDataXName = System.Xml.Linq.XName.Get("Exec80PackageTaskData", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutePackageTaskXName = System.Xml.Linq.XName.Get("ExecutePackageTask", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecuteProcessDataXName = System.Xml.Linq.XName.Get("ExecuteProcessData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlTaskDataXName = System.Xml.Linq.XName.Get("SqlTaskData", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileSystemDataXName = System.Xml.Linq.XName.Get("FileSystemData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FtpDataXName = System.Xml.Linq.XName.Get("FtpData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MessageQueueTaskDataXName = System.Xml.Linq.XName.Get("MessageQueueTaskData", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ScriptProjectXName = System.Xml.Linq.XName.Get("ScriptProject", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SendMailTaskDataXName = System.Xml.Linq.XName.Get("SendMailTaskData", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferDatabasesTaskDataXName = System.Xml.Linq.XName.Get("TransferDatabasesTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferErrorMessagesTaskDataXName = System.Xml.Linq.XName.Get("TransferErrorMessagesTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferJobsTaskDataXName = System.Xml.Linq.XName.Get("TransferJobsTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferLoginsTaskDataXName = System.Xml.Linq.XName.Get("TransferLoginsTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferStoredProceduresTaskDataXName = System.Xml.Linq.XName.Get("TransferStoredProceduresTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferSqlServerObjectsTaskDataXName = System.Xml.Linq.XName.Get("TransferSqlServerObjectsTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WebServiceTaskDataXName = System.Xml.Linq.XName.Get("WebServiceTaskData", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WMIDRTaskDataXName = System.Xml.Linq.XName.Get("WMIDRTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WMIEWTaskDataXName = System.Xml.Linq.XName.Get("WMIEWTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName XMLTaskDataXName = System.Xml.Linq.XName.Get("XMLTaskData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InnerObjectXName = System.Xml.Linq.XName.Get("InnerObject", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecutableObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ExecutableObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ExecutableObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ExecutableObjectDataType() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(pipelineXName), new NamedContentModelEntity(ActiveXScriptTaskDataXName), new NamedContentModelEntity(ASDdlDataXName), new NamedContentModelEntity(ASProcessingDataXName), new NamedContentModelEntity(BulkInsertTaskDataXName), new NamedContentModelEntity(DMQueryTaskDataXName), new NamedContentModelEntity(DataProfilingTaskDataXName), new NamedContentModelEntity(Exec80PackageTaskDataXName), new NamedContentModelEntity(ExecutePackageTaskXName), new NamedContentModelEntity(ExecuteProcessDataXName), new NamedContentModelEntity(SqlTaskDataXName), new NamedContentModelEntity(FileSystemDataXName), new NamedContentModelEntity(FtpDataXName), new NamedContentModelEntity(MessageQueueTaskDataXName), new NamedContentModelEntity(ScriptProjectXName), new NamedContentModelEntity(SendMailTaskDataXName), new NamedContentModelEntity(TransferDatabasesTaskDataXName), new NamedContentModelEntity(TransferErrorMessagesTaskDataXName), new NamedContentModelEntity(TransferJobsTaskDataXName), new NamedContentModelEntity(TransferLoginsTaskDataXName), new NamedContentModelEntity(TransferStoredProceduresTaskDataXName), new NamedContentModelEntity(TransferSqlServerObjectsTaskDataXName), new NamedContentModelEntity(WebServiceTaskDataXName), new NamedContentModelEntity(WMIDRTaskDataXName), new NamedContentModelEntity(WMIEWTaskDataXName), new NamedContentModelEntity(XMLTaskDataXName), new NamedContentModelEntity(InnerObjectXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ExecutableObjectDataType>(this); } /// <summary> @@ -3992,113 +3905,9 @@ static ExecutableObjectDataType() { public ExecutableObjectDataType() { } - public ExecutableObjectDataType(pipelineObjectDataType pipeline) { - this.pipeline = pipeline; - } - - public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData ActiveXScriptTaskData) { - this.ActiveXScriptTaskData = ActiveXScriptTaskData; - } - - public ExecutableObjectDataType(ASDdlDataObjectDataType ASDdlData) { - this.ASDdlData = ASDdlData; - } - - public ExecutableObjectDataType(ASProcessingDataObjectDataType ASProcessingData) { - this.ASProcessingData = ASProcessingData; - } - - public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData BulkInsertTaskData) { - this.BulkInsertTaskData = BulkInsertTaskData; - } - - public ExecutableObjectDataType(DMQueryTaskDataObjectDataType DMQueryTaskData) { - this.DMQueryTaskData = DMQueryTaskData; - } - - public ExecutableObjectDataType(DataProfilingTaskDataObjectDataType DataProfilingTaskData) { - this.DataProfilingTaskData = DataProfilingTaskData; - } - - public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData Exec80PackageTaskData) { - this.Exec80PackageTaskData = Exec80PackageTaskData; - } - - public ExecutableObjectDataType(ExecutePackageTaskObjectDataType ExecutePackageTask) { - this.ExecutePackageTask = ExecutePackageTask; - } - - public ExecutableObjectDataType(ExecuteProcessDataObjectDataType ExecuteProcessData) { - this.ExecuteProcessData = ExecuteProcessData; - } - - public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData SqlTaskData) { - this.SqlTaskData = SqlTaskData; - } - - public ExecutableObjectDataType(FileSystemDataObjectDataType FileSystemData) { - this.FileSystemData = FileSystemData; - } - - public ExecutableObjectDataType(FtpDataObjectDataType FtpData) { - this.FtpData = FtpData; - } - - public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData MessageQueueTaskData) { - this.MessageQueueTaskData = MessageQueueTaskData; - } - - public ExecutableObjectDataType(ScriptProjectObjectDataType ScriptProject) { - this.ScriptProject = ScriptProject; - } - - public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData SendMailTaskData) { - this.SendMailTaskData = SendMailTaskData; - } - - public ExecutableObjectDataType(TransferDatabasesTaskDataObjectDataType TransferDatabasesTaskData) { - this.TransferDatabasesTaskData = TransferDatabasesTaskData; - } - - public ExecutableObjectDataType(TransferErrorMessagesTaskDataObjectDataType TransferErrorMessagesTaskData) { - this.TransferErrorMessagesTaskData = TransferErrorMessagesTaskData; - } - - public ExecutableObjectDataType(TransferJobsTaskDataObjectDataType TransferJobsTaskData) { - this.TransferJobsTaskData = TransferJobsTaskData; - } - - public ExecutableObjectDataType(TransferLoginsTaskDataObjectDataType TransferLoginsTaskData) { - this.TransferLoginsTaskData = TransferLoginsTaskData; - } - - public ExecutableObjectDataType(TransferStoredProceduresTaskDataObjectDataType TransferStoredProceduresTaskData) { - this.TransferStoredProceduresTaskData = TransferStoredProceduresTaskData; - } - - public ExecutableObjectDataType(TransferSqlServerObjectsTaskDataObjectDataType TransferSqlServerObjectsTaskData) { - this.TransferSqlServerObjectsTaskData = TransferSqlServerObjectsTaskData; - } - - public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData WebServiceTaskData) { - this.WebServiceTaskData = WebServiceTaskData; - } - - public ExecutableObjectDataType(WMIDRTaskDataObjectDataType WMIDRTaskData) { - this.WMIDRTaskData = WMIDRTaskData; - } - - public ExecutableObjectDataType(WMIEWTaskDataObjectDataType WMIEWTaskData) { - this.WMIEWTaskData = WMIEWTaskData; - } - - public ExecutableObjectDataType(XMLTaskDataObjectDataType XMLTaskData) { - this.XMLTaskData = XMLTaskData; - } - - public ExecutableObjectDataType(InnerObjectObjectDataType InnerObject) { - this.InnerObject = InnerObject; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pipelineXName = System.Xml.Linq.XName.Get("pipeline", ""); /// <summary> /// <para> @@ -4111,6 +3920,9 @@ public ExecutableObjectDataType(InnerObjectObjectDataType InnerObject) { public virtual pipelineObjectDataType pipeline { get { XElement x = this.GetElement(pipelineXName); + if ((x == null)) { + return null; + } return ((pipelineObjectDataType)(x)); } set { @@ -4118,6 +3930,10 @@ public virtual pipelineObjectDataType pipeline { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ActiveXScriptTaskDataXName = System.Xml.Linq.XName.Get("ActiveXScriptTaskData", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4129,6 +3945,9 @@ public virtual pipelineObjectDataType pipeline { public virtual Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData ActiveXScriptTaskData { get { XElement x = this.GetElement(ActiveXScriptTaskDataXName); + if ((x == null)) { + return null; + } return ((Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData)(x)); } set { @@ -4136,6 +3955,10 @@ public virtual Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTask } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ASDdlDataXName = System.Xml.Linq.XName.Get("ASDdlData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4147,6 +3970,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTask public virtual ASDdlDataObjectDataType ASDdlData { get { XElement x = this.GetElement(ASDdlDataXName); + if ((x == null)) { + return null; + } return ((ASDdlDataObjectDataType)(x)); } set { @@ -4154,6 +3980,10 @@ public virtual ASDdlDataObjectDataType ASDdlData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ASProcessingDataXName = System.Xml.Linq.XName.Get("ASProcessingData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4165,6 +3995,9 @@ public virtual ASDdlDataObjectDataType ASDdlData { public virtual ASProcessingDataObjectDataType ASProcessingData { get { XElement x = this.GetElement(ASProcessingDataXName); + if ((x == null)) { + return null; + } return ((ASProcessingDataObjectDataType)(x)); } set { @@ -4172,6 +4005,10 @@ public virtual ASProcessingDataObjectDataType ASProcessingData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BulkInsertTaskDataXName = System.Xml.Linq.XName.Get("BulkInsertTaskData", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4183,6 +4020,9 @@ public virtual ASProcessingDataObjectDataType ASProcessingData { public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData BulkInsertTaskData { get { XElement x = this.GetElement(BulkInsertTaskDataXName); + if ((x == null)) { + return null; + } return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData)(x)); } set { @@ -4190,6 +4030,10 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData B } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DMQueryTaskDataXName = System.Xml.Linq.XName.Get("DMQueryTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4201,6 +4045,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData B public virtual DMQueryTaskDataObjectDataType DMQueryTaskData { get { XElement x = this.GetElement(DMQueryTaskDataXName); + if ((x == null)) { + return null; + } return ((DMQueryTaskDataObjectDataType)(x)); } set { @@ -4208,6 +4055,10 @@ public virtual DMQueryTaskDataObjectDataType DMQueryTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataProfilingTaskDataXName = System.Xml.Linq.XName.Get("DataProfilingTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4219,6 +4070,9 @@ public virtual DMQueryTaskDataObjectDataType DMQueryTaskData { public virtual DataProfilingTaskDataObjectDataType DataProfilingTaskData { get { XElement x = this.GetElement(DataProfilingTaskDataXName); + if ((x == null)) { + return null; + } return ((DataProfilingTaskDataObjectDataType)(x)); } set { @@ -4226,6 +4080,10 @@ public virtual DataProfilingTaskDataObjectDataType DataProfilingTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName Exec80PackageTaskDataXName = System.Xml.Linq.XName.Get("Exec80PackageTaskData", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4237,6 +4095,9 @@ public virtual DataProfilingTaskDataObjectDataType DataProfilingTaskData { public virtual Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData Exec80PackageTaskData { get { XElement x = this.GetElement(Exec80PackageTaskDataXName); + if ((x == null)) { + return null; + } return ((Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData)(x)); } set { @@ -4244,6 +4105,10 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecutePackageTaskXName = System.Xml.Linq.XName.Get("ExecutePackageTask", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4255,6 +4120,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask public virtual ExecutePackageTaskObjectDataType ExecutePackageTask { get { XElement x = this.GetElement(ExecutePackageTaskXName); + if ((x == null)) { + return null; + } return ((ExecutePackageTaskObjectDataType)(x)); } set { @@ -4262,6 +4130,10 @@ public virtual ExecutePackageTaskObjectDataType ExecutePackageTask { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecuteProcessDataXName = System.Xml.Linq.XName.Get("ExecuteProcessData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4273,6 +4145,9 @@ public virtual ExecutePackageTaskObjectDataType ExecutePackageTask { public virtual ExecuteProcessDataObjectDataType ExecuteProcessData { get { XElement x = this.GetElement(ExecuteProcessDataXName); + if ((x == null)) { + return null; + } return ((ExecuteProcessDataObjectDataType)(x)); } set { @@ -4280,6 +4155,10 @@ public virtual ExecuteProcessDataObjectDataType ExecuteProcessData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlTaskDataXName = System.Xml.Linq.XName.Get("SqlTaskData", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4291,6 +4170,9 @@ public virtual ExecuteProcessDataObjectDataType ExecuteProcessData { public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData SqlTaskData { get { XElement x = this.GetElement(SqlTaskDataXName); + if ((x == null)) { + return null; + } return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData)(x)); } set { @@ -4298,6 +4180,10 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData SqlTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileSystemDataXName = System.Xml.Linq.XName.Get("FileSystemData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4309,6 +4195,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData SqlTaskData { public virtual FileSystemDataObjectDataType FileSystemData { get { XElement x = this.GetElement(FileSystemDataXName); + if ((x == null)) { + return null; + } return ((FileSystemDataObjectDataType)(x)); } set { @@ -4316,6 +4205,10 @@ public virtual FileSystemDataObjectDataType FileSystemData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FtpDataXName = System.Xml.Linq.XName.Get("FtpData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4327,6 +4220,9 @@ public virtual FileSystemDataObjectDataType FileSystemData { public virtual FtpDataObjectDataType FtpData { get { XElement x = this.GetElement(FtpDataXName); + if ((x == null)) { + return null; + } return ((FtpDataObjectDataType)(x)); } set { @@ -4334,6 +4230,10 @@ public virtual FtpDataObjectDataType FtpData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MessageQueueTaskDataXName = System.Xml.Linq.XName.Get("MessageQueueTaskData", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4345,6 +4245,9 @@ public virtual FtpDataObjectDataType FtpData { public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData MessageQueueTaskData { get { XElement x = this.GetElement(MessageQueueTaskDataXName); + if ((x == null)) { + return null; + } return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData)(x)); } set { @@ -4352,6 +4255,10 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskDa } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ScriptProjectXName = System.Xml.Linq.XName.Get("ScriptProject", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4363,6 +4270,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskDa public virtual ScriptProjectObjectDataType ScriptProject { get { XElement x = this.GetElement(ScriptProjectXName); + if ((x == null)) { + return null; + } return ((ScriptProjectObjectDataType)(x)); } set { @@ -4370,6 +4280,10 @@ public virtual ScriptProjectObjectDataType ScriptProject { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SendMailTaskDataXName = System.Xml.Linq.XName.Get("SendMailTaskData", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4381,6 +4295,9 @@ public virtual ScriptProjectObjectDataType ScriptProject { public virtual Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData SendMailTaskData { get { XElement x = this.GetElement(SendMailTaskDataXName); + if ((x == null)) { + return null; + } return ((Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData)(x)); } set { @@ -4388,6 +4305,10 @@ public virtual Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData SendM } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TransferDatabasesTaskDataXName = System.Xml.Linq.XName.Get("TransferDatabasesTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4399,6 +4320,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData SendM public virtual TransferDatabasesTaskDataObjectDataType TransferDatabasesTaskData { get { XElement x = this.GetElement(TransferDatabasesTaskDataXName); + if ((x == null)) { + return null; + } return ((TransferDatabasesTaskDataObjectDataType)(x)); } set { @@ -4406,6 +4330,10 @@ public virtual TransferDatabasesTaskDataObjectDataType TransferDatabasesTaskData } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TransferErrorMessagesTaskDataXName = System.Xml.Linq.XName.Get("TransferErrorMessagesTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4417,6 +4345,9 @@ public virtual TransferDatabasesTaskDataObjectDataType TransferDatabasesTaskData public virtual TransferErrorMessagesTaskDataObjectDataType TransferErrorMessagesTaskData { get { XElement x = this.GetElement(TransferErrorMessagesTaskDataXName); + if ((x == null)) { + return null; + } return ((TransferErrorMessagesTaskDataObjectDataType)(x)); } set { @@ -4424,6 +4355,10 @@ public virtual TransferErrorMessagesTaskDataObjectDataType TransferErrorMessages } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TransferJobsTaskDataXName = System.Xml.Linq.XName.Get("TransferJobsTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4435,6 +4370,9 @@ public virtual TransferErrorMessagesTaskDataObjectDataType TransferErrorMessages public virtual TransferJobsTaskDataObjectDataType TransferJobsTaskData { get { XElement x = this.GetElement(TransferJobsTaskDataXName); + if ((x == null)) { + return null; + } return ((TransferJobsTaskDataObjectDataType)(x)); } set { @@ -4442,6 +4380,10 @@ public virtual TransferJobsTaskDataObjectDataType TransferJobsTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TransferLoginsTaskDataXName = System.Xml.Linq.XName.Get("TransferLoginsTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4453,6 +4395,9 @@ public virtual TransferJobsTaskDataObjectDataType TransferJobsTaskData { public virtual TransferLoginsTaskDataObjectDataType TransferLoginsTaskData { get { XElement x = this.GetElement(TransferLoginsTaskDataXName); + if ((x == null)) { + return null; + } return ((TransferLoginsTaskDataObjectDataType)(x)); } set { @@ -4460,6 +4405,10 @@ public virtual TransferLoginsTaskDataObjectDataType TransferLoginsTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TransferStoredProceduresTaskDataXName = System.Xml.Linq.XName.Get("TransferStoredProceduresTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4471,6 +4420,9 @@ public virtual TransferLoginsTaskDataObjectDataType TransferLoginsTaskData { public virtual TransferStoredProceduresTaskDataObjectDataType TransferStoredProceduresTaskData { get { XElement x = this.GetElement(TransferStoredProceduresTaskDataXName); + if ((x == null)) { + return null; + } return ((TransferStoredProceduresTaskDataObjectDataType)(x)); } set { @@ -4478,6 +4430,10 @@ public virtual TransferStoredProceduresTaskDataObjectDataType TransferStoredProc } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TransferSqlServerObjectsTaskDataXName = System.Xml.Linq.XName.Get("TransferSqlServerObjectsTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4489,6 +4445,9 @@ public virtual TransferStoredProceduresTaskDataObjectDataType TransferStoredProc public virtual TransferSqlServerObjectsTaskDataObjectDataType TransferSqlServerObjectsTaskData { get { XElement x = this.GetElement(TransferSqlServerObjectsTaskDataXName); + if ((x == null)) { + return null; + } return ((TransferSqlServerObjectsTaskDataObjectDataType)(x)); } set { @@ -4496,6 +4455,10 @@ public virtual TransferSqlServerObjectsTaskDataObjectDataType TransferSqlServerO } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WebServiceTaskDataXName = System.Xml.Linq.XName.Get("WebServiceTaskData", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4507,6 +4470,9 @@ public virtual TransferSqlServerObjectsTaskDataObjectDataType TransferSqlServerO public virtual Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData WebServiceTaskData { get { XElement x = this.GetElement(WebServiceTaskDataXName); + if ((x == null)) { + return null; + } return ((Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData)(x)); } set { @@ -4514,6 +4480,10 @@ public virtual Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData W } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WMIDRTaskDataXName = System.Xml.Linq.XName.Get("WMIDRTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4525,6 +4495,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData W public virtual WMIDRTaskDataObjectDataType WMIDRTaskData { get { XElement x = this.GetElement(WMIDRTaskDataXName); + if ((x == null)) { + return null; + } return ((WMIDRTaskDataObjectDataType)(x)); } set { @@ -4532,6 +4505,10 @@ public virtual WMIDRTaskDataObjectDataType WMIDRTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WMIEWTaskDataXName = System.Xml.Linq.XName.Get("WMIEWTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4543,6 +4520,9 @@ public virtual WMIDRTaskDataObjectDataType WMIDRTaskData { public virtual WMIEWTaskDataObjectDataType WMIEWTaskData { get { XElement x = this.GetElement(WMIEWTaskDataXName); + if ((x == null)) { + return null; + } return ((WMIEWTaskDataObjectDataType)(x)); } set { @@ -4550,6 +4530,10 @@ public virtual WMIEWTaskDataObjectDataType WMIEWTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName XMLTaskDataXName = System.Xml.Linq.XName.Get("XMLTaskData", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4561,6 +4545,9 @@ public virtual WMIEWTaskDataObjectDataType WMIEWTaskData { public virtual XMLTaskDataObjectDataType XMLTaskData { get { XElement x = this.GetElement(XMLTaskDataXName); + if ((x == null)) { + return null; + } return ((XMLTaskDataObjectDataType)(x)); } set { @@ -4568,6 +4555,10 @@ public virtual XMLTaskDataObjectDataType XMLTaskData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InnerObjectXName = System.Xml.Linq.XName.Get("InnerObject", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -4579,6 +4570,9 @@ public virtual XMLTaskDataObjectDataType XMLTaskData { public virtual InnerObjectObjectDataType InnerObject { get { XElement x = this.GetElement(InnerObjectXName); + if ((x == null)) { + return null; + } return ((InnerObjectObjectDataType)(x)); } set { @@ -4586,94 +4580,205 @@ public virtual InnerObjectObjectDataType InnerObject { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } + public ExecutableObjectDataType(pipelineObjectDataType pipeline) { + this.pipeline = pipeline; } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } + public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData ActiveXScriptTaskData) { + this.ActiveXScriptTaskData = ActiveXScriptTaskData; } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Fragment; - } + public ExecutableObjectDataType(ASDdlDataObjectDataType ASDdlData) { + this.ASDdlData = ASDdlData; } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } + public ExecutableObjectDataType(ASProcessingDataObjectDataType ASProcessingData) { + this.ASProcessingData = ASProcessingData; } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ExecutableObjectDataType>(this); + public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData BulkInsertTaskData) { + this.BulkInsertTaskData = BulkInsertTaskData; } - private static void BuildElementDictionary() { - localElementDictionary.Add(pipelineXName, typeof(pipelineObjectDataType)); - localElementDictionary.Add(ActiveXScriptTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData)); - localElementDictionary.Add(ASDdlDataXName, typeof(ASDdlDataObjectDataType)); - localElementDictionary.Add(ASProcessingDataXName, typeof(ASProcessingDataObjectDataType)); - localElementDictionary.Add(BulkInsertTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData)); - localElementDictionary.Add(DMQueryTaskDataXName, typeof(DMQueryTaskDataObjectDataType)); - localElementDictionary.Add(DataProfilingTaskDataXName, typeof(DataProfilingTaskDataObjectDataType)); - localElementDictionary.Add(Exec80PackageTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData)); - localElementDictionary.Add(ExecutePackageTaskXName, typeof(ExecutePackageTaskObjectDataType)); - localElementDictionary.Add(ExecuteProcessDataXName, typeof(ExecuteProcessDataObjectDataType)); - localElementDictionary.Add(SqlTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData)); - localElementDictionary.Add(FileSystemDataXName, typeof(FileSystemDataObjectDataType)); - localElementDictionary.Add(FtpDataXName, typeof(FtpDataObjectDataType)); - localElementDictionary.Add(MessageQueueTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData)); - localElementDictionary.Add(ScriptProjectXName, typeof(ScriptProjectObjectDataType)); - localElementDictionary.Add(SendMailTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData)); - localElementDictionary.Add(TransferDatabasesTaskDataXName, typeof(TransferDatabasesTaskDataObjectDataType)); - localElementDictionary.Add(TransferErrorMessagesTaskDataXName, typeof(TransferErrorMessagesTaskDataObjectDataType)); - localElementDictionary.Add(TransferJobsTaskDataXName, typeof(TransferJobsTaskDataObjectDataType)); - localElementDictionary.Add(TransferLoginsTaskDataXName, typeof(TransferLoginsTaskDataObjectDataType)); - localElementDictionary.Add(TransferStoredProceduresTaskDataXName, typeof(TransferStoredProceduresTaskDataObjectDataType)); - localElementDictionary.Add(TransferSqlServerObjectsTaskDataXName, typeof(TransferSqlServerObjectsTaskDataObjectDataType)); - localElementDictionary.Add(WebServiceTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData)); - localElementDictionary.Add(WMIDRTaskDataXName, typeof(WMIDRTaskDataObjectDataType)); - localElementDictionary.Add(WMIEWTaskDataXName, typeof(WMIEWTaskDataObjectDataType)); - localElementDictionary.Add(XMLTaskDataXName, typeof(XMLTaskDataObjectDataType)); - localElementDictionary.Add(InnerObjectXName, typeof(InnerObjectObjectDataType)); + public ExecutableObjectDataType(DMQueryTaskDataObjectDataType DMQueryTaskData) { + this.DMQueryTaskData = DMQueryTaskData; } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + public ExecutableObjectDataType(DataProfilingTaskDataObjectDataType DataProfilingTaskData) { + this.DataProfilingTaskData = DataProfilingTaskData; } - } - - public partial class ASDdlDataObjectDataType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceTypeXName = System.Xml.Linq.XName.Get("SourceType", ""); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceXName = System.Xml.Linq.XName.Get("Source", ""); + public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData Exec80PackageTaskData) { + this.Exec80PackageTaskData = Exec80PackageTaskData; + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ASDdlDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + public ExecutableObjectDataType(ExecutePackageTaskObjectDataType ExecutePackageTask) { + this.ExecutePackageTask = ExecutePackageTask; + } - public static explicit operator ASDdlDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ASDdlDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public ExecutableObjectDataType(ExecuteProcessDataObjectDataType ExecuteProcessData) { + this.ExecuteProcessData = ExecuteProcessData; + } - public ASDdlDataObjectDataType() { + public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData SqlTaskData) { + this.SqlTaskData = SqlTaskData; } + public ExecutableObjectDataType(FileSystemDataObjectDataType FileSystemData) { + this.FileSystemData = FileSystemData; + } + + public ExecutableObjectDataType(FtpDataObjectDataType FtpData) { + this.FtpData = FtpData; + } + + public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData MessageQueueTaskData) { + this.MessageQueueTaskData = MessageQueueTaskData; + } + + public ExecutableObjectDataType(ScriptProjectObjectDataType ScriptProject) { + this.ScriptProject = ScriptProject; + } + + public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData SendMailTaskData) { + this.SendMailTaskData = SendMailTaskData; + } + + public ExecutableObjectDataType(TransferDatabasesTaskDataObjectDataType TransferDatabasesTaskData) { + this.TransferDatabasesTaskData = TransferDatabasesTaskData; + } + + public ExecutableObjectDataType(TransferErrorMessagesTaskDataObjectDataType TransferErrorMessagesTaskData) { + this.TransferErrorMessagesTaskData = TransferErrorMessagesTaskData; + } + + public ExecutableObjectDataType(TransferJobsTaskDataObjectDataType TransferJobsTaskData) { + this.TransferJobsTaskData = TransferJobsTaskData; + } + + public ExecutableObjectDataType(TransferLoginsTaskDataObjectDataType TransferLoginsTaskData) { + this.TransferLoginsTaskData = TransferLoginsTaskData; + } + + public ExecutableObjectDataType(TransferStoredProceduresTaskDataObjectDataType TransferStoredProceduresTaskData) { + this.TransferStoredProceduresTaskData = TransferStoredProceduresTaskData; + } + + public ExecutableObjectDataType(TransferSqlServerObjectsTaskDataObjectDataType TransferSqlServerObjectsTaskData) { + this.TransferSqlServerObjectsTaskData = TransferSqlServerObjectsTaskData; + } + + public ExecutableObjectDataType(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData WebServiceTaskData) { + this.WebServiceTaskData = WebServiceTaskData; + } + + public ExecutableObjectDataType(WMIDRTaskDataObjectDataType WMIDRTaskData) { + this.WMIDRTaskData = WMIDRTaskData; + } + + public ExecutableObjectDataType(WMIEWTaskDataObjectDataType WMIEWTaskData) { + this.WMIEWTaskData = WMIEWTaskData; + } + + public ExecutableObjectDataType(XMLTaskDataObjectDataType XMLTaskData) { + this.XMLTaskData = XMLTaskData; + } + + public ExecutableObjectDataType(InnerObjectObjectDataType InnerObject) { + this.InnerObject = InnerObject; + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecutableObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static ExecutableObjectDataType() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(pipelineXName), new NamedContentModelEntity(ActiveXScriptTaskDataXName), new NamedContentModelEntity(ASDdlDataXName), new NamedContentModelEntity(ASProcessingDataXName), new NamedContentModelEntity(BulkInsertTaskDataXName), new NamedContentModelEntity(DMQueryTaskDataXName), new NamedContentModelEntity(DataProfilingTaskDataXName), new NamedContentModelEntity(Exec80PackageTaskDataXName), new NamedContentModelEntity(ExecutePackageTaskXName), new NamedContentModelEntity(ExecuteProcessDataXName), new NamedContentModelEntity(SqlTaskDataXName), new NamedContentModelEntity(FileSystemDataXName), new NamedContentModelEntity(FtpDataXName), new NamedContentModelEntity(MessageQueueTaskDataXName), new NamedContentModelEntity(ScriptProjectXName), new NamedContentModelEntity(SendMailTaskDataXName), new NamedContentModelEntity(TransferDatabasesTaskDataXName), new NamedContentModelEntity(TransferErrorMessagesTaskDataXName), new NamedContentModelEntity(TransferJobsTaskDataXName), new NamedContentModelEntity(TransferLoginsTaskDataXName), new NamedContentModelEntity(TransferStoredProceduresTaskDataXName), new NamedContentModelEntity(TransferSqlServerObjectsTaskDataXName), new NamedContentModelEntity(WebServiceTaskDataXName), new NamedContentModelEntity(WMIDRTaskDataXName), new NamedContentModelEntity(WMIEWTaskDataXName), new NamedContentModelEntity(XMLTaskDataXName), new NamedContentModelEntity(InnerObjectXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(pipelineXName, typeof(pipelineObjectDataType)); + localElementDictionary.Add(ActiveXScriptTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData)); + localElementDictionary.Add(ASDdlDataXName, typeof(ASDdlDataObjectDataType)); + localElementDictionary.Add(ASProcessingDataXName, typeof(ASProcessingDataObjectDataType)); + localElementDictionary.Add(BulkInsertTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData)); + localElementDictionary.Add(DMQueryTaskDataXName, typeof(DMQueryTaskDataObjectDataType)); + localElementDictionary.Add(DataProfilingTaskDataXName, typeof(DataProfilingTaskDataObjectDataType)); + localElementDictionary.Add(Exec80PackageTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData)); + localElementDictionary.Add(ExecutePackageTaskXName, typeof(ExecutePackageTaskObjectDataType)); + localElementDictionary.Add(ExecuteProcessDataXName, typeof(ExecuteProcessDataObjectDataType)); + localElementDictionary.Add(SqlTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData)); + localElementDictionary.Add(FileSystemDataXName, typeof(FileSystemDataObjectDataType)); + localElementDictionary.Add(FtpDataXName, typeof(FtpDataObjectDataType)); + localElementDictionary.Add(MessageQueueTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData)); + localElementDictionary.Add(ScriptProjectXName, typeof(ScriptProjectObjectDataType)); + localElementDictionary.Add(SendMailTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData)); + localElementDictionary.Add(TransferDatabasesTaskDataXName, typeof(TransferDatabasesTaskDataObjectDataType)); + localElementDictionary.Add(TransferErrorMessagesTaskDataXName, typeof(TransferErrorMessagesTaskDataObjectDataType)); + localElementDictionary.Add(TransferJobsTaskDataXName, typeof(TransferJobsTaskDataObjectDataType)); + localElementDictionary.Add(TransferLoginsTaskDataXName, typeof(TransferLoginsTaskDataObjectDataType)); + localElementDictionary.Add(TransferStoredProceduresTaskDataXName, typeof(TransferStoredProceduresTaskDataObjectDataType)); + localElementDictionary.Add(TransferSqlServerObjectsTaskDataXName, typeof(TransferSqlServerObjectsTaskDataObjectDataType)); + localElementDictionary.Add(WebServiceTaskDataXName, typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData)); + localElementDictionary.Add(WMIDRTaskDataXName, typeof(WMIDRTaskDataObjectDataType)); + localElementDictionary.Add(WMIEWTaskDataXName, typeof(WMIEWTaskDataObjectDataType)); + localElementDictionary.Add(XMLTaskDataXName, typeof(XMLTaskDataObjectDataType)); + localElementDictionary.Add(InnerObjectXName, typeof(InnerObjectObjectDataType)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Fragment; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + public partial class ASDdlDataObjectDataType : XTypedElement, IXMetaData { + + public static explicit operator ASDdlDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ASDdlDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ASDdlDataObjectDataType>(this); + } + + public ASDdlDataObjectDataType() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4682,6 +4787,9 @@ public ASDdlDataObjectDataType() { public virtual string ConnectionName { get { XAttribute x = this.Attribute(ConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4689,6 +4797,10 @@ public virtual string ConnectionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceTypeXName = System.Xml.Linq.XName.Get("SourceType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4700,13 +4812,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SourceTypeXName, value.ToString(), "SourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceXName = System.Xml.Linq.XName.Get("Source", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4715,6 +4836,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SourceType { public virtual string Source { get { XAttribute x = this.Attribute(SourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4722,6 +4846,12 @@ public virtual string Source { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ASDdlDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4742,33 +4872,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ASDdlDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class ASProcessingDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProcessingCommandsXName = System.Xml.Linq.XName.Get("ProcessingCommands", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ASProcessingDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator ASProcessingDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ASProcessingDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ASProcessingDataObjectDataType>(this); + } + public ASProcessingDataObjectDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4777,6 +4897,9 @@ public ASProcessingDataObjectDataType() { public virtual string ConnectionName { get { XAttribute x = this.Attribute(ConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4784,6 +4907,10 @@ public virtual string ConnectionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProcessingCommandsXName = System.Xml.Linq.XName.Get("ProcessingCommands", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4792,6 +4919,9 @@ public virtual string ConnectionName { public virtual string ProcessingCommands { get { XAttribute x = this.Attribute(ProcessingCommandsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4799,6 +4929,12 @@ public virtual string ProcessingCommands { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ASProcessingDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -4819,14 +4955,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ASProcessingDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -4836,55 +4964,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class DMQueryTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName QueryStringXName = System.Xml.Linq.XName.Get("QueryString", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName QueryBuilderQueryStringXName = System.Xml.Linq.XName.Get("QueryBuilderQueryString", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName QueryBuilderSpecificationXName = System.Xml.Linq.XName.Get("QueryBuilderSpecification", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InputConnectionXName = System.Xml.Linq.XName.Get("InputConnection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputConnectionXName = System.Xml.Linq.XName.Get("OutputConnection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ModelStructureNameXName = System.Xml.Linq.XName.Get("ModelStructureName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ModelNameXName = System.Xml.Linq.XName.Get("ModelName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OverwriteOutputTableXName = System.Xml.Linq.XName.Get("OverwriteOutputTable", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputTableNameXName = System.Xml.Linq.XName.Get("OutputTableName", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DMQueryTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator DMQueryTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<DMQueryTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DMQueryTaskDataObjectDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(QueryStringXName), new NamedContentModelEntity(QueryBuilderQueryStringXName), new NamedContentModelEntity(QueryBuilderSpecificationXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DMQueryTaskDataObjectDataType>(this); } /// <summary> @@ -4895,6 +4978,10 @@ static DMQueryTaskDataObjectDataType() { public DMQueryTaskDataObjectDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QueryStringXName = System.Xml.Linq.XName.Get("QueryString", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4913,6 +5000,10 @@ public virtual DMQueryTaskQueryStringContainerType QueryString { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QueryBuilderQueryStringXName = System.Xml.Linq.XName.Get("QueryBuilderQueryString", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4931,6 +5022,10 @@ public virtual DMQueryTaskQueryStringContainerType QueryBuilderQueryString { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QueryBuilderSpecificationXName = System.Xml.Linq.XName.Get("QueryBuilderSpecification", ""); + /// <summary> /// <para> /// Occurrence: required @@ -4949,6 +5044,10 @@ public virtual DMQueryBuilderSpecificationType QueryBuilderSpecification { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InputConnectionXName = System.Xml.Linq.XName.Get("InputConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4957,6 +5056,9 @@ public virtual DMQueryBuilderSpecificationType QueryBuilderSpecification { public virtual string InputConnection { get { XAttribute x = this.Attribute(InputConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4964,6 +5066,10 @@ public virtual string InputConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputConnectionXName = System.Xml.Linq.XName.Get("OutputConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4972,6 +5078,9 @@ public virtual string InputConnection { public virtual string OutputConnection { get { XAttribute x = this.Attribute(OutputConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4979,6 +5088,10 @@ public virtual string OutputConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ModelStructureNameXName = System.Xml.Linq.XName.Get("ModelStructureName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -4987,6 +5100,9 @@ public virtual string OutputConnection { public virtual string ModelStructureName { get { XAttribute x = this.Attribute(ModelStructureNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -4994,6 +5110,10 @@ public virtual string ModelStructureName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ModelNameXName = System.Xml.Linq.XName.Get("ModelName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5002,6 +5122,9 @@ public virtual string ModelStructureName { public virtual string ModelName { get { XAttribute x = this.Attribute(ModelNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5009,6 +5132,28 @@ public virtual string ModelName { } } + public enum OverwriteOutputTableEnum { + + True, + + False, + } + + public sealed class OverwriteOutputTableEnumValidator { + + private OverwriteOutputTableEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OverwriteOutputTableXName = System.Xml.Linq.XName.Get("OverwriteOutputTable", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5020,13 +5165,22 @@ public virtual Microsoft.SqlServer.Dts.DMQueryTaskDataObjectDataType.OverwriteOu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.DMQueryTaskDataObjectDataType.OverwriteOutputTableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DMQueryTaskDataObjectDataType.OverwriteOutputTableEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.DMQueryTaskDataObjectDataType.OverwriteOutputTableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DMQueryTaskDataObjectDataType.OverwriteOutputTableEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, OverwriteOutputTableEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OverwriteOutputTableXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(OverwriteOutputTableXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OverwriteOutputTableXName, value.ToString(), "OverwriteOutputTable", OverwriteOutputTableEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputTableNameXName = System.Xml.Linq.XName.Get("OutputTableName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5035,6 +5189,9 @@ public virtual Microsoft.SqlServer.Dts.DMQueryTaskDataObjectDataType.OverwriteOu public virtual string OutputTableName { get { XAttribute x = this.Attribute(OutputTableNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5042,6 +5199,22 @@ public virtual string OutputTableName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DMQueryTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static DMQueryTaskDataObjectDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(QueryStringXName), new NamedContentModelEntity(QueryBuilderQueryStringXName), new NamedContentModelEntity(QueryBuilderSpecificationXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(QueryStringXName, typeof(DMQueryTaskQueryStringContainerType)); + localElementDictionary.Add(QueryBuilderQueryStringXName, typeof(DMQueryTaskQueryStringContainerType)); + localElementDictionary.Add(QueryBuilderSpecificationXName, typeof(DMQueryBuilderSpecificationType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5049,6 +5222,13 @@ public virtual string OutputTableName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5069,50 +5249,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DMQueryTaskDataObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(QueryStringXName, typeof(DMQueryTaskQueryStringContainerType)); - localElementDictionary.Add(QueryBuilderQueryStringXName, typeof(DMQueryTaskQueryStringContainerType)); - localElementDictionary.Add(QueryBuilderSpecificationXName, typeof(DMQueryBuilderSpecificationType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum OverwriteOutputTableEnum { - - True, - - False, - } } public partial class DMQueryTaskQueryStringContainerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DMQueryTaskQueryStringContainerType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator DMQueryTaskQueryStringContainerType(XElement xe) { return XTypedServices.ToXTypedElement<DMQueryTaskQueryStringContainerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DMQueryTaskQueryStringContainerType>(this); + } + public DMQueryTaskQueryStringContainerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -5123,6 +5276,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5141,6 +5298,10 @@ public virtual System.Boolean? Sensitive { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5159,6 +5320,12 @@ public virtual System.Boolean? Encrypted { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DMQueryTaskQueryStringContainerType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5179,14 +5346,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DMQueryTaskQueryStringContainerType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -5196,23 +5355,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class DMQueryBuilderSpecificationType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DMQueryBuilderSpecificationType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; - public static explicit operator DMQueryBuilderSpecificationType(XElement xe) { return XTypedServices.ToXTypedElement<DMQueryBuilderSpecificationType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DMQueryBuilderSpecificationType() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DMQueryBuilderSpecificationType>(this); } /// <summary> @@ -5234,6 +5380,10 @@ public virtual IEnumerable<XElement> Any { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5252,6 +5402,10 @@ public virtual System.Boolean? Sensitive { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5270,6 +5424,25 @@ public virtual System.Boolean? Encrypted { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DMQueryBuilderSpecificationType", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); + validationStates = new FSM(1, new Set<int>(1), transitions); + } + + static DMQueryBuilderSpecificationType() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5290,20 +5463,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DMQueryBuilderSpecificationType>(this); - } - - FSM IXMetaData.GetValidationStates() { - return validationStates; - } - - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); - validationStates = new FSM(1, new Set<int>(1), transitions); - } } /// <summary> @@ -5313,35 +5472,10 @@ private static void InitFSM() { /// </summary> public partial class DataProfilingTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProfileInputXName = System.Xml.Linq.XName.Get("ProfileInput", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationTypeXName = System.Xml.Linq.XName.Get("DestinationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationXName = System.Xml.Linq.XName.Get("Destination", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OverwriteDestinationXName = System.Xml.Linq.XName.Get("OverwriteDestination", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DataProfilingTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator DataProfilingTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<DataProfilingTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static DataProfilingTaskDataObjectDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ProfileInputXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<DataProfilingTaskDataObjectDataType>(this); } /// <summary> @@ -5352,6 +5486,10 @@ static DataProfilingTaskDataObjectDataType() { public DataProfilingTaskDataObjectDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProfileInputXName = System.Xml.Linq.XName.Get("ProfileInput", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5370,6 +5508,10 @@ public virtual string ProfileInput { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationTypeXName = System.Xml.Linq.XName.Get("DestinationType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5381,13 +5523,22 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DestinationType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DestinationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DestinationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DestinationTypeXName, value.ToString(), "DestinationType", global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationXName = System.Xml.Linq.XName.Get("Destination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5396,31 +5547,75 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DestinationType { public virtual string Destination { get { XAttribute x = this.Attribute(DestinationXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - set { - this.SetAttribute(DestinationXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } - - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual Microsoft.SqlServer.Dts.DataProfilingTaskDataObjectDataType.OverwriteDestinationEnum? OverwriteDestination { - get { - XAttribute x = this.Attribute(OverwriteDestinationXName); if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.DataProfilingTaskDataObjectDataType.OverwriteDestinationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DataProfilingTaskDataObjectDataType.OverwriteDestinationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { - this.SetAttribute(OverwriteDestinationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttribute(DestinationXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } + public enum OverwriteDestinationEnum { + + True, + + False, + } + + public sealed class OverwriteDestinationEnumValidator { + + private OverwriteDestinationEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OverwriteDestinationXName = System.Xml.Linq.XName.Get("OverwriteDestination", ""); + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual Microsoft.SqlServer.Dts.DataProfilingTaskDataObjectDataType.OverwriteDestinationEnum? OverwriteDestination { + get { + XAttribute x = this.Attribute(OverwriteDestinationXName); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.DataProfilingTaskDataObjectDataType.OverwriteDestinationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DataProfilingTaskDataObjectDataType.OverwriteDestinationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, OverwriteDestinationEnumValidator.TypeDefinition)))); + } + set { + if (value == null) { + this.SetAttribute(OverwriteDestinationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OverwriteDestinationXName, value.ToString(), "OverwriteDestination", OverwriteDestinationEnumValidator.TypeDefinition); + } + } + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("DataProfilingTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static DataProfilingTaskDataObjectDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ProfileInputXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ProfileInputXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5428,6 +5623,13 @@ public virtual Microsoft.SqlServer.Dts.DataProfilingTaskDataObjectDataType.Overw } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5448,25 +5650,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<DataProfilingTaskDataObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ProfileInputXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum OverwriteDestinationEnum { - - True, - - False, - } } public enum DestinationTypeEnum { @@ -5478,13 +5661,13 @@ public enum DestinationTypeEnum { public sealed class DestinationTypeEnumValidator { + private DestinationTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "FileConnection", "Variable"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private DestinationTypeEnumValidator() { - } } /// <summary> @@ -5494,43 +5677,10 @@ private DestinationTypeEnumValidator() { /// </summary> public partial class ExecutePackageTaskObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecuteOutOfProcessXName = System.Xml.Linq.XName.Get("ExecuteOutOfProcess", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PackageNameXName = System.Xml.Linq.XName.Get("PackageName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PackagePasswordXName = System.Xml.Linq.XName.Get("PackagePassword", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PackageIDXName = System.Xml.Linq.XName.Get("PackageID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VersionIDXName = System.Xml.Linq.XName.Get("VersionID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecutePackageTaskObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ExecutePackageTaskObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ExecutePackageTaskObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ExecutePackageTaskObjectDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ExecuteOutOfProcessXName), new NamedContentModelEntity(PackageNameXName), new NamedContentModelEntity(PackagePasswordXName), new NamedContentModelEntity(PackageIDXName), new NamedContentModelEntity(VersionIDXName), new NamedContentModelEntity(ConnectionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ExecutePackageTaskObjectDataType>(this); } /// <summary> @@ -5541,6 +5691,28 @@ static ExecutePackageTaskObjectDataType() { public ExecutePackageTaskObjectDataType() { } + public enum ExecuteOutOfProcessEnum { + + True, + + False, + } + + public sealed class ExecuteOutOfProcessEnumValidator { + + private ExecuteOutOfProcessEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExecuteOutOfProcessXName = System.Xml.Linq.XName.Get("ExecuteOutOfProcess", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5552,13 +5724,17 @@ public ExecutePackageTaskObjectDataType() { public virtual Microsoft.SqlServer.Dts.ExecutePackageTaskObjectDataType.ExecuteOutOfProcessEnum ExecuteOutOfProcess { get { XElement x = this.GetElement(ExecuteOutOfProcessXName); - return ((Microsoft.SqlServer.Dts.ExecutePackageTaskObjectDataType.ExecuteOutOfProcessEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecutePackageTaskObjectDataType.ExecuteOutOfProcessEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.ExecutePackageTaskObjectDataType.ExecuteOutOfProcessEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecutePackageTaskObjectDataType.ExecuteOutOfProcessEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExecuteOutOfProcessEnumValidator.TypeDefinition)))); } set { this.SetElementWithValidation(ExecuteOutOfProcessXName, value.ToString(), "ExecuteOutOfProcess", ExecuteOutOfProcessEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PackageNameXName = System.Xml.Linq.XName.Get("PackageName", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5577,6 +5753,10 @@ public virtual string PackageName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PackagePasswordXName = System.Xml.Linq.XName.Get("PackagePassword", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5595,6 +5775,10 @@ public virtual PasswordElementType PackagePassword { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PackageIDXName = System.Xml.Linq.XName.Get("PackageID", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5613,6 +5797,10 @@ public virtual string PackageID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VersionIDXName = System.Xml.Linq.XName.Get("VersionID", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5631,6 +5819,10 @@ public virtual string VersionID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", ""); + /// <summary> /// <para> /// Occurrence: required @@ -5649,6 +5841,25 @@ public virtual string Connection { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecutePackageTaskObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static ExecutePackageTaskObjectDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ExecuteOutOfProcessXName), new NamedContentModelEntity(PackageNameXName), new NamedContentModelEntity(PackagePasswordXName), new NamedContentModelEntity(PackageIDXName), new NamedContentModelEntity(VersionIDXName), new NamedContentModelEntity(ConnectionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ExecuteOutOfProcessXName, typeof(string)); + localElementDictionary.Add(PackageNameXName, typeof(string)); + localElementDictionary.Add(PackagePasswordXName, typeof(PasswordElementType)); + localElementDictionary.Add(PackageIDXName, typeof(string)); + localElementDictionary.Add(VersionIDXName, typeof(string)); + localElementDictionary.Add(ConnectionXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -5656,6 +5867,13 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5676,99 +5894,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ExecutePackageTaskObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ExecuteOutOfProcessXName, typeof(string)); - localElementDictionary.Add(PackageNameXName, typeof(string)); - localElementDictionary.Add(PackagePasswordXName, typeof(PasswordElementType)); - localElementDictionary.Add(PackageIDXName, typeof(string)); - localElementDictionary.Add(VersionIDXName, typeof(string)); - localElementDictionary.Add(ConnectionXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum ExecuteOutOfProcessEnum { - - True, - - False, - } - - private class ExecuteOutOfProcessEnumValidator { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "True", - "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private ExecuteOutOfProcessEnumValidator() { - } - } } public partial class ExecuteProcessDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RequireFullFileNameXName = System.Xml.Linq.XName.Get("RequireFullFileName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ArgumentsXName = System.Xml.Linq.XName.Get("Arguments", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WorkingDirectoryXName = System.Xml.Linq.XName.Get("WorkingDirectory", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FailTaskIfReturnCodeIsNotSuccessValueXName = System.Xml.Linq.XName.Get("FailTaskIfReturnCodeIsNotSuccessValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SuccessValueXName = System.Xml.Linq.XName.Get("SuccessValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TerminateAfterTimeoutXName = System.Xml.Linq.XName.Get("TerminateAfterTimeout", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StandardInputVariableXName = System.Xml.Linq.XName.Get("StandardInputVariable", ""); + public static explicit operator ExecuteProcessDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ExecuteProcessDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StandardOutputVariableXName = System.Xml.Linq.XName.Get("StandardOutputVariable", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ExecuteProcessDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StandardErrorVariableXName = System.Xml.Linq.XName.Get("StandardErrorVariable", ""); + public ExecuteProcessDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WindowStyleXName = System.Xml.Linq.XName.Get("WindowStyle", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecuteProcessDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator ExecuteProcessDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ExecuteProcessDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public ExecuteProcessDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName ExecutableXName = System.Xml.Linq.XName.Get("Executable", ""); /// <summary> /// <para> @@ -5778,6 +5919,9 @@ public ExecuteProcessDataObjectDataType() { public virtual string Executable { get { XAttribute x = this.Attribute(ExecutableXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5785,6 +5929,28 @@ public virtual string Executable { } } + public enum RequireFullFileNameEnum { + + True, + + False, + } + + public sealed class RequireFullFileNameEnumValidator { + + private RequireFullFileNameEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RequireFullFileNameXName = System.Xml.Linq.XName.Get("RequireFullFileName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5796,13 +5962,22 @@ public virtual Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.RequireF if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.RequireFullFileNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.RequireFullFileNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.RequireFullFileNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.RequireFullFileNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RequireFullFileNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RequireFullFileNameXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RequireFullFileNameXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RequireFullFileNameXName, value.ToString(), "RequireFullFileName", RequireFullFileNameEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ArgumentsXName = System.Xml.Linq.XName.Get("Arguments", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5811,6 +5986,9 @@ public virtual Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.RequireF public virtual string Arguments { get { XAttribute x = this.Attribute(ArgumentsXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5818,6 +5996,10 @@ public virtual string Arguments { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WorkingDirectoryXName = System.Xml.Linq.XName.Get("WorkingDirectory", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5826,6 +6008,9 @@ public virtual string Arguments { public virtual string WorkingDirectory { get { XAttribute x = this.Attribute(WorkingDirectoryXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5833,6 +6018,10 @@ public virtual string WorkingDirectory { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5851,6 +6040,28 @@ public virtual System.Int32? TimeOut { } } + public enum FailTaskIfReturnCodeIsNotSuccessValueEnum { + + True, + + False, + } + + public sealed class FailTaskIfReturnCodeIsNotSuccessValueEnumValidator { + + private FailTaskIfReturnCodeIsNotSuccessValueEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FailTaskIfReturnCodeIsNotSuccessValueXName = System.Xml.Linq.XName.Get("FailTaskIfReturnCodeIsNotSuccessValue", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5862,13 +6073,22 @@ public virtual Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.FailTask if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.FailTaskIfReturnCodeIsNotSuccessValueEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.FailTaskIfReturnCodeIsNotSuccessValueEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.FailTaskIfReturnCodeIsNotSuccessValueEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.FailTaskIfReturnCodeIsNotSuccessValueEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, FailTaskIfReturnCodeIsNotSuccessValueEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(FailTaskIfReturnCodeIsNotSuccessValueXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(FailTaskIfReturnCodeIsNotSuccessValueXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(FailTaskIfReturnCodeIsNotSuccessValueXName, value.ToString(), "FailTaskIfReturnCodeIsNotSuccessValue", FailTaskIfReturnCodeIsNotSuccessValueEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SuccessValueXName = System.Xml.Linq.XName.Get("SuccessValue", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5887,6 +6107,28 @@ public virtual System.Int32? SuccessValue { } } + public enum TerminateAfterTimeoutEnum { + + True, + + False, + } + + public sealed class TerminateAfterTimeoutEnumValidator { + + private TerminateAfterTimeoutEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TerminateAfterTimeoutXName = System.Xml.Linq.XName.Get("TerminateAfterTimeout", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5898,13 +6140,22 @@ public virtual Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.Terminat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.TerminateAfterTimeoutEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.TerminateAfterTimeoutEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.TerminateAfterTimeoutEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.TerminateAfterTimeoutEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TerminateAfterTimeoutEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TerminateAfterTimeoutXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TerminateAfterTimeoutXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TerminateAfterTimeoutXName, value.ToString(), "TerminateAfterTimeout", TerminateAfterTimeoutEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StandardInputVariableXName = System.Xml.Linq.XName.Get("StandardInputVariable", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5913,6 +6164,9 @@ public virtual Microsoft.SqlServer.Dts.ExecuteProcessDataObjectDataType.Terminat public virtual string StandardInputVariable { get { XAttribute x = this.Attribute(StandardInputVariableXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5920,6 +6174,10 @@ public virtual string StandardInputVariable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StandardOutputVariableXName = System.Xml.Linq.XName.Get("StandardOutputVariable", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5928,6 +6186,9 @@ public virtual string StandardInputVariable { public virtual string StandardOutputVariable { get { XAttribute x = this.Attribute(StandardOutputVariableXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5935,6 +6196,10 @@ public virtual string StandardOutputVariable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StandardErrorVariableXName = System.Xml.Linq.XName.Get("StandardErrorVariable", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5943,6 +6208,9 @@ public virtual string StandardOutputVariable { public virtual string StandardErrorVariable { get { XAttribute x = this.Attribute(StandardErrorVariableXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -5950,6 +6218,10 @@ public virtual string StandardErrorVariable { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WindowStyleXName = System.Xml.Linq.XName.Get("WindowStyle", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -5961,13 +6233,24 @@ public virtual Microsoft.SqlServer.Dts.WindowStyleEnum? WindowStyle { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.WindowStyleEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WindowStyleEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.WindowStyleEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WindowStyleEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.WindowStyleEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(WindowStyleXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(WindowStyleXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(WindowStyleXName, value.ToString(), "WindowStyle", global::Microsoft.SqlServer.Dts.WindowStyleEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ExecuteProcessDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -5988,35 +6271,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ExecuteProcessDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum RequireFullFileNameEnum { - - True, - - False, - } - - public enum FailTaskIfReturnCodeIsNotSuccessValueEnum { - - True, - - False, - } - - public enum TerminateAfterTimeoutEnum { - - True, - - False, - } } public enum WindowStyleEnum { @@ -6032,57 +6286,31 @@ public enum WindowStyleEnum { public sealed class WindowStyleEnumValidator { + private WindowStyleEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Hidden", "Maximized", "Minimized", "Normal"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private WindowStyleEnumValidator() { - } } public partial class FileSystemDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskOperationTypeXName = System.Xml.Linq.XName.Get("TaskOperationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OperationNameXName = System.Xml.Linq.XName.Get("OperationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskOverwriteDestFileXName = System.Xml.Linq.XName.Get("TaskOverwriteDestFile", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskSourcePathXName = System.Xml.Linq.XName.Get("TaskSourcePath", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskIsSourceVariableXName = System.Xml.Linq.XName.Get("TaskIsSourceVariable", ""); + public static explicit operator FileSystemDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<FileSystemDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskDestinationPathXName = System.Xml.Linq.XName.Get("TaskDestinationPath", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FileSystemDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskIsDestinationVariableXName = System.Xml.Linq.XName.Get("TaskIsDestinationVariable", ""); + public FileSystemDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskFileAttributesXName = System.Xml.Linq.XName.Get("TaskFileAttributes", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FileSystemDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator FileSystemDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<FileSystemDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public FileSystemDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName TaskOperationTypeXName = System.Xml.Linq.XName.Get("TaskOperationType", ""); /// <summary> /// <para> @@ -6095,13 +6323,22 @@ public virtual Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnum? TaskOper if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskOperationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskOperationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskOperationTypeXName, value.ToString(), "TaskOperationType", global::Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OperationNameXName = System.Xml.Linq.XName.Get("OperationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6110,6 +6347,9 @@ public virtual Microsoft.SqlServer.Dts.FileSystemTaskOperationTypeEnum? TaskOper public virtual string OperationName { get { XAttribute x = this.Attribute(OperationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6117,6 +6357,28 @@ public virtual string OperationName { } } + public enum TaskOverwriteDestFileEnum { + + False, + + True, + } + + public sealed class TaskOverwriteDestFileEnumValidator { + + private TaskOverwriteDestFileEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskOverwriteDestFileXName = System.Xml.Linq.XName.Get("TaskOverwriteDestFile", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6128,13 +6390,22 @@ public virtual Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskOverwrit if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskOverwriteDestFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskOverwriteDestFileEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskOverwriteDestFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskOverwriteDestFileEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TaskOverwriteDestFileEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskOverwriteDestFileXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskOverwriteDestFileXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskOverwriteDestFileXName, value.ToString(), "TaskOverwriteDestFile", TaskOverwriteDestFileEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskSourcePathXName = System.Xml.Linq.XName.Get("TaskSourcePath", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6143,6 +6414,9 @@ public virtual Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskOverwrit public virtual string TaskSourcePath { get { XAttribute x = this.Attribute(TaskSourcePathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6150,6 +6424,28 @@ public virtual string TaskSourcePath { } } + public enum TaskIsSourceVariableEnum { + + False, + + True, + } + + public sealed class TaskIsSourceVariableEnumValidator { + + private TaskIsSourceVariableEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskIsSourceVariableXName = System.Xml.Linq.XName.Get("TaskIsSourceVariable", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6161,13 +6457,22 @@ public virtual Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsSource if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsSourceVariableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsSourceVariableEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsSourceVariableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsSourceVariableEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TaskIsSourceVariableEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskIsSourceVariableXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskIsSourceVariableXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskIsSourceVariableXName, value.ToString(), "TaskIsSourceVariable", TaskIsSourceVariableEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskDestinationPathXName = System.Xml.Linq.XName.Get("TaskDestinationPath", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6176,32 +6481,66 @@ public virtual Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsSource public virtual string TaskDestinationPath { get { XAttribute x = this.Attribute(TaskDestinationPathXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - set { - this.SetAttribute(TaskDestinationPathXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } - - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsDestinationVariableEnum? TaskIsDestinationVariable { - get { - XAttribute x = this.Attribute(TaskIsDestinationVariableXName); if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsDestinationVariableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsDestinationVariableEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { - this.SetAttribute(TaskIsDestinationVariableXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttribute(TaskDestinationPathXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } - /// <summary> + public enum TaskIsDestinationVariableEnum { + + False, + + True, + } + + public sealed class TaskIsDestinationVariableEnumValidator { + + private TaskIsDestinationVariableEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskIsDestinationVariableXName = System.Xml.Linq.XName.Get("TaskIsDestinationVariable", ""); + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsDestinationVariableEnum? TaskIsDestinationVariable { + get { + XAttribute x = this.Attribute(TaskIsDestinationVariableXName); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsDestinationVariableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemDataObjectDataType.TaskIsDestinationVariableEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TaskIsDestinationVariableEnumValidator.TypeDefinition)))); + } + set { + if (value == null) { + this.SetAttribute(TaskIsDestinationVariableXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskIsDestinationVariableXName, value.ToString(), "TaskIsDestinationVariable", TaskIsDestinationVariableEnumValidator.TypeDefinition); + } + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskFileAttributesXName = System.Xml.Linq.XName.Get("TaskFileAttributes", ""); + + /// <summary> /// <para> /// Occurrence: optional /// </para> @@ -6212,13 +6551,24 @@ public virtual Microsoft.SqlServer.Dts.FileSystemTaskFileAttributesEnum? TaskFil if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FileSystemTaskFileAttributesEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemTaskFileAttributesEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FileSystemTaskFileAttributesEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FileSystemTaskFileAttributesEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.FileSystemTaskFileAttributesEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskFileAttributesXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskFileAttributesXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskFileAttributesXName, value.ToString(), "TaskFileAttributes", global::Microsoft.SqlServer.Dts.FileSystemTaskFileAttributesEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FileSystemDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6239,85 +6589,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FileSystemDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum TaskOverwriteDestFileEnum { - - False, - - True, - } - - public enum TaskIsSourceVariableEnum { - - False, - - True, - } - - public enum TaskIsDestinationVariableEnum { - - False, - - True, - } } public partial class FtpDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StopOnFailureXName = System.Xml.Linq.XName.Get("StopOnFailure", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskOperationTypeXName = System.Xml.Linq.XName.Get("TaskOperationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskOperationNameXName = System.Xml.Linq.XName.Get("TaskOperationName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskIsLocalPathVarXName = System.Xml.Linq.XName.Get("TaskIsLocalPathVar", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskLocalPathXName = System.Xml.Linq.XName.Get("TaskLocalPath", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskIsRemotePathVarXName = System.Xml.Linq.XName.Get("TaskIsRemotePathVar", ""); + public static explicit operator FtpDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<FtpDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskRemotePathXName = System.Xml.Linq.XName.Get("TaskRemotePath", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FtpDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskOverwriteDestXName = System.Xml.Linq.XName.Get("TaskOverwriteDest", ""); + public FtpDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskTransferAsciiXName = System.Xml.Linq.XName.Get("TaskTransferAscii", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FtpDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator FtpDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<FtpDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public FtpDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", ""); /// <summary> /// <para> @@ -6327,6 +6614,9 @@ public FtpDataObjectDataType() { public virtual string ConnectionName { get { XAttribute x = this.Attribute(ConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6334,6 +6624,28 @@ public virtual string ConnectionName { } } + public enum StopOnFailureEnum { + + False, + + True, + } + + public sealed class StopOnFailureEnumValidator { + + private StopOnFailureEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StopOnFailureXName = System.Xml.Linq.XName.Get("StopOnFailure", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6345,13 +6657,22 @@ public virtual Microsoft.SqlServer.Dts.FtpDataObjectDataType.StopOnFailureEnum? if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.StopOnFailureEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.StopOnFailureEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.StopOnFailureEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.StopOnFailureEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, StopOnFailureEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(StopOnFailureXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(StopOnFailureXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(StopOnFailureXName, value.ToString(), "StopOnFailure", StopOnFailureEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskOperationTypeXName = System.Xml.Linq.XName.Get("TaskOperationType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6363,13 +6684,22 @@ public virtual Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnum? TaskOperati if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskOperationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskOperationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskOperationTypeXName, value.ToString(), "TaskOperationType", global::Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskOperationNameXName = System.Xml.Linq.XName.Get("TaskOperationName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6378,6 +6708,9 @@ public virtual Microsoft.SqlServer.Dts.FtpDataTaskOperationTypeEnum? TaskOperati public virtual string TaskOperationName { get { XAttribute x = this.Attribute(TaskOperationNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6385,6 +6718,28 @@ public virtual string TaskOperationName { } } + public enum TaskIsLocalPathVarEnum { + + False, + + True, + } + + public sealed class TaskIsLocalPathVarEnumValidator { + + private TaskIsLocalPathVarEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskIsLocalPathVarXName = System.Xml.Linq.XName.Get("TaskIsLocalPathVar", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6396,13 +6751,22 @@ public virtual Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsLocalPathVarE if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsLocalPathVarEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsLocalPathVarEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsLocalPathVarEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsLocalPathVarEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TaskIsLocalPathVarEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskIsLocalPathVarXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskIsLocalPathVarXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskIsLocalPathVarXName, value.ToString(), "TaskIsLocalPathVar", TaskIsLocalPathVarEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskLocalPathXName = System.Xml.Linq.XName.Get("TaskLocalPath", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6411,6 +6775,9 @@ public virtual Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsLocalPathVarE public virtual string TaskLocalPath { get { XAttribute x = this.Attribute(TaskLocalPathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6418,6 +6785,28 @@ public virtual string TaskLocalPath { } } + public enum TaskIsRemotePathVarEnum { + + False, + + True, + } + + public sealed class TaskIsRemotePathVarEnumValidator { + + private TaskIsRemotePathVarEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskIsRemotePathVarXName = System.Xml.Linq.XName.Get("TaskIsRemotePathVar", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6429,13 +6818,22 @@ public virtual Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsRemotePathVar if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsRemotePathVarEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsRemotePathVarEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsRemotePathVarEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsRemotePathVarEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TaskIsRemotePathVarEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskIsRemotePathVarXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskIsRemotePathVarXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskIsRemotePathVarXName, value.ToString(), "TaskIsRemotePathVar", TaskIsRemotePathVarEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskRemotePathXName = System.Xml.Linq.XName.Get("TaskRemotePath", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6444,6 +6842,9 @@ public virtual Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskIsRemotePathVar public virtual string TaskRemotePath { get { XAttribute x = this.Attribute(TaskRemotePathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6451,6 +6852,28 @@ public virtual string TaskRemotePath { } } + public enum TaskOverwriteDestEnum { + + False, + + True, + } + + public sealed class TaskOverwriteDestEnumValidator { + + private TaskOverwriteDestEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskOverwriteDestXName = System.Xml.Linq.XName.Get("TaskOverwriteDest", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6462,13 +6885,40 @@ public virtual Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskOverwriteDestEn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskOverwriteDestEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskOverwriteDestEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskOverwriteDestEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskOverwriteDestEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TaskOverwriteDestEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskOverwriteDestXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskOverwriteDestXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskOverwriteDestXName, value.ToString(), "TaskOverwriteDest", TaskOverwriteDestEnumValidator.TypeDefinition); + } + } + } + + public enum TaskTransferAsciiEnum { + + False, + + True, + } + + public sealed class TaskTransferAsciiEnumValidator { + + private TaskTransferAsciiEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskTransferAsciiXName = System.Xml.Linq.XName.Get("TaskTransferAscii", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6480,13 +6930,24 @@ public virtual Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskTransferAsciiEn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskTransferAsciiEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskTransferAsciiEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskTransferAsciiEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpDataObjectDataType.TaskTransferAsciiEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TaskTransferAsciiEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskTransferAsciiXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskTransferAsciiXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskTransferAsciiXName, value.ToString(), "TaskTransferAscii", TaskTransferAsciiEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FtpDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6507,49 +6968,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FtpDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum StopOnFailureEnum { - - False, - - True, - } - - public enum TaskIsLocalPathVarEnum { - - False, - - True, - } - - public enum TaskIsRemotePathVarEnum { - - False, - - True, - } - - public enum TaskOverwriteDestEnum { - - False, - - True, - } - - public enum TaskTransferAsciiEnum { - - False, - - True, - } } public enum FtpDataTaskOperationTypeEnum { @@ -6573,6 +6991,9 @@ public enum FtpDataTaskOperationTypeEnum { public sealed class FtpDataTaskOperationTypeEnumValidator { + private FtpDataTaskOperationTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DeleteLocal", @@ -6583,9 +7004,6 @@ public sealed class FtpDataTaskOperationTypeEnumValidator { "RemoveDirLocal", "RemoveDirRemote", "Send"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private FtpDataTaskOperationTypeEnumValidator() { - } } /// <summary> @@ -6595,65 +7013,10 @@ private FtpDataTaskOperationTypeEnumValidator() { /// </summary> public partial class ScriptProjectObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProjectItemXName = System.Xml.Linq.XName.Get("ProjectItem", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ScriptProjectProjectItemType> ProjectItemField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BinaryItemXName = System.Xml.Linq.XName.Get("BinaryItem", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BreakpointXName = System.Xml.Linq.XName.Get("Breakpoint", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<ScriptProjectBreakpointType> BreakpointField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VSTAMajorVersionXName = System.Xml.Linq.XName.Get("VSTAMajorVersion", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VSTAMinorVersionXName = System.Xml.Linq.XName.Get("VSTAMinorVersion", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EntryPointXName = System.Xml.Linq.XName.Get("EntryPoint", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReadOnlyVariablesXName = System.Xml.Linq.XName.Get("ReadOnlyVariables", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReadWriteVariablesXName = System.Xml.Linq.XName.Get("ReadWriteVariables", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ScriptProjectObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ScriptProjectObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ScriptProjectObjectDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ProjectItemXName), new NamedContentModelEntity(BinaryItemXName), new NamedContentModelEntity(BreakpointXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ScriptProjectObjectDataType>(this); } /// <summary> @@ -6664,6 +7027,13 @@ static ScriptProjectObjectDataType() { public ScriptProjectObjectDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProjectItemXName = System.Xml.Linq.XName.Get("ProjectItem", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ScriptProjectProjectItemType> ProjectItemField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -6694,6 +7064,10 @@ public virtual IList<ScriptProjectProjectItemType> ProjectItem { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BinaryItemXName = System.Xml.Linq.XName.Get("BinaryItem", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6705,6 +7079,9 @@ public virtual IList<ScriptProjectProjectItemType> ProjectItem { public virtual ScriptProjectBinaryItemType BinaryItem { get { XElement x = this.GetElement(BinaryItemXName); + if ((x == null)) { + return null; + } return ((ScriptProjectBinaryItemType)(x)); } set { @@ -6712,6 +7089,13 @@ public virtual ScriptProjectBinaryItemType BinaryItem { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BreakpointXName = System.Xml.Linq.XName.Get("Breakpoint", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<ScriptProjectBreakpointType> BreakpointField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -6742,6 +7126,10 @@ public virtual IList<ScriptProjectBreakpointType> Breakpoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6750,6 +7138,9 @@ public virtual IList<ScriptProjectBreakpointType> Breakpoint { public virtual string Name { get { XAttribute x = this.Attribute(NameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6757,6 +7148,10 @@ public virtual string Name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VSTAMajorVersionXName = System.Xml.Linq.XName.Get("VSTAMajorVersion", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6775,6 +7170,10 @@ public virtual System.Int32? VSTAMajorVersion { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VSTAMinorVersionXName = System.Xml.Linq.XName.Get("VSTAMinorVersion", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6793,6 +7192,10 @@ public virtual System.Int32? VSTAMinorVersion { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6804,13 +7207,22 @@ public virtual Microsoft.SqlServer.Dts.ScriptProjectLanguageEnum? Language { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.ScriptProjectLanguageEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ScriptProjectLanguageEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.ScriptProjectLanguageEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ScriptProjectLanguageEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.ScriptProjectLanguageEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(LanguageXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(LanguageXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(LanguageXName, value.ToString(), "Language", global::Microsoft.SqlServer.Dts.ScriptProjectLanguageEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EntryPointXName = System.Xml.Linq.XName.Get("EntryPoint", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6819,6 +7231,9 @@ public virtual Microsoft.SqlServer.Dts.ScriptProjectLanguageEnum? Language { public virtual string EntryPoint { get { XAttribute x = this.Attribute(EntryPointXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6826,6 +7241,10 @@ public virtual string EntryPoint { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReadOnlyVariablesXName = System.Xml.Linq.XName.Get("ReadOnlyVariables", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6834,6 +7253,9 @@ public virtual string EntryPoint { public virtual string ReadOnlyVariables { get { XAttribute x = this.Attribute(ReadOnlyVariablesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6841,6 +7263,10 @@ public virtual string ReadOnlyVariables { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReadWriteVariablesXName = System.Xml.Linq.XName.Get("ReadWriteVariables", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6849,6 +7275,9 @@ public virtual string ReadOnlyVariables { public virtual string ReadWriteVariables { get { XAttribute x = this.Attribute(ReadWriteVariablesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6856,6 +7285,22 @@ public virtual string ReadWriteVariables { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static ScriptProjectObjectDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(ProjectItemXName), new NamedContentModelEntity(BinaryItemXName), new NamedContentModelEntity(BreakpointXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ProjectItemXName, typeof(ScriptProjectProjectItemType)); + localElementDictionary.Add(BinaryItemXName, typeof(ScriptProjectBinaryItemType)); + localElementDictionary.Add(BreakpointXName, typeof(ScriptProjectBreakpointType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -6863,6 +7308,13 @@ public virtual string ReadWriteVariables { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6883,39 +7335,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ScriptProjectObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ProjectItemXName, typeof(ScriptProjectProjectItemType)); - localElementDictionary.Add(BinaryItemXName, typeof(ScriptProjectBinaryItemType)); - localElementDictionary.Add(BreakpointXName, typeof(ScriptProjectBreakpointType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class ScriptProjectProjectItemType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectProjectItemType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator ScriptProjectProjectItemType(XElement xe) { return XTypedServices.ToXTypedElement<ScriptProjectProjectItemType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ScriptProjectProjectItemType>(this); + } + public ScriptProjectProjectItemType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -6926,6 +7362,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -6934,6 +7374,9 @@ public virtual string TypedValue { public virtual string Name { get { XAttribute x = this.Attribute(NameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -6941,6 +7384,12 @@ public virtual string Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectProjectItemType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -6961,33 +7410,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ScriptProjectProjectItemType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class ScriptProjectBinaryItemType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectBinaryItemType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator ScriptProjectBinaryItemType(XElement xe) { return XTypedServices.ToXTypedElement<ScriptProjectBinaryItemType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ScriptProjectBinaryItemType>(this); + } + public ScriptProjectBinaryItemType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual byte[] TypedValue { get { XElement x = this.Untyped; @@ -6998,6 +7437,10 @@ public virtual byte[] TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7006,6 +7449,9 @@ public virtual byte[] TypedValue { public virtual string Name { get { XAttribute x = this.Attribute(NameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7013,6 +7459,12 @@ public virtual string Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectBinaryItemType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7033,68 +7485,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class ScriptProjectBreakpointType : XTypedElement, IXMetaData { + + public static explicit operator ScriptProjectBreakpointType(XElement xe) { return XTypedServices.ToXTypedElement<ScriptProjectBreakpointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ScriptProjectBinaryItemType>(this); + return XTypedServices.CloneXTypedElement<ScriptProjectBreakpointType>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public ScriptProjectBreakpointType() { } - } - - public partial class ScriptProjectBreakpointType : XTypedElement, IXMetaData { [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EnabledXName = System.Xml.Linq.XName.Get("Enabled", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FunctionXName = System.Xml.Linq.XName.Get("Function", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileXName = System.Xml.Linq.XName.Get("File", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LineXName = System.Xml.Linq.XName.Get("Line", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ColumnXName = System.Xml.Linq.XName.Get("Column", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConditionXName = System.Xml.Linq.XName.Get("Condition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConditionTypeXName = System.Xml.Linq.XName.Get("ConditionType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HitCountXName = System.Xml.Linq.XName.Get("HitCount", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HitCountTypeXName = System.Xml.Linq.XName.Get("HitCountType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectBreakpointType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator ScriptProjectBreakpointType(XElement xe) { return XTypedServices.ToXTypedElement<ScriptProjectBreakpointType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public ScriptProjectBreakpointType() { - } + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", ""); /// <summary> /// <para> @@ -7104,6 +7510,9 @@ public ScriptProjectBreakpointType() { public virtual string Name { get { XAttribute x = this.Attribute(NameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7111,6 +7520,10 @@ public virtual string Name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EnabledXName = System.Xml.Linq.XName.Get("Enabled", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7119,6 +7532,9 @@ public virtual string Name { public virtual string Enabled { get { XAttribute x = this.Attribute(EnabledXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7126,6 +7542,10 @@ public virtual string Enabled { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FunctionXName = System.Xml.Linq.XName.Get("Function", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7134,6 +7554,9 @@ public virtual string Enabled { public virtual string Function { get { XAttribute x = this.Attribute(FunctionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7141,6 +7564,10 @@ public virtual string Function { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileXName = System.Xml.Linq.XName.Get("File", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7149,6 +7576,9 @@ public virtual string Function { public virtual string File { get { XAttribute x = this.Attribute(FileXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7156,6 +7586,10 @@ public virtual string File { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LineXName = System.Xml.Linq.XName.Get("Line", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7174,6 +7608,10 @@ public virtual System.Int32? Line { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ColumnXName = System.Xml.Linq.XName.Get("Column", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7192,6 +7630,10 @@ public virtual System.Int32? Column { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConditionXName = System.Xml.Linq.XName.Get("Condition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7200,6 +7642,9 @@ public virtual System.Int32? Column { public virtual string Condition { get { XAttribute x = this.Attribute(ConditionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7207,6 +7652,10 @@ public virtual string Condition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConditionTypeXName = System.Xml.Linq.XName.Get("ConditionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7225,6 +7674,10 @@ public virtual System.Int32? ConditionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LanguageXName = System.Xml.Linq.XName.Get("Language", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7233,6 +7686,9 @@ public virtual System.Int32? ConditionType { public virtual string Language { get { XAttribute x = this.Attribute(LanguageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7240,6 +7696,10 @@ public virtual string Language { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HitCountXName = System.Xml.Linq.XName.Get("HitCount", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7258,6 +7718,10 @@ public virtual System.Int32? HitCount { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HitCountTypeXName = System.Xml.Linq.XName.Get("HitCountType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7276,6 +7740,12 @@ public virtual System.Int32? HitCountType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ScriptProjectBreakpointType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7296,14 +7766,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ScriptProjectBreakpointType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum ScriptProjectLanguageEnum { @@ -7315,81 +7777,47 @@ public enum ScriptProjectLanguageEnum { public sealed class ScriptProjectLanguageEnumValidator { + private ScriptProjectLanguageEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "CSharp", "VisualBasic"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private ScriptProjectLanguageEnumValidator() { - } } public sealed class ScriptProjectHitCountTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 4, 0, null, 1, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private ScriptProjectHitCountTypeEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 4, 0, null, 1, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class ScriptProjectConditionTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 1, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private ScriptProjectConditionTypeEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 1, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public partial class TransferDatabasesTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SrcConnXName = System.Xml.Linq.XName.Get("SrcConn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestConnXName = System.Xml.Linq.XName.Get("DestConn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ActionXName = System.Xml.Linq.XName.Get("Action", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MethodXName = System.Xml.Linq.XName.Get("Method", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SrcDBNameXName = System.Xml.Linq.XName.Get("SrcDBName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReattachSrcDBXName = System.Xml.Linq.XName.Get("ReattachSrcDB", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SrcDBFilesXName = System.Xml.Linq.XName.Get("SrcDBFiles", ""); + public static explicit operator TransferDatabasesTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferDatabasesTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestDBNameXName = System.Xml.Linq.XName.Get("DestDBName", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TransferDatabasesTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestDBFilesXName = System.Xml.Linq.XName.Get("DestDBFiles", ""); + public TransferDatabasesTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestOverwriteXName = System.Xml.Linq.XName.Get("DestOverwrite", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferDatabasesTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator TransferDatabasesTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferDatabasesTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public TransferDatabasesTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName SrcConnXName = System.Xml.Linq.XName.Get("SrcConn", ""); /// <summary> /// <para> @@ -7399,6 +7827,9 @@ public TransferDatabasesTaskDataObjectDataType() { public virtual string SrcConn { get { XAttribute x = this.Attribute(SrcConnXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7406,6 +7837,10 @@ public virtual string SrcConn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestConnXName = System.Xml.Linq.XName.Get("DestConn", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7414,6 +7849,9 @@ public virtual string SrcConn { public virtual string DestConn { get { XAttribute x = this.Attribute(DestConnXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7421,6 +7859,10 @@ public virtual string DestConn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ActionXName = System.Xml.Linq.XName.Get("Action", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7439,6 +7881,10 @@ public virtual System.Int32? Action { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MethodXName = System.Xml.Linq.XName.Get("Method", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7457,6 +7903,10 @@ public virtual System.Int32? Method { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SrcDBNameXName = System.Xml.Linq.XName.Get("SrcDBName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7465,6 +7915,9 @@ public virtual System.Int32? Method { public virtual string SrcDBName { get { XAttribute x = this.Attribute(SrcDBNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7472,6 +7925,10 @@ public virtual string SrcDBName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReattachSrcDBXName = System.Xml.Linq.XName.Get("ReattachSrcDB", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7490,6 +7947,10 @@ public virtual System.Boolean? ReattachSrcDB { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SrcDBFilesXName = System.Xml.Linq.XName.Get("SrcDBFiles", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7498,6 +7959,9 @@ public virtual System.Boolean? ReattachSrcDB { public virtual string SrcDBFiles { get { XAttribute x = this.Attribute(SrcDBFilesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7505,6 +7969,10 @@ public virtual string SrcDBFiles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestDBNameXName = System.Xml.Linq.XName.Get("DestDBName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7513,6 +7981,9 @@ public virtual string SrcDBFiles { public virtual string DestDBName { get { XAttribute x = this.Attribute(DestDBNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7520,6 +7991,10 @@ public virtual string DestDBName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestDBFilesXName = System.Xml.Linq.XName.Get("DestDBFiles", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7528,6 +8003,9 @@ public virtual string DestDBName { public virtual string DestDBFiles { get { XAttribute x = this.Attribute(DestDBFilesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7535,6 +8013,10 @@ public virtual string DestDBFiles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestOverwriteXName = System.Xml.Linq.XName.Get("DestOverwrite", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7553,6 +8035,12 @@ public virtual System.Boolean? DestOverwrite { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferDatabasesTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7573,66 +8061,40 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TransferDatabasesTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public sealed class TransferDatabaseTaskActionEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private TransferDatabaseTaskActionEnum() { } - } - - public sealed class TransferDatabaseTaskMethodEnum { [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); + } + + public sealed class TransferDatabaseTaskMethodEnum { private TransferDatabaseTaskMethodEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public partial class TransferErrorMessagesTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferAllErrorMessagesXName = System.Xml.Linq.XName.Get("TransferAllErrorMessages", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ErrorMessagesListXName = System.Xml.Linq.XName.Get("ErrorMessagesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ErrorMessageLanguagesListXName = System.Xml.Linq.XName.Get("ErrorMessageLanguagesList", ""); + public static explicit operator TransferErrorMessagesTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferErrorMessagesTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TransferErrorMessagesTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + public TransferErrorMessagesTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferErrorMessagesTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator TransferErrorMessagesTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferErrorMessagesTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public TransferErrorMessagesTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName TransferAllErrorMessagesXName = System.Xml.Linq.XName.Get("TransferAllErrorMessages", ""); /// <summary> /// <para> @@ -7652,6 +8114,10 @@ public virtual System.Boolean? TransferAllErrorMessages { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ErrorMessagesListXName = System.Xml.Linq.XName.Get("ErrorMessagesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7660,6 +8126,9 @@ public virtual System.Boolean? TransferAllErrorMessages { public virtual string ErrorMessagesList { get { XAttribute x = this.Attribute(ErrorMessagesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7667,6 +8136,10 @@ public virtual string ErrorMessagesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ErrorMessageLanguagesListXName = System.Xml.Linq.XName.Get("ErrorMessageLanguagesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7675,6 +8148,9 @@ public virtual string ErrorMessagesList { public virtual string ErrorMessageLanguagesList { get { XAttribute x = this.Attribute(ErrorMessageLanguagesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7682,6 +8158,10 @@ public virtual string ErrorMessageLanguagesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7693,13 +8173,22 @@ public virtual Microsoft.SqlServer.Dts.IfObjectExistsEnum? IfObjectExists { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IfObjectExistsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IfObjectExistsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IfObjectExistsXName, value.ToString(), "IfObjectExists", global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7708,6 +8197,9 @@ public virtual Microsoft.SqlServer.Dts.IfObjectExistsEnum? IfObjectExists { public virtual string SourceConnection { get { XAttribute x = this.Attribute(SourceConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7715,6 +8207,10 @@ public virtual string SourceConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7723,6 +8219,9 @@ public virtual string SourceConnection { public virtual string DestinationConnection { get { XAttribute x = this.Attribute(DestinationConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7730,6 +8229,12 @@ public virtual string DestinationConnection { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferErrorMessagesTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7750,14 +8255,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TransferErrorMessagesTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum IfObjectExistsEnum { @@ -7771,48 +8268,30 @@ public enum IfObjectExistsEnum { public sealed class IfObjectExistsEnumValidator { + private IfObjectExistsEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "FailTask", "Overwrite", "Skip"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private IfObjectExistsEnumValidator() { - } } public partial class TransferJobsTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferAllJobsXName = System.Xml.Linq.XName.Get("TransferAllJobs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName JobsListXName = System.Xml.Linq.XName.Get("JobsList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + public static explicit operator TransferJobsTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferJobsTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EnableJobsAtDestinationXName = System.Xml.Linq.XName.Get("EnableJobsAtDestination", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TransferJobsTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + public TransferJobsTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferJobsTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator TransferJobsTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferJobsTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public TransferJobsTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName TransferAllJobsXName = System.Xml.Linq.XName.Get("TransferAllJobs", ""); /// <summary> /// <para> @@ -7832,6 +8311,10 @@ public virtual System.Boolean? TransferAllJobs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName JobsListXName = System.Xml.Linq.XName.Get("JobsList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7840,6 +8323,9 @@ public virtual System.Boolean? TransferAllJobs { public virtual string JobsList { get { XAttribute x = this.Attribute(JobsListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7847,6 +8333,10 @@ public virtual string JobsList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7858,13 +8348,22 @@ public virtual Microsoft.SqlServer.Dts.IfObjectExistsEnum? IfObjectExists { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IfObjectExistsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IfObjectExistsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IfObjectExistsXName, value.ToString(), "IfObjectExists", global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EnableJobsAtDestinationXName = System.Xml.Linq.XName.Get("EnableJobsAtDestination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7883,6 +8382,10 @@ public virtual System.Boolean? EnableJobsAtDestination { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7891,6 +8394,9 @@ public virtual System.Boolean? EnableJobsAtDestination { public virtual string SourceConnection { get { XAttribute x = this.Attribute(SourceConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7898,6 +8404,10 @@ public virtual string SourceConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -7906,6 +8416,9 @@ public virtual string SourceConnection { public virtual string DestinationConnection { get { XAttribute x = this.Attribute(DestinationConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -7913,6 +8426,12 @@ public virtual string DestinationConnection { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferJobsTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -7933,52 +8452,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TransferJobsTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class TransferLoginsTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LoginsToTransferXName = System.Xml.Linq.XName.Get("LoginsToTransfer", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopySidsXName = System.Xml.Linq.XName.Get("CopySids", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LoginListXName = System.Xml.Linq.XName.Get("LoginList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + public static explicit operator TransferLoginsTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferLoginsTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TransferLoginsTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); + public TransferLoginsTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabasesListXName = System.Xml.Linq.XName.Get("DatabasesList", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferLoginsTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator TransferLoginsTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferLoginsTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public TransferLoginsTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName LoginsToTransferXName = System.Xml.Linq.XName.Get("LoginsToTransfer", ""); /// <summary> /// <para> @@ -7991,13 +8480,22 @@ public virtual Microsoft.SqlServer.Dts.TransferLoginsTaskLoginsToTransferEnum? L if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.TransferLoginsTaskLoginsToTransferEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.TransferLoginsTaskLoginsToTransferEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.TransferLoginsTaskLoginsToTransferEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.TransferLoginsTaskLoginsToTransferEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.TransferLoginsTaskLoginsToTransferEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(LoginsToTransferXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(LoginsToTransferXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(LoginsToTransferXName, value.ToString(), "LoginsToTransfer", global::Microsoft.SqlServer.Dts.TransferLoginsTaskLoginsToTransferEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopySidsXName = System.Xml.Linq.XName.Get("CopySids", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8016,6 +8514,10 @@ public virtual System.Boolean? CopySids { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LoginListXName = System.Xml.Linq.XName.Get("LoginList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8024,6 +8526,9 @@ public virtual System.Boolean? CopySids { public virtual string LoginList { get { XAttribute x = this.Attribute(LoginListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8031,6 +8536,10 @@ public virtual string LoginList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8042,13 +8551,22 @@ public virtual Microsoft.SqlServer.Dts.IfObjectExistsEnum? IfObjectExists { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IfObjectExistsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IfObjectExistsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IfObjectExistsXName, value.ToString(), "IfObjectExists", global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8057,6 +8575,9 @@ public virtual Microsoft.SqlServer.Dts.IfObjectExistsEnum? IfObjectExists { public virtual string SourceConnection { get { XAttribute x = this.Attribute(SourceConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8064,6 +8585,10 @@ public virtual string SourceConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8072,6 +8597,9 @@ public virtual string SourceConnection { public virtual string DestinationConnection { get { XAttribute x = this.Attribute(DestinationConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8079,6 +8607,10 @@ public virtual string DestinationConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabasesListXName = System.Xml.Linq.XName.Get("DatabasesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8087,6 +8619,9 @@ public virtual string DestinationConnection { public virtual string DatabasesList { get { XAttribute x = this.Attribute(DatabasesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8094,6 +8629,12 @@ public virtual string DatabasesList { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferLoginsTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8114,14 +8655,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TransferLoginsTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum TransferLoginsTaskLoginsToTransferEnum { @@ -8135,44 +8668,30 @@ public enum TransferLoginsTaskLoginsToTransferEnum { public sealed class TransferLoginsTaskLoginsToTransferEnumValidator { + private TransferLoginsTaskLoginsToTransferEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "SelectedLogins", "AllLoginsFromSelectedDatabases", "AllLogins"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private TransferLoginsTaskLoginsToTransferEnumValidator() { - } } public partial class TransferStoredProceduresTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TransferAllStoredProceduresXName = System.Xml.Linq.XName.Get("TransferAllStoredProcedures", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StoredProceduresListXName = System.Xml.Linq.XName.Get("StoredProceduresList", ""); + public static explicit operator TransferStoredProceduresTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferStoredProceduresTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<TransferStoredProceduresTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + public TransferStoredProceduresTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName m_DestinationConnectionIDXName = System.Xml.Linq.XName.Get("m_DestinationConnectionID", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferStoredProceduresTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator TransferStoredProceduresTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferStoredProceduresTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public TransferStoredProceduresTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName TransferAllStoredProceduresXName = System.Xml.Linq.XName.Get("TransferAllStoredProcedures", ""); /// <summary> /// <para> @@ -8192,6 +8711,10 @@ public virtual System.Boolean? TransferAllStoredProcedures { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StoredProceduresListXName = System.Xml.Linq.XName.Get("StoredProceduresList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8200,6 +8723,9 @@ public virtual System.Boolean? TransferAllStoredProcedures { public virtual string StoredProceduresList { get { XAttribute x = this.Attribute(StoredProceduresListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8207,6 +8733,10 @@ public virtual string StoredProceduresList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IfObjectExistsXName = System.Xml.Linq.XName.Get("IfObjectExists", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8218,13 +8748,22 @@ public virtual Microsoft.SqlServer.Dts.IfObjectExistsEnum? IfObjectExists { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.IfObjectExistsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.IfObjectExistsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IfObjectExistsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IfObjectExistsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IfObjectExistsXName, value.ToString(), "IfObjectExists", global::Microsoft.SqlServer.Dts.IfObjectExistsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8233,6 +8772,9 @@ public virtual Microsoft.SqlServer.Dts.IfObjectExistsEnum? IfObjectExists { public virtual string SourceConnection { get { XAttribute x = this.Attribute(SourceConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8240,6 +8782,10 @@ public virtual string SourceConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName m_DestinationConnectionIDXName = System.Xml.Linq.XName.Get("m_DestinationConnectionID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8248,6 +8794,9 @@ public virtual string SourceConnection { public virtual string m_DestinationConnectionID { get { XAttribute x = this.Attribute(m_DestinationConnectionIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8255,6 +8804,12 @@ public virtual string m_DestinationConnectionID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferStoredProceduresTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -8275,244 +8830,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class TransferSqlServerObjectsTaskDataObjectDataType : XTypedElement, IXMetaData { + + public static explicit operator TransferSqlServerObjectsTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferSqlServerObjectsTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TransferStoredProceduresTaskDataObjectDataType>(this); + return XTypedServices.CloneXTypedElement<TransferSqlServerObjectsTaskDataObjectDataType>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public TransferSqlServerObjectsTaskDataObjectDataType() { } - } - - public partial class TransferSqlServerObjectsTaskDataObjectDataType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceDatabaseXName = System.Xml.Linq.XName.Get("SourceDatabase", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationDatabaseXName = System.Xml.Linq.XName.Get("DestinationDatabase", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllObjectsXName = System.Xml.Linq.XName.Get("CopyAllObjects", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllRulesXName = System.Xml.Linq.XName.Get("CopyAllRules", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllTablesXName = System.Xml.Linq.XName.Get("CopyAllTables", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllViewsXName = System.Xml.Linq.XName.Get("CopyAllViews", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllStoredProceduresXName = System.Xml.Linq.XName.Get("CopyAllStoredProcedures", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllUserDefinedFunctionsXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedFunctions", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllDefaultsXName = System.Xml.Linq.XName.Get("CopyAllDefaults", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllUserDefinedDataTypesXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedDataTypes", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllPartitionFunctionsXName = System.Xml.Linq.XName.Get("CopyAllPartitionFunctions", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllPartitionSchemesXName = System.Xml.Linq.XName.Get("CopyAllPartitionSchemes", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllSchemasXName = System.Xml.Linq.XName.Get("CopyAllSchemas", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllSqlAssembliesXName = System.Xml.Linq.XName.Get("CopyAllSqlAssemblies", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllUserDefinedAggregatesXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedAggregates", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllUserDefinedTypesXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedTypes", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllXmlSchemaCollectionsXName = System.Xml.Linq.XName.Get("CopyAllXmlSchemaCollections", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LoginsListXName = System.Xml.Linq.XName.Get("LoginsList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UsersListXName = System.Xml.Linq.XName.Get("UsersList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RulesListXName = System.Xml.Linq.XName.Get("RulesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TablesListXName = System.Xml.Linq.XName.Get("TablesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ViewsListXName = System.Xml.Linq.XName.Get("ViewsList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StoredProceduresListXName = System.Xml.Linq.XName.Get("StoredProceduresList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UserDefinedFunctionsListXName = System.Xml.Linq.XName.Get("UserDefinedFunctionsList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DefaultsListXName = System.Xml.Linq.XName.Get("DefaultsList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UserDefinedDataTypesListXName = System.Xml.Linq.XName.Get("UserDefinedDataTypesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PartitionFunctionsListXName = System.Xml.Linq.XName.Get("PartitionFunctionsList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PartitionSchemesListXName = System.Xml.Linq.XName.Get("PartitionSchemesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SchemasListXName = System.Xml.Linq.XName.Get("SchemasList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlAssembliesListXName = System.Xml.Linq.XName.Get("SqlAssembliesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UserDefinedAggregatesListXName = System.Xml.Linq.XName.Get("UserDefinedAggregatesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UserDefinedTypesListXName = System.Xml.Linq.XName.Get("UserDefinedTypesList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName XmlSchemaCollectionsListXName = System.Xml.Linq.XName.Get("XmlSchemaCollectionsList", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DropObjectsFirstXName = System.Xml.Linq.XName.Get("DropObjectsFirst", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IncludeDependentObjectsXName = System.Xml.Linq.XName.Get("IncludeDependentObjects", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IncludeExtendedPropertiesXName = System.Xml.Linq.XName.Get("IncludeExtendedProperties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyDataXName = System.Xml.Linq.XName.Get("CopyData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExistingDataXName = System.Xml.Linq.XName.Get("ExistingData", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopySchemaXName = System.Xml.Linq.XName.Get("CopySchema", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UseCollationXName = System.Xml.Linq.XName.Get("UseCollation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyDatabaseUsersXName = System.Xml.Linq.XName.Get("CopyDatabaseUsers", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyDatabaseRolesXName = System.Xml.Linq.XName.Get("CopyDatabaseRoles", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopySqlServerLoginsXName = System.Xml.Linq.XName.Get("CopySqlServerLogins", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyObjectLevelPermissionsXName = System.Xml.Linq.XName.Get("CopyObjectLevelPermissions", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyIndexesXName = System.Xml.Linq.XName.Get("CopyIndexes", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyTriggersXName = System.Xml.Linq.XName.Get("CopyTriggers", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyFullTextIndexesXName = System.Xml.Linq.XName.Get("CopyFullTextIndexes", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyPrimaryKeysXName = System.Xml.Linq.XName.Get("CopyPrimaryKeys", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyForeignKeysXName = System.Xml.Linq.XName.Get("CopyForeignKeys", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName GenerateScriptsInUnicodeXName = System.Xml.Linq.XName.Get("GenerateScriptsInUnicode", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceTranslateCharXName = System.Xml.Linq.XName.Get("SourceTranslateChar", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationTranslateCharXName = System.Xml.Linq.XName.Get("DestinationTranslateChar", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CopyAllDRIObjectsXName = System.Xml.Linq.XName.Get("CopyAllDRIObjects", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferSqlServerObjectsTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator TransferSqlServerObjectsTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<TransferSqlServerObjectsTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public TransferSqlServerObjectsTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName SourceConnectionXName = System.Xml.Linq.XName.Get("SourceConnection", ""); /// <summary> /// <para> @@ -8522,6 +8855,9 @@ public TransferSqlServerObjectsTaskDataObjectDataType() { public virtual string SourceConnection { get { XAttribute x = this.Attribute(SourceConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8529,6 +8865,10 @@ public virtual string SourceConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationConnectionXName = System.Xml.Linq.XName.Get("DestinationConnection", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8537,6 +8877,9 @@ public virtual string SourceConnection { public virtual string DestinationConnection { get { XAttribute x = this.Attribute(DestinationConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8544,6 +8887,10 @@ public virtual string DestinationConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceDatabaseXName = System.Xml.Linq.XName.Get("SourceDatabase", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8552,6 +8899,9 @@ public virtual string DestinationConnection { public virtual string SourceDatabase { get { XAttribute x = this.Attribute(SourceDatabaseXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8559,6 +8909,10 @@ public virtual string SourceDatabase { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationDatabaseXName = System.Xml.Linq.XName.Get("DestinationDatabase", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8567,6 +8921,9 @@ public virtual string SourceDatabase { public virtual string DestinationDatabase { get { XAttribute x = this.Attribute(DestinationDatabaseXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8574,6 +8931,10 @@ public virtual string DestinationDatabase { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllObjectsXName = System.Xml.Linq.XName.Get("CopyAllObjects", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8592,6 +8953,10 @@ public virtual System.Boolean? CopyAllObjects { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllRulesXName = System.Xml.Linq.XName.Get("CopyAllRules", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8610,6 +8975,10 @@ public virtual System.Boolean? CopyAllRules { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllTablesXName = System.Xml.Linq.XName.Get("CopyAllTables", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8628,6 +8997,10 @@ public virtual System.Boolean? CopyAllTables { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllViewsXName = System.Xml.Linq.XName.Get("CopyAllViews", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8646,6 +9019,10 @@ public virtual System.Boolean? CopyAllViews { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllStoredProceduresXName = System.Xml.Linq.XName.Get("CopyAllStoredProcedures", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8664,6 +9041,10 @@ public virtual System.Boolean? CopyAllStoredProcedures { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllUserDefinedFunctionsXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedFunctions", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8682,6 +9063,10 @@ public virtual System.Boolean? CopyAllUserDefinedFunctions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllDefaultsXName = System.Xml.Linq.XName.Get("CopyAllDefaults", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8700,6 +9085,10 @@ public virtual System.Boolean? CopyAllDefaults { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllUserDefinedDataTypesXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedDataTypes", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8718,6 +9107,10 @@ public virtual System.Boolean? CopyAllUserDefinedDataTypes { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllPartitionFunctionsXName = System.Xml.Linq.XName.Get("CopyAllPartitionFunctions", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8736,6 +9129,10 @@ public virtual System.Boolean? CopyAllPartitionFunctions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllPartitionSchemesXName = System.Xml.Linq.XName.Get("CopyAllPartitionSchemes", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8754,6 +9151,10 @@ public virtual System.Boolean? CopyAllPartitionSchemes { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllSchemasXName = System.Xml.Linq.XName.Get("CopyAllSchemas", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8772,6 +9173,10 @@ public virtual System.Boolean? CopyAllSchemas { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllSqlAssembliesXName = System.Xml.Linq.XName.Get("CopyAllSqlAssemblies", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8790,6 +9195,10 @@ public virtual System.Boolean? CopyAllSqlAssemblies { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllUserDefinedAggregatesXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedAggregates", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8808,6 +9217,10 @@ public virtual System.Boolean? CopyAllUserDefinedAggregates { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllUserDefinedTypesXName = System.Xml.Linq.XName.Get("CopyAllUserDefinedTypes", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8826,6 +9239,10 @@ public virtual System.Boolean? CopyAllUserDefinedTypes { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllXmlSchemaCollectionsXName = System.Xml.Linq.XName.Get("CopyAllXmlSchemaCollections", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8844,6 +9261,10 @@ public virtual System.Boolean? CopyAllXmlSchemaCollections { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LoginsListXName = System.Xml.Linq.XName.Get("LoginsList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8852,6 +9273,9 @@ public virtual System.Boolean? CopyAllXmlSchemaCollections { public virtual string LoginsList { get { XAttribute x = this.Attribute(LoginsListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8859,6 +9283,10 @@ public virtual string LoginsList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UsersListXName = System.Xml.Linq.XName.Get("UsersList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8867,6 +9295,9 @@ public virtual string LoginsList { public virtual string UsersList { get { XAttribute x = this.Attribute(UsersListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8874,6 +9305,10 @@ public virtual string UsersList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RulesListXName = System.Xml.Linq.XName.Get("RulesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8882,6 +9317,9 @@ public virtual string UsersList { public virtual string RulesList { get { XAttribute x = this.Attribute(RulesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8889,6 +9327,10 @@ public virtual string RulesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TablesListXName = System.Xml.Linq.XName.Get("TablesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8897,6 +9339,9 @@ public virtual string RulesList { public virtual string TablesList { get { XAttribute x = this.Attribute(TablesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8904,6 +9349,10 @@ public virtual string TablesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ViewsListXName = System.Xml.Linq.XName.Get("ViewsList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8912,6 +9361,9 @@ public virtual string TablesList { public virtual string ViewsList { get { XAttribute x = this.Attribute(ViewsListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8919,6 +9371,10 @@ public virtual string ViewsList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StoredProceduresListXName = System.Xml.Linq.XName.Get("StoredProceduresList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8927,6 +9383,9 @@ public virtual string ViewsList { public virtual string StoredProceduresList { get { XAttribute x = this.Attribute(StoredProceduresListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8934,6 +9393,10 @@ public virtual string StoredProceduresList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UserDefinedFunctionsListXName = System.Xml.Linq.XName.Get("UserDefinedFunctionsList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8942,6 +9405,9 @@ public virtual string StoredProceduresList { public virtual string UserDefinedFunctionsList { get { XAttribute x = this.Attribute(UserDefinedFunctionsListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8949,6 +9415,10 @@ public virtual string UserDefinedFunctionsList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DefaultsListXName = System.Xml.Linq.XName.Get("DefaultsList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8957,6 +9427,9 @@ public virtual string UserDefinedFunctionsList { public virtual string DefaultsList { get { XAttribute x = this.Attribute(DefaultsListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8964,6 +9437,10 @@ public virtual string DefaultsList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UserDefinedDataTypesListXName = System.Xml.Linq.XName.Get("UserDefinedDataTypesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8972,6 +9449,9 @@ public virtual string DefaultsList { public virtual string UserDefinedDataTypesList { get { XAttribute x = this.Attribute(UserDefinedDataTypesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8979,6 +9459,10 @@ public virtual string UserDefinedDataTypesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PartitionFunctionsListXName = System.Xml.Linq.XName.Get("PartitionFunctionsList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -8987,6 +9471,9 @@ public virtual string UserDefinedDataTypesList { public virtual string PartitionFunctionsList { get { XAttribute x = this.Attribute(PartitionFunctionsListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -8994,6 +9481,10 @@ public virtual string PartitionFunctionsList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PartitionSchemesListXName = System.Xml.Linq.XName.Get("PartitionSchemesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9002,6 +9493,9 @@ public virtual string PartitionFunctionsList { public virtual string PartitionSchemesList { get { XAttribute x = this.Attribute(PartitionSchemesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9009,6 +9503,10 @@ public virtual string PartitionSchemesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SchemasListXName = System.Xml.Linq.XName.Get("SchemasList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9017,6 +9515,9 @@ public virtual string PartitionSchemesList { public virtual string SchemasList { get { XAttribute x = this.Attribute(SchemasListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9024,6 +9525,10 @@ public virtual string SchemasList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlAssembliesListXName = System.Xml.Linq.XName.Get("SqlAssembliesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9032,6 +9537,9 @@ public virtual string SchemasList { public virtual string SqlAssembliesList { get { XAttribute x = this.Attribute(SqlAssembliesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9039,6 +9547,10 @@ public virtual string SqlAssembliesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UserDefinedAggregatesListXName = System.Xml.Linq.XName.Get("UserDefinedAggregatesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9047,6 +9559,9 @@ public virtual string SqlAssembliesList { public virtual string UserDefinedAggregatesList { get { XAttribute x = this.Attribute(UserDefinedAggregatesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9054,6 +9569,10 @@ public virtual string UserDefinedAggregatesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UserDefinedTypesListXName = System.Xml.Linq.XName.Get("UserDefinedTypesList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9062,6 +9581,9 @@ public virtual string UserDefinedAggregatesList { public virtual string UserDefinedTypesList { get { XAttribute x = this.Attribute(UserDefinedTypesListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9069,6 +9591,10 @@ public virtual string UserDefinedTypesList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName XmlSchemaCollectionsListXName = System.Xml.Linq.XName.Get("XmlSchemaCollectionsList", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9077,6 +9603,9 @@ public virtual string UserDefinedTypesList { public virtual string XmlSchemaCollectionsList { get { XAttribute x = this.Attribute(XmlSchemaCollectionsListXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9084,6 +9613,10 @@ public virtual string XmlSchemaCollectionsList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DropObjectsFirstXName = System.Xml.Linq.XName.Get("DropObjectsFirst", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9102,6 +9635,10 @@ public virtual System.Boolean? DropObjectsFirst { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeDependentObjectsXName = System.Xml.Linq.XName.Get("IncludeDependentObjects", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9120,6 +9657,10 @@ public virtual System.Boolean? IncludeDependentObjects { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeExtendedPropertiesXName = System.Xml.Linq.XName.Get("IncludeExtendedProperties", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9138,6 +9679,10 @@ public virtual System.Boolean? IncludeExtendedProperties { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyDataXName = System.Xml.Linq.XName.Get("CopyData", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9156,6 +9701,10 @@ public virtual System.Boolean? CopyData { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExistingDataXName = System.Xml.Linq.XName.Get("ExistingData", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9167,13 +9716,22 @@ public virtual Microsoft.SqlServer.Dts.TransferSqlServerObjectsTaskExistingDataE if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.TransferSqlServerObjectsTaskExistingDataEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.TransferSqlServerObjectsTaskExistingDataEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.TransferSqlServerObjectsTaskExistingDataEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.TransferSqlServerObjectsTaskExistingDataEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.TransferSqlServerObjectsTaskExistingDataEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExistingDataXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExistingDataXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExistingDataXName, value.ToString(), "ExistingData", global::Microsoft.SqlServer.Dts.TransferSqlServerObjectsTaskExistingDataEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopySchemaXName = System.Xml.Linq.XName.Get("CopySchema", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9192,6 +9750,10 @@ public virtual System.Boolean? CopySchema { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UseCollationXName = System.Xml.Linq.XName.Get("UseCollation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9210,6 +9772,10 @@ public virtual System.Boolean? UseCollation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyDatabaseUsersXName = System.Xml.Linq.XName.Get("CopyDatabaseUsers", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9228,6 +9794,10 @@ public virtual System.Boolean? CopyDatabaseUsers { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyDatabaseRolesXName = System.Xml.Linq.XName.Get("CopyDatabaseRoles", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9246,6 +9816,10 @@ public virtual System.Boolean? CopyDatabaseRoles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopySqlServerLoginsXName = System.Xml.Linq.XName.Get("CopySqlServerLogins", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9264,6 +9838,10 @@ public virtual System.Boolean? CopySqlServerLogins { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyObjectLevelPermissionsXName = System.Xml.Linq.XName.Get("CopyObjectLevelPermissions", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9282,6 +9860,10 @@ public virtual System.Boolean? CopyObjectLevelPermissions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyIndexesXName = System.Xml.Linq.XName.Get("CopyIndexes", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9300,6 +9882,10 @@ public virtual System.Boolean? CopyIndexes { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyTriggersXName = System.Xml.Linq.XName.Get("CopyTriggers", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9318,6 +9904,10 @@ public virtual System.Boolean? CopyTriggers { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyFullTextIndexesXName = System.Xml.Linq.XName.Get("CopyFullTextIndexes", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9336,6 +9926,10 @@ public virtual System.Boolean? CopyFullTextIndexes { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyPrimaryKeysXName = System.Xml.Linq.XName.Get("CopyPrimaryKeys", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9354,6 +9948,10 @@ public virtual System.Boolean? CopyPrimaryKeys { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyForeignKeysXName = System.Xml.Linq.XName.Get("CopyForeignKeys", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9372,6 +9970,10 @@ public virtual System.Boolean? CopyForeignKeys { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName GenerateScriptsInUnicodeXName = System.Xml.Linq.XName.Get("GenerateScriptsInUnicode", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9390,6 +9992,10 @@ public virtual System.Boolean? GenerateScriptsInUnicode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceTranslateCharXName = System.Xml.Linq.XName.Get("SourceTranslateChar", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9408,6 +10014,10 @@ public virtual System.Boolean? SourceTranslateChar { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationTranslateCharXName = System.Xml.Linq.XName.Get("DestinationTranslateChar", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9426,6 +10036,10 @@ public virtual System.Boolean? DestinationTranslateChar { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CopyAllDRIObjectsXName = System.Xml.Linq.XName.Get("CopyAllDRIObjects", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9444,6 +10058,12 @@ public virtual System.Boolean? CopyAllDRIObjects { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("TransferSqlServerObjectsTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9464,14 +10084,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<TransferSqlServerObjectsTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum TransferSqlServerObjectsTaskExistingDataEnum { @@ -9483,51 +10095,29 @@ public enum TransferSqlServerObjectsTaskExistingDataEnum { public sealed class TransferSqlServerObjectsTaskExistingDataEnumValidator { + private TransferSqlServerObjectsTaskExistingDataEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Replace", "Append"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private TransferSqlServerObjectsTaskExistingDataEnumValidator() { - } } public partial class WMIDRTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WQLQuerySourceTypeXName = System.Xml.Linq.XName.Get("WQLQuerySourceType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WQLQuerySourceXName = System.Xml.Linq.XName.Get("WQLQuerySource", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationTypeXName = System.Xml.Linq.XName.Get("DestinationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationXName = System.Xml.Linq.XName.Get("Destination", ""); + public static explicit operator WMIDRTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<WMIDRTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OverwriteDestinationXName = System.Xml.Linq.XName.Get("OverwriteDestination", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<WMIDRTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputTypeXName = System.Xml.Linq.XName.Get("OutputType", ""); + public WMIDRTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WMIConnectionNameXName = System.Xml.Linq.XName.Get("WMIConnectionName", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WMIDRTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator WMIDRTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<WMIDRTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public WMIDRTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName WQLQuerySourceTypeXName = System.Xml.Linq.XName.Get("WQLQuerySourceType", ""); /// <summary> /// <para> @@ -9540,13 +10130,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? WQLQuerySourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(WQLQuerySourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(WQLQuerySourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(WQLQuerySourceTypeXName, value.ToString(), "WQLQuerySourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WQLQuerySourceXName = System.Xml.Linq.XName.Get("WQLQuerySource", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9555,6 +10154,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? WQLQuerySourceType { public virtual string WQLQuerySource { get { XAttribute x = this.Attribute(WQLQuerySourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9562,6 +10164,10 @@ public virtual string WQLQuerySource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationTypeXName = System.Xml.Linq.XName.Get("DestinationType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9573,13 +10179,22 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DestinationType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DestinationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DestinationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DestinationTypeXName, value.ToString(), "DestinationType", global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationXName = System.Xml.Linq.XName.Get("Destination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9588,6 +10203,9 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DestinationType { public virtual string Destination { get { XAttribute x = this.Attribute(DestinationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9595,6 +10213,10 @@ public virtual string Destination { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OverwriteDestinationXName = System.Xml.Linq.XName.Get("OverwriteDestination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9606,13 +10228,22 @@ public virtual Microsoft.SqlServer.Dts.WMITaskDataOverwriteDestinationEnum? Over if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.WMITaskDataOverwriteDestinationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMITaskDataOverwriteDestinationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.WMITaskDataOverwriteDestinationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMITaskDataOverwriteDestinationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.WMITaskDataOverwriteDestinationEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OverwriteDestinationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(OverwriteDestinationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OverwriteDestinationXName, value.ToString(), "OverwriteDestination", global::Microsoft.SqlServer.Dts.WMITaskDataOverwriteDestinationEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputTypeXName = System.Xml.Linq.XName.Get("OutputType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9624,13 +10255,22 @@ public virtual Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnum? OutputType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OutputTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(OutputTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OutputTypeXName, value.ToString(), "OutputType", global::Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WMIConnectionNameXName = System.Xml.Linq.XName.Get("WMIConnectionName", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9639,6 +10279,9 @@ public virtual Microsoft.SqlServer.Dts.WMITaskDataOutputTypeEnum? OutputType { public virtual string WMIConnectionName { get { XAttribute x = this.Attribute(WMIConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9646,6 +10289,12 @@ public virtual string WMIConnectionName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WMIDRTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9666,14 +10315,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<WMIDRTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum WMITaskDataOverwriteDestinationEnum { @@ -9687,14 +10328,14 @@ public enum WMITaskDataOverwriteDestinationEnum { public sealed class WMITaskDataOverwriteDestinationEnumValidator { + private WMITaskDataOverwriteDestinationEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "KeepOriginal", "AppendToDestination", "OverwriteDestination"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private WMITaskDataOverwriteDestinationEnumValidator() { - } } public enum WMITaskDataOutputTypeEnum { @@ -9708,60 +10349,30 @@ public enum WMITaskDataOutputTypeEnum { public sealed class WMITaskDataOutputTypeEnumValidator { + private WMITaskDataOutputTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DataTable", "PropertyNameAndValue", "PropertyValue"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private WMITaskDataOutputTypeEnumValidator() { - } } public partial class WMIEWTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WMIConnectionNameXName = System.Xml.Linq.XName.Get("WMIConnectionName", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WQLQuerySourceTypeXName = System.Xml.Linq.XName.Get("WQLQuerySourceType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WQLQuerySourceXName = System.Xml.Linq.XName.Get("WQLQuerySource", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ActionAtEventXName = System.Xml.Linq.XName.Get("ActionAtEvent", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AfterEventXName = System.Xml.Linq.XName.Get("AfterEvent", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ActionAtTimeoutXName = System.Xml.Linq.XName.Get("ActionAtTimeout", ""); + public static explicit operator WMIEWTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<WMIEWTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AfterTimeoutXName = System.Xml.Linq.XName.Get("AfterTimeout", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<WMIEWTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NumberOfEventsXName = System.Xml.Linq.XName.Get("NumberOfEvents", ""); + public WMIEWTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeoutXName = System.Xml.Linq.XName.Get("Timeout", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WMIEWTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator WMIEWTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<WMIEWTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public WMIEWTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName WMIConnectionNameXName = System.Xml.Linq.XName.Get("WMIConnectionName", ""); /// <summary> /// <para> @@ -9771,6 +10382,9 @@ public WMIEWTaskDataObjectDataType() { public virtual string WMIConnectionName { get { XAttribute x = this.Attribute(WMIConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9778,6 +10392,10 @@ public virtual string WMIConnectionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WQLQuerySourceTypeXName = System.Xml.Linq.XName.Get("WQLQuerySourceType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9789,13 +10407,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? WQLQuerySourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(WQLQuerySourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(WQLQuerySourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(WQLQuerySourceTypeXName, value.ToString(), "WQLQuerySourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WQLQuerySourceXName = System.Xml.Linq.XName.Get("WQLQuerySource", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9804,6 +10431,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? WQLQuerySourceType { public virtual string WQLQuerySource { get { XAttribute x = this.Attribute(WQLQuerySourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -9811,6 +10441,10 @@ public virtual string WQLQuerySource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ActionAtEventXName = System.Xml.Linq.XName.Get("ActionAtEvent", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9822,13 +10456,22 @@ public virtual Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtEventEnum? ActionAtE if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtEventEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtEventEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtEventEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtEventEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtEventEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ActionAtEventXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ActionAtEventXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ActionAtEventXName, value.ToString(), "ActionAtEvent", global::Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtEventEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AfterEventXName = System.Xml.Linq.XName.Get("AfterEvent", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9840,13 +10483,22 @@ public virtual Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum? AfterEvent { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(AfterEventXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(AfterEventXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(AfterEventXName, value.ToString(), "AfterEvent", global::Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ActionAtTimeoutXName = System.Xml.Linq.XName.Get("ActionAtTimeout", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9858,13 +10510,22 @@ public virtual Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtTimeoutEnum? ActionA if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtTimeoutEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtTimeoutEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtTimeoutEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtTimeoutEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtTimeoutEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ActionAtTimeoutXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ActionAtTimeoutXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ActionAtTimeoutXName, value.ToString(), "ActionAtTimeout", global::Microsoft.SqlServer.Dts.WMIEWTaskDataActionAtTimeoutEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AfterTimeoutXName = System.Xml.Linq.XName.Get("AfterTimeout", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9876,13 +10537,22 @@ public virtual Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum? AfterTimeout if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(AfterTimeoutXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(AfterTimeoutXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(AfterTimeoutXName, value.ToString(), "AfterTimeout", global::Microsoft.SqlServer.Dts.WMIEWTaskDataAfterEventEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NumberOfEventsXName = System.Xml.Linq.XName.Get("NumberOfEvents", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9901,6 +10571,10 @@ public virtual System.Int32? NumberOfEvents { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeoutXName = System.Xml.Linq.XName.Get("Timeout", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -9919,6 +10593,12 @@ public virtual System.Int32? Timeout { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WMIEWTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -9939,14 +10619,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<WMIEWTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum WMIEWTaskDataActionAtEventEnum { @@ -9958,13 +10630,13 @@ public enum WMIEWTaskDataActionAtEventEnum { public sealed class WMIEWTaskDataActionAtEventEnumValidator { + private WMIEWTaskDataActionAtEventEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "LogTheEventAndFireDTSEvent", "LogTheEvent"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private WMIEWTaskDataActionAtEventEnumValidator() { - } } public enum WMIEWTaskDataAfterEventEnum { @@ -9978,14 +10650,14 @@ public enum WMIEWTaskDataAfterEventEnum { public sealed class WMIEWTaskDataAfterEventEnumValidator { + private WMIEWTaskDataAfterEventEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "WatchfortheEventAgain", "ReturnWithSuccess", "ReturnWithFailure"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private WMIEWTaskDataAfterEventEnumValidator() { - } } public enum WMIEWTaskDataActionAtTimeoutEnum { @@ -9997,107 +10669,29 @@ public enum WMIEWTaskDataActionAtTimeoutEnum { public sealed class WMIEWTaskDataActionAtTimeoutEnumValidator { + private WMIEWTaskDataActionAtTimeoutEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "LogTimeoutAndFireDTSEvent", "LogTimeout"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private WMIEWTaskDataActionAtTimeoutEnumValidator() { - } } public partial class XMLTaskDataObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OperationTypeXName = System.Xml.Linq.XName.Get("OperationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceTypeXName = System.Xml.Linq.XName.Get("SourceType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceXName = System.Xml.Linq.XName.Get("Source", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SecondOperandTypeXName = System.Xml.Linq.XName.Get("SecondOperandType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SecondOperandXName = System.Xml.Linq.XName.Get("SecondOperand", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SaveOperationResultXName = System.Xml.Linq.XName.Get("SaveOperationResult", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationTypeXName = System.Xml.Linq.XName.Get("DestinationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationXName = System.Xml.Linq.XName.Get("Destination", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OverwriteDestinationXName = System.Xml.Linq.XName.Get("OverwriteDestination", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FailOpOnValidationFailXName = System.Xml.Linq.XName.Get("FailOpOnValidationFail", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FailOpOnDifferenceXName = System.Xml.Linq.XName.Get("FailOpOnDifference", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SaveDiffGramXName = System.Xml.Linq.XName.Get("SaveDiffGram", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DiffGramDestinationTypeXName = System.Xml.Linq.XName.Get("DiffGramDestinationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DiffGramDestinationXName = System.Xml.Linq.XName.Get("DiffGramDestination", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DiffOptionsXName = System.Xml.Linq.XName.Get("DiffOptions", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DiffAlgorithmXName = System.Xml.Linq.XName.Get("DiffAlgorithm", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName XPathStringSourceTypeXName = System.Xml.Linq.XName.Get("XPathStringSourceType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName XPathStringSourceXName = System.Xml.Linq.XName.Get("XPathStringSource", ""); + public static explicit operator XMLTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<XMLTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName XPathOperationXName = System.Xml.Linq.XName.Get("XPathOperation", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<XMLTaskDataObjectDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PutResultInOneNodeXName = System.Xml.Linq.XName.Get("PutResultInOneNode", ""); + public XMLTaskDataObjectDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ValidationTypeXName = System.Xml.Linq.XName.Get("ValidationType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("XMLTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator XMLTaskDataObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<XMLTaskDataObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public XMLTaskDataObjectDataType() { - } + protected internal static readonly System.Xml.Linq.XName OperationTypeXName = System.Xml.Linq.XName.Get("OperationType", ""); /// <summary> /// <para> @@ -10110,13 +10704,22 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskOperationTypeEnum? OperationType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskOperationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskOperationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskOperationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskOperationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.XMLTaskOperationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OperationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(OperationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OperationTypeXName, value.ToString(), "OperationType", global::Microsoft.SqlServer.Dts.XMLTaskOperationTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceTypeXName = System.Xml.Linq.XName.Get("SourceType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10128,13 +10731,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SourceTypeXName, value.ToString(), "SourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceXName = System.Xml.Linq.XName.Get("Source", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10143,6 +10755,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SourceType { public virtual string Source { get { XAttribute x = this.Attribute(SourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10150,6 +10765,10 @@ public virtual string Source { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SecondOperandTypeXName = System.Xml.Linq.XName.Get("SecondOperandType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10161,13 +10780,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SecondOperandType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SecondOperandTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SecondOperandTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SecondOperandTypeXName, value.ToString(), "SecondOperandType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SecondOperandXName = System.Xml.Linq.XName.Get("SecondOperand", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10176,6 +10804,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SecondOperandType { public virtual string SecondOperand { get { XAttribute x = this.Attribute(SecondOperandXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10183,6 +10814,28 @@ public virtual string SecondOperand { } } + public enum SaveOperationResultEnum { + + True, + + False, + } + + public sealed class SaveOperationResultEnumValidator { + + private SaveOperationResultEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SaveOperationResultXName = System.Xml.Linq.XName.Get("SaveOperationResult", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10194,13 +10847,22 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveOperationRe if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveOperationResultEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveOperationResultEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveOperationResultEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveOperationResultEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, SaveOperationResultEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SaveOperationResultXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SaveOperationResultXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SaveOperationResultXName, value.ToString(), "SaveOperationResult", SaveOperationResultEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationTypeXName = System.Xml.Linq.XName.Get("DestinationType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10212,13 +10874,22 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DestinationType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DestinationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DestinationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DestinationTypeXName, value.ToString(), "DestinationType", global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationXName = System.Xml.Linq.XName.Get("Destination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10227,6 +10898,9 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DestinationType { public virtual string Destination { get { XAttribute x = this.Attribute(DestinationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10234,6 +10908,28 @@ public virtual string Destination { } } + public enum OverwriteDestinationEnum { + + True, + + False, + } + + public sealed class OverwriteDestinationEnumValidator { + + private OverwriteDestinationEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OverwriteDestinationXName = System.Xml.Linq.XName.Get("OverwriteDestination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10245,13 +10941,40 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.OverwriteDestin if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.OverwriteDestinationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.OverwriteDestinationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.OverwriteDestinationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.OverwriteDestinationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, OverwriteDestinationEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OverwriteDestinationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(OverwriteDestinationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OverwriteDestinationXName, value.ToString(), "OverwriteDestination", OverwriteDestinationEnumValidator.TypeDefinition); + } + } + } + + public enum FailOpOnValidationFailEnum { + + True, + + False, + } + + public sealed class FailOpOnValidationFailEnumValidator { + + private FailOpOnValidationFailEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FailOpOnValidationFailXName = System.Xml.Linq.XName.Get("FailOpOnValidationFail", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10263,13 +10986,40 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnValidat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnValidationFailEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnValidationFailEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnValidationFailEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnValidationFailEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, FailOpOnValidationFailEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(FailOpOnValidationFailXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(FailOpOnValidationFailXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(FailOpOnValidationFailXName, value.ToString(), "FailOpOnValidationFail", FailOpOnValidationFailEnumValidator.TypeDefinition); + } + } + } + + public enum FailOpOnDifferenceEnum { + + True, + + False, + } + + public sealed class FailOpOnDifferenceEnumValidator { + + private FailOpOnDifferenceEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FailOpOnDifferenceXName = System.Xml.Linq.XName.Get("FailOpOnDifference", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10281,13 +11031,40 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnDiffere if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnDifferenceEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnDifferenceEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnDifferenceEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.FailOpOnDifferenceEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, FailOpOnDifferenceEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(FailOpOnDifferenceXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(FailOpOnDifferenceXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(FailOpOnDifferenceXName, value.ToString(), "FailOpOnDifference", FailOpOnDifferenceEnumValidator.TypeDefinition); + } + } + } + + public enum SaveDiffGramEnum { + + True, + + False, + } + + public sealed class SaveDiffGramEnumValidator { + + private SaveDiffGramEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SaveDiffGramXName = System.Xml.Linq.XName.Get("SaveDiffGram", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10299,13 +11076,22 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveDiffGramEnu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveDiffGramEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveDiffGramEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveDiffGramEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.SaveDiffGramEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, SaveDiffGramEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SaveDiffGramXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SaveDiffGramXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SaveDiffGramXName, value.ToString(), "SaveDiffGram", SaveDiffGramEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DiffGramDestinationTypeXName = System.Xml.Linq.XName.Get("DiffGramDestinationType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10317,13 +11103,22 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DiffGramDestinationT if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.DestinationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.DestinationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DiffGramDestinationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DiffGramDestinationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DiffGramDestinationTypeXName, value.ToString(), "DiffGramDestinationType", global::Microsoft.SqlServer.Dts.DestinationTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DiffGramDestinationXName = System.Xml.Linq.XName.Get("DiffGramDestination", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10332,6 +11127,9 @@ public virtual Microsoft.SqlServer.Dts.DestinationTypeEnum? DiffGramDestinationT public virtual string DiffGramDestination { get { XAttribute x = this.Attribute(DiffGramDestinationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10339,6 +11137,10 @@ public virtual string DiffGramDestination { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DiffOptionsXName = System.Xml.Linq.XName.Get("DiffOptions", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10357,6 +11159,10 @@ public virtual System.Int32? DiffOptions { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DiffAlgorithmXName = System.Xml.Linq.XName.Get("DiffAlgorithm", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10368,13 +11174,22 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskDiffAlgorithmEnum? DiffAlgorithm { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskDiffAlgorithmEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDiffAlgorithmEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskDiffAlgorithmEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDiffAlgorithmEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.XMLTaskDiffAlgorithmEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DiffAlgorithmXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DiffAlgorithmXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DiffAlgorithmXName, value.ToString(), "DiffAlgorithm", global::Microsoft.SqlServer.Dts.XMLTaskDiffAlgorithmEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName XPathStringSourceTypeXName = System.Xml.Linq.XName.Get("XPathStringSourceType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10386,13 +11201,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? XPathStringSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(XPathStringSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(XPathStringSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(XPathStringSourceTypeXName, value.ToString(), "XPathStringSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName XPathStringSourceXName = System.Xml.Linq.XName.Get("XPathStringSource", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10401,6 +11225,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? XPathStringSourceType { public virtual string XPathStringSource { get { XAttribute x = this.Attribute(XPathStringSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10408,6 +11235,10 @@ public virtual string XPathStringSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName XPathOperationXName = System.Xml.Linq.XName.Get("XPathOperation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10419,13 +11250,40 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskXPathOperationEnum? XPathOperation if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskXPathOperationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskXPathOperationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskXPathOperationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskXPathOperationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.XMLTaskXPathOperationEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(XPathOperationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(XPathOperationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(XPathOperationXName, value.ToString(), "XPathOperation", global::Microsoft.SqlServer.Dts.XMLTaskXPathOperationEnumValidator.TypeDefinition); + } + } + } + + public enum PutResultInOneNodeEnum { + + True, + + False, + } + + public sealed class PutResultInOneNodeEnumValidator { + + private PutResultInOneNodeEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PutResultInOneNodeXName = System.Xml.Linq.XName.Get("PutResultInOneNode", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10437,13 +11295,22 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.PutResultInOneN if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.PutResultInOneNodeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.PutResultInOneNodeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.PutResultInOneNodeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskDataObjectDataType.PutResultInOneNodeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, PutResultInOneNodeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(PutResultInOneNodeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(PutResultInOneNodeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(PutResultInOneNodeXName, value.ToString(), "PutResultInOneNode", PutResultInOneNodeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ValidationTypeXName = System.Xml.Linq.XName.Get("ValidationType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10455,13 +11322,24 @@ public virtual Microsoft.SqlServer.Dts.XMLTaskValidationTypeEnum? ValidationType if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.XMLTaskValidationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskValidationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.XMLTaskValidationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.XMLTaskValidationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.XMLTaskValidationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ValidationTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ValidationTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ValidationTypeXName, value.ToString(), "ValidationType", global::Microsoft.SqlServer.Dts.XMLTaskValidationTypeEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("XMLTaskDataObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10482,56 +11360,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<XMLTaskDataObjectDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum SaveOperationResultEnum { - - True, - - False, - } - - public enum OverwriteDestinationEnum { - - True, - - False, - } - - public enum FailOpOnValidationFailEnum { - - True, - - False, - } - - public enum FailOpOnDifferenceEnum { - - True, - - False, - } - - public enum SaveDiffGramEnum { - - True, - - False, - } - - public enum PutResultInOneNodeEnum { - - True, - - False, - } } public enum XMLTaskOperationTypeEnum { @@ -10551,6 +11379,9 @@ public enum XMLTaskOperationTypeEnum { public sealed class XMLTaskOperationTypeEnumValidator { + private XMLTaskOperationTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Diff", @@ -10559,18 +11390,15 @@ public sealed class XMLTaskOperationTypeEnumValidator { "XSLT", "XPATH", "Patch"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private XMLTaskOperationTypeEnumValidator() { - } } public sealed class XMLTaskDiffOptionsType { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 255, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private XMLTaskDiffOptionsType() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 255, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public enum XMLTaskDiffAlgorithmEnum { @@ -10584,14 +11412,14 @@ public enum XMLTaskDiffAlgorithmEnum { public sealed class XMLTaskDiffAlgorithmEnumValidator { + private XMLTaskDiffAlgorithmEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Auto", "Fast", "Precise"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private XMLTaskDiffAlgorithmEnumValidator() { - } } public enum XMLTaskXPathOperationEnum { @@ -10605,14 +11433,14 @@ public enum XMLTaskXPathOperationEnum { public sealed class XMLTaskXPathOperationEnumValidator { + private XMLTaskXPathOperationEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Evaluation", "NodeList", "Values"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private XMLTaskXPathOperationEnumValidator() { - } } public enum XMLTaskValidationTypeEnum { @@ -10624,13 +11452,13 @@ public enum XMLTaskValidationTypeEnum { public sealed class XMLTaskValidationTypeEnumValidator { + private XMLTaskValidationTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DTD", "XSD"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private XMLTaskValidationTypeEnumValidator() { - } } /// <summary> @@ -10640,15 +11468,10 @@ private XMLTaskValidationTypeEnumValidator() { /// </summary> public partial class InnerObjectObjectDataType : XTypedElement, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InnerObjectObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; - public static explicit operator InnerObjectObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<InnerObjectObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static InnerObjectObjectDataType() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<InnerObjectObjectDataType>(this); } /// <summary> @@ -10670,6 +11493,25 @@ public virtual IEnumerable<XElement> Any { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("InnerObjectObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); + validationStates = new FSM(1, new Set<int>(1), transitions); + } + + static InnerObjectObjectDataType() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10690,20 +11532,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<InnerObjectObjectDataType>(this); - } - - FSM IXMetaData.GetValidationStates() { - return validationStates; - } - - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); - validationStates = new FSM(1, new Set<int>(1), transitions); - } } /// <summary> @@ -10713,63 +11541,10 @@ private static void InitFSM() { /// </summary> public partial class pipelineObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName componentsXName = System.Xml.Linq.XName.Get("components", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pathsXName = System.Xml.Linq.XName.Get("paths", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName defaultBufferMaxRowsXName = System.Xml.Linq.XName.Get("defaultBufferMaxRows", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName engineThreadsXName = System.Xml.Linq.XName.Get("engineThreads", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName defaultBufferSizeXName = System.Xml.Linq.XName.Get("defaultBufferSize", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BLOBTempStoragePathXName = System.Xml.Linq.XName.Get("BLOBTempStoragePath", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName bufferTempStoragePathXName = System.Xml.Linq.XName.Get("bufferTempStoragePath", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName runInOptimizedModeXName = System.Xml.Linq.XName.Get("runInOptimizedMode", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("pipelineObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator pipelineObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<pipelineObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static pipelineObjectDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(componentsXName), new NamedContentModelEntity(pathsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<pipelineObjectDataType>(this); } /// <summary> @@ -10780,6 +11555,10 @@ static pipelineObjectDataType() { public pipelineObjectDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName componentsXName = System.Xml.Linq.XName.Get("components", ""); + /// <summary> /// <para> /// Occurrence: required @@ -10798,6 +11577,10 @@ public virtual PipelineComponentsType components { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pathsXName = System.Xml.Linq.XName.Get("paths", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10809,6 +11592,9 @@ public virtual PipelineComponentsType components { public virtual PipelinePathsType paths { get { XElement x = this.GetElement(pathsXName); + if ((x == null)) { + return null; + } return ((PipelinePathsType)(x)); } set { @@ -10816,6 +11602,10 @@ public virtual PipelinePathsType paths { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10824,6 +11614,9 @@ public virtual PipelinePathsType paths { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10831,6 +11624,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10839,6 +11636,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10846,6 +11646,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10854,6 +11658,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10861,6 +11668,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName defaultBufferMaxRowsXName = System.Xml.Linq.XName.Get("defaultBufferMaxRows", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10879,6 +11690,10 @@ public virtual System.Int32? defaultBufferMaxRows { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName engineThreadsXName = System.Xml.Linq.XName.Get("engineThreads", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10897,6 +11712,10 @@ public virtual System.Int32? engineThreads { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName defaultBufferSizeXName = System.Xml.Linq.XName.Get("defaultBufferSize", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10915,6 +11734,10 @@ public virtual System.Int32? defaultBufferSize { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BLOBTempStoragePathXName = System.Xml.Linq.XName.Get("BLOBTempStoragePath", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10923,6 +11746,9 @@ public virtual System.Int32? defaultBufferSize { public virtual string BLOBTempStoragePath { get { XAttribute x = this.Attribute(BLOBTempStoragePathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10930,6 +11756,10 @@ public virtual string BLOBTempStoragePath { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName bufferTempStoragePathXName = System.Xml.Linq.XName.Get("bufferTempStoragePath", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10938,6 +11768,9 @@ public virtual string BLOBTempStoragePath { public virtual string bufferTempStoragePath { get { XAttribute x = this.Attribute(bufferTempStoragePathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -10945,6 +11778,10 @@ public virtual string bufferTempStoragePath { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName runInOptimizedModeXName = System.Xml.Linq.XName.Get("runInOptimizedMode", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -10963,6 +11800,21 @@ public virtual System.Boolean? runInOptimizedMode { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("pipelineObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static pipelineObjectDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(componentsXName), new NamedContentModelEntity(pathsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(componentsXName, typeof(PipelineComponentsType)); + localElementDictionary.Add(pathsXName, typeof(PipelinePathsType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -10970,6 +11822,13 @@ public virtual System.Boolean? runInOptimizedMode { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -10990,19 +11849,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<pipelineObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(componentsXName, typeof(PipelineComponentsType)); - localElementDictionary.Add(pathsXName, typeof(PipelinePathsType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -11012,26 +11858,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName componentXName = System.Xml.Linq.XName.Get("component", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentType> componentField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(componentXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentsType>(this); } /// <summary> @@ -11042,6 +11872,13 @@ static PipelineComponentsType() { public PipelineComponentsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName componentXName = System.Xml.Linq.XName.Get("component", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentType> componentField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -11072,6 +11909,20 @@ public virtual IList<PipelineComponentType> component { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(componentXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(componentXName, typeof(PipelineComponentType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -11079,6 +11930,13 @@ public virtual IList<PipelineComponentType> component { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11099,18 +11957,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(componentXName, typeof(PipelineComponentType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -11120,26 +11966,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelinePathsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pathXName = System.Xml.Linq.XName.Get("path", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelinePathType> pathField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelinePathsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelinePathsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelinePathsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelinePathsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(pathXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelinePathsType>(this); } /// <summary> @@ -11150,6 +11980,13 @@ static PipelinePathsType() { public PipelinePathsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pathXName = System.Xml.Linq.XName.Get("path", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelinePathType> pathField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -11180,6 +12017,20 @@ public virtual IList<PipelinePathType> path { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelinePathsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelinePathsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(pathXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(pathXName, typeof(PipelinePathType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -11187,6 +12038,13 @@ public virtual IList<PipelinePathType> path { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11207,18 +12065,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelinePathsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(pathXName, typeof(PipelinePathType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -11228,75 +12074,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName connectionsXName = System.Xml.Linq.XName.Get("connections", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName inputsXName = System.Xml.Linq.XName.Get("inputs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName outputsXName = System.Xml.Linq.XName.Get("outputs", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName componentClassIDXName = System.Xml.Linq.XName.Get("componentClassID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName localeIdXName = System.Xml.Linq.XName.Get("localeId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName usesDispositionsXName = System.Xml.Linq.XName.Get("usesDispositions", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName validateExternalMetadataXName = System.Xml.Linq.XName.Get("validateExternalMetadata", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName pipelineVersionXName = System.Xml.Linq.XName.Get("pipelineVersion", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName contactInfoXName = System.Xml.Linq.XName.Get("contactInfo", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName), new NamedContentModelEntity(connectionsXName), new NamedContentModelEntity(inputsXName), new NamedContentModelEntity(outputsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentType>(this); } /// <summary> @@ -11307,6 +12088,10 @@ static PipelineComponentType() { public PipelineComponentType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11318,6 +12103,9 @@ public PipelineComponentType() { public virtual PipelineComponentPropertiesType properties { get { XElement x = this.GetElement(propertiesXName); + if ((x == null)) { + return null; + } return ((PipelineComponentPropertiesType)(x)); } set { @@ -11325,6 +12113,10 @@ public virtual PipelineComponentPropertiesType properties { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName connectionsXName = System.Xml.Linq.XName.Get("connections", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11336,6 +12128,9 @@ public virtual PipelineComponentPropertiesType properties { public virtual PipelineComponentConnectionsType connections { get { XElement x = this.GetElement(connectionsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentConnectionsType)(x)); } set { @@ -11343,6 +12138,10 @@ public virtual PipelineComponentConnectionsType connections { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName inputsXName = System.Xml.Linq.XName.Get("inputs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11354,6 +12153,9 @@ public virtual PipelineComponentConnectionsType connections { public virtual PipelineComponentInputsType inputs { get { XElement x = this.GetElement(inputsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentInputsType)(x)); } set { @@ -11361,6 +12163,10 @@ public virtual PipelineComponentInputsType inputs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName outputsXName = System.Xml.Linq.XName.Get("outputs", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11372,6 +12178,9 @@ public virtual PipelineComponentInputsType inputs { public virtual PipelineComponentOutputsType outputs { get { XElement x = this.GetElement(outputsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentOutputsType)(x)); } set { @@ -11379,6 +12188,10 @@ public virtual PipelineComponentOutputsType outputs { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11387,6 +12200,9 @@ public virtual PipelineComponentOutputsType outputs { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11394,6 +12210,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11402,6 +12222,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11409,21 +12232,37 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName componentClassIDXName = System.Xml.Linq.XName.Get("componentClassID", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string componentClassID { + public virtual Microsoft.SqlServer.Dts.PipelineComponentComponentClassIDEnum? componentClassID { get { XAttribute x = this.Attribute(componentClassIDXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentComponentClassIDEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentComponentClassIDEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentComponentClassIDEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(componentClassIDXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(componentClassIDXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(componentClassIDXName, value.ToString(), "componentClassID", global::Microsoft.SqlServer.Dts.PipelineComponentComponentClassIDEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11432,6 +12271,9 @@ public virtual string componentClassID { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11439,6 +12281,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName localeIdXName = System.Xml.Linq.XName.Get("localeId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11457,6 +12303,10 @@ public virtual System.Int32? localeId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName usesDispositionsXName = System.Xml.Linq.XName.Get("usesDispositions", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11475,6 +12325,28 @@ public virtual System.Boolean? usesDispositions { } } + public enum ValidateExternalMetadataEnum { + + True, + + False, + } + + public sealed class ValidateExternalMetadataEnumValidator { + + private ValidateExternalMetadataEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName validateExternalMetadataXName = System.Xml.Linq.XName.Get("validateExternalMetadata", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11486,13 +12358,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentType.ValidateExternalMet if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentType.ValidateExternalMetadataEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentType.ValidateExternalMetadataEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentType.ValidateExternalMetadataEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentType.ValidateExternalMetadataEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ValidateExternalMetadataEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(validateExternalMetadataXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(validateExternalMetadataXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(validateExternalMetadataXName, value.ToString(), "validateExternalMetadata", ValidateExternalMetadataEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName versionXName = System.Xml.Linq.XName.Get("version", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11511,6 +12392,10 @@ public virtual System.Int32? version { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName pipelineVersionXName = System.Xml.Linq.XName.Get("pipelineVersion", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11529,6 +12414,10 @@ public virtual System.Int32? pipelineVersion { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName contactInfoXName = System.Xml.Linq.XName.Get("contactInfo", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -11537,6 +12426,9 @@ public virtual System.Int32? pipelineVersion { public virtual string contactInfo { get { XAttribute x = this.Attribute(contactInfoXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -11544,6 +12436,23 @@ public virtual string contactInfo { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName), new NamedContentModelEntity(connectionsXName), new NamedContentModelEntity(inputsXName), new NamedContentModelEntity(outputsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertiesXName, typeof(PipelineComponentPropertiesType)); + localElementDictionary.Add(connectionsXName, typeof(PipelineComponentConnectionsType)); + localElementDictionary.Add(inputsXName, typeof(PipelineComponentInputsType)); + localElementDictionary.Add(outputsXName, typeof(PipelineComponentOutputsType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -11551,6 +12460,13 @@ public virtual string contactInfo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11571,28 +12487,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertiesXName, typeof(PipelineComponentPropertiesType)); - localElementDictionary.Add(connectionsXName, typeof(PipelineComponentConnectionsType)); - localElementDictionary.Add(inputsXName, typeof(PipelineComponentInputsType)); - localElementDictionary.Add(outputsXName, typeof(PipelineComponentOutputsType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum ValidateExternalMetadataEnum { - - True, - - False, - } } /// <summary> @@ -11602,26 +12496,10 @@ public enum ValidateExternalMetadataEnum { /// </summary> public partial class PipelineComponentPropertiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentPropertyType> propertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentPropertiesType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentPropertiesType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentPropertiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentPropertiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentPropertiesType>(this); } /// <summary> @@ -11632,6 +12510,13 @@ static PipelineComponentPropertiesType() { public PipelineComponentPropertiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentPropertyType> propertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -11662,6 +12547,20 @@ public virtual IList<PipelineComponentPropertyType> property { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentPropertiesType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentPropertiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertyXName, typeof(PipelineComponentPropertyType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -11669,6 +12568,13 @@ public virtual IList<PipelineComponentPropertyType> property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11689,18 +12595,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentPropertiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertyXName, typeof(PipelineComponentPropertyType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -11710,26 +12604,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentOutputPropertiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentOutputPropertyType> propertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputPropertiesType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentOutputPropertiesType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputPropertiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentOutputPropertiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputPropertiesType>(this); } /// <summary> @@ -11740,6 +12618,13 @@ static PipelineComponentOutputPropertiesType() { public PipelineComponentOutputPropertiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentOutputPropertyType> propertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -11770,6 +12655,20 @@ public virtual IList<PipelineComponentOutputPropertyType> property { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputPropertiesType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentOutputPropertiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertyXName, typeof(PipelineComponentOutputPropertyType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -11777,6 +12676,13 @@ public virtual IList<PipelineComponentOutputPropertyType> property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11797,18 +12703,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputPropertiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertyXName, typeof(PipelineComponentOutputPropertyType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -11818,26 +12712,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentInputPropertiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentInputPropertyType> propertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputPropertiesType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentInputPropertiesType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputPropertiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentInputPropertiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputPropertiesType>(this); } /// <summary> @@ -11848,6 +12726,13 @@ static PipelineComponentInputPropertiesType() { public PipelineComponentInputPropertiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentInputPropertyType> propertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -11878,6 +12763,20 @@ public virtual IList<PipelineComponentInputPropertyType> property { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputPropertiesType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentInputPropertiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertyXName, typeof(PipelineComponentInputPropertyType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -11885,6 +12784,13 @@ public virtual IList<PipelineComponentInputPropertyType> property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -11905,18 +12811,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputPropertiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertyXName, typeof(PipelineComponentInputPropertyType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -11926,26 +12820,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentConnectionsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName connectionXName = System.Xml.Linq.XName.Get("connection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentConnectionType> connectionField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentConnectionsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentConnectionsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentConnectionsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentConnectionsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(connectionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentConnectionsType>(this); } /// <summary> @@ -11956,6 +12834,13 @@ static PipelineComponentConnectionsType() { public PipelineComponentConnectionsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName connectionXName = System.Xml.Linq.XName.Get("connection", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentConnectionType> connectionField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -11986,6 +12871,20 @@ public virtual IList<PipelineComponentConnectionType> connection { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentConnectionsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentConnectionsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(connectionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(connectionXName, typeof(PipelineComponentConnectionType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -11993,6 +12892,13 @@ public virtual IList<PipelineComponentConnectionType> connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12013,18 +12919,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentConnectionsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(connectionXName, typeof(PipelineComponentConnectionType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -12034,26 +12928,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentInputsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName inputXName = System.Xml.Linq.XName.Get("input", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentInputType> inputField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentInputsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentInputsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(inputXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputsType>(this); } /// <summary> @@ -12064,6 +12942,13 @@ static PipelineComponentInputsType() { public PipelineComponentInputsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName inputXName = System.Xml.Linq.XName.Get("input", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentInputType> inputField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -12094,6 +12979,20 @@ public virtual IList<PipelineComponentInputType> input { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentInputsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(inputXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(inputXName, typeof(PipelineComponentInputType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -12101,6 +13000,13 @@ public virtual IList<PipelineComponentInputType> input { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12121,18 +13027,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(inputXName, typeof(PipelineComponentInputType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -12142,26 +13036,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentOutputsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName outputXName = System.Xml.Linq.XName.Get("output", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentOutputType> outputField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentOutputsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentOutputsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(outputXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputsType>(this); } /// <summary> @@ -12172,6 +13050,13 @@ static PipelineComponentOutputsType() { public PipelineComponentOutputsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName outputXName = System.Xml.Linq.XName.Get("output", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentOutputType> outputField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -12202,6 +13087,20 @@ public virtual IList<PipelineComponentOutputType> output { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentOutputsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(outputXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(outputXName, typeof(PipelineComponentOutputType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -12209,6 +13108,13 @@ public virtual IList<PipelineComponentOutputType> output { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12229,18 +13135,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(outputXName, typeof(PipelineComponentOutputType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -12250,23 +13144,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class Test : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Test", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator Test(XElement xe) { return XTypedServices.ToXTypedElement<Test>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Test() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Test>(this); } /// <summary> @@ -12277,6 +13158,10 @@ static Test() { public Test() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -12288,6 +13173,9 @@ public Test() { public virtual arrayElementsLocalType arrayElements { get { XElement x = this.GetElement(arrayElementsXName); + if ((x == null)) { + return null; + } return ((arrayElementsLocalType)(x)); } set { @@ -12295,6 +13183,20 @@ public virtual arrayElementsLocalType arrayElements { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Test", "www.microsoft.com/SqlServer/Dts"); + + static Test() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(arrayElementsXName, typeof(arrayElementsLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -12302,6 +13204,13 @@ public virtual arrayElementsLocalType arrayElements { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12323,18 +13232,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Test>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(arrayElementsXName, typeof(arrayElementsLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - /// <summary> /// <para> /// Regular expression: (any) @@ -12342,15 +13239,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class arrayElementsLocalType : XTypedElement, IXMetaData { - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("arrayElements", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FSM validationStates; - public static explicit operator arrayElementsLocalType(XElement xe) { return XTypedServices.ToXTypedElement<arrayElementsLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static arrayElementsLocalType() { - InitFSM(); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<arrayElementsLocalType>(this); } /// <summary> @@ -12372,6 +13264,25 @@ public virtual IEnumerable<XElement> Any { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("arrayElements", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static FSM validationStates; + + FSM IXMetaData.GetValidationStates() { + return validationStates; + } + + private static void InitFSM() { + Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); + transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); + validationStates = new FSM(1, new Set<int>(1), transitions); + } + + static arrayElementsLocalType() { + InitFSM(); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12392,20 +13303,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<arrayElementsLocalType>(this); - } - - FSM IXMetaData.GetValidationStates() { - return validationStates; - } - - private static void InitFSM() { - Dictionary<int, Transitions> transitions = new Dictionary<int, Transitions>(); - transitions.Add(1, new Transitions(new SingleTransition(new WildCard("##any", "www.microsoft.com/SqlServer/Dts"), 1))); - validationStates = new FSM(1, new Set<int>(1), transitions); - } } } @@ -12416,63 +13313,10 @@ private static void InitFSM() { /// </summary> public partial class PipelineComponentPropertyType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentPropertyType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentPropertyType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentPropertyType>(this); } /// <summary> @@ -12483,6 +13327,10 @@ static PipelineComponentPropertyType() { public PipelineComponentPropertyType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12494,6 +13342,9 @@ public PipelineComponentPropertyType() { public virtual PipelineComponentArrayElementsType arrayElements { get { XElement x = this.GetElement(arrayElementsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentArrayElementsType)(x)); } set { @@ -12501,21 +13352,37 @@ public virtual PipelineComponentArrayElementsType arrayElements { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string name { + public virtual Microsoft.SqlServer.Dts.PipelineComponentPropertyNameEnum? name { get { XAttribute x = this.Attribute(nameXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(nameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(nameXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(nameXName, value.ToString(), "name", global::Microsoft.SqlServer.Dts.PipelineComponentPropertyNameEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12524,6 +13391,9 @@ public virtual string name { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12531,36 +13401,64 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string state { + public virtual Microsoft.SqlServer.Dts.PipelineComponentStateEnum? state { get { XAttribute x = this.Attribute(stateXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12579,6 +13477,10 @@ public virtual System.Boolean? isArray { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12587,6 +13489,9 @@ public virtual System.Boolean? isArray { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12594,6 +13499,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12602,6 +13511,9 @@ public virtual string description { public virtual string typeConverter { get { XAttribute x = this.Attribute(typeConverterXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12609,6 +13521,10 @@ public virtual string typeConverter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12617,6 +13533,9 @@ public virtual string typeConverter { public virtual string UITypeEditor { get { XAttribute x = this.Attribute(UITypeEditorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12624,6 +13543,10 @@ public virtual string UITypeEditor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12642,6 +13565,10 @@ public virtual System.Boolean? containsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12653,19 +13580,45 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum? expr if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(expressionTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(expressionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(expressionTypeXName, value.ToString(), "expressionType", global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition); + } } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentPropertyType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentPropertyType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(arrayElementsXName, typeof(PipelineComponentArrayElementsType)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { + get { + return localElementDictionary; + } + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { @@ -12687,18 +13640,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentPropertyType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(arrayElementsXName, typeof(PipelineComponentArrayElementsType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -12708,63 +13649,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentOutputPropertyType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputPropertyType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentOutputPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentOutputPropertyType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputPropertyType>(this); } /// <summary> @@ -12775,6 +13663,10 @@ static PipelineComponentOutputPropertyType() { public PipelineComponentOutputPropertyType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12786,6 +13678,9 @@ public PipelineComponentOutputPropertyType() { public virtual PipelineComponentArrayElementsType arrayElements { get { XElement x = this.GetElement(arrayElementsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentArrayElementsType)(x)); } set { @@ -12793,6 +13688,10 @@ public virtual PipelineComponentArrayElementsType arrayElements { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12801,6 +13700,9 @@ public virtual PipelineComponentArrayElementsType arrayElements { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12808,36 +13710,64 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string state { + public virtual Microsoft.SqlServer.Dts.PipelineComponentStateEnum? state { get { XAttribute x = this.Attribute(stateXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12856,6 +13786,10 @@ public virtual System.Boolean? isArray { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12864,6 +13798,9 @@ public virtual System.Boolean? isArray { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12871,6 +13808,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12879,6 +13820,9 @@ public virtual string description { public virtual string typeConverter { get { XAttribute x = this.Attribute(typeConverterXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12886,6 +13830,10 @@ public virtual string typeConverter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12894,6 +13842,9 @@ public virtual string typeConverter { public virtual string UITypeEditor { get { XAttribute x = this.Attribute(UITypeEditorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -12901,6 +13852,10 @@ public virtual string UITypeEditor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12919,6 +13874,10 @@ public virtual System.Boolean? containsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12930,13 +13889,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum? expr if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(expressionTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(expressionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(expressionTypeXName, value.ToString(), "expressionType", global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -12948,13 +13916,32 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnum? if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(nameXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(nameXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(nameXName, value.ToString(), "name", global::Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputPropertyType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentOutputPropertyType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(arrayElementsXName, typeof(PipelineComponentArrayElementsType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -12962,6 +13949,13 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentOutputPropertyNameEnum? } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -12982,18 +13976,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputPropertyType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(arrayElementsXName, typeof(PipelineComponentArrayElementsType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -13003,63 +13985,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentInputPropertyType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputPropertyType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentInputPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentInputPropertyType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputPropertyType>(this); } /// <summary> @@ -13070,6 +13999,10 @@ static PipelineComponentInputPropertyType() { public PipelineComponentInputPropertyType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arrayElementsXName = System.Xml.Linq.XName.Get("arrayElements", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13081,6 +14014,9 @@ public PipelineComponentInputPropertyType() { public virtual PipelineComponentArrayElementsType arrayElements { get { XElement x = this.GetElement(arrayElementsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentArrayElementsType)(x)); } set { @@ -13088,6 +14024,10 @@ public virtual PipelineComponentArrayElementsType arrayElements { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13096,6 +14036,9 @@ public virtual PipelineComponentArrayElementsType arrayElements { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13103,36 +14046,64 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string state { + public virtual Microsoft.SqlServer.Dts.PipelineComponentStateEnum? state { get { XAttribute x = this.Attribute(stateXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13151,6 +14122,10 @@ public virtual System.Boolean? isArray { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13159,6 +14134,9 @@ public virtual System.Boolean? isArray { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13166,6 +14144,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13174,6 +14156,9 @@ public virtual string description { public virtual string typeConverter { get { XAttribute x = this.Attribute(typeConverterXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13181,6 +14166,10 @@ public virtual string typeConverter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13189,6 +14178,9 @@ public virtual string typeConverter { public virtual string UITypeEditor { get { XAttribute x = this.Attribute(UITypeEditorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13196,6 +14188,10 @@ public virtual string UITypeEditor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13214,6 +14210,10 @@ public virtual System.Boolean? containsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13225,13 +14225,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum? expr if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(expressionTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(expressionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(expressionTypeXName, value.ToString(), "expressionType", global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13240,6 +14249,9 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum? expr public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -13247,6 +14259,20 @@ public virtual string name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputPropertyType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentInputPropertyType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(arrayElementsXName, typeof(PipelineComponentArrayElementsType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -13254,6 +14280,13 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -13274,18 +14307,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputPropertyType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(arrayElementsXName, typeof(PipelineComponentArrayElementsType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -13295,30 +14316,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentArrayElementsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arrayElementXName = System.Xml.Linq.XName.Get("arrayElement", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentArrayElementType> arrayElementField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName arrayElementCountXName = System.Xml.Linq.XName.Get("arrayElementCount", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentArrayElementsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentArrayElementsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentArrayElementsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentArrayElementsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentArrayElementsType>(this); } /// <summary> @@ -13329,6 +14330,13 @@ static PipelineComponentArrayElementsType() { public PipelineComponentArrayElementsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arrayElementXName = System.Xml.Linq.XName.Get("arrayElement", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentArrayElementType> arrayElementField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -13359,6 +14367,10 @@ public virtual IList<PipelineComponentArrayElementType> arrayElement { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName arrayElementCountXName = System.Xml.Linq.XName.Get("arrayElementCount", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -13377,6 +14389,20 @@ public virtual System.Int32? arrayElementCount { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentArrayElementsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentArrayElementsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(arrayElementXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(arrayElementXName, typeof(PipelineComponentArrayElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -13384,6 +14410,13 @@ public virtual System.Int32? arrayElementCount { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -13404,37 +14437,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentArrayElementsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(arrayElementXName, typeof(PipelineComponentArrayElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class PipelineComponentArrayElementType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentArrayElementType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PipelineComponentArrayElementType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentArrayElementType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentArrayElementType>(this); + } + public PipelineComponentArrayElementType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -13445,21 +14464,39 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentArrayElementType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -13480,103 +14517,416 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public enum PipelineComponentComponentClassIDEnum { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentArrayElementType>(this); - } + _9ABE8DF3_0052_42DB_8B18_2089E1D1D1B7_, - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } + _32711D35_7D9D_44E5_B57E_A17D33D5C38C_, + + _A236DD44_4409_433E_A1CE_283DA18F4E0F_, + + _DEC33219_BA68_4FEB_AC98_9C1B1E577A8D_, + + _3AE878C6_0D6C_4F48_8128_40E00E9C1B7D_, + + _98F16A65_E02F_4B0F_87D4_C217EA074619_, + + _BD06A22E_BC69_4AF7_A69B_C44C2EF684BB_, + + _9C58B013_AF30_455F_B809_50F425AFBCAC_, + + _2932025B_AB99_40F6_B5B8_783A73F80E24_, + + _86151302_DCDB_49FB_92FE_772EC02712B6_, + + _0A1BDBA0_9C6E_4AD7_97B1_E0E79E462629_, + + _5056651F_F227_4978_94DF_53CDF9E8CCB6_, + + _C8AEEE54_67A0_41A8_821D_D1C8BED62C68_, + + _27648839_180F_45E6_838D_AFF53DF682D2_, + + _D3FC84FA_748F_40B4_A967_F1574F917BE5_, + + _A18A4D58_7C7A_4448_8B98_AE2CEFE81B4C_, + + _1ACA4459_ACE0_496F_814A_8611F9C27E23_, + + _8E61C8F6_C91D_43B6_97EB_3423C06571CC_, + + _CEFEB125_5BB5_4F91_A349_94B8961C641B_, + + _DD5A6456_8430_422B_9F50_7EF5A1B63CA8_, + + _150E6007_7C6A_4CC3_8FF3_FC73783A972E_, + + _A44C46A3_0A3F_454B_B3BD_0BC23D4BCE94_, + + _2E42D45B_F83C_400F_8D77_61DDE6A7DF29_, + + _70909A92_ECE9_486D_B17E_30EDE908849E_, + + _07127A7C_164B_422A_AD1F_24BE39B4DB38_, + + _119D450D_E2A3_4DB0_A7BC_ACDE2536673E_, + + _4CC3A325_9885_48B4_B451_147C2D523646_, + + _4D9F9B7C_84D9_4335_ADB0_2542A7E35422_, + + _8F25687E_2ACA_4EF3_88A3_53099FDAAF43_, + + _C9269E28_EBDE_4DED_91EB_0BF42842F9F4_, + + _D658C424_8CF0_441C_B3C4_955E183B7FBA_, + + _5A0B62E8_D91D_49F5_94A5_7BE58DE508F0_, + + _0183D6BA_8792_4602_A6AB_6DF19E7F9979_, + + _7D1B6DD6_C1A9_416E_9E7F_31400E3F7249_, + + _DCDA2491_C4A4_4C84_9253_119AEF1A4CD7_, + + _485E7329_8754_42B4_AA5B_29C5DA09CAD5_, + + _167AF7E9_BA81_425F_B73D_E30C2DCC0F09_, + + _E4B61516_847B_4BDF_9CC6_1968A2D43E73_, + + _A4B1E1C8_17F3_46C8_AAD0_34F0C6FE42DE_, + + _5ACD952A_F16A_41D8_A681_713640837664_, + + _BCEFE59B_6819_47F7_A125_63753B33ABB7_, + + _51DC0B24_7421_45C3_B4AB_9481A683D91D_, } - public sealed class PipelineComponentComponentClassIDEnum { + public sealed class PipelineComponentComponentClassIDEnumValidator { + + private PipelineComponentComponentClassIDEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(24)), new object[] { - "{9ABE8DF3-0052-42DB-8B18-2089E1D1D1B7}", - "{32711D35-7D9D-44E5-B57E-A17D33D5C38C}", - "{A236DD44-4409-433E-A1CE-283DA18F4E0F}", - "{DEC33219-BA68-4FEB-AC98-9C1B1E577A8D}", - "{3AE878C6-0D6C-4F48-8128-40E00E9C1B7D}", - "{98F16A65-E02F-4B0F-87D4-C217EA074619}", - "{BD06A22E-BC69-4AF7-A69B-C44C2EF684BB}", - "{9C58B013-AF30-455F-B809-50F425AFBCAC}", - "{2932025B-AB99-40F6-B5B8-783A73F80E24}", - "{86151302-DCDB-49FB-92FE-772EC02712B6}", - "{0A1BDBA0-9C6E-4AD7-97B1-E0E79E462629}", - "{5056651F-F227-4978-94DF-53CDF9E8CCB6}", - "{C8AEEE54-67A0-41A8-821D-D1C8BED62C68}", - "{27648839-180F-45E6-838D-AFF53DF682D2}", - "{D3FC84FA-748F-40B4-A967-F1574F917BE5}", - "{A18A4D58-7C7A-4448-8B98-AE2CEFE81B4C}", - "{1ACA4459-ACE0-496F-814A-8611F9C27E23}", - "{8E61C8F6-C91D-43B6-97EB-3423C06571CC}", - "{CEFEB125-5BB5-4F91-A349-94B8961C641B}", - "{DD5A6456-8430-422B-9F50-7EF5A1B63CA8}", - "{150E6007-7C6A-4CC3-8FF3-FC73783A972E}", - "{A44C46A3-0A3F-454B-B3BD-0BC23D4BCE94}", - "{2E42D45B-F83C-400F-8D77-61DDE6A7DF29}", - "{70909A92-ECE9-486D-B17E-30EDE908849E}", - "{07127A7C-164B-422A-AD1F-24BE39B4DB38}", - "{119D450D-E2A3-4DB0-A7BC-ACDE2536673E}", - "{4CC3A325-9885-48B4-B451-147C2D523646}", - "{4D9F9B7C-84D9-4335-ADB0-2542A7E35422}", - "{8F25687E-2ACA-4EF3-88A3-53099FDAAF43}", - "{C9269E28-EBDE-4DED-91EB-0BF42842F9F4}", - "{D658C424-8CF0-441C-B3C4-955E183B7FBA}", - "{5A0B62E8-D91D-49F5-94A5-7BE58DE508F0}", - "{0183D6BA-8792-4602-A6AB-6DF19E7F9979}", - "{7D1B6DD6-C1A9-416E-9E7F-31400E3F7249}", - "{DCDA2491-C4A4-4C84-9253-119AEF1A4CD7}", - "{485E7329-8754-42B4-AA5B-29C5DA09CAD5}", - "{167AF7E9-BA81-425F-B73D-E30C2DCC0F09}", - "{E4B61516-847B-4BDF-9CC6-1968A2D43E73}", - "{A4B1E1C8-17F3-46C8-AAD0-34F0C6FE42DE}", - "{5ACD952A-F16A-41D8-A681-713640837664}", - "{BCEFE59B-6819-47F7-A125-63753B33ABB7}", - "{51DC0B24-7421-45C3-B4AB-9481A683D91D}"}, 0, 0, null, null, 0, null, null, 0, new string[] { + "{9ABE8DF3-0052-42DB-8B18-2089E1D1D1B7}:_9ABE8DF3_0052_42DB_8B18_2089E1D1D1B7_", + "{32711D35-7D9D-44E5-B57E-A17D33D5C38C}:_32711D35_7D9D_44E5_B57E_A17D33D5C38C_", + "{A236DD44-4409-433E-A1CE-283DA18F4E0F}:_A236DD44_4409_433E_A1CE_283DA18F4E0F_", + "{DEC33219-BA68-4FEB-AC98-9C1B1E577A8D}:_DEC33219_BA68_4FEB_AC98_9C1B1E577A8D_", + "{3AE878C6-0D6C-4F48-8128-40E00E9C1B7D}:_3AE878C6_0D6C_4F48_8128_40E00E9C1B7D_", + "{98F16A65-E02F-4B0F-87D4-C217EA074619}:_98F16A65_E02F_4B0F_87D4_C217EA074619_", + "{BD06A22E-BC69-4AF7-A69B-C44C2EF684BB}:_BD06A22E_BC69_4AF7_A69B_C44C2EF684BB_", + "{9C58B013-AF30-455F-B809-50F425AFBCAC}:_9C58B013_AF30_455F_B809_50F425AFBCAC_", + "{2932025B-AB99-40F6-B5B8-783A73F80E24}:_2932025B_AB99_40F6_B5B8_783A73F80E24_", + "{86151302-DCDB-49FB-92FE-772EC02712B6}:_86151302_DCDB_49FB_92FE_772EC02712B6_", + "{0A1BDBA0-9C6E-4AD7-97B1-E0E79E462629}:_0A1BDBA0_9C6E_4AD7_97B1_E0E79E462629_", + "{5056651F-F227-4978-94DF-53CDF9E8CCB6}:_5056651F_F227_4978_94DF_53CDF9E8CCB6_", + "{C8AEEE54-67A0-41A8-821D-D1C8BED62C68}:_C8AEEE54_67A0_41A8_821D_D1C8BED62C68_", + "{27648839-180F-45E6-838D-AFF53DF682D2}:_27648839_180F_45E6_838D_AFF53DF682D2_", + "{D3FC84FA-748F-40B4-A967-F1574F917BE5}:_D3FC84FA_748F_40B4_A967_F1574F917BE5_", + "{A18A4D58-7C7A-4448-8B98-AE2CEFE81B4C}:_A18A4D58_7C7A_4448_8B98_AE2CEFE81B4C_", + "{1ACA4459-ACE0-496F-814A-8611F9C27E23}:_1ACA4459_ACE0_496F_814A_8611F9C27E23_", + "{8E61C8F6-C91D-43B6-97EB-3423C06571CC}:_8E61C8F6_C91D_43B6_97EB_3423C06571CC_", + "{CEFEB125-5BB5-4F91-A349-94B8961C641B}:_CEFEB125_5BB5_4F91_A349_94B8961C641B_", + "{DD5A6456-8430-422B-9F50-7EF5A1B63CA8}:_DD5A6456_8430_422B_9F50_7EF5A1B63CA8_", + "{150E6007-7C6A-4CC3-8FF3-FC73783A972E}:_150E6007_7C6A_4CC3_8FF3_FC73783A972E_", + "{A44C46A3-0A3F-454B-B3BD-0BC23D4BCE94}:_A44C46A3_0A3F_454B_B3BD_0BC23D4BCE94_", + "{2E42D45B-F83C-400F-8D77-61DDE6A7DF29}:_2E42D45B_F83C_400F_8D77_61DDE6A7DF29_", + "{70909A92-ECE9-486D-B17E-30EDE908849E}:_70909A92_ECE9_486D_B17E_30EDE908849E_", + "{07127A7C-164B-422A-AD1F-24BE39B4DB38}:_07127A7C_164B_422A_AD1F_24BE39B4DB38_", + "{119D450D-E2A3-4DB0-A7BC-ACDE2536673E}:_119D450D_E2A3_4DB0_A7BC_ACDE2536673E_", + "{4CC3A325-9885-48B4-B451-147C2D523646}:_4CC3A325_9885_48B4_B451_147C2D523646_", + "{4D9F9B7C-84D9-4335-ADB0-2542A7E35422}:_4D9F9B7C_84D9_4335_ADB0_2542A7E35422_", + "{8F25687E-2ACA-4EF3-88A3-53099FDAAF43}:_8F25687E_2ACA_4EF3_88A3_53099FDAAF43_", + "{C9269E28-EBDE-4DED-91EB-0BF42842F9F4}:_C9269E28_EBDE_4DED_91EB_0BF42842F9F4_", + "{D658C424-8CF0-441C-B3C4-955E183B7FBA}:_D658C424_8CF0_441C_B3C4_955E183B7FBA_", + "{5A0B62E8-D91D-49F5-94A5-7BE58DE508F0}:_5A0B62E8_D91D_49F5_94A5_7BE58DE508F0_", + "{0183D6BA-8792-4602-A6AB-6DF19E7F9979}:_0183D6BA_8792_4602_A6AB_6DF19E7F9979_", + "{7D1B6DD6-C1A9-416E-9E7F-31400E3F7249}:_7D1B6DD6_C1A9_416E_9E7F_31400E3F7249_", + "{DCDA2491-C4A4-4C84-9253-119AEF1A4CD7}:_DCDA2491_C4A4_4C84_9253_119AEF1A4CD7_", + "{485E7329-8754-42B4-AA5B-29C5DA09CAD5}:_485E7329_8754_42B4_AA5B_29C5DA09CAD5_", + "{167AF7E9-BA81-425F-B73D-E30C2DCC0F09}:_167AF7E9_BA81_425F_B73D_E30C2DCC0F09_", + "{E4B61516-847B-4BDF-9CC6-1968A2D43E73}:_E4B61516_847B_4BDF_9CC6_1968A2D43E73_", + "{A4B1E1C8-17F3-46C8-AAD0-34F0C6FE42DE}:_A4B1E1C8_17F3_46C8_AAD0_34F0C6FE42DE_", + "{5ACD952A-F16A-41D8-A681-713640837664}:_5ACD952A_F16A_41D8_A681_713640837664_", + "{BCEFE59B-6819-47F7-A125-63753B33ABB7}:_BCEFE59B_6819_47F7_A125_63753B33ABB7_", + "{51DC0B24-7421-45C3-B4AB-9481A683D91D}:_51DC0B24_7421_45C3_B4AB_9481A683D91D_"}, 0, 0, null, null, 0, null, null, 0, new string[] { "\\{[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}\\}"}, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentComponentClassIDEnum() { - } } - public sealed class PipelineComponentPropertyNameEnum { + public enum PipelineComponentPropertyNameEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "KeyScale", - "Keys", - "CountDistinctScale", - "CountDistinctKeys", - "AutoExtendFactor", - "ObjectRef", - "QueryText", - "CatalogName", - "MinSimilarity", - "Delimiters", - "MaxMemoryUsage", - "Exhaustive", - "MatchIndexOptions", - "MaxMemoryUsage", - "MatchIndexName", - "ReferenceTableName", - "DropExistingMatchIndex", - "CopyReferenceTable", - "MaxOutputMatchesPerInput", - "MinSimilarity", - "Delimiters", - "ReferenceMetadataXml", - "Exhaustive", - "WarmCaches", - "SqlCommand", - "SqlCommandParam", - "ConnectionType", - "CacheType", - "NoMatchBehavior", - "NoMatchCachePercentage", - "MaxMemoryUsage", + KeyScale, + + Keys, + + CountDistinctScale, + + CountDistinctKeys, + + AutoExtendFactor, + + ObjectRef, + + QueryText, + + CatalogName, + + MinSimilarity, + + Delimiters, + + MaxMemoryUsage, + + Exhaustive, + + MatchIndexOptions, + + MatchIndexName, + + ReferenceTableName, + + DropExistingMatchIndex, + + CopyReferenceTable, + + MaxOutputMatchesPerInput, + + ReferenceMetadataXml, + + WarmCaches, + + SqlCommand, + + SqlCommandParam, + + ConnectionType, + + CacheType, + + NoMatchBehavior, + + NoMatchCachePercentage, + + MaxMemoryUsage64, + + ParameterMap, + + DefaultCodePage, + + JoinType, + + NumKeyColumns, + + TreatNullsAsEqual, + + MaxBuffersPerInput, + + CommandTimeout, + + SamplingValue, + + SamplingSeed, + + VariableName, + + SourceCode, + + BinaryCode, + + VSTAProjectName, + + ScriptLanguage, + + ReadOnlyVariables, + + ReadWriteVariables, + + BreakpointCollection, + + UserComponentTypeName, + + CurrentRowWhere, + + UpdateChangingAttributeHistory, + + FailOnFixedAttributeChange, + + InferredMemberIndicator, + + EnableInferredMember, + + FailOnLookupFailure, + + IncomingRowChangeType, + + EliminateDuplicates, + + MaximumThreads, + + NeedReferenceData, + + OutTermTable, + + OutTermColumn, + + WordOrPhrase, + + ScoreType, + + FrequencyThreshold, + + MaxLengthOfTerm, + + IsCaseSensitive, + + RefTermTable, + + RefTermColumn, + + TableOrViewName, + + BatchSize, + + OpenRowset, + + OpenRowsetVariable, + + AccessMode, + + FastLoadKeepIdentity, + + FastLoadKeepNulls, + + FastLoadOptions, + + FastLoadMaxInsertCommitSize, + + Overwrite, + + Header, + + AlwaysUseDefaultCodePage, + + FileName, + + FileNameVariable, + + WriteOption, + + ReadTimeout, + + DataReader, + + FailOnTimeout, + + UseDefaultConfiguration, + + KeyErrorLimit, + + KeyErrorLogFile, + + KeyErrorAction, + + KeyErrorLimitAction, + + KeyNotFound, + + KeyDuplicate, + + NullKeyConvertedToUnknown, + + NullKeyNotAllowed, + + ProcessType, + + Table_Name, + + BulkInsertTableName, + + BulkInsertCheckConstraints, + + BulkInsertFirstRow, + + BulkInsertFireTriggers, + + BulkInsertKeepIdentity, + + BulkInsertKeepNulls, + + BulkInsertLastRow, + + BulkInsertMaxErrors, + + BulkInsertOrder, + + BulkInsertTablock, + + Timeout, + + MaxInsertCommitSize, + + AllowImplicitStringConversion, + + SqlCommandVariable, + + ParameterMapping, + + RetainNulls, + + FileNameColumnName, + + XMLData, + + XMLDataVariable, + + XMLSchemaDefinition, + + UseInlineSchema, + } + + public sealed class PipelineComponentPropertyNameEnumValidator { + + private PipelineComponentPropertyNameEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "KeyScale", + "Keys", + "CountDistinctScale", + "CountDistinctKeys", + "AutoExtendFactor", + "ObjectRef", + "QueryText", + "CatalogName", + "MinSimilarity", + "Delimiters", + "MaxMemoryUsage", + "Exhaustive", + "MatchIndexOptions", + "MaxMemoryUsage", + "MatchIndexName", + "ReferenceTableName", + "DropExistingMatchIndex", + "CopyReferenceTable", + "MaxOutputMatchesPerInput", + "MinSimilarity", + "Delimiters", + "ReferenceMetadataXml", + "Exhaustive", + "WarmCaches", + "SqlCommand", + "SqlCommandParam", + "ConnectionType", + "CacheType", + "NoMatchBehavior", + "NoMatchCachePercentage", + "MaxMemoryUsage", "MaxMemoryUsage64", "ReferenceMetadataXml", "ParameterMap", @@ -13681,7 +15031,7 @@ public sealed class PipelineComponentPropertyNameEnum { "NullKeyNotAllowed", "ProcessType", "VariableName", - "Table Name", + "Table Name:Table_Name", "UserComponentTypeName", "DefaultCodePage", "AlwaysUseDefaultCodePage", @@ -13730,9 +15080,6 @@ public sealed class PipelineComponentPropertyNameEnum { "AccessMode", "XMLSchemaDefinition", "UseInlineSchema"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentPropertyNameEnum() { - } } public enum PipelineComponentOutputPropertyNameEnum { @@ -13751,13 +15098,14 @@ public enum PipelineComponentOutputPropertyNameEnum { Selected, - Selected, - RowsetID, } public sealed class PipelineComponentOutputPropertyNameEnumValidator { + private PipelineComponentOutputPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "KeyScale", @@ -13769,18 +15117,15 @@ public sealed class PipelineComponentOutputPropertyNameEnumValidator { "Selected", "Selected", "RowsetID"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentOutputPropertyNameEnumValidator() { - } } public sealed class PipelineComponentInputPropertyNameEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); - private PipelineComponentInputPropertyNameEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), null); } public enum PipelineComponentOutputColumnPropertyNameEnum { @@ -13815,12 +15160,6 @@ public enum PipelineComponentOutputColumnPropertyNameEnum { CopyFromReferenceColumn, - SourceInputColumnLineageID, - - ColumnType, - - CopyFromReferenceColumn, - InputColumnID, SourceColumn, @@ -13835,13 +15174,14 @@ public enum PipelineComponentOutputColumnPropertyNameEnum { PivotKey, - FastParse, - UseBinaryFormat, } public sealed class PipelineComponentOutputColumnPropertyNameEnumValidator { + private PipelineComponentOutputColumnPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "AggregationColumnId", @@ -13871,9 +15211,6 @@ public sealed class PipelineComponentOutputColumnPropertyNameEnumValidator { "PivotKey", "FastParse", "UseBinaryFormat"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentOutputColumnPropertyNameEnumValidator() { - } } public enum PipelineComponentInputColumnPropertyNameEnum { @@ -13904,8 +15241,6 @@ public enum PipelineComponentInputColumnPropertyNameEnum { FuzzyComparisonFlags, - FileDataColumnID, - ExpectBOM, JoinToReferenceColumn, @@ -13924,8 +15259,6 @@ public enum PipelineComponentInputColumnPropertyNameEnum { InputColumnType, - OutputColumnLineageID, - DestinationColumn, PivotKeyValue, @@ -13933,6 +15266,9 @@ public enum PipelineComponentInputColumnPropertyNameEnum { public sealed class PipelineComponentInputColumnPropertyNameEnumValidator { + private PipelineComponentInputColumnPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "CacheColumnName", @@ -13961,46 +15297,87 @@ public sealed class PipelineComponentInputColumnPropertyNameEnumValidator { "OutputColumnLineageID", "DestinationColumn", "PivotKeyValue"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum PipelineComponentDataTypeEnum { - private PipelineComponentInputColumnPropertyNameEnumValidator() { - } + System_Boolean, + + System_Byte, + + System_SByte, + + System_Decimal, + + System_Double, + + System_Single, + + System_Int32, + + System_UInt32, + + System_Int64, + + System_UInt64, + + System_Int16, + + System_UInt16, + + System_String, + + System_Null, + + System_DateTime, + + System_Object, } - public sealed class PipelineComponentDataTypeEnum { + public sealed class PipelineComponentDataTypeEnumValidator { + + private PipelineComponentDataTypeEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "System.Boolean", - "System.Byte", - "System.SByte", - "System.Decimal", - "System.Double", - "System.Single", - "System.Int32", - "System.UInt32", - "System.Int64", - "System.UInt64", - "System.Int16", - "System.UInt16", - "System.String", - "System.Null", - "System.DateTime", - "System.Object"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + "System.Boolean:System_Boolean", + "System.Byte:System_Byte", + "System.SByte:System_SByte", + "System.Decimal:System_Decimal", + "System.Double:System_Double", + "System.Single:System_Single", + "System.Int32:System_Int32", + "System.UInt32:System_UInt32", + "System.Int64:System_Int64", + "System.UInt64:System_UInt64", + "System.Int16:System_Int16", + "System.UInt16:System_UInt16", + "System.String:System_String", + "System.Null:System_Null", + "System.DateTime:System_DateTime", + "System.Object:System_Object"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + public enum PipelineComponentStateEnum { - private PipelineComponentDataTypeEnum() { - } + cdata, + + escaped, + + @default, } - public sealed class PipelineComponentStateEnum { + public sealed class PipelineComponentStateEnumValidator { + + private PipelineComponentStateEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "cdata", "escaped", - "default"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentStateEnum() { - } + "default:@default"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public enum PipelineComponentExpressionTypeEnum { @@ -14012,39 +15389,29 @@ public enum PipelineComponentExpressionTypeEnum { public sealed class PipelineComponentExpressionTypeEnumValidator { + private PipelineComponentExpressionTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "None", "Notify"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentExpressionTypeEnumValidator() { - } } public partial class PipelineComponentConnectionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + public static explicit operator PipelineComponentConnectionType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentConnectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentConnectionType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + public PipelineComponentConnectionType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName connectionManagerIDXName = System.Xml.Linq.XName.Get("connectionManagerID", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentConnectionType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator PipelineComponentConnectionType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentConnectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PipelineComponentConnectionType() { - } + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); /// <summary> /// <para> @@ -14054,6 +15421,9 @@ public PipelineComponentConnectionType() { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14061,6 +15431,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14069,6 +15443,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14076,6 +15453,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14084,6 +15465,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14091,6 +15475,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName connectionManagerIDXName = System.Xml.Linq.XName.Get("connectionManagerID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14099,6 +15487,9 @@ public virtual string description { public virtual string connectionManagerID { get { XAttribute x = this.Attribute(connectionManagerIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14106,6 +15497,12 @@ public virtual string connectionManagerID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentConnectionType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14126,14 +15523,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentConnectionType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -14143,63 +15532,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentInputType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName inputColumnsXName = System.Xml.Linq.XName.Get("inputColumns", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName externalMetadataColumnsXName = System.Xml.Linq.XName.Get("externalMetadataColumns", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hasSideEffectsXName = System.Xml.Linq.XName.Get("hasSideEffects", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName danglingXName = System.Xml.Linq.XName.Get("dangling", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentInputType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentInputType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName), new NamedContentModelEntity(inputColumnsXName), new NamedContentModelEntity(externalMetadataColumnsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputType>(this); } /// <summary> @@ -14210,6 +15546,10 @@ static PipelineComponentInputType() { public PipelineComponentInputType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14221,6 +15561,9 @@ public PipelineComponentInputType() { public virtual PipelineComponentInputPropertiesType properties { get { XElement x = this.GetElement(propertiesXName); + if ((x == null)) { + return null; + } return ((PipelineComponentInputPropertiesType)(x)); } set { @@ -14228,6 +15571,10 @@ public virtual PipelineComponentInputPropertiesType properties { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName inputColumnsXName = System.Xml.Linq.XName.Get("inputColumns", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14239,6 +15586,9 @@ public virtual PipelineComponentInputPropertiesType properties { public virtual PipelineComponentInputColumnsType inputColumns { get { XElement x = this.GetElement(inputColumnsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentInputColumnsType)(x)); } set { @@ -14246,6 +15596,10 @@ public virtual PipelineComponentInputColumnsType inputColumns { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName externalMetadataColumnsXName = System.Xml.Linq.XName.Get("externalMetadataColumns", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14257,6 +15611,9 @@ public virtual PipelineComponentInputColumnsType inputColumns { public virtual PipelineComponentMetadataColumnsType externalMetadataColumns { get { XElement x = this.GetElement(externalMetadataColumnsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentMetadataColumnsType)(x)); } set { @@ -14264,6 +15621,10 @@ public virtual PipelineComponentMetadataColumnsType externalMetadataColumns { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14272,6 +15633,9 @@ public virtual PipelineComponentMetadataColumnsType externalMetadataColumns { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14279,6 +15643,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14287,6 +15655,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14294,6 +15665,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14302,6 +15677,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14309,6 +15687,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hasSideEffectsXName = System.Xml.Linq.XName.Get("hasSideEffects", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14327,6 +15709,10 @@ public virtual System.Boolean? hasSideEffects { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName danglingXName = System.Xml.Linq.XName.Get("dangling", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14345,6 +15731,10 @@ public virtual System.Boolean? dangling { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14353,6 +15743,9 @@ public virtual System.Boolean? dangling { public virtual string errorOrTruncationOperation { get { XAttribute x = this.Attribute(errorOrTruncationOperationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14360,6 +15753,10 @@ public virtual string errorOrTruncationOperation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14371,13 +15768,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? erro if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(errorRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(errorRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(errorRowDispositionXName, value.ToString(), "errorRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14389,13 +15795,34 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? trun if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(truncationRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(truncationRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(truncationRowDispositionXName, value.ToString(), "truncationRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentInputType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName), new NamedContentModelEntity(inputColumnsXName), new NamedContentModelEntity(externalMetadataColumnsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertiesXName, typeof(PipelineComponentInputPropertiesType)); + localElementDictionary.Add(inputColumnsXName, typeof(PipelineComponentInputColumnsType)); + localElementDictionary.Add(externalMetadataColumnsXName, typeof(PipelineComponentMetadataColumnsType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14403,6 +15830,13 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? trun } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14423,20 +15857,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertiesXName, typeof(PipelineComponentInputPropertiesType)); - localElementDictionary.Add(inputColumnsXName, typeof(PipelineComponentInputColumnsType)); - localElementDictionary.Add(externalMetadataColumnsXName, typeof(PipelineComponentMetadataColumnsType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -14446,26 +15866,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentInputColumnsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName inputColumnXName = System.Xml.Linq.XName.Get("inputColumn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentInputColumnType> inputColumnField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentInputColumnsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputColumnsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentInputColumnsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(inputColumnXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnsType>(this); } /// <summary> @@ -14476,6 +15880,13 @@ static PipelineComponentInputColumnsType() { public PipelineComponentInputColumnsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName inputColumnXName = System.Xml.Linq.XName.Get("inputColumn", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentInputColumnType> inputColumnField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -14506,6 +15917,20 @@ public virtual IList<PipelineComponentInputColumnType> inputColumn { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentInputColumnsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(inputColumnXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(inputColumnXName, typeof(PipelineComponentInputColumnType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14513,6 +15938,13 @@ public virtual IList<PipelineComponentInputColumnType> inputColumn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14533,18 +15965,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(inputColumnXName, typeof(PipelineComponentInputColumnType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -14554,75 +15974,26 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentInputColumnType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentInputColumnPropertiesType> propertiesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + public static explicit operator PipelineComponentInputColumnType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputColumnType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName mappedColumnIdXName = System.Xml.Linq.XName.Get("mappedColumnId", ""); + /// <summary> + /// <para> + /// Regular expression: (properties*) + /// </para> + /// </summary> + public PipelineComponentInputColumnType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); + protected internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName externalMetadataColumnIdXName = System.Xml.Linq.XName.Get("externalMetadataColumnId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lineageIdXName = System.Xml.Linq.XName.Get("lineageId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName usageTypeXName = System.Xml.Linq.XName.Get("usageType", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator PipelineComponentInputColumnType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputColumnType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static PipelineComponentInputColumnType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (properties*) - /// </para> - /// </summary> - public PipelineComponentInputColumnType() { - } + private XTypedList<PipelineComponentInputColumnPropertiesType> propertiesField; /// <summary> /// <para> @@ -14654,6 +16025,10 @@ public virtual IList<PipelineComponentInputColumnPropertiesType> properties { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14662,6 +16037,9 @@ public virtual IList<PipelineComponentInputColumnPropertiesType> properties { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14669,6 +16047,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14677,6 +16059,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14684,6 +16069,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14692,6 +16081,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14699,6 +16091,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName mappedColumnIdXName = System.Xml.Linq.XName.Get("mappedColumnId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14717,6 +16113,10 @@ public virtual System.Int32? mappedColumnId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14725,6 +16125,9 @@ public virtual System.Int32? mappedColumnId { public virtual string errorOrTruncationOperation { get { XAttribute x = this.Attribute(errorOrTruncationOperationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -14732,6 +16135,10 @@ public virtual string errorOrTruncationOperation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14743,13 +16150,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? erro if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(errorRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(errorRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(errorRowDispositionXName, value.ToString(), "errorRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14761,13 +16177,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? trun if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(truncationRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(truncationRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(truncationRowDispositionXName, value.ToString(), "truncationRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName externalMetadataColumnIdXName = System.Xml.Linq.XName.Get("externalMetadataColumnId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14786,6 +16211,10 @@ public virtual System.Int32? externalMetadataColumnId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lineageIdXName = System.Xml.Linq.XName.Get("lineageId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14804,6 +16233,10 @@ public virtual System.Int32? lineageId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName usageTypeXName = System.Xml.Linq.XName.Get("usageType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -14815,13 +16248,32 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnum? usageType if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(usageTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(usageTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(usageTypeXName, value.ToString(), "usageType", global::Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentInputColumnType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertiesXName, typeof(PipelineComponentInputColumnPropertiesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14829,6 +16281,13 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentUsageTypeEnum? usageType } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14849,18 +16308,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertiesXName, typeof(PipelineComponentInputColumnPropertiesType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -14870,26 +16317,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentInputColumnPropertiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentInputColumnPropertyType> propertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnPropertiesType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentInputColumnPropertiesType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputColumnPropertiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentInputColumnPropertiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnPropertiesType>(this); } /// <summary> @@ -14900,6 +16331,13 @@ static PipelineComponentInputColumnPropertiesType() { public PipelineComponentInputColumnPropertiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentInputColumnPropertyType> propertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -14930,6 +16368,20 @@ public virtual IList<PipelineComponentInputColumnPropertyType> property { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnPropertiesType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentInputColumnPropertiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertyXName, typeof(PipelineComponentInputColumnPropertyType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -14937,6 +16389,13 @@ public virtual IList<PipelineComponentInputColumnPropertyType> property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -14957,72 +16416,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnPropertiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertyXName, typeof(PipelineComponentInputColumnPropertyType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class PipelineComponentInputColumnPropertyType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + public static explicit operator PipelineComponentInputColumnPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputColumnPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnPropertyType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + public PipelineComponentInputColumnPropertyType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnPropertyType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator PipelineComponentInputColumnPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentInputColumnPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PipelineComponentInputColumnPropertyType() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual string TypedValue { get { @@ -15034,6 +16443,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15042,6 +16455,9 @@ public virtual string TypedValue { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15049,36 +16465,64 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string state { + public virtual Microsoft.SqlServer.Dts.PipelineComponentStateEnum? state { get { XAttribute x = this.Attribute(stateXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15097,6 +16541,10 @@ public virtual System.Boolean? isArray { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15105,6 +16553,9 @@ public virtual System.Boolean? isArray { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15112,6 +16563,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15120,6 +16575,9 @@ public virtual string description { public virtual string typeConverter { get { XAttribute x = this.Attribute(typeConverterXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15127,6 +16585,10 @@ public virtual string typeConverter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15135,6 +16597,9 @@ public virtual string typeConverter { public virtual string UITypeEditor { get { XAttribute x = this.Attribute(UITypeEditorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15142,6 +16607,10 @@ public virtual string UITypeEditor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15160,6 +16629,10 @@ public virtual System.Boolean? containsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15171,13 +16644,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum? expr if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(expressionTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(expressionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(expressionTypeXName, value.ToString(), "expressionType", global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15189,13 +16671,24 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentInputColumnPropertyNameE if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentInputColumnPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentInputColumnPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentInputColumnPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentInputColumnPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentInputColumnPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(nameXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(nameXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(nameXName, value.ToString(), "name", global::Microsoft.SqlServer.Dts.PipelineComponentInputColumnPropertyNameEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentInputColumnPropertyType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15216,14 +16709,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentInputColumnPropertyType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -15233,26 +16718,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentOutputColumnPropertiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentOutputColumnPropertyType> propertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnPropertiesType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentOutputColumnPropertiesType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputColumnPropertiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentOutputColumnPropertiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnPropertiesType>(this); } /// <summary> @@ -15263,6 +16732,13 @@ static PipelineComponentOutputColumnPropertiesType() { public PipelineComponentOutputColumnPropertiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentOutputColumnPropertyType> propertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -15293,6 +16769,20 @@ public virtual IList<PipelineComponentOutputColumnPropertyType> property { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnPropertiesType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentOutputColumnPropertiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertyXName, typeof(PipelineComponentOutputColumnPropertyType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -15300,6 +16790,13 @@ public virtual IList<PipelineComponentOutputColumnPropertyType> property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15320,72 +16817,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnPropertiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertyXName, typeof(PipelineComponentOutputColumnPropertyType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class PipelineComponentOutputColumnPropertyType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + public static explicit operator PipelineComponentOutputColumnPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputColumnPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnPropertyType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + public PipelineComponentOutputColumnPropertyType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnPropertyType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator PipelineComponentOutputColumnPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputColumnPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PipelineComponentOutputColumnPropertyType() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual string TypedValue { get { @@ -15397,6 +16844,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15405,6 +16856,9 @@ public virtual string TypedValue { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15412,36 +16866,64 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string state { + public virtual Microsoft.SqlServer.Dts.PipelineComponentStateEnum? state { get { XAttribute x = this.Attribute(stateXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15460,6 +16942,10 @@ public virtual System.Boolean? isArray { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15468,6 +16954,9 @@ public virtual System.Boolean? isArray { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15475,6 +16964,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15483,6 +16976,9 @@ public virtual string description { public virtual string typeConverter { get { XAttribute x = this.Attribute(typeConverterXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15490,6 +16986,10 @@ public virtual string typeConverter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15498,6 +16998,9 @@ public virtual string typeConverter { public virtual string UITypeEditor { get { XAttribute x = this.Attribute(UITypeEditorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15505,6 +17008,10 @@ public virtual string UITypeEditor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15523,6 +17030,10 @@ public virtual System.Boolean? containsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15534,13 +17045,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum? expr if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(expressionTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(expressionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(expressionTypeXName, value.ToString(), "expressionType", global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15552,13 +17072,24 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentOutputColumnPropertyName if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentOutputColumnPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentOutputColumnPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentOutputColumnPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentOutputColumnPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentOutputColumnPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(nameXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(nameXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(nameXName, value.ToString(), "name", global::Microsoft.SqlServer.Dts.PipelineComponentOutputColumnPropertyNameEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnPropertyType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -15579,14 +17110,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnPropertyType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum PipelineComponentUsageTypeEnum { @@ -15600,14 +17123,14 @@ public enum PipelineComponentUsageTypeEnum { public sealed class PipelineComponentUsageTypeEnumValidator { + private PipelineComponentUsageTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "readOnly", "readWrite", "Ignored"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentUsageTypeEnumValidator() { - } } /// <summary> @@ -15617,83 +17140,10 @@ private PipelineComponentUsageTypeEnumValidator() { /// </summary> public partial class PipelineComponentOutputType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName outputColumnsXName = System.Xml.Linq.XName.Get("outputColumns", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName externalMetadataColumnsXName = System.Xml.Linq.XName.Get("externalMetadataColumns", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName hasSideEffectsXName = System.Xml.Linq.XName.Get("hasSideEffects", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName danglingXName = System.Xml.Linq.XName.Get("dangling", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName exclusionGroupXName = System.Xml.Linq.XName.Get("exclusionGroup", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName synchronousInputIdXName = System.Xml.Linq.XName.Get("synchronousInputId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName deleteOutputOnPathDetachedXName = System.Xml.Linq.XName.Get("deleteOutputOnPathDetached", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isErrorOutXName = System.Xml.Linq.XName.Get("isErrorOut", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isSortedXName = System.Xml.Linq.XName.Get("isSorted", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentOutputType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentOutputType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName), new NamedContentModelEntity(outputColumnsXName), new NamedContentModelEntity(externalMetadataColumnsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputType>(this); } /// <summary> @@ -15704,6 +17154,10 @@ static PipelineComponentOutputType() { public PipelineComponentOutputType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15715,6 +17169,9 @@ public PipelineComponentOutputType() { public virtual PipelineComponentOutputPropertiesType properties { get { XElement x = this.GetElement(propertiesXName); + if ((x == null)) { + return null; + } return ((PipelineComponentOutputPropertiesType)(x)); } set { @@ -15722,6 +17179,10 @@ public virtual PipelineComponentOutputPropertiesType properties { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName outputColumnsXName = System.Xml.Linq.XName.Get("outputColumns", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15733,6 +17194,9 @@ public virtual PipelineComponentOutputPropertiesType properties { public virtual PipelineComponentOutputColumnsType outputColumns { get { XElement x = this.GetElement(outputColumnsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentOutputColumnsType)(x)); } set { @@ -15740,6 +17204,10 @@ public virtual PipelineComponentOutputColumnsType outputColumns { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName externalMetadataColumnsXName = System.Xml.Linq.XName.Get("externalMetadataColumns", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15751,6 +17219,9 @@ public virtual PipelineComponentOutputColumnsType outputColumns { public virtual PipelineComponentMetadataColumnsType externalMetadataColumns { get { XElement x = this.GetElement(externalMetadataColumnsXName); + if ((x == null)) { + return null; + } return ((PipelineComponentMetadataColumnsType)(x)); } set { @@ -15758,6 +17229,10 @@ public virtual PipelineComponentMetadataColumnsType externalMetadataColumns { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15766,6 +17241,9 @@ public virtual PipelineComponentMetadataColumnsType externalMetadataColumns { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15773,6 +17251,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15781,6 +17263,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15788,6 +17273,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15796,6 +17285,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15803,6 +17295,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName hasSideEffectsXName = System.Xml.Linq.XName.Get("hasSideEffects", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15821,6 +17317,10 @@ public virtual System.Boolean? hasSideEffects { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName danglingXName = System.Xml.Linq.XName.Get("dangling", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15839,6 +17339,10 @@ public virtual System.Boolean? dangling { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15847,6 +17351,9 @@ public virtual System.Boolean? dangling { public virtual string errorOrTruncationOperation { get { XAttribute x = this.Attribute(errorOrTruncationOperationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15854,6 +17361,10 @@ public virtual string errorOrTruncationOperation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15865,13 +17376,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? erro if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(errorRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(errorRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(errorRowDispositionXName, value.ToString(), "errorRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15883,13 +17403,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? trun if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(truncationRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(truncationRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(truncationRowDispositionXName, value.ToString(), "truncationRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName exclusionGroupXName = System.Xml.Linq.XName.Get("exclusionGroup", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15908,6 +17437,10 @@ public virtual System.Int32? exclusionGroup { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName synchronousInputIdXName = System.Xml.Linq.XName.Get("synchronousInputId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15916,6 +17449,9 @@ public virtual System.Int32? exclusionGroup { public virtual string synchronousInputId { get { XAttribute x = this.Attribute(synchronousInputIdXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -15923,6 +17459,10 @@ public virtual string synchronousInputId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName deleteOutputOnPathDetachedXName = System.Xml.Linq.XName.Get("deleteOutputOnPathDetached", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15941,6 +17481,10 @@ public virtual System.Boolean? deleteOutputOnPathDetached { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isErrorOutXName = System.Xml.Linq.XName.Get("isErrorOut", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15959,6 +17503,10 @@ public virtual System.Boolean? isErrorOut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isSortedXName = System.Xml.Linq.XName.Get("isSorted", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -15977,6 +17525,22 @@ public virtual System.Boolean? isSorted { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentOutputType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName), new NamedContentModelEntity(outputColumnsXName), new NamedContentModelEntity(externalMetadataColumnsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertiesXName, typeof(PipelineComponentOutputPropertiesType)); + localElementDictionary.Add(outputColumnsXName, typeof(PipelineComponentOutputColumnsType)); + localElementDictionary.Add(externalMetadataColumnsXName, typeof(PipelineComponentMetadataColumnsType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -15984,6 +17548,13 @@ public virtual System.Boolean? isSorted { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16004,20 +17575,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertiesXName, typeof(PipelineComponentOutputPropertiesType)); - localElementDictionary.Add(outputColumnsXName, typeof(PipelineComponentOutputColumnsType)); - localElementDictionary.Add(externalMetadataColumnsXName, typeof(PipelineComponentMetadataColumnsType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -16027,30 +17584,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentMetadataColumnsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName externalMetadataColumnXName = System.Xml.Linq.XName.Get("externalMetadataColumn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentMetadataColumnType> externalMetadataColumnField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isUsedXName = System.Xml.Linq.XName.Get("isUsed", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentMetadataColumnsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentMetadataColumnsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentMetadataColumnsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(externalMetadataColumnXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnsType>(this); } /// <summary> @@ -16061,6 +17598,13 @@ static PipelineComponentMetadataColumnsType() { public PipelineComponentMetadataColumnsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName externalMetadataColumnXName = System.Xml.Linq.XName.Get("externalMetadataColumn", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentMetadataColumnType> externalMetadataColumnField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -16091,6 +17635,28 @@ public virtual IList<PipelineComponentMetadataColumnType> externalMetadataColumn } } + public enum IsUsedEnum { + + True, + + False, + } + + public sealed class IsUsedEnumValidator { + + private IsUsedEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isUsedXName = System.Xml.Linq.XName.Get("isUsed", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16102,13 +17668,32 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnsType.IsUs if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnsType.IsUsedEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnsType.IsUsedEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnsType.IsUsedEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnsType.IsUsedEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsUsedEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(isUsedXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(isUsedXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(isUsedXName, value.ToString(), "isUsed", IsUsedEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentMetadataColumnsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(externalMetadataColumnXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(externalMetadataColumnXName, typeof(PipelineComponentMetadataColumnType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -16116,6 +17701,13 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnsType.IsUs } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16136,25 +17728,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(externalMetadataColumnXName, typeof(PipelineComponentMetadataColumnType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum IsUsedEnum { - - True, - - False, - } } /// <summary> @@ -16164,59 +17737,10 @@ public enum IsUsedEnum { /// </summary> public partial class PipelineComponentMetadataColumnType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName mappedColumnIdXName = System.Xml.Linq.XName.Get("mappedColumnId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName precisionXName = System.Xml.Linq.XName.Get("precision", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName scaleXName = System.Xml.Linq.XName.Get("scale", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codePageXName = System.Xml.Linq.XName.Get("codePage", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentMetadataColumnType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentMetadataColumnType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentMetadataColumnType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnType>(this); } /// <summary> @@ -16227,6 +17751,10 @@ static PipelineComponentMetadataColumnType() { public PipelineComponentMetadataColumnType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16238,6 +17766,9 @@ public PipelineComponentMetadataColumnType() { public virtual PipelineComponentMetadataColumnPropertiesType properties { get { XElement x = this.GetElement(propertiesXName); + if ((x == null)) { + return null; + } return ((PipelineComponentMetadataColumnPropertiesType)(x)); } set { @@ -16245,6 +17776,10 @@ public virtual PipelineComponentMetadataColumnPropertiesType properties { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16253,6 +17788,9 @@ public virtual PipelineComponentMetadataColumnPropertiesType properties { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -16260,6 +17798,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16268,6 +17810,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -16275,6 +17820,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16283,6 +17832,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -16290,6 +17842,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName mappedColumnIdXName = System.Xml.Linq.XName.Get("mappedColumnId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16308,6 +17864,10 @@ public virtual System.Int32? mappedColumnId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName precisionXName = System.Xml.Linq.XName.Get("precision", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16326,6 +17886,10 @@ public virtual System.Int32? precision { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName scaleXName = System.Xml.Linq.XName.Get("scale", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16344,6 +17908,10 @@ public virtual System.Int32? scale { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16362,21 +17930,37 @@ public virtual System.Int32? length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codePageXName = System.Xml.Linq.XName.Get("codePage", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16395,6 +17979,20 @@ public virtual System.Int32? codePage { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentMetadataColumnType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertiesXName, typeof(PipelineComponentMetadataColumnPropertiesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -16402,6 +18000,13 @@ public virtual System.Int32? codePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16422,18 +18027,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertiesXName, typeof(PipelineComponentMetadataColumnPropertiesType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -16443,26 +18036,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentMetadataColumnPropertiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentMetadataColumnPropertyType> propertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnPropertiesType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentMetadataColumnPropertiesType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentMetadataColumnPropertiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentMetadataColumnPropertiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnPropertiesType>(this); } /// <summary> @@ -16473,6 +18050,13 @@ static PipelineComponentMetadataColumnPropertiesType() { public PipelineComponentMetadataColumnPropertiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertyXName = System.Xml.Linq.XName.Get("property", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentMetadataColumnPropertyType> propertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -16503,6 +18087,20 @@ public virtual IList<PipelineComponentMetadataColumnPropertyType> property { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnPropertiesType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentMetadataColumnPropertiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertyXName, typeof(PipelineComponentMetadataColumnPropertyType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -16510,6 +18108,13 @@ public virtual IList<PipelineComponentMetadataColumnPropertyType> property { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16530,72 +18135,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnPropertiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(propertyXName, typeof(PipelineComponentMetadataColumnPropertyType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class PipelineComponentMetadataColumnPropertyType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + public static explicit operator PipelineComponentMetadataColumnPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentMetadataColumnPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnPropertyType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + public PipelineComponentMetadataColumnPropertyType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnPropertyType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator PipelineComponentMetadataColumnPropertyType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentMetadataColumnPropertyType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PipelineComponentMetadataColumnPropertyType() { - } + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); public virtual string TypedValue { get { @@ -16607,6 +18162,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16615,6 +18174,9 @@ public virtual string TypedValue { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -16622,36 +18184,64 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName stateXName = System.Xml.Linq.XName.Get("state", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string state { + public virtual Microsoft.SqlServer.Dts.PipelineComponentStateEnum? state { get { XAttribute x = this.Attribute(stateXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(stateXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(stateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(stateXName, value.ToString(), "state", global::Microsoft.SqlServer.Dts.PipelineComponentStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName isArrayXName = System.Xml.Linq.XName.Get("isArray", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16670,6 +18260,10 @@ public virtual System.Boolean? isArray { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16678,6 +18272,9 @@ public virtual System.Boolean? isArray { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -16685,6 +18282,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName typeConverterXName = System.Xml.Linq.XName.Get("typeConverter", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16693,6 +18294,9 @@ public virtual string description { public virtual string typeConverter { get { XAttribute x = this.Attribute(typeConverterXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -16700,6 +18304,10 @@ public virtual string typeConverter { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UITypeEditorXName = System.Xml.Linq.XName.Get("UITypeEditor", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16708,6 +18316,9 @@ public virtual string typeConverter { public virtual string UITypeEditor { get { XAttribute x = this.Attribute(UITypeEditorXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -16715,6 +18326,10 @@ public virtual string UITypeEditor { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName containsIDXName = System.Xml.Linq.XName.Get("containsID", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16733,6 +18348,10 @@ public virtual System.Boolean? containsID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName expressionTypeXName = System.Xml.Linq.XName.Get("expressionType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16744,13 +18363,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum? expr if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(expressionTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(expressionTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(expressionTypeXName, value.ToString(), "expressionType", global::Microsoft.SqlServer.Dts.PipelineComponentExpressionTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -16762,13 +18390,24 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnPropertyNa if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(nameXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(nameXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(nameXName, value.ToString(), "name", global::Microsoft.SqlServer.Dts.PipelineComponentMetadataColumnPropertyNameEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentMetadataColumnPropertyType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16789,14 +18428,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentMetadataColumnPropertyType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum PipelineComponentMetadataColumnPropertyNameEnum { @@ -16808,13 +18439,13 @@ public enum PipelineComponentMetadataColumnPropertyNameEnum { public sealed class PipelineComponentMetadataColumnPropertyNameEnumValidator { + private PipelineComponentMetadataColumnPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DBParamInfoFlags", "CLRType"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentMetadataColumnPropertyNameEnumValidator() { - } } /// <summary> @@ -16824,26 +18455,10 @@ private PipelineComponentMetadataColumnPropertyNameEnumValidator() { /// </summary> public partial class PipelineComponentOutputColumnsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName outputColumnXName = System.Xml.Linq.XName.Get("outputColumn", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentOutputColumnType> outputColumnField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentOutputColumnsType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputColumnsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentOutputColumnsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(outputColumnXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnsType>(this); } /// <summary> @@ -16854,6 +18469,13 @@ static PipelineComponentOutputColumnsType() { public PipelineComponentOutputColumnsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName outputColumnXName = System.Xml.Linq.XName.Get("outputColumn", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentOutputColumnType> outputColumnField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -16884,6 +18506,20 @@ public virtual IList<PipelineComponentOutputColumnType> outputColumn { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnsType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentOutputColumnsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(outputColumnXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(outputColumnXName, typeof(PipelineComponentOutputColumnType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -16891,6 +18527,13 @@ public virtual IList<PipelineComponentOutputColumnType> outputColumn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -16911,18 +18554,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(outputColumnXName, typeof(PipelineComponentOutputColumnType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -16932,94 +18563,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class PipelineComponentOutputColumnType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PipelineComponentOutputColumnPropertiesType> propertiesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName mappedColumnIdXName = System.Xml.Linq.XName.Get("mappedColumnId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName externalMetadataColumnIdXName = System.Xml.Linq.XName.Get("externalMetadataColumnId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lineageIdXName = System.Xml.Linq.XName.Get("lineageId", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName precisionXName = System.Xml.Linq.XName.Get("precision", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName scaleXName = System.Xml.Linq.XName.Get("scale", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName codePageXName = System.Xml.Linq.XName.Get("codePage", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName sortKeyPositionXName = System.Xml.Linq.XName.Get("sortKeyPosition", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName comparisonFlagsXName = System.Xml.Linq.XName.Get("comparisonFlags", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName specialFlagsXName = System.Xml.Linq.XName.Get("specialFlags", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator PipelineComponentOutputColumnType(XElement xe) { return XTypedServices.ToXTypedElement<PipelineComponentOutputColumnType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static PipelineComponentOutputColumnType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnType>(this); } /// <summary> @@ -17030,6 +18577,13 @@ static PipelineComponentOutputColumnType() { public PipelineComponentOutputColumnType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName propertiesXName = System.Xml.Linq.XName.Get("properties", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<PipelineComponentOutputColumnPropertiesType> propertiesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -17060,6 +18614,10 @@ public virtual IList<PipelineComponentOutputColumnPropertiesType> properties { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17068,6 +18626,9 @@ public virtual IList<PipelineComponentOutputColumnPropertiesType> properties { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17075,6 +18636,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17083,13 +18648,20 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } set { this.SetAttribute(nameXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17098,6 +18670,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17105,6 +18680,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName mappedColumnIdXName = System.Xml.Linq.XName.Get("mappedColumnId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17123,6 +18702,10 @@ public virtual System.Int32? mappedColumnId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorOrTruncationOperationXName = System.Xml.Linq.XName.Get("errorOrTruncationOperation", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17131,6 +18714,9 @@ public virtual System.Int32? mappedColumnId { public virtual string errorOrTruncationOperation { get { XAttribute x = this.Attribute(errorOrTruncationOperationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17138,6 +18724,10 @@ public virtual string errorOrTruncationOperation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName errorRowDispositionXName = System.Xml.Linq.XName.Get("errorRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17149,13 +18739,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? erro if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(errorRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(errorRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(errorRowDispositionXName, value.ToString(), "errorRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName truncationRowDispositionXName = System.Xml.Linq.XName.Get("truncationRowDisposition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17167,13 +18766,22 @@ public virtual Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum? trun if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(truncationRowDispositionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(truncationRowDispositionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(truncationRowDispositionXName, value.ToString(), "truncationRowDisposition", global::Microsoft.SqlServer.Dts.PipelineComponentRowDispositionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName externalMetadataColumnIdXName = System.Xml.Linq.XName.Get("externalMetadataColumnId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17192,6 +18800,10 @@ public virtual System.Int32? externalMetadataColumnId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lineageIdXName = System.Xml.Linq.XName.Get("lineageId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17210,6 +18822,10 @@ public virtual System.Int32? lineageId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName precisionXName = System.Xml.Linq.XName.Get("precision", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17228,6 +18844,10 @@ public virtual System.Int32? precision { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName scaleXName = System.Xml.Linq.XName.Get("scale", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17246,6 +18866,10 @@ public virtual System.Int32? scale { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName lengthXName = System.Xml.Linq.XName.Get("length", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17264,21 +18888,37 @@ public virtual System.Int32? length { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName dataTypeXName = System.Xml.Linq.XName.Get("dataType", ""); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string dataType { + public virtual Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnum? dataType { get { XAttribute x = this.Attribute(dataTypeXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(dataTypeXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(dataTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(dataTypeXName, value.ToString(), "dataType", global::Microsoft.SqlServer.Dts.PipelineComponentColumnDataTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName codePageXName = System.Xml.Linq.XName.Get("codePage", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17297,6 +18937,10 @@ public virtual System.Int32? codePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName sortKeyPositionXName = System.Xml.Linq.XName.Get("sortKeyPosition", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17315,6 +18959,10 @@ public virtual System.Int32? sortKeyPosition { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName comparisonFlagsXName = System.Xml.Linq.XName.Get("comparisonFlags", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17333,6 +18981,10 @@ public virtual System.Int32? comparisonFlags { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName specialFlagsXName = System.Xml.Linq.XName.Get("specialFlags", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17351,6 +19003,20 @@ public virtual System.Int32? specialFlags { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelineComponentOutputColumnType", "www.microsoft.com/SqlServer/Dts"); + + static PipelineComponentOutputColumnType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(propertiesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(propertiesXName, typeof(PipelineComponentOutputColumnPropertiesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -17358,6 +19024,13 @@ public virtual System.Int32? specialFlags { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17378,21 +19051,75 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public enum PipelineComponentColumnDataTypeEnum { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelineComponentOutputColumnType>(this); - } + i1, - private static void BuildElementDictionary() { - localElementDictionary.Add(propertiesXName, typeof(PipelineComponentOutputColumnPropertiesType)); - } + ui1, - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } + i2, + + i4, + + r4, + + r8, + + cy, + + date, + + @bool, + + variant, + + @decimal, + + ui2, + + ui4, + + i8, + + ui8, + + guid, + + bytes, + + str, + + wstr, + + numeric, + + dbDate, + + dateTime, + + dbTime, + + dbTimeStamp, + + image, + + text, + + nText, + + dbTime2, + + dbTimeStamp2, + + dbTimeStampOffset, } - public sealed class PipelineComponentColumnDataTypeEnum { + public sealed class PipelineComponentColumnDataTypeEnumValidator { + + private PipelineComponentColumnDataTypeEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { @@ -17404,9 +19131,9 @@ public sealed class PipelineComponentColumnDataTypeEnum { "r8", "cy", "date", - "bool", + "bool:@bool", "variant", - "decimal", + "decimal:@decimal", "ui2", "ui4", "i8", @@ -17426,9 +19153,6 @@ public sealed class PipelineComponentColumnDataTypeEnum { "dbTime2", "dbTimeStamp2", "dbTimeStampOffset"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentColumnDataTypeEnum() { - } } public enum PipelineComponentRowDispositionEnum { @@ -17444,45 +19168,31 @@ public enum PipelineComponentRowDispositionEnum { public sealed class PipelineComponentRowDispositionEnumValidator { + private PipelineComponentRowDispositionEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "NotUsed", "IgnoreFailure", "FailComponent", "RedirectRow"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private PipelineComponentRowDispositionEnumValidator() { - } } public partial class PipelinePathType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + public static explicit operator PipelinePathType(XElement xe) { return XTypedServices.ToXTypedElement<PipelinePathType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PipelinePathType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName startIdXName = System.Xml.Linq.XName.Get("startId", ""); + public PipelinePathType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName endIdXName = System.Xml.Linq.XName.Get("endId", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelinePathType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator PipelinePathType(XElement xe) { return XTypedServices.ToXTypedElement<PipelinePathType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public PipelinePathType() { - } + protected internal static readonly System.Xml.Linq.XName idXName = System.Xml.Linq.XName.Get("id", ""); /// <summary> /// <para> @@ -17492,6 +19202,9 @@ public PipelinePathType() { public virtual string id { get { XAttribute x = this.Attribute(idXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17499,6 +19212,10 @@ public virtual string id { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName nameXName = System.Xml.Linq.XName.Get("name", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17507,6 +19224,9 @@ public virtual string id { public virtual string name { get { XAttribute x = this.Attribute(nameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17514,6 +19234,10 @@ public virtual string name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName descriptionXName = System.Xml.Linq.XName.Get("description", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17522,6 +19246,9 @@ public virtual string name { public virtual string description { get { XAttribute x = this.Attribute(descriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -17529,6 +19256,10 @@ public virtual string description { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName startIdXName = System.Xml.Linq.XName.Get("startId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17547,6 +19278,10 @@ public virtual System.Int32? startId { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName endIdXName = System.Xml.Linq.XName.Get("endId", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -17565,6 +19300,12 @@ public virtual System.Int32? endId { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PipelinePathType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17585,14 +19326,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PipelinePathType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -17602,23 +19335,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class LogProviderObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InnerObjectXName = System.Xml.Linq.XName.Get("InnerObject", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LogProviderObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator LogProviderObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<LogProviderObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static LogProviderObjectDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(InnerObjectXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<LogProviderObjectDataType>(this); } /// <summary> @@ -17629,6 +19349,10 @@ static LogProviderObjectDataType() { public LogProviderObjectDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InnerObjectXName = System.Xml.Linq.XName.Get("InnerObject", ""); + /// <summary> /// <para> /// Occurrence: required @@ -17647,6 +19371,20 @@ public virtual InnerObjectObjectDataType InnerObject { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("LogProviderObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static LogProviderObjectDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(InnerObjectXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(InnerObjectXName, typeof(InnerObjectObjectDataType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -17654,6 +19392,13 @@ public virtual InnerObjectObjectDataType InnerObject { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17674,18 +19419,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<LogProviderObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(InnerObjectXName, typeof(InnerObjectObjectDataType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -17695,47 +19428,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ForEachEnumeratorObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEIEItemsXName = System.Xml.Linq.XName.Get("FEIEItems", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ForEachFileEnumeratorPropertiesXName = System.Xml.Linq.XName.Get("ForEachFileEnumeratorProperties", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEEADOXName = System.Xml.Linq.XName.Get("FEEADO", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEESchemaRowsetXName = System.Xml.Linq.XName.Get("FEESchemaRowset", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEEFVEXName = System.Xml.Linq.XName.Get("FEEFVE", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEENODELISTXName = System.Xml.Linq.XName.Get("FEENODELIST", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEESMOXName = System.Xml.Linq.XName.Get("FEESMO", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachEnumeratorObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ForEachEnumeratorObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ForEachEnumeratorObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ForEachEnumeratorObjectDataType() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FEIEItemsXName), new NamedContentModelEntity(ForEachFileEnumeratorPropertiesXName), new NamedContentModelEntity(FEEADOXName), new NamedContentModelEntity(FEESchemaRowsetXName), new NamedContentModelEntity(FEEFVEXName), new NamedContentModelEntity(FEENODELISTXName), new NamedContentModelEntity(FEESMOXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ForEachEnumeratorObjectDataType>(this); } /// <summary> @@ -17746,33 +19442,9 @@ static ForEachEnumeratorObjectDataType() { public ForEachEnumeratorObjectDataType() { } - public ForEachEnumeratorObjectDataType(FEIEItemsType FEIEItems) { - this.FEIEItems = FEIEItems; - } - - public ForEachEnumeratorObjectDataType(ForEachFileEnumeratorPropertiesType ForEachFileEnumeratorProperties) { - this.ForEachFileEnumeratorProperties = ForEachFileEnumeratorProperties; - } - - public ForEachEnumeratorObjectDataType(FEEADOType FEEADO) { - this.FEEADO = FEEADO; - } - - public ForEachEnumeratorObjectDataType(FEESchemaRowsetType FEESchemaRowset) { - this.FEESchemaRowset = FEESchemaRowset; - } - - public ForEachEnumeratorObjectDataType(FEEFVEType FEEFVE) { - this.FEEFVE = FEEFVE; - } - - public ForEachEnumeratorObjectDataType(FEENODELISTType FEENODELIST) { - this.FEENODELIST = FEENODELIST; - } - - public ForEachEnumeratorObjectDataType(FEESMOType FEESMO) { - this.FEESMO = FEESMO; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEIEItemsXName = System.Xml.Linq.XName.Get("FEIEItems", ""); /// <summary> /// <para> @@ -17785,6 +19457,9 @@ public ForEachEnumeratorObjectDataType(FEESMOType FEESMO) { public virtual FEIEItemsType FEIEItems { get { XElement x = this.GetElement(FEIEItemsXName); + if ((x == null)) { + return null; + } return ((FEIEItemsType)(x)); } set { @@ -17792,6 +19467,10 @@ public virtual FEIEItemsType FEIEItems { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ForEachFileEnumeratorPropertiesXName = System.Xml.Linq.XName.Get("ForEachFileEnumeratorProperties", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -17803,6 +19482,9 @@ public virtual FEIEItemsType FEIEItems { public virtual ForEachFileEnumeratorPropertiesType ForEachFileEnumeratorProperties { get { XElement x = this.GetElement(ForEachFileEnumeratorPropertiesXName); + if ((x == null)) { + return null; + } return ((ForEachFileEnumeratorPropertiesType)(x)); } set { @@ -17810,6 +19492,10 @@ public virtual ForEachFileEnumeratorPropertiesType ForEachFileEnumeratorProperti } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEEADOXName = System.Xml.Linq.XName.Get("FEEADO", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -17821,6 +19507,9 @@ public virtual ForEachFileEnumeratorPropertiesType ForEachFileEnumeratorProperti public virtual FEEADOType FEEADO { get { XElement x = this.GetElement(FEEADOXName); + if ((x == null)) { + return null; + } return ((FEEADOType)(x)); } set { @@ -17828,6 +19517,10 @@ public virtual FEEADOType FEEADO { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEESchemaRowsetXName = System.Xml.Linq.XName.Get("FEESchemaRowset", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -17839,6 +19532,9 @@ public virtual FEEADOType FEEADO { public virtual FEESchemaRowsetType FEESchemaRowset { get { XElement x = this.GetElement(FEESchemaRowsetXName); + if ((x == null)) { + return null; + } return ((FEESchemaRowsetType)(x)); } set { @@ -17846,6 +19542,10 @@ public virtual FEESchemaRowsetType FEESchemaRowset { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEEFVEXName = System.Xml.Linq.XName.Get("FEEFVE", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -17857,6 +19557,9 @@ public virtual FEESchemaRowsetType FEESchemaRowset { public virtual FEEFVEType FEEFVE { get { XElement x = this.GetElement(FEEFVEXName); + if ((x == null)) { + return null; + } return ((FEEFVEType)(x)); } set { @@ -17864,6 +19567,10 @@ public virtual FEEFVEType FEEFVE { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEENODELISTXName = System.Xml.Linq.XName.Get("FEENODELIST", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -17875,6 +19582,9 @@ public virtual FEEFVEType FEEFVE { public virtual FEENODELISTType FEENODELIST { get { XElement x = this.GetElement(FEENODELISTXName); + if ((x == null)) { + return null; + } return ((FEENODELISTType)(x)); } set { @@ -17882,6 +19592,10 @@ public virtual FEENODELISTType FEENODELIST { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEESMOXName = System.Xml.Linq.XName.Get("FEESMO", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -17893,6 +19607,9 @@ public virtual FEENODELISTType FEENODELIST { public virtual FEESMOType FEESMO { get { XElement x = this.GetElement(FEESMOXName); + if ((x == null)) { + return null; + } return ((FEESMOType)(x)); } set { @@ -17900,6 +19617,54 @@ public virtual FEESMOType FEESMO { } } + public ForEachEnumeratorObjectDataType(FEIEItemsType FEIEItems) { + this.FEIEItems = FEIEItems; + } + + public ForEachEnumeratorObjectDataType(ForEachFileEnumeratorPropertiesType ForEachFileEnumeratorProperties) { + this.ForEachFileEnumeratorProperties = ForEachFileEnumeratorProperties; + } + + public ForEachEnumeratorObjectDataType(FEEADOType FEEADO) { + this.FEEADO = FEEADO; + } + + public ForEachEnumeratorObjectDataType(FEESchemaRowsetType FEESchemaRowset) { + this.FEESchemaRowset = FEESchemaRowset; + } + + public ForEachEnumeratorObjectDataType(FEEFVEType FEEFVE) { + this.FEEFVE = FEEFVE; + } + + public ForEachEnumeratorObjectDataType(FEENODELISTType FEENODELIST) { + this.FEENODELIST = FEENODELIST; + } + + public ForEachEnumeratorObjectDataType(FEESMOType FEESMO) { + this.FEESMO = FEESMO; + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachEnumeratorObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static ForEachEnumeratorObjectDataType() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(FEIEItemsXName), new NamedContentModelEntity(ForEachFileEnumeratorPropertiesXName), new NamedContentModelEntity(FEEADOXName), new NamedContentModelEntity(FEESchemaRowsetXName), new NamedContentModelEntity(FEEFVEXName), new NamedContentModelEntity(FEENODELISTXName), new NamedContentModelEntity(FEESMOXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FEIEItemsXName, typeof(FEIEItemsType)); + localElementDictionary.Add(ForEachFileEnumeratorPropertiesXName, typeof(ForEachFileEnumeratorPropertiesType)); + localElementDictionary.Add(FEEADOXName, typeof(FEEADOType)); + localElementDictionary.Add(FEESchemaRowsetXName, typeof(FEESchemaRowsetType)); + localElementDictionary.Add(FEEFVEXName, typeof(FEEFVEType)); + localElementDictionary.Add(FEENODELISTXName, typeof(FEENODELISTType)); + localElementDictionary.Add(FEESMOXName, typeof(FEESMOType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -17907,6 +19672,13 @@ public virtual FEESMOType FEESMO { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -17927,24 +19699,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ForEachEnumeratorObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(FEIEItemsXName, typeof(FEIEItemsType)); - localElementDictionary.Add(ForEachFileEnumeratorPropertiesXName, typeof(ForEachFileEnumeratorPropertiesType)); - localElementDictionary.Add(FEEADOXName, typeof(FEEADOType)); - localElementDictionary.Add(FEESchemaRowsetXName, typeof(FEESchemaRowsetType)); - localElementDictionary.Add(FEEFVEXName, typeof(FEEFVEType)); - localElementDictionary.Add(FEENODELISTXName, typeof(FEENODELISTType)); - localElementDictionary.Add(FEESMOXName, typeof(FEESMOType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -17954,26 +19708,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class FEIEItemsType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEIEItemXName = System.Xml.Linq.XName.Get("FEIEItem", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FEIEItemType> FEIEItemField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEIEItemsType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator FEIEItemsType(XElement xe) { return XTypedServices.ToXTypedElement<FEIEItemsType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static FEIEItemsType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FEIEItemXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEIEItemsType>(this); } /// <summary> @@ -17984,6 +19722,13 @@ static FEIEItemsType() { public FEIEItemsType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEIEItemXName = System.Xml.Linq.XName.Get("FEIEItem", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FEIEItemType> FEIEItemField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -18014,6 +19759,20 @@ public virtual IList<FEIEItemType> FEIEItem { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEIEItemsType", "www.microsoft.com/SqlServer/Dts"); + + static FEIEItemsType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FEIEItemXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FEIEItemXName, typeof(FEIEItemType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -18021,6 +19780,13 @@ public virtual IList<FEIEItemType> FEIEItem { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18041,18 +19807,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEIEItemsType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(FEIEItemXName, typeof(FEIEItemType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -18062,26 +19816,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class FEIEItemType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEIEItemValueXName = System.Xml.Linq.XName.Get("FEIEItemValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FEIEItemValueType> FEIEItemValueField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEIEItemType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator FEIEItemType(XElement xe) { return XTypedServices.ToXTypedElement<FEIEItemType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static FEIEItemType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FEIEItemValueXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEIEItemType>(this); } /// <summary> @@ -18092,6 +19830,13 @@ static FEIEItemType() { public FEIEItemType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEIEItemValueXName = System.Xml.Linq.XName.Get("FEIEItemValue", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FEIEItemValueType> FEIEItemValueField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -18122,6 +19867,20 @@ public virtual IList<FEIEItemValueType> FEIEItemValue { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEIEItemType", "www.microsoft.com/SqlServer/Dts"); + + static FEIEItemType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FEIEItemValueXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FEIEItemValueXName, typeof(FEIEItemValueType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -18129,6 +19888,13 @@ public virtual IList<FEIEItemValueType> FEIEItemValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18149,37 +19915,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEIEItemType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(FEIEItemValueXName, typeof(FEIEItemValueType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class FEIEItemValueType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypeXName = System.Xml.Linq.XName.Get("Type", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEIEItemValueType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator FEIEItemValueType(XElement xe) { return XTypedServices.ToXTypedElement<FEIEItemValueType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEIEItemValueType>(this); + } + public FEIEItemValueType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypeXName = System.Xml.Linq.XName.Get("Type", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18195,6 +19947,10 @@ public virtual int Type { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18210,6 +19966,12 @@ public virtual string Value { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEIEItemValueType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18230,14 +19992,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEIEItemValueType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -18247,26 +20001,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ForEachFileEnumeratorPropertiesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FEFEPropertyXName = System.Xml.Linq.XName.Get("FEFEProperty", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FEFEPropertyLocalType> FEFEPropertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachFileEnumeratorPropertiesType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ForEachFileEnumeratorPropertiesType(XElement xe) { return XTypedServices.ToXTypedElement<ForEachFileEnumeratorPropertiesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ForEachFileEnumeratorPropertiesType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FEFEPropertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ForEachFileEnumeratorPropertiesType>(this); } /// <summary> @@ -18277,6 +20015,13 @@ static ForEachFileEnumeratorPropertiesType() { public ForEachFileEnumeratorPropertiesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FEFEPropertyXName = System.Xml.Linq.XName.Get("FEFEProperty", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.ForEachFileEnumeratorPropertiesType.FEFEPropertyLocalType> FEFEPropertyField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -18288,7 +20033,7 @@ public ForEachFileEnumeratorPropertiesType() { public virtual IList<Microsoft.SqlServer.Dts.ForEachFileEnumeratorPropertiesType.FEFEPropertyLocalType> FEFEProperty { get { if ((this.FEFEPropertyField == null)) { - this.FEFEPropertyField = new XTypedList<FEFEPropertyLocalType>(this, LinqToXsdTypeManager.Instance, FEFEPropertyXName); + this.FEFEPropertyField = new XTypedList<Microsoft.SqlServer.Dts.ForEachFileEnumeratorPropertiesType.FEFEPropertyLocalType>(this, LinqToXsdTypeManager.Instance, FEFEPropertyXName); } return this.FEFEPropertyField; } @@ -18298,15 +20043,29 @@ public virtual IList<Microsoft.SqlServer.Dts.ForEachFileEnumeratorPropertiesType } else { if ((this.FEFEPropertyField == null)) { - this.FEFEPropertyField = XTypedList<FEFEPropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, FEFEPropertyXName); + this.FEFEPropertyField = XTypedList<Microsoft.SqlServer.Dts.ForEachFileEnumeratorPropertiesType.FEFEPropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, FEFEPropertyXName); } else { - XTypedServices.SetList<FEFEPropertyLocalType>(this.FEFEPropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.ForEachFileEnumeratorPropertiesType.FEFEPropertyLocalType>(this.FEFEPropertyField, value); } } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ForEachFileEnumeratorPropertiesType", "www.microsoft.com/SqlServer/Dts"); + + static ForEachFileEnumeratorPropertiesType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(FEFEPropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(FEFEPropertyXName, typeof(FEFEPropertyLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -18314,6 +20073,13 @@ public virtual IList<Microsoft.SqlServer.Dts.ForEachFileEnumeratorPropertiesType } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18335,42 +20101,20 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ForEachFileEnumeratorPropertiesType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(FEFEPropertyXName, typeof(FEFEPropertyLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class FEFEPropertyLocalType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FolderXName = System.Xml.Linq.XName.Get("Folder", ""); + public static explicit operator FEFEPropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<FEFEPropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileSpecXName = System.Xml.Linq.XName.Get("FileSpec", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEFEPropertyLocalType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileNameRetrievalTypeXName = System.Xml.Linq.XName.Get("FileNameRetrievalType", ""); + public FEFEPropertyLocalType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RecurseXName = System.Xml.Linq.XName.Get("Recurse", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEFEProperty", ""); - - public static explicit operator FEFEPropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<FEFEPropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public FEFEPropertyLocalType() { - } + protected internal static readonly System.Xml.Linq.XName FolderXName = System.Xml.Linq.XName.Get("Folder", ""); /// <summary> /// <para> @@ -18380,6 +20124,9 @@ public FEFEPropertyLocalType() { public virtual string Folder { get { XAttribute x = this.Attribute(FolderXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -18387,6 +20134,10 @@ public virtual string Folder { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileSpecXName = System.Xml.Linq.XName.Get("FileSpec", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18395,6 +20146,9 @@ public virtual string Folder { public virtual string FileSpec { get { XAttribute x = this.Attribute(FileSpecXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -18402,6 +20156,10 @@ public virtual string FileSpec { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileNameRetrievalTypeXName = System.Xml.Linq.XName.Get("FileNameRetrievalType", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18420,6 +20178,10 @@ public virtual System.Int32? FileNameRetrievalType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RecurseXName = System.Xml.Linq.XName.Get("Recurse", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -18438,6 +20200,12 @@ public virtual System.Int32? Recurse { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEFEProperty", ""); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18458,34 +20226,24 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEFEPropertyLocalType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } } public partial class FEEADOType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EnumTypeXName = System.Xml.Linq.XName.Get("EnumType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VarNameXName = System.Xml.Linq.XName.Get("VarName", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEEADOType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator FEEADOType(XElement xe) { return XTypedServices.ToXTypedElement<FEEADOType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEEADOType>(this); + } + public FEEADOType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EnumTypeXName = System.Xml.Linq.XName.Get("EnumType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18494,13 +20252,17 @@ public FEEADOType() { public virtual Microsoft.SqlServer.Dts.FEEADOEnumType EnumType { get { XAttribute x = this.Attribute(EnumTypeXName); - return ((Microsoft.SqlServer.Dts.FEEADOEnumType)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FEEADOEnumType), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FEEADOEnumType)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FEEADOEnumType), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.FEEADOEnumTypeValidator.TypeDefinition)))); } set { - this.SetAttribute(EnumTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(EnumTypeXName, value.ToString(), "EnumType", global::Microsoft.SqlServer.Dts.FEEADOEnumTypeValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VarNameXName = System.Xml.Linq.XName.Get("VarName", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18516,6 +20278,12 @@ public virtual string VarName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEEADOType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18536,14 +20304,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEEADOType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum FEEADOEnumType { @@ -18557,14 +20317,14 @@ public enum FEEADOEnumType { public sealed class FEEADOEnumTypeValidator { + private FEEADOEnumTypeValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "EnumerateRowsInFirstTable", "EnumerateAllRows", "EnumerateTables"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private FEEADOEnumTypeValidator() { - } } /// <summary> @@ -18574,34 +20334,10 @@ private FEEADOEnumTypeValidator() { /// </summary> public partial class FEESchemaRowsetType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RestrictionXName = System.Xml.Linq.XName.Get("Restriction", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<RestrictionElementType> RestrictionField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SchemaXName = System.Xml.Linq.XName.Get("Schema", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEESchemaRowsetType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator FEESchemaRowsetType(XElement xe) { return XTypedServices.ToXTypedElement<FEESchemaRowsetType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static FEESchemaRowsetType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(RestrictionXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEESchemaRowsetType>(this); } /// <summary> @@ -18612,6 +20348,13 @@ static FEESchemaRowsetType() { public FEESchemaRowsetType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RestrictionXName = System.Xml.Linq.XName.Get("Restriction", ""); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<RestrictionElementType> RestrictionField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -18642,6 +20385,10 @@ public virtual IList<RestrictionElementType> Restriction { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18657,6 +20404,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SchemaXName = System.Xml.Linq.XName.Get("Schema", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18672,6 +20423,20 @@ public virtual string Schema { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEESchemaRowsetType", "www.microsoft.com/SqlServer/Dts"); + + static FEESchemaRowsetType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(RestrictionXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(RestrictionXName, typeof(RestrictionElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -18679,6 +20444,13 @@ public virtual string Schema { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18699,37 +20471,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEESchemaRowsetType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(RestrictionXName, typeof(RestrictionElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class RestrictionElementType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IndexXName = System.Xml.Linq.XName.Get("Index", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RestrictionElementType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator RestrictionElementType(XElement xe) { return XTypedServices.ToXTypedElement<RestrictionElementType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<RestrictionElementType>(this); + } + public RestrictionElementType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IndexXName = System.Xml.Linq.XName.Get("Index", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18745,6 +20503,10 @@ public virtual int Index { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ValueXName = System.Xml.Linq.XName.Get("Value", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18760,6 +20522,12 @@ public virtual string Value { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("RestrictionElementType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18780,29 +20548,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<RestrictionElementType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class FEEFVEType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VariableNameXName = System.Xml.Linq.XName.Get("VariableName", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEEFVEType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator FEEFVEType(XElement xe) { return XTypedServices.ToXTypedElement<FEEFVEType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEEFVEType>(this); + } + public FEEFVEType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VariableNameXName = System.Xml.Linq.XName.Get("VariableName", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18818,6 +20580,12 @@ public virtual string VariableName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEEFVEType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -18838,56 +20606,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEEFVEType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class FEENODELISTType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EnumerationTypeXName = System.Xml.Linq.XName.Get("EnumerationType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OuterXPathSourceTypeXName = System.Xml.Linq.XName.Get("OuterXPathSourceType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OuterXPathStringXName = System.Xml.Linq.XName.Get("OuterXPathString", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InnerElementTypeXName = System.Xml.Linq.XName.Get("InnerElementType", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InnerXPathSourceTypeXName = System.Xml.Linq.XName.Get("InnerXPathSourceType", ""); + public static explicit operator FEENODELISTType(XElement xe) { return XTypedServices.ToXTypedElement<FEENODELISTType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InnerXPathStringXName = System.Xml.Linq.XName.Get("InnerXPathString", ""); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEENODELISTType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceTypeXName = System.Xml.Linq.XName.Get("SourceType", ""); + public FEENODELISTType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceDocumentXName = System.Xml.Linq.XName.Get("SourceDocument", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEENODELISTType", "www.microsoft.com/SqlServer/Dts"); - - public static explicit operator FEENODELISTType(XElement xe) { return XTypedServices.ToXTypedElement<FEENODELISTType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public FEENODELISTType() { - } + protected internal static readonly System.Xml.Linq.XName EnumerationTypeXName = System.Xml.Linq.XName.Get("EnumerationType", ""); /// <summary> /// <para> @@ -18897,13 +20631,17 @@ public FEENODELISTType() { public virtual Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnum EnumerationType { get { XAttribute x = this.Attribute(EnumerationTypeXName); - return ((Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(EnumerationTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(EnumerationTypeXName, value.ToString(), "EnumerationType", global::Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OuterXPathSourceTypeXName = System.Xml.Linq.XName.Get("OuterXPathSourceType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18912,13 +20650,17 @@ public virtual Microsoft.SqlServer.Dts.NodelistEnumerationTypeEnum EnumerationTy public virtual Microsoft.SqlServer.Dts.SourceTypeEnum OuterXPathSourceType { get { XAttribute x = this.Attribute(OuterXPathSourceTypeXName); - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OuterXPathSourceTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(OuterXPathSourceTypeXName, value.ToString(), "OuterXPathSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OuterXPathStringXName = System.Xml.Linq.XName.Get("OuterXPathString", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18934,6 +20676,10 @@ public virtual string OuterXPathString { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InnerElementTypeXName = System.Xml.Linq.XName.Get("InnerElementType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18942,13 +20688,17 @@ public virtual string OuterXPathString { public virtual Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnum InnerElementType { get { XAttribute x = this.Attribute(InnerElementTypeXName); - return ((Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(InnerElementTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(InnerElementTypeXName, value.ToString(), "InnerElementType", global::Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InnerXPathSourceTypeXName = System.Xml.Linq.XName.Get("InnerXPathSourceType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18957,13 +20707,17 @@ public virtual Microsoft.SqlServer.Dts.NodelistInnerElementEnumerationTypeEnum I public virtual Microsoft.SqlServer.Dts.SourceTypeEnum InnerXPathSourceType { get { XAttribute x = this.Attribute(InnerXPathSourceTypeXName); - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(InnerXPathSourceTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(InnerXPathSourceTypeXName, value.ToString(), "InnerXPathSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InnerXPathStringXName = System.Xml.Linq.XName.Get("InnerXPathString", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18979,6 +20733,10 @@ public virtual string InnerXPathString { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceTypeXName = System.Xml.Linq.XName.Get("SourceType", ""); + /// <summary> /// <para> /// Occurrence: required @@ -18987,13 +20745,17 @@ public virtual string InnerXPathString { public virtual Microsoft.SqlServer.Dts.SourceTypeEnum SourceType { get { XAttribute x = this.Attribute(SourceTypeXName); - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SourceTypeXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(SourceTypeXName, value.ToString(), "SourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceDocumentXName = System.Xml.Linq.XName.Get("SourceDocument", ""); + /// <summary> /// <para> /// Occurrence: required @@ -19009,6 +20771,12 @@ public virtual string SourceDocument { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEENODELISTType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19029,14 +20797,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEENODELISTType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum NodelistInnerElementEnumerationTypeEnum { @@ -19050,14 +20810,14 @@ public enum NodelistInnerElementEnumerationTypeEnum { public sealed class NodelistInnerElementEnumerationTypeEnumValidator { + private NodelistInnerElementEnumerationTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Navigator", "Node", "NodeText"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private NodelistInnerElementEnumerationTypeEnumValidator() { - } } public enum NodelistEnumerationTypeEnum { @@ -19073,30 +20833,32 @@ public enum NodelistEnumerationTypeEnum { public sealed class NodelistEnumerationTypeEnumValidator { + private NodelistEnumerationTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Navigator", "Node", "NodeText", "ElementCollection"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private NodelistEnumerationTypeEnumValidator() { - } } public partial class FEESMOType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EnumURNXName = System.Xml.Linq.XName.Get("EnumURN", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEESMOType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator FEESMOType(XElement xe) { return XTypedServices.ToXTypedElement<FEESMOType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FEESMOType>(this); + } + public FEESMOType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EnumURNXName = System.Xml.Linq.XName.Get("EnumURN", ""); + /// <summary> /// <para> /// Occurrence: required @@ -19112,6 +20874,12 @@ public virtual string EnumURN { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FEESMOType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19132,14 +20900,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FEESMOType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -19149,39 +20909,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ConnectionManagerObjectDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionManagerXName = System.Xml.Linq.XName.Get("ConnectionManager", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MsmqConnectionManagerXName = System.Xml.Linq.XName.Get("MsmqConnectionManager", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SMOServerConnectionManagerXName = System.Xml.Linq.XName.Get("SMOServerConnectionManager", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SmtpConnectionManagerXName = System.Xml.Linq.XName.Get("SmtpConnectionManager", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WmiConnectionManagerXName = System.Xml.Linq.XName.Get("WmiConnectionManager", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ConnectionManagerObjectDataType(XElement xe) { return XTypedServices.ToXTypedElement<ConnectionManagerObjectDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ConnectionManagerObjectDataType() { - BuildElementDictionary(); - contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ConnectionManagerXName), new NamedContentModelEntity(MsmqConnectionManagerXName), new NamedContentModelEntity(SMOServerConnectionManagerXName), new NamedContentModelEntity(SmtpConnectionManagerXName), new NamedContentModelEntity(WmiConnectionManagerXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataType>(this); } /// <summary> @@ -19192,25 +20923,9 @@ static ConnectionManagerObjectDataType() { public ConnectionManagerObjectDataType() { } - public ConnectionManagerObjectDataType(ConnectionManagerObjectDataConnectionManagerType ConnectionManager) { - this.ConnectionManager = ConnectionManager; - } - - public ConnectionManagerObjectDataType(ConnectionManagerObjectDataMsmqConnectionManagerType MsmqConnectionManager) { - this.MsmqConnectionManager = MsmqConnectionManager; - } - - public ConnectionManagerObjectDataType(ConnectionManagerObjectDataSMOServerConnectionManagerType SMOServerConnectionManager) { - this.SMOServerConnectionManager = SMOServerConnectionManager; - } - - public ConnectionManagerObjectDataType(ConnectionManagerObjectDataSmtpConnectionManagerType SmtpConnectionManager) { - this.SmtpConnectionManager = SmtpConnectionManager; - } - - public ConnectionManagerObjectDataType(ConnectionManagerObjectDataWmiConnectionManagerType WmiConnectionManager) { - this.WmiConnectionManager = WmiConnectionManager; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionManagerXName = System.Xml.Linq.XName.Get("ConnectionManager", "www.microsoft.com/SqlServer/Dts"); /// <summary> /// <para> @@ -19223,6 +20938,9 @@ public ConnectionManagerObjectDataType(ConnectionManagerObjectDataWmiConnectionM public virtual ConnectionManagerObjectDataConnectionManagerType ConnectionManager { get { XElement x = this.GetElement(ConnectionManagerXName); + if ((x == null)) { + return null; + } return ((ConnectionManagerObjectDataConnectionManagerType)(x)); } set { @@ -19230,6 +20948,10 @@ public virtual ConnectionManagerObjectDataConnectionManagerType ConnectionManage } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MsmqConnectionManagerXName = System.Xml.Linq.XName.Get("MsmqConnectionManager", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -19241,6 +20963,9 @@ public virtual ConnectionManagerObjectDataConnectionManagerType ConnectionManage public virtual ConnectionManagerObjectDataMsmqConnectionManagerType MsmqConnectionManager { get { XElement x = this.GetElement(MsmqConnectionManagerXName); + if ((x == null)) { + return null; + } return ((ConnectionManagerObjectDataMsmqConnectionManagerType)(x)); } set { @@ -19248,6 +20973,10 @@ public virtual ConnectionManagerObjectDataMsmqConnectionManagerType MsmqConnecti } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SMOServerConnectionManagerXName = System.Xml.Linq.XName.Get("SMOServerConnectionManager", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -19259,6 +20988,9 @@ public virtual ConnectionManagerObjectDataMsmqConnectionManagerType MsmqConnecti public virtual ConnectionManagerObjectDataSMOServerConnectionManagerType SMOServerConnectionManager { get { XElement x = this.GetElement(SMOServerConnectionManagerXName); + if ((x == null)) { + return null; + } return ((ConnectionManagerObjectDataSMOServerConnectionManagerType)(x)); } set { @@ -19266,6 +20998,10 @@ public virtual ConnectionManagerObjectDataSMOServerConnectionManagerType SMOServ } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SmtpConnectionManagerXName = System.Xml.Linq.XName.Get("SmtpConnectionManager", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -19277,6 +21013,9 @@ public virtual ConnectionManagerObjectDataSMOServerConnectionManagerType SMOServ public virtual ConnectionManagerObjectDataSmtpConnectionManagerType SmtpConnectionManager { get { XElement x = this.GetElement(SmtpConnectionManagerXName); + if ((x == null)) { + return null; + } return ((ConnectionManagerObjectDataSmtpConnectionManagerType)(x)); } set { @@ -19284,6 +21023,10 @@ public virtual ConnectionManagerObjectDataSmtpConnectionManagerType SmtpConnecti } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WmiConnectionManagerXName = System.Xml.Linq.XName.Get("WmiConnectionManager", ""); + /// <summary> /// <para> /// Occurrence: required, choice @@ -19295,6 +21038,9 @@ public virtual ConnectionManagerObjectDataSmtpConnectionManagerType SmtpConnecti public virtual ConnectionManagerObjectDataWmiConnectionManagerType WmiConnectionManager { get { XElement x = this.GetElement(WmiConnectionManagerXName); + if ((x == null)) { + return null; + } return ((ConnectionManagerObjectDataWmiConnectionManagerType)(x)); } set { @@ -19302,6 +21048,44 @@ public virtual ConnectionManagerObjectDataWmiConnectionManagerType WmiConnection } } + public ConnectionManagerObjectDataType(ConnectionManagerObjectDataConnectionManagerType ConnectionManager) { + this.ConnectionManager = ConnectionManager; + } + + public ConnectionManagerObjectDataType(ConnectionManagerObjectDataMsmqConnectionManagerType MsmqConnectionManager) { + this.MsmqConnectionManager = MsmqConnectionManager; + } + + public ConnectionManagerObjectDataType(ConnectionManagerObjectDataSMOServerConnectionManagerType SMOServerConnectionManager) { + this.SMOServerConnectionManager = SMOServerConnectionManager; + } + + public ConnectionManagerObjectDataType(ConnectionManagerObjectDataSmtpConnectionManagerType SmtpConnectionManager) { + this.SmtpConnectionManager = SmtpConnectionManager; + } + + public ConnectionManagerObjectDataType(ConnectionManagerObjectDataWmiConnectionManagerType WmiConnectionManager) { + this.WmiConnectionManager = WmiConnectionManager; + } + + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataType", "www.microsoft.com/SqlServer/Dts"); + + static ConnectionManagerObjectDataType() { + BuildElementDictionary(); + contentModel = new ChoiceContentModelEntity(new NamedContentModelEntity(ConnectionManagerXName), new NamedContentModelEntity(MsmqConnectionManagerXName), new NamedContentModelEntity(SMOServerConnectionManagerXName), new NamedContentModelEntity(SmtpConnectionManagerXName), new NamedContentModelEntity(WmiConnectionManagerXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(ConnectionManagerXName, typeof(ConnectionManagerObjectDataConnectionManagerType)); + localElementDictionary.Add(MsmqConnectionManagerXName, typeof(ConnectionManagerObjectDataMsmqConnectionManagerType)); + localElementDictionary.Add(SMOServerConnectionManagerXName, typeof(ConnectionManagerObjectDataSMOServerConnectionManagerType)); + localElementDictionary.Add(SmtpConnectionManagerXName, typeof(ConnectionManagerObjectDataSmtpConnectionManagerType)); + localElementDictionary.Add(WmiConnectionManagerXName, typeof(ConnectionManagerObjectDataWmiConnectionManagerType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19309,6 +21093,13 @@ public virtual ConnectionManagerObjectDataWmiConnectionManagerType WmiConnection } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19329,22 +21120,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(ConnectionManagerXName, typeof(ConnectionManagerObjectDataConnectionManagerType)); - localElementDictionary.Add(MsmqConnectionManagerXName, typeof(ConnectionManagerObjectDataMsmqConnectionManagerType)); - localElementDictionary.Add(SMOServerConnectionManagerXName, typeof(ConnectionManagerObjectDataSMOServerConnectionManagerType)); - localElementDictionary.Add(SmtpConnectionManagerXName, typeof(ConnectionManagerObjectDataSmtpConnectionManagerType)); - localElementDictionary.Add(WmiConnectionManagerXName, typeof(ConnectionManagerObjectDataWmiConnectionManagerType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -19354,48 +21129,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ConnectionManagerObjectDataConnectionManagerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FlatFileColumnXName = System.Xml.Linq.XName.Get("FlatFileColumn", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<FlatFileColumnType> FlatFileColumnField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CacheColumnXName = System.Xml.Linq.XName.Get("CacheColumn", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<CacheColumnType> CacheColumnField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FtpConnectionXName = System.Xml.Linq.XName.Get("FtpConnection", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName HttpConnectionXName = System.Xml.Linq.XName.Get("HttpConnection", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ConnectionManagerObjectDataConnectionManagerType(XElement xe) { return XTypedServices.ToXTypedElement<ConnectionManagerObjectDataConnectionManagerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ConnectionManagerObjectDataConnectionManagerType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FlatFileColumnXName), new NamedContentModelEntity(CacheColumnXName), new NamedContentModelEntity(FtpConnectionXName), new NamedContentModelEntity(HttpConnectionXName))); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataConnectionManagerType>(this); } /// <summary> @@ -19406,6 +21143,13 @@ static ConnectionManagerObjectDataConnectionManagerType() { public ConnectionManagerObjectDataConnectionManagerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.ConnectionManagerObjectDataConnectionManagerType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -19417,7 +21161,7 @@ public ConnectionManagerObjectDataConnectionManagerType() { public virtual IList<Microsoft.SqlServer.Dts.ConnectionManagerObjectDataConnectionManagerType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.ConnectionManagerObjectDataConnectionManagerType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -19427,15 +21171,22 @@ public virtual IList<Microsoft.SqlServer.Dts.ConnectionManagerObjectDataConnecti } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.ConnectionManagerObjectDataConnectionManagerType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.ConnectionManagerObjectDataConnectionManagerType.PropertyLocalType>(this.PropertyField, value); } } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FlatFileColumnXName = System.Xml.Linq.XName.Get("FlatFileColumn", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<FlatFileColumnType> FlatFileColumnField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -19469,6 +21220,13 @@ public virtual IList<FlatFileColumnType> FlatFileColumn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CacheColumnXName = System.Xml.Linq.XName.Get("CacheColumn", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<CacheColumnType> CacheColumnField; + /// <summary> /// <para> /// Occurrence: required, repeating, choice @@ -19502,6 +21260,10 @@ public virtual IList<CacheColumnType> CacheColumn { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FtpConnectionXName = System.Xml.Linq.XName.Get("FtpConnection", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -19516,6 +21278,9 @@ public virtual IList<CacheColumnType> CacheColumn { public virtual FtpConnectionType FtpConnection { get { XElement x = this.GetElement(FtpConnectionXName); + if ((x == null)) { + return null; + } return ((FtpConnectionType)(x)); } set { @@ -19523,6 +21288,10 @@ public virtual FtpConnectionType FtpConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName HttpConnectionXName = System.Xml.Linq.XName.Get("HttpConnection", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required, choice @@ -19537,6 +21306,9 @@ public virtual FtpConnectionType FtpConnection { public virtual HttpConnectionType HttpConnection { get { XElement x = this.GetElement(HttpConnectionXName); + if ((x == null)) { + return null; + } return ((HttpConnectionType)(x)); } set { @@ -19544,6 +21316,24 @@ public virtual HttpConnectionType HttpConnection { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); + + static ConnectionManagerObjectDataConnectionManagerType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName), new ChoiceContentModelEntity(new NamedContentModelEntity(FlatFileColumnXName), new NamedContentModelEntity(CacheColumnXName), new NamedContentModelEntity(FtpConnectionXName), new NamedContentModelEntity(HttpConnectionXName))); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + localElementDictionary.Add(FlatFileColumnXName, typeof(FlatFileColumnType)); + localElementDictionary.Add(CacheColumnXName, typeof(CacheColumnType)); + localElementDictionary.Add(FtpConnectionXName, typeof(FtpConnectionType)); + localElementDictionary.Add(HttpConnectionXName, typeof(HttpConnectionType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19551,6 +21341,13 @@ public virtual HttpConnectionType HttpConnection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19572,35 +21369,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataConnectionManagerType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - localElementDictionary.Add(FlatFileColumnXName, typeof(FlatFileColumnType)); - localElementDictionary.Add(CacheColumnXName, typeof(CacheColumnType)); - localElementDictionary.Add(FtpConnectionXName, typeof(FtpConnectionType)); - localElementDictionary.Add(HttpConnectionXName, typeof(HttpConnectionType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -19609,13 +21392,15 @@ public PropertyLocalType() { public virtual Microsoft.SqlServer.Dts.ConnectionManagerObjectDataPropertyNameEnum Name { get { XAttribute x = this.Attribute(NameXName); - return ((Microsoft.SqlServer.Dts.ConnectionManagerObjectDataPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ConnectionManagerObjectDataPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.ConnectionManagerObjectDataPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.ConnectionManagerObjectDataPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.ConnectionManagerObjectDataPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(NameXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(NameXName, value.ToString(), "Name", global::Microsoft.SqlServer.Dts.ConnectionManagerObjectDataPropertyNameEnumValidator.TypeDefinition); } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19636,10 +21421,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -19650,26 +21431,10 @@ public override XTypedElement Clone() { /// </summary> public partial class FlatFileColumnType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FlatFileColumnType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator FlatFileColumnType(XElement xe) { return XTypedServices.ToXTypedElement<FlatFileColumnType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static FlatFileColumnType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FlatFileColumnType>(this); } /// <summary> @@ -19680,6 +21445,13 @@ static FlatFileColumnType() { public FlatFileColumnType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.FlatFileColumnType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -19691,7 +21463,7 @@ public FlatFileColumnType() { public virtual IList<Microsoft.SqlServer.Dts.FlatFileColumnType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.FlatFileColumnType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -19701,15 +21473,29 @@ public virtual IList<Microsoft.SqlServer.Dts.FlatFileColumnType.PropertyLocalTyp } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.FlatFileColumnType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.FlatFileColumnType.PropertyLocalType>(this.PropertyField, value); } } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FlatFileColumnType", "www.microsoft.com/SqlServer/Dts"); + + static FlatFileColumnType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19717,6 +21503,13 @@ public virtual IList<Microsoft.SqlServer.Dts.FlatFileColumnType.PropertyLocalTyp } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19738,31 +21531,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FlatFileColumnType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -19778,6 +21561,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19798,10 +21583,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -19812,26 +21593,10 @@ public override XTypedElement Clone() { /// </summary> public partial class CacheColumnType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CacheColumnType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator CacheColumnType(XElement xe) { return XTypedServices.ToXTypedElement<CacheColumnType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static CacheColumnType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<CacheColumnType>(this); } /// <summary> @@ -19842,6 +21607,13 @@ static CacheColumnType() { public CacheColumnType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.CacheColumnType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -19853,7 +21625,7 @@ public CacheColumnType() { public virtual IList<Microsoft.SqlServer.Dts.CacheColumnType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.CacheColumnType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -19863,15 +21635,29 @@ public virtual IList<Microsoft.SqlServer.Dts.CacheColumnType.PropertyLocalType> } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.CacheColumnType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.CacheColumnType.PropertyLocalType>(this.PropertyField, value); } } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("CacheColumnType", "www.microsoft.com/SqlServer/Dts"); + + static CacheColumnType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -19879,6 +21665,13 @@ public virtual IList<Microsoft.SqlServer.Dts.CacheColumnType.PropertyLocalType> } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19900,31 +21693,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<CacheColumnType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -19940,6 +21723,8 @@ public virtual object Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -19960,10 +21745,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -19974,26 +21755,10 @@ public override XTypedElement Clone() { /// </summary> public partial class FtpConnectionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FtpConnectionType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator FtpConnectionType(XElement xe) { return XTypedServices.ToXTypedElement<FtpConnectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static FtpConnectionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<FtpConnectionType>(this); } /// <summary> @@ -20004,6 +21769,13 @@ static FtpConnectionType() { public FtpConnectionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.FtpConnectionType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -20015,7 +21787,7 @@ public FtpConnectionType() { public virtual IList<Microsoft.SqlServer.Dts.FtpConnectionType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.FtpConnectionType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -20025,15 +21797,29 @@ public virtual IList<Microsoft.SqlServer.Dts.FtpConnectionType.PropertyLocalType } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.FtpConnectionType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.FtpConnectionType.PropertyLocalType>(this.PropertyField, value); } } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("FtpConnectionType", "www.microsoft.com/SqlServer/Dts"); + + static FtpConnectionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20041,6 +21827,13 @@ public virtual IList<Microsoft.SqlServer.Dts.FtpConnectionType.PropertyLocalType } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20062,39 +21855,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<FtpConnectionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -20103,13 +21878,17 @@ public PropertyLocalType() { public virtual Microsoft.SqlServer.Dts.FtpConnectionPropertyNameEnum Name { get { XAttribute x = this.Attribute(NameXName); - return ((Microsoft.SqlServer.Dts.FtpConnectionPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpConnectionPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.FtpConnectionPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.FtpConnectionPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.FtpConnectionPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(NameXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(NameXName, value.ToString(), "Name", global::Microsoft.SqlServer.Dts.FtpConnectionPropertyNameEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20128,6 +21907,10 @@ public virtual System.Int32? Sensitive { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20146,6 +21929,8 @@ public virtual System.Int32? Encrypted { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20166,10 +21951,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } @@ -20180,26 +21961,10 @@ public override XTypedElement Clone() { /// </summary> public partial class HttpConnectionType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<PropertyLocalType> PropertyField; - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HttpConnectionType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator HttpConnectionType(XElement xe) { return XTypedServices.ToXTypedElement<HttpConnectionType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static HttpConnectionType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<HttpConnectionType>(this); } /// <summary> @@ -20210,6 +21975,13 @@ static HttpConnectionType() { public HttpConnectionType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PropertyXName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<Microsoft.SqlServer.Dts.HttpConnectionType.PropertyLocalType> PropertyField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -20221,7 +21993,7 @@ public HttpConnectionType() { public virtual IList<Microsoft.SqlServer.Dts.HttpConnectionType.PropertyLocalType> Property { get { if ((this.PropertyField == null)) { - this.PropertyField = new XTypedList<PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); + this.PropertyField = new XTypedList<Microsoft.SqlServer.Dts.HttpConnectionType.PropertyLocalType>(this, LinqToXsdTypeManager.Instance, PropertyXName); } return this.PropertyField; } @@ -20231,15 +22003,29 @@ public virtual IList<Microsoft.SqlServer.Dts.HttpConnectionType.PropertyLocalTyp } else { if ((this.PropertyField == null)) { - this.PropertyField = XTypedList<PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); + this.PropertyField = XTypedList<Microsoft.SqlServer.Dts.HttpConnectionType.PropertyLocalType>.Initialize(this, LinqToXsdTypeManager.Instance, value, PropertyXName); } else { - XTypedServices.SetList<PropertyLocalType>(this.PropertyField, value); + XTypedServices.SetList<Microsoft.SqlServer.Dts.HttpConnectionType.PropertyLocalType>(this.PropertyField, value); } } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("HttpConnectionType", "www.microsoft.com/SqlServer/Dts"); + + static HttpConnectionType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PropertyXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20247,6 +22033,13 @@ public virtual IList<Microsoft.SqlServer.Dts.HttpConnectionType.PropertyLocalTyp } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20268,39 +22061,21 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<HttpConnectionType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PropertyXName, typeof(PropertyLocalType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - public partial class PropertyLocalType : global::Microsoft.SqlServer.Dts.PropertyElementBaseType, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyLocalType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyLocalType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); + } + public PropertyLocalType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -20309,13 +22084,17 @@ public PropertyLocalType() { public virtual Microsoft.SqlServer.Dts.HttpConnectionPropertyNameEnum Name { get { XAttribute x = this.Attribute(NameXName); - return ((Microsoft.SqlServer.Dts.HttpConnectionPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.HttpConnectionPropertyNameEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.HttpConnectionPropertyNameEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.HttpConnectionPropertyNameEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.HttpConnectionPropertyNameEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(NameXName, value.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + this.SetAttributeWithValidation(NameXName, value.ToString(), "Name", global::Microsoft.SqlServer.Dts.HttpConnectionPropertyNameEnumValidator.TypeDefinition); } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20334,6 +22113,10 @@ public virtual System.Int32? Sensitive { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20352,6 +22135,8 @@ public virtual System.Int32? Encrypted { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Property", "www.microsoft.com/SqlServer/Dts"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20372,26 +22157,24 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyLocalType>(this); - } } } public partial class ConnectionManagerObjectDataMsmqConnectionManagerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataMsmqConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator ConnectionManagerObjectDataMsmqConnectionManagerType(XElement xe) { return XTypedServices.ToXTypedElement<ConnectionManagerObjectDataMsmqConnectionManagerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataMsmqConnectionManagerType>(this); + } + public ConnectionManagerObjectDataMsmqConnectionManagerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20400,6 +22183,9 @@ public ConnectionManagerObjectDataMsmqConnectionManagerType() { public virtual string ConnectionString { get { XAttribute x = this.Attribute(ConnectionStringXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20407,6 +22193,12 @@ public virtual string ConnectionString { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataMsmqConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20427,14 +22219,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataMsmqConnectionManagerType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -20444,27 +22228,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ConnectionManagerObjectDataSMOServerConnectionManagerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PassWordXName = System.Xml.Linq.XName.Get("PassWord", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataSMOServerConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ConnectionManagerObjectDataSMOServerConnectionManagerType(XElement xe) { return XTypedServices.ToXTypedElement<ConnectionManagerObjectDataSMOServerConnectionManagerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ConnectionManagerObjectDataSMOServerConnectionManagerType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PassWordXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataSMOServerConnectionManagerType>(this); } /// <summary> @@ -20475,6 +22242,10 @@ static ConnectionManagerObjectDataSMOServerConnectionManagerType() { public ConnectionManagerObjectDataSMOServerConnectionManagerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PassWordXName = System.Xml.Linq.XName.Get("PassWord", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20493,6 +22264,10 @@ public virtual PasswordElementType PassWord { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20508,6 +22283,20 @@ public virtual string ConnectionString { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataSMOServerConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); + + static ConnectionManagerObjectDataSMOServerConnectionManagerType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PassWordXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PassWordXName, typeof(PasswordElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20515,6 +22304,13 @@ public virtual string ConnectionString { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20535,41 +22331,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataSMOServerConnectionManagerType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PassWordXName, typeof(PasswordElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class PasswordElementType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PasswordElementType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PasswordElementType(XElement xe) { return XTypedServices.ToXTypedElement<PasswordElementType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PasswordElementType>(this); + } + public PasswordElementType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -20580,6 +22358,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SensitiveXName = System.Xml.Linq.XName.Get("Sensitive", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20598,6 +22380,10 @@ public virtual System.Int32? Sensitive { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EncryptedXName = System.Xml.Linq.XName.Get("Encrypted", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20616,6 +22402,12 @@ public virtual System.Int32? Encrypted { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PasswordElementType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20636,29 +22428,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PasswordElementType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class ConnectionManagerObjectDataSmtpConnectionManagerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataSmtpConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator ConnectionManagerObjectDataSmtpConnectionManagerType(XElement xe) { return XTypedServices.ToXTypedElement<ConnectionManagerObjectDataSmtpConnectionManagerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataSmtpConnectionManagerType>(this); + } + public ConnectionManagerObjectDataSmtpConnectionManagerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20667,6 +22453,9 @@ public ConnectionManagerObjectDataSmtpConnectionManagerType() { public virtual string ConnectionString { get { XAttribute x = this.Attribute(ConnectionStringXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20674,6 +22463,12 @@ public virtual string ConnectionString { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataSmtpConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20694,14 +22489,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataSmtpConnectionManagerType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } /// <summary> @@ -20711,27 +22498,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class ConnectionManagerObjectDataWmiConnectionManagerType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PassWordXName = System.Xml.Linq.XName.Get("PassWord", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataWmiConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator ConnectionManagerObjectDataWmiConnectionManagerType(XElement xe) { return XTypedServices.ToXTypedElement<ConnectionManagerObjectDataWmiConnectionManagerType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static ConnectionManagerObjectDataWmiConnectionManagerType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PassWordXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataWmiConnectionManagerType>(this); } /// <summary> @@ -20742,6 +22512,10 @@ static ConnectionManagerObjectDataWmiConnectionManagerType() { public ConnectionManagerObjectDataWmiConnectionManagerType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PassWordXName = System.Xml.Linq.XName.Get("PassWord", ""); + /// <summary> /// <para> /// Occurrence: required @@ -20760,6 +22534,10 @@ public virtual PasswordElementType PassWord { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionStringXName = System.Xml.Linq.XName.Get("ConnectionString", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -20768,6 +22546,9 @@ public virtual PasswordElementType PassWord { public virtual string ConnectionString { get { XAttribute x = this.Attribute(ConnectionStringXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -20775,6 +22556,20 @@ public virtual string ConnectionString { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ConnectionManagerObjectDataWmiConnectionManagerType", "www.microsoft.com/SqlServer/Dts"); + + static ConnectionManagerObjectDataWmiConnectionManagerType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(PassWordXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(PassWordXName, typeof(PasswordElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -20782,6 +22577,13 @@ public virtual string ConnectionString { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20802,37 +22604,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ConnectionManagerObjectDataWmiConnectionManagerType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(PassWordXName, typeof(PasswordElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public partial class PropertyElementBaseType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PropertyElementBaseType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyElementBaseType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyElementBaseType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyElementBaseType>(this); + } + public PropertyElementBaseType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -20843,6 +22631,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: optional @@ -20861,6 +22653,12 @@ public virtual System.Int32? DataType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PropertyElementBaseType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20881,33 +22679,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyElementBaseType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class PropertyExpressionElementType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PropertyExpressionElementType", "www.microsoft.com/SqlServer/Dts"); - public static explicit operator PropertyExpressionElementType(XElement xe) { return XTypedServices.ToXTypedElement<PropertyExpressionElementType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<PropertyExpressionElementType>(this); + } + public PropertyExpressionElementType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); + public virtual string TypedValue { get { XElement x = this.Untyped; @@ -20918,6 +22706,10 @@ public virtual string TypedValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/SqlServer/Dts"); + /// <summary> /// <para> /// Occurrence: required @@ -20933,6 +22725,12 @@ public virtual string Name { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("PropertyExpressionElementType", "www.microsoft.com/SqlServer/Dts"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -20953,14 +22751,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<PropertyExpressionElementType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum BasePropertyNameEnum { @@ -20976,19 +22766,22 @@ public enum BasePropertyNameEnum { public sealed class BasePropertyNameEnumValidator { + private BasePropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Description", "DTSID", "CreationName", "ObjectName"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private BasePropertyNameEnumValidator() { - } } public sealed class DtsDataTypeEnum { + private DtsDataTypeEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { 1, @@ -21021,13 +22814,13 @@ public sealed class DtsDataTypeEnum { 139, 145, 146}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - - private DtsDataTypeEnum() { - } } public sealed class AllExecutablePropertyNameEnum { + private AllExecutablePropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21045,13 +22838,13 @@ public sealed class AllExecutablePropertyNameEnum { "DelayValidation"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)), new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DisableEventHandlers"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private AllExecutablePropertyNameEnum() { - } } public sealed class BaseExecutablePropertyNameEnum { + private BaseExecutablePropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21067,13 +22860,13 @@ public sealed class BaseExecutablePropertyNameEnum { "LocaleID", "TransactionOption", "DelayValidation"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private BaseExecutablePropertyNameEnum() { - } } public sealed class ExecutableTypePackagePropertyNameEnum { + private ExecutableTypePackagePropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21111,13 +22904,13 @@ public sealed class ExecutableTypePackagePropertyNameEnum { "CheckpointUsage", "SuppressConfigurationWarnings", "LastModifiedProductVersion"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private ExecutableTypePackagePropertyNameEnum() { - } } public sealed class AnyNonPackageExecutablePropertyNameEnum { + private AnyNonPackageExecutablePropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21146,26 +22939,26 @@ public sealed class AnyNonPackageExecutablePropertyNameEnum { "MaxConcurrent", "LockName", "WsdlFile"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private AnyNonPackageExecutablePropertyNameEnum() { - } } public sealed class LogProviderPropertyNameEnum { + private LogProviderPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DelayValidation", "ConfigString"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private LogProviderPropertyNameEnum() { - } } public sealed class PackageVariablePropertyNameEnum { + private PackageVariablePropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21173,13 +22966,13 @@ public sealed class PackageVariablePropertyNameEnum { "PackageVariableValue", "PackageVariable", "Namespace"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private PackageVariablePropertyNameEnum() { - } } public sealed class ConfigurationPropertyNameEnum { + private ConfigurationPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21187,13 +22980,13 @@ public sealed class ConfigurationPropertyNameEnum { "ConfigurationType", "ConfigurationString", "ConfigurationVariable"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private ConfigurationPropertyNameEnum() { - } } public sealed class PrecedenceConstraintPropertyNameEnum { + private PrecedenceConstraintPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21202,9 +22995,6 @@ public sealed class PrecedenceConstraintPropertyNameEnum { "EvalOp", "LogicalAnd", "Expression"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private PrecedenceConstraintPropertyNameEnum() { - } } public enum LoggingOptionsPropertyNameEnum { @@ -21220,15 +23010,15 @@ public enum LoggingOptionsPropertyNameEnum { public sealed class LoggingOptionsPropertyNameEnumValidator { + private LoggingOptionsPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "LoggingMode", "FilterKind", "EventFilter", "ColumnFilter"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private LoggingOptionsPropertyNameEnumValidator() { - } } public enum ColumnEventFilterPropertyNameEnum { @@ -21250,6 +23040,9 @@ public enum ColumnEventFilterPropertyNameEnum { public sealed class ColumnEventFilterPropertyNameEnumValidator { + private ColumnEventFilterPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Computer", @@ -21259,26 +23052,26 @@ public sealed class ColumnEventFilterPropertyNameEnumValidator { "ExecutionID", "MessageText", "DataBytes"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private ColumnEventFilterPropertyNameEnumValidator() { - } } public sealed class ForEachVariableMappingPropertyNameEnum { + private ForEachVariableMappingPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "VariableName", "ValueIndex"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private ForEachVariableMappingPropertyNameEnum() { - } } public sealed class VariablePropertyNameEnum { + private VariablePropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21289,21 +23082,18 @@ public sealed class VariablePropertyNameEnum { "ReadOnly", "RaiseChangedEvent", "IncludeInDebugDump"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private VariablePropertyNameEnum() { - } } public sealed class ConnectionManagerPropertyNameEnum { + private ConnectionManagerPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DelayValidation"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private ConnectionManagerPropertyNameEnum() { - } } public enum ConnectionManagerObjectDataPropertyNameEnum { @@ -21345,6 +23135,9 @@ public enum ConnectionManagerObjectDataPropertyNameEnum { public sealed class ConnectionManagerObjectDataPropertyNameEnumValidator { + private ConnectionManagerObjectDataPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Retain", @@ -21364,13 +23157,13 @@ public sealed class ConnectionManagerObjectDataPropertyNameEnumValidator { "UseFile", "UseEncryption", "RetainData"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private ConnectionManagerObjectDataPropertyNameEnumValidator() { - } } public sealed class FlatFileColumnPropertyNameEnum { + private FlatFileColumnPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21383,13 +23176,13 @@ public sealed class FlatFileColumnPropertyNameEnum { "DataPrecision", "DataScale", "TextQualified"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private FlatFileColumnPropertyNameEnum() { - } } public sealed class CacheColumnPropertyNameEnum { + private CacheColumnPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21400,9 +23193,6 @@ public sealed class CacheColumnPropertyNameEnum { "Scale", "CodePage", "IndexPosition"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private CacheColumnPropertyNameEnum() { - } } public enum FtpConnectionPropertyNameEnum { @@ -21426,6 +23216,9 @@ public enum FtpConnectionPropertyNameEnum { public sealed class FtpConnectionPropertyNameEnumValidator { + private FtpConnectionPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "ServerName", @@ -21436,9 +23229,6 @@ public sealed class FtpConnectionPropertyNameEnumValidator { "TimeOut", "Retries", "UsePassiveMode"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private FtpConnectionPropertyNameEnumValidator() { - } } public enum HttpConnectionPropertyNameEnum { @@ -21482,6 +23272,9 @@ public enum HttpConnectionPropertyNameEnum { public sealed class HttpConnectionPropertyNameEnumValidator { + private HttpConnectionPropertyNameEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "ServerURL", @@ -21502,13 +23295,13 @@ public sealed class HttpConnectionPropertyNameEnumValidator { "ProxyPassword", "ProxyDomain", "BypassList"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private HttpConnectionPropertyNameEnumValidator() { - } } public sealed class EventHandlerPropertyNameEnum { + private EventHandlerPropertyNameEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { Microsoft.SqlServer.Dts.BasePropertyNameEnumValidator.TypeDefinition, @@ -21527,9 +23320,6 @@ public sealed class EventHandlerPropertyNameEnum { new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "EventID", "EventName"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); - - private EventHandlerPropertyNameEnum() { - } } public enum FileSystemTaskOperationTypeEnum { @@ -21557,6 +23347,9 @@ public enum FileSystemTaskOperationTypeEnum { public sealed class FileSystemTaskOperationTypeEnumValidator { + private FileSystemTaskOperationTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "CopyFile", @@ -21569,9 +23362,6 @@ public sealed class FileSystemTaskOperationTypeEnumValidator { "SetAttributes", "DeleteDirectoryContent", "CopyDirectory"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private FileSystemTaskOperationTypeEnumValidator() { - } } public enum FileSystemTaskFileAttributesEnum { @@ -21589,6 +23379,9 @@ public enum FileSystemTaskFileAttributesEnum { public sealed class FileSystemTaskFileAttributesEnumValidator { + private FileSystemTaskFileAttributesEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Archive", @@ -21596,9 +23389,6 @@ public sealed class FileSystemTaskFileAttributesEnumValidator { "Normal", "ReadOnly", "System"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private FileSystemTaskFileAttributesEnumValidator() { - } } public enum SourceTypeEnum { @@ -21612,41 +23402,63 @@ public enum SourceTypeEnum { public sealed class SourceTypeEnumValidator { + private SourceTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DirectInput", "FileConnection", "Variable"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private SourceTypeEnumValidator() { - } } public sealed class uuid { + private uuid() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(8)), null, 0, 0, null, null, 0, null, null, 0, new string[] { "\\{[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}\\}"}, 0, XmlSchemaWhiteSpace.Preserve)); - - private uuid() { - } } public partial class Executable : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ExecutableTypePackage ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Executable Load(string xmlFile) { + return XTypedServices.Load<Executable, ExecutableTypePackage>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Executable Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Executable, ExecutableTypePackage>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Executable Parse(string xml) { + return XTypedServices.Parse<Executable, ExecutableTypePackage>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator Executable(XElement xe) { return XTypedServices.ToXTypedElement<Executable, ExecutableTypePackage>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public Executable() { - SetInnerType(new ExecutableTypePackage()); + public override XTypedElement Clone() { + return new Executable(((ExecutableTypePackage)(this.Content.Clone()))); } - public Executable(ExecutableTypePackage content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ExecutableTypePackage ContentField; + + public Executable() { + SetInnerType(new ExecutableTypePackage()); } public override XElement Untyped { @@ -21665,6 +23477,15 @@ public virtual ExecutableTypePackage Content { } } + private void SetInnerType(ExecutableTypePackage ContentField) { + this.ContentField = ((ExecutableTypePackage)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public Executable(ExecutableTypePackage content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: required, repeating @@ -21866,6 +23687,8 @@ public virtual string ExecutableType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -21879,6 +23702,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -21899,103 +23726,14 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static Executable Load(string xmlFile) { - return XTypedServices.Load<Executable, ExecutableTypePackage>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Executable Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Executable, ExecutableTypePackage>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Executable Parse(string xml) { - return XTypedServices.Parse<Executable, ExecutableTypePackage>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new Executable(((ExecutableTypePackage)(this.Content.Clone()))); - } - - private void SetInnerType(ExecutableTypePackage ContentField) { - this.ContentField = ((ExecutableTypePackage)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public class LinqToXsdTypeManager : ILinqToXsdTypeManager { - private static Dictionary<System.Xml.Linq.XName, System.Type> typeDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - private static Dictionary<System.Xml.Linq.XName, System.Type> elementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - private static Dictionary<System.Type, System.Type> wrapperDictionary = new Dictionary<System.Type, System.Type>(); - - private static XmlSchemaSet schemaSet; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); - - static LinqToXsdTypeManager() { - BuildTypeDictionary(); - BuildElementDictionary(); - BuildWrapperDictionary(); - } - private LinqToXsdTypeManager() { } - XmlSchemaSet ILinqToXsdTypeManager.Schemas { - get { - if ((schemaSet == null)) { - XmlSchemaSet tempSet = new XmlSchemaSet(); - System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); - } - return schemaSet; - } - set { - schemaSet = value; - } - } - - Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalTypeDictionary { - get { - return typeDictionary; - } - } - - Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalElementDictionary { - get { - return elementDictionary; - } - } - - Dictionary<System.Type, System.Type> ILinqToXsdTypeManager.RootContentTypeMapping { - get { - return wrapperDictionary; - } - } - - public static LinqToXsdTypeManager Instance { - get { - return typeManagerSingleton; - } - } + private static Dictionary<System.Xml.Linq.XName, System.Type> typeDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); private static void BuildTypeDictionary() { typeDictionary.Add(System.Xml.Linq.XName.Get("ExecutableTypePackage", "www.microsoft.com/SqlServer/Dts"), typeof(global::Microsoft.SqlServer.Dts.ExecutableTypePackage)); @@ -22124,6 +23862,8 @@ private static void BuildTypeDictionary() { typeDictionary.Add(System.Xml.Linq.XName.Get("SqlTaskDataElementTSQLExecuteTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"), typeof(global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType)); } + private static Dictionary<System.Xml.Linq.XName, System.Type> elementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + private static void BuildElementDictionary() { elementDictionary.Add(System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts"), typeof(global::Microsoft.SqlServer.Dts.Executable)); elementDictionary.Add(System.Xml.Linq.XName.Get("WebServiceTaskData", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"), typeof(global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData)); @@ -22135,6 +23875,8 @@ private static void BuildElementDictionary() { elementDictionary.Add(System.Xml.Linq.XName.Get("SqlTaskData", "www.microsoft.com/sqlserver/dts/tasks/sqltask"), typeof(global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData)); } + private static Dictionary<System.Type, System.Type> wrapperDictionary = new Dictionary<System.Type, System.Type>(); + private static void BuildWrapperDictionary() { wrapperDictionary.Add(typeof(Microsoft.SqlServer.Dts.Executable), typeof(global::Microsoft.SqlServer.Dts.ExecutableTypePackage)); wrapperDictionary.Add(typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData), typeof(global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WSTaskDataType)); @@ -22146,13 +23888,61 @@ private static void BuildWrapperDictionary() { wrapperDictionary.Add(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData), typeof(global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType)); } + private static XmlSchemaSet schemaSet; + + XmlSchemaSet ILinqToXsdTypeManager.Schemas { + get { + if ((schemaSet == null)) { + XmlSchemaSet tempSet = new XmlSchemaSet(); + System.Threading.Interlocked.CompareExchange(ref schemaSet, tempSet, null); + } + return schemaSet; + } + set { + schemaSet = value; + } + } + protected internal static void AddSchemas(XmlSchemaSet schemas) { schemas.Add(schemaSet); } + Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalTypeDictionary { + get { + return typeDictionary; + } + } + + Dictionary<System.Xml.Linq.XName, System.Type> ILinqToXsdTypeManager.GlobalElementDictionary { + get { + return elementDictionary; + } + } + + Dictionary<System.Type, System.Type> ILinqToXsdTypeManager.RootContentTypeMapping { + get { + return wrapperDictionary; + } + } + + static LinqToXsdTypeManager() { + BuildTypeDictionary(); + BuildElementDictionary(); + BuildWrapperDictionary(); + } + public static System.Type GetRootType() { return elementDictionary[System.Xml.Linq.XName.Get("Executable", "www.microsoft.com/SqlServer/Dts")]; } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static LinqToXsdTypeManager typeManagerSingleton = new LinqToXsdTypeManager(); + + public static LinqToXsdTypeManager Instance { + get { + return typeManagerSingleton; + } + } } public partial class XRootNamespace { @@ -22163,29 +23953,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public Executable Executable { get {return rootObject as Executable; } } - private XRootNamespace() { } - public XRootNamespace(Executable root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -22282,86 +24052,37 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } - } - - public partial class XRoot { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XDocument doc; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedElement rootObject; - - - public global::Microsoft.SqlServer.Dts.Executable Executable { get {return rootObject as global::Microsoft.SqlServer.Dts.Executable; } } - - public global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData WebServiceTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData; } } - - public global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData MessageQueueTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData; } } - - public global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData SendMailTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData; } } - - public global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData ActiveXScriptTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData; } } - - public global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData Exec80PackageTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData; } } - - public global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData BulkInsertTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData; } } - - public global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData SqlTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData; } } - - private XRoot() { - } - - public XRoot(global::Microsoft.SqlServer.Dts.Executable root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRoot(global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public XRoot(global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - public XRoot(global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public virtual XDocument XDocument { + get { + return doc; + } } - public XRoot(global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; + public virtual XTypedElement Root { + get { + return rootObject; + } } - public XRoot(global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData root) { + public XRootNamespace(Executable root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; } - public XRoot(global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + + public Executable Executable { get {return rootObject as Executable; } } + } + + public partial class XRoot { - public XRoot(global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XDocument doc; - public virtual XDocument XDocument { - get { - return doc; - } - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedElement rootObject; - public virtual XTypedElement Root { - get { - return rootObject; - } + private XRoot() { } public static XRoot Load(string xmlFile) { @@ -22460,6 +24181,82 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRoot(global::Microsoft.SqlServer.Dts.Executable root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Executable Executable { get {return rootObject as global::Microsoft.SqlServer.Dts.Executable; } } + + public XRoot(global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData WebServiceTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskData; } } + + public XRoot(global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData MessageQueueTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskData; } } + + public XRoot(global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData SendMailTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTaskData; } } + + public XRoot(global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData ActiveXScriptTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ActiveXScriptTaskData; } } + + public XRoot(global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData Exec80PackageTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskData; } } + + public XRoot(global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData BulkInsertTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskData; } } + + public XRoot(global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData SqlTaskData { get {return rootObject as global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskData; } } } } namespace Microsoft.SqlServer.Dts.Tasks.WebServiceTask { @@ -22484,47 +24281,10 @@ namespace Microsoft.SqlServer.Dts.Tasks.WebServiceTask { /// </summary> public partial class WSTaskDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MethodInfoXName = System.Xml.Linq.XName.Get("MethodInfo", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServiceXName = System.Xml.Linq.XName.Get("Service", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WSDLFileXName = System.Xml.Linq.XName.Get("WSDLFile", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OverwriteWSDLFileXName = System.Xml.Linq.XName.Get("OverwriteWSDLFile", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputTypeXName = System.Xml.Linq.XName.Get("OutputType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OutputLocationXName = System.Xml.Linq.XName.Get("OutputLocation", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WSTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator WSTaskDataType(XElement xe) { return XTypedServices.ToXTypedElement<WSTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static WSTaskDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(MethodInfoXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<WSTaskDataType>(this); } /// <summary> @@ -22535,6 +24295,10 @@ static WSTaskDataType() { public WSTaskDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MethodInfoXName = System.Xml.Linq.XName.Get("MethodInfo", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: required @@ -22553,6 +24317,10 @@ public virtual WebServiceTaskDataMethodInfoType MethodInfo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionNameXName = System.Xml.Linq.XName.Get("ConnectionName", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22561,6 +24329,9 @@ public virtual WebServiceTaskDataMethodInfoType MethodInfo { public virtual string ConnectionName { get { XAttribute x = this.Attribute(ConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22568,6 +24339,10 @@ public virtual string ConnectionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServiceXName = System.Xml.Linq.XName.Get("Service", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22576,6 +24351,9 @@ public virtual string ConnectionName { public virtual string Service { get { XAttribute x = this.Attribute(ServiceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22583,6 +24361,10 @@ public virtual string Service { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WSDLFileXName = System.Xml.Linq.XName.Get("WSDLFile", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22591,6 +24373,9 @@ public virtual string Service { public virtual string WSDLFile { get { XAttribute x = this.Attribute(WSDLFileXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22598,6 +24383,28 @@ public virtual string WSDLFile { } } + public enum OverwriteWSDLFileEnum { + + True, + + False, + } + + public sealed class OverwriteWSDLFileEnumValidator { + + private OverwriteWSDLFileEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OverwriteWSDLFileXName = System.Xml.Linq.XName.Get("OverwriteWSDLFile", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22609,13 +24416,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WSTaskDataType.Overw if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WSTaskDataType.OverwriteWSDLFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WSTaskDataType.OverwriteWSDLFileEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WSTaskDataType.OverwriteWSDLFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WSTaskDataType.OverwriteWSDLFileEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, OverwriteWSDLFileEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OverwriteWSDLFileXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(OverwriteWSDLFileXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OverwriteWSDLFileXName, value.ToString(), "OverwriteWSDLFile", OverwriteWSDLFileEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputTypeXName = System.Xml.Linq.XName.Get("OutputType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22627,13 +24443,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOutputTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOutputTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOutputTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOutputTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOutputTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(OutputTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(OutputTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(OutputTypeXName, value.ToString(), "OutputType", global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOutputTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OutputLocationXName = System.Xml.Linq.XName.Get("OutputLocation", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22642,6 +24467,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskDataOu public virtual string OutputLocation { get { XAttribute x = this.Attribute(OutputLocationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22649,6 +24477,20 @@ public virtual string OutputLocation { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WSTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + + static WSTaskDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(MethodInfoXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(MethodInfoXName, typeof(WebServiceTaskDataMethodInfoType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22656,6 +24498,13 @@ public virtual string OutputLocation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22676,25 +24525,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<WSTaskDataType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(MethodInfoXName, typeof(WebServiceTaskDataMethodInfoType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum OverwriteWSDLFileEnum { - - True, - - False, - } } /// <summary> @@ -22704,38 +24534,10 @@ public enum OverwriteWSDLFileEnum { /// </summary> public partial class WebServiceTaskDataMethodInfoType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DocumentationXName = System.Xml.Linq.XName.Get("Documentation", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParamInfoXName = System.Xml.Linq.XName.Get("ParamInfo", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<WebServiceTaskDataParamInfoType> ParamInfoField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MethodNameXName = System.Xml.Linq.XName.Get("MethodName", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MessageNameXName = System.Xml.Linq.XName.Get("MessageName", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WebServiceTaskDataMethodInfoType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator WebServiceTaskDataMethodInfoType(XElement xe) { return XTypedServices.ToXTypedElement<WebServiceTaskDataMethodInfoType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static WebServiceTaskDataMethodInfoType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DocumentationXName), new NamedContentModelEntity(ParamInfoXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<WebServiceTaskDataMethodInfoType>(this); } /// <summary> @@ -22746,6 +24548,10 @@ static WebServiceTaskDataMethodInfoType() { public WebServiceTaskDataMethodInfoType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DocumentationXName = System.Xml.Linq.XName.Get("Documentation", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22757,6 +24563,9 @@ public WebServiceTaskDataMethodInfoType() { public virtual string Documentation { get { XElement x = this.GetElement(DocumentationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22764,6 +24573,13 @@ public virtual string Documentation { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParamInfoXName = System.Xml.Linq.XName.Get("ParamInfo", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<WebServiceTaskDataParamInfoType> ParamInfoField; + /// <summary> /// <para> /// Occurrence: required, repeating @@ -22794,6 +24610,10 @@ public virtual IList<WebServiceTaskDataParamInfoType> ParamInfo { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MethodNameXName = System.Xml.Linq.XName.Get("MethodName", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22802,6 +24622,9 @@ public virtual IList<WebServiceTaskDataParamInfoType> ParamInfo { public virtual string MethodName { get { XAttribute x = this.Attribute(MethodNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22809,6 +24632,10 @@ public virtual string MethodName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MessageNameXName = System.Xml.Linq.XName.Get("MessageName", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22817,6 +24644,9 @@ public virtual string MethodName { public virtual string MessageName { get { XAttribute x = this.Attribute(MessageNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22824,6 +24654,21 @@ public virtual string MessageName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WebServiceTaskDataMethodInfoType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + + static WebServiceTaskDataMethodInfoType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DocumentationXName), new NamedContentModelEntity(ParamInfoXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DocumentationXName, typeof(string)); + localElementDictionary.Add(ParamInfoXName, typeof(WebServiceTaskDataParamInfoType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -22831,6 +24676,13 @@ public virtual string MessageName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -22851,19 +24703,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<WebServiceTaskDataMethodInfoType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(DocumentationXName, typeof(string)); - localElementDictionary.Add(ParamInfoXName, typeof(WebServiceTaskDataParamInfoType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } /// <summary> @@ -22873,43 +24712,10 @@ ContentModelEntity IXMetaData.GetContentModel() { /// </summary> public partial class WebServiceTaskDataParamInfoType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VariableValueXName = System.Xml.Linq.XName.Get("VariableValue", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PrimitiveValueXName = System.Xml.Linq.XName.Get("PrimitiveValue", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatatypeXName = System.Xml.Linq.XName.Get("Datatype", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParamTypeXName = System.Xml.Linq.XName.Get("ParamType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SeqNumberXName = System.Xml.Linq.XName.Get("SeqNumber", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WebServiceTaskDataParamInfoType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator WebServiceTaskDataParamInfoType(XElement xe) { return XTypedServices.ToXTypedElement<WebServiceTaskDataParamInfoType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static WebServiceTaskDataParamInfoType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(VariableValueXName), new NamedContentModelEntity(PrimitiveValueXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<WebServiceTaskDataParamInfoType>(this); } /// <summary> @@ -22920,6 +24726,10 @@ static WebServiceTaskDataParamInfoType() { public WebServiceTaskDataParamInfoType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VariableValueXName = System.Xml.Linq.XName.Get("VariableValue", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22931,6 +24741,9 @@ public WebServiceTaskDataParamInfoType() { public virtual string VariableValue { get { XElement x = this.GetElement(VariableValueXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22938,6 +24751,10 @@ public virtual string VariableValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PrimitiveValueXName = System.Xml.Linq.XName.Get("PrimitiveValue", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22949,6 +24766,9 @@ public virtual string VariableValue { public virtual string PrimitiveValue { get { XElement x = this.GetElement(PrimitiveValueXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType).Datatype); } set { @@ -22956,6 +24776,10 @@ public virtual string PrimitiveValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName NameXName = System.Xml.Linq.XName.Get("Name", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22964,6 +24788,9 @@ public virtual string PrimitiveValue { public virtual string Name { get { XAttribute x = this.Attribute(NameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22971,6 +24798,10 @@ public virtual string Name { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatatypeXName = System.Xml.Linq.XName.Get("Datatype", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22979,6 +24810,9 @@ public virtual string Name { public virtual string Datatype { get { XAttribute x = this.Attribute(DatatypeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -22986,6 +24820,10 @@ public virtual string Datatype { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParamTypeXName = System.Xml.Linq.XName.Get("ParamType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -22997,13 +24835,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.WebServiceTask.ParamTypeEnum? Param if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.WebServiceTask.ParamTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.ParamTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.WebServiceTask.ParamTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.WebServiceTask.ParamTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.ParamTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ParamTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ParamTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ParamTypeXName, value.ToString(), "ParamType", global::Microsoft.SqlServer.Dts.Tasks.WebServiceTask.ParamTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SeqNumberXName = System.Xml.Linq.XName.Get("SeqNumber", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23022,6 +24869,21 @@ public virtual System.Int32? SeqNumber { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WebServiceTaskDataParamInfoType", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + + static WebServiceTaskDataParamInfoType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(VariableValueXName), new NamedContentModelEntity(PrimitiveValueXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(VariableValueXName, typeof(string)); + localElementDictionary.Add(PrimitiveValueXName, typeof(string)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -23029,6 +24891,13 @@ public virtual System.Int32? SeqNumber { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23049,19 +24918,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<WebServiceTaskDataParamInfoType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(VariableValueXName, typeof(string)); - localElementDictionary.Add(PrimitiveValueXName, typeof(string)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public enum WebServiceTaskDataOutputTypeEnum { @@ -23073,13 +24929,13 @@ public enum WebServiceTaskDataOutputTypeEnum { public sealed class WebServiceTaskDataOutputTypeEnumValidator { + private WebServiceTaskDataOutputTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "File", "Variable"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private WebServiceTaskDataOutputTypeEnumValidator() { - } } public enum ParamTypeEnum { @@ -23091,30 +24947,52 @@ public enum ParamTypeEnum { public sealed class ParamTypeEnumValidator { + private ParamTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Variable", "Primitive"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private ParamTypeEnumValidator() { - } } public partial class WebServiceTaskData : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private WSTaskDataType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WebServiceTaskData", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static WebServiceTaskData Load(string xmlFile) { + return XTypedServices.Load<WebServiceTaskData, WSTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static WebServiceTaskData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<WebServiceTaskData, WSTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static WebServiceTaskData Parse(string xml) { + return XTypedServices.Parse<WebServiceTaskData, WSTaskDataType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator WebServiceTaskData(XElement xe) { return XTypedServices.ToXTypedElement<WebServiceTaskData, WSTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public WebServiceTaskData() { - SetInnerType(new WSTaskDataType()); + public override XTypedElement Clone() { + return new WebServiceTaskData(((WSTaskDataType)(this.Content.Clone()))); } - public WebServiceTaskData(WSTaskDataType content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private WSTaskDataType ContentField; + + public WebServiceTaskData() { + SetInnerType(new WSTaskDataType()); } public override XElement Untyped { @@ -23133,6 +25011,15 @@ public virtual WSTaskDataType Content { } } + private void SetInnerType(WSTaskDataType ContentField) { + this.ContentField = ((WSTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public WebServiceTaskData(WSTaskDataType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: required @@ -23234,6 +25121,8 @@ public virtual string OutputLocation { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("WebServiceTaskData", "www.microsoft.com/sqlserver/dts/tasks/webservicetask"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -23247,6 +25136,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23267,43 +25160,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static WebServiceTaskData Load(string xmlFile) { - return XTypedServices.Load<WebServiceTaskData, WSTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static WebServiceTaskData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<WebServiceTaskData, WSTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static WebServiceTaskData Parse(string xml) { - return XTypedServices.Parse<WebServiceTaskData, WSTaskDataType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new WebServiceTaskData(((WSTaskDataType)(this.Content.Clone()))); - } - - private void SetInnerType(WSTaskDataType ContentField) { - this.ContentField = ((WSTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -23314,29 +25170,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public WebServiceTaskData WebServiceTaskData { get {return rootObject as WebServiceTaskData; } } - private XRootNamespace() { } - public XRootNamespace(WebServiceTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -23433,6 +25269,26 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(WebServiceTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public WebServiceTaskData WebServiceTaskData { get {return rootObject as WebServiceTaskData; } } } } namespace Microsoft.SqlServer.Dts.Tasks.MessageQueueTask { @@ -23452,108 +25308,18 @@ namespace Microsoft.SqlServer.Dts.Tasks.MessageQueueTask { public partial class MessageQueueTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CurrentPackageIDXName = System.Xml.Linq.XName.Get("CurrentPackageID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskDescriptionXName = System.Xml.Linq.XName.Get("TaskDescription", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataFileOverWritableXName = System.Xml.Linq.XName.Get("DataFileOverWritable", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTSMessageLineageIDXName = System.Xml.Linq.XName.Get("DTSMessageLineageID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTSMessagePackageIDXName = System.Xml.Linq.XName.Get("DTSMessagePackageID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTSMessageVersionIDXName = System.Xml.Linq.XName.Get("DTSMessageVersionID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ErrorIfMessageTimeOutXName = System.Xml.Linq.XName.Get("ErrorIfMessageTimeOut", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName QueuePathXName = System.Xml.Linq.XName.Get("QueuePath", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReceiveMessageTimeOutXName = System.Xml.Linq.XName.Get("ReceiveMessageTimeOut", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReceiveMessageTypeXName = System.Xml.Linq.XName.Get("ReceiveMessageType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveFromQueueXName = System.Xml.Linq.XName.Get("RemoveFromQueue", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SaveDataFileNameXName = System.Xml.Linq.XName.Get("SaveDataFileName", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StringCompareTypeXName = System.Xml.Linq.XName.Get("StringCompareType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StringCompareValueXName = System.Xml.Linq.XName.Get("StringCompareValue", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StringMessageToVariableNameXName = System.Xml.Linq.XName.Get("StringMessageToVariableName", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ReceiveVariableMessageXName = System.Xml.Linq.XName.Get("ReceiveVariableMessage", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskTypeXName = System.Xml.Linq.XName.Get("TaskType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UseEncryptionXName = System.Xml.Linq.XName.Get("UseEncryption", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EncryptionAlgorithmXName = System.Xml.Linq.XName.Get("EncryptionAlgorithm", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName Use2000FormatXName = System.Xml.Linq.XName.Get("Use2000Format", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataFileNameXName = System.Xml.Linq.XName.Get("DataFileName", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + public static explicit operator MessageQueueTaskType(XElement xe) { return XTypedServices.ToXTypedElement<MessageQueueTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName StringMessageXName = System.Xml.Linq.XName.Get("StringMessage", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<MessageQueueTaskType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName VariableMessageXName = System.Xml.Linq.XName.Get("VariableMessage", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + public MessageQueueTaskType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MessageTypeXName = System.Xml.Linq.XName.Get("MessageType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MessageQueueTaskType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); - - public static explicit operator MessageQueueTaskType(XElement xe) { return XTypedServices.ToXTypedElement<MessageQueueTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public MessageQueueTaskType() { - } + protected internal static readonly System.Xml.Linq.XName CurrentPackageIDXName = System.Xml.Linq.XName.Get("CurrentPackageID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); /// <summary> /// <para> @@ -23563,6 +25329,9 @@ public MessageQueueTaskType() { public virtual string CurrentPackageID { get { XAttribute x = this.Attribute(CurrentPackageIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23570,6 +25339,10 @@ public virtual string CurrentPackageID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskDescriptionXName = System.Xml.Linq.XName.Get("TaskDescription", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23578,6 +25351,9 @@ public virtual string CurrentPackageID { public virtual string TaskDescription { get { XAttribute x = this.Attribute(TaskDescriptionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23585,6 +25361,28 @@ public virtual string TaskDescription { } } + public enum DataFileOverWritableEnum { + + False, + + True, + } + + public sealed class DataFileOverWritableEnumValidator { + + private DataFileOverWritableEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataFileOverWritableXName = System.Xml.Linq.XName.Get("DataFileOverWritable", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23596,13 +25394,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.DataFileOverWritableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.DataFileOverWritableEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.DataFileOverWritableEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.DataFileOverWritableEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, DataFileOverWritableEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DataFileOverWritableXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DataFileOverWritableXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DataFileOverWritableXName, value.ToString(), "DataFileOverWritable", DataFileOverWritableEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTSMessageLineageIDXName = System.Xml.Linq.XName.Get("DTSMessageLineageID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23611,6 +25418,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy public virtual string DTSMessageLineageID { get { XAttribute x = this.Attribute(DTSMessageLineageIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23618,6 +25428,10 @@ public virtual string DTSMessageLineageID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTSMessagePackageIDXName = System.Xml.Linq.XName.Get("DTSMessagePackageID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23626,6 +25440,9 @@ public virtual string DTSMessageLineageID { public virtual string DTSMessagePackageID { get { XAttribute x = this.Attribute(DTSMessagePackageIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23633,6 +25450,10 @@ public virtual string DTSMessagePackageID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTSMessageVersionIDXName = System.Xml.Linq.XName.Get("DTSMessageVersionID", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23641,6 +25462,9 @@ public virtual string DTSMessagePackageID { public virtual string DTSMessageVersionID { get { XAttribute x = this.Attribute(DTSMessageVersionIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23648,6 +25472,28 @@ public virtual string DTSMessageVersionID { } } + public enum ErrorIfMessageTimeOutEnum { + + False, + + True, + } + + public sealed class ErrorIfMessageTimeOutEnumValidator { + + private ErrorIfMessageTimeOutEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ErrorIfMessageTimeOutXName = System.Xml.Linq.XName.Get("ErrorIfMessageTimeOut", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23659,13 +25505,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.ErrorIfMessageTimeOutEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.ErrorIfMessageTimeOutEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.ErrorIfMessageTimeOutEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.ErrorIfMessageTimeOutEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ErrorIfMessageTimeOutEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ErrorIfMessageTimeOutXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ErrorIfMessageTimeOutXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ErrorIfMessageTimeOutXName, value.ToString(), "ErrorIfMessageTimeOut", ErrorIfMessageTimeOutEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName QueuePathXName = System.Xml.Linq.XName.Get("QueuePath", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23674,6 +25529,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy public virtual string QueuePath { get { XAttribute x = this.Attribute(QueuePathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23681,6 +25539,10 @@ public virtual string QueuePath { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReceiveMessageTimeOutXName = System.Xml.Linq.XName.Get("ReceiveMessageTimeOut", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23699,6 +25561,10 @@ public virtual System.Int32? ReceiveMessageTimeOut { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReceiveMessageTypeXName = System.Xml.Linq.XName.Get("ReceiveMessageType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23710,13 +25576,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ReceiveMessageTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ReceiveMessageTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ReceiveMessageTypeXName, value.ToString(), "ReceiveMessageType", global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnumValidator.TypeDefinition); + } + } + } + + public enum RemoveFromQueueEnum { + + False, + + True, + } + + public sealed class RemoveFromQueueEnumValidator { + + private RemoveFromQueueEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveFromQueueXName = System.Xml.Linq.XName.Get("RemoveFromQueue", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23728,13 +25621,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.RemoveFromQueueEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.RemoveFromQueueEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.RemoveFromQueueEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.RemoveFromQueueEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RemoveFromQueueEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RemoveFromQueueXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RemoveFromQueueXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RemoveFromQueueXName, value.ToString(), "RemoveFromQueue", RemoveFromQueueEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SaveDataFileNameXName = System.Xml.Linq.XName.Get("SaveDataFileName", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23743,6 +25645,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy public virtual string SaveDataFileName { get { XAttribute x = this.Attribute(SaveDataFileNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23750,6 +25655,10 @@ public virtual string SaveDataFileName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StringCompareTypeXName = System.Xml.Linq.XName.Get("StringCompareType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23761,13 +25670,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareT if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(StringCompareTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(StringCompareTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(StringCompareTypeXName, value.ToString(), "StringCompareType", global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StringCompareValueXName = System.Xml.Linq.XName.Get("StringCompareValue", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23776,6 +25694,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQStringCompareT public virtual string StringCompareValue { get { XAttribute x = this.Attribute(StringCompareValueXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23783,6 +25704,10 @@ public virtual string StringCompareValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StringMessageToVariableNameXName = System.Xml.Linq.XName.Get("StringMessageToVariableName", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23791,6 +25716,9 @@ public virtual string StringCompareValue { public virtual string StringMessageToVariableName { get { XAttribute x = this.Attribute(StringMessageToVariableNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23798,6 +25726,10 @@ public virtual string StringMessageToVariableName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ReceiveVariableMessageXName = System.Xml.Linq.XName.Get("ReceiveVariableMessage", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23806,6 +25738,9 @@ public virtual string StringMessageToVariableName { public virtual string ReceiveVariableMessage { get { XAttribute x = this.Attribute(ReceiveVariableMessageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23813,6 +25748,10 @@ public virtual string ReceiveVariableMessage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskTypeXName = System.Xml.Linq.XName.Get("TaskType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23824,13 +25763,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQTaskTypeEnum? if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQTaskTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQTaskTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQTaskTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQTaskTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQTaskTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TaskTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TaskTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TaskTypeXName, value.ToString(), "TaskType", global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQTaskTypeEnumValidator.TypeDefinition); + } + } + } + + public enum UseEncryptionEnum { + + False, + + True, + } + + public sealed class UseEncryptionEnumValidator { + + private UseEncryptionEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UseEncryptionXName = System.Xml.Linq.XName.Get("UseEncryption", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23842,13 +25808,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.UseEncryptionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.UseEncryptionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.UseEncryptionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.UseEncryptionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, UseEncryptionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(UseEncryptionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(UseEncryptionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(UseEncryptionXName, value.ToString(), "UseEncryption", UseEncryptionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EncryptionAlgorithmXName = System.Xml.Linq.XName.Get("EncryptionAlgorithm", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23860,13 +25835,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQEncryptionAlgo if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQEncryptionAlgorithmEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQEncryptionAlgorithmEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQEncryptionAlgorithmEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQEncryptionAlgorithmEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQEncryptionAlgorithmEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(EncryptionAlgorithmXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(EncryptionAlgorithmXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(EncryptionAlgorithmXName, value.ToString(), "EncryptionAlgorithm", global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQEncryptionAlgorithmEnumValidator.TypeDefinition); + } + } + } + + public enum Use2000FormatEnum { + + False, + + True, + } + + public sealed class Use2000FormatEnumValidator { + + private Use2000FormatEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "False", + "True"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName Use2000FormatXName = System.Xml.Linq.XName.Get("Use2000Format", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23878,13 +25880,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.Use2000FormatEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.Use2000FormatEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.Use2000FormatEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskType.Use2000FormatEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, Use2000FormatEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(Use2000FormatXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(Use2000FormatXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(Use2000FormatXName, value.ToString(), "Use2000Format", Use2000FormatEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataFileNameXName = System.Xml.Linq.XName.Get("DataFileName", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23893,6 +25904,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MessageQueueTaskTy public virtual string DataFileName { get { XAttribute x = this.Attribute(DataFileNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23900,6 +25914,10 @@ public virtual string DataFileName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName StringMessageXName = System.Xml.Linq.XName.Get("StringMessage", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23908,6 +25926,9 @@ public virtual string DataFileName { public virtual string StringMessage { get { XAttribute x = this.Attribute(StringMessageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23915,6 +25936,10 @@ public virtual string StringMessage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName VariableMessageXName = System.Xml.Linq.XName.Get("VariableMessage", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23923,6 +25948,9 @@ public virtual string StringMessage { public virtual string VariableMessage { get { XAttribute x = this.Attribute(VariableMessageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -23930,6 +25958,10 @@ public virtual string VariableMessage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MessageTypeXName = System.Xml.Linq.XName.Get("MessageType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -23941,13 +25973,24 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(MessageTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(MessageTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(MessageTypeXName, value.ToString(), "MessageType", global::Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MessageQueueTaskType", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -23968,73 +26011,30 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public enum MSMQStringCompareTypeEnum { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<MessageQueueTaskType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } + DTSMQStringMessageCompare_Contains, - public enum DataFileOverWritableEnum { - - False, - - True, - } + DTSMQStringMessageCompare_Exact, - public enum ErrorIfMessageTimeOutEnum { - - False, - - True, - } + DTSMQStringMessageCompare_IgnoreCase, - public enum RemoveFromQueueEnum { - - False, - - True, - } + DTSMQStringMessageCompare_None, + } + + public sealed class MSMQStringCompareTypeEnumValidator { - public enum UseEncryptionEnum { - - False, - - True, + private MSMQStringCompareTypeEnumValidator() { } - public enum Use2000FormatEnum { - - False, - - True, - } - } - - public enum MSMQStringCompareTypeEnum { - - DTSMQStringMessageCompare_Contains, - - DTSMQStringMessageCompare_Exact, - - DTSMQStringMessageCompare_IgnoreCase, - - DTSMQStringMessageCompare_None, - } - - public sealed class MSMQStringCompareTypeEnumValidator { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DTSMQStringMessageCompare_Contains", "DTSMQStringMessageCompare_Exact", "DTSMQStringMessageCompare_IgnoreCase", "DTSMQStringMessageCompare_None"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private MSMQStringCompareTypeEnumValidator() { - } } public enum MSMQTaskTypeEnum { @@ -24046,13 +26046,13 @@ public enum MSMQTaskTypeEnum { public sealed class MSMQTaskTypeEnumValidator { + private MSMQTaskTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DTSMQType_Receiver", "DTSMQType_Sender"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private MSMQTaskTypeEnumValidator() { - } } public enum MSMQMessageTypeEnum { @@ -24068,15 +26068,15 @@ public enum MSMQMessageTypeEnum { public sealed class MSMQMessageTypeEnumValidator { + private MSMQMessageTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DTSMQMessagType_StringMessageToVariable", "DTSMQMessageType_DataFile", "DTSMQMessageType_String", "DTSMQMessageType_Variables"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private MSMQMessageTypeEnumValidator() { - } } public enum MSMQEncryptionAlgorithmEnum { @@ -24088,30 +26088,52 @@ public enum MSMQEncryptionAlgorithmEnum { public sealed class MSMQEncryptionAlgorithmEnumValidator { + private MSMQEncryptionAlgorithmEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Rc2", "Rc4"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private MSMQEncryptionAlgorithmEnumValidator() { - } } public partial class MessageQueueTaskData : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private MessageQueueTaskType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MessageQueueTaskData", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static MessageQueueTaskData Load(string xmlFile) { + return XTypedServices.Load<MessageQueueTaskData, MessageQueueTaskType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static MessageQueueTaskData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<MessageQueueTaskData, MessageQueueTaskType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static MessageQueueTaskData Parse(string xml) { + return XTypedServices.Parse<MessageQueueTaskData, MessageQueueTaskType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator MessageQueueTaskData(XElement xe) { return XTypedServices.ToXTypedElement<MessageQueueTaskData, MessageQueueTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public MessageQueueTaskData() { - SetInnerType(new MessageQueueTaskType()); + public override XTypedElement Clone() { + return new MessageQueueTaskData(((MessageQueueTaskType)(this.Content.Clone()))); } - public MessageQueueTaskData(MessageQueueTaskType content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private MessageQueueTaskType ContentField; + + public MessageQueueTaskData() { + SetInnerType(new MessageQueueTaskType()); } public override XElement Untyped { @@ -24130,6 +26152,15 @@ public virtual MessageQueueTaskType Content { } } + private void SetInnerType(MessageQueueTaskType ContentField) { + this.ContentField = ((MessageQueueTaskType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public MessageQueueTaskData(MessageQueueTaskType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional @@ -24466,6 +26497,8 @@ public virtual Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.MSMQMessageTypeEnu } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("MessageQueueTaskData", "www.microsoft.com/sqlserver/dts/tasks/messagequeuetask"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -24479,6 +26512,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24499,43 +26536,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static MessageQueueTaskData Load(string xmlFile) { - return XTypedServices.Load<MessageQueueTaskData, MessageQueueTaskType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static MessageQueueTaskData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<MessageQueueTaskData, MessageQueueTaskType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static MessageQueueTaskData Parse(string xml) { - return XTypedServices.Parse<MessageQueueTaskData, MessageQueueTaskType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new MessageQueueTaskData(((MessageQueueTaskType)(this.Content.Clone()))); - } - - private void SetInnerType(MessageQueueTaskType ContentField) { - this.ContentField = ((MessageQueueTaskType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -24546,29 +26546,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public MessageQueueTaskData MessageQueueTaskData { get {return rootObject as MessageQueueTaskData; } } - private XRootNamespace() { } - public XRootNamespace(MessageQueueTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -24665,6 +26645,26 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(MessageQueueTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public MessageQueueTaskData MessageQueueTaskData { get {return rootObject as MessageQueueTaskData; } } } } namespace Microsoft.SqlServer.Dts.Tasks.SendMailTask { @@ -24689,59 +26689,10 @@ namespace Microsoft.SqlServer.Dts.Tasks.SendMailTask { /// </summary> public partial class SendMailTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AttachmentsXName = System.Xml.Linq.XName.Get("Attachments", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SMTPServerXName = System.Xml.Linq.XName.Get("SMTPServer", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FromXName = System.Xml.Linq.XName.Get("From", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ToXName = System.Xml.Linq.XName.Get("To", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CCXName = System.Xml.Linq.XName.Get("CC", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BCCXName = System.Xml.Linq.XName.Get("BCC", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SubjectXName = System.Xml.Linq.XName.Get("Subject", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PriorityXName = System.Xml.Linq.XName.Get("Priority", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MessageSourceTypeXName = System.Xml.Linq.XName.Get("MessageSourceType", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MessageSourceXName = System.Xml.Linq.XName.Get("MessageSource", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SendMailTaskType", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SendMailTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SendMailTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SendMailTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AttachmentsXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SendMailTaskType>(this); } /// <summary> @@ -24752,6 +26703,10 @@ static SendMailTaskType() { public SendMailTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AttachmentsXName = System.Xml.Linq.XName.Get("Attachments", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24763,6 +26718,9 @@ public SendMailTaskType() { public virtual AttachmentsElementType Attachments { get { XElement x = this.GetElement(AttachmentsXName); + if ((x == null)) { + return null; + } return ((AttachmentsElementType)(x)); } set { @@ -24770,6 +26728,10 @@ public virtual AttachmentsElementType Attachments { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SMTPServerXName = System.Xml.Linq.XName.Get("SMTPServer", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24778,6 +26740,9 @@ public virtual AttachmentsElementType Attachments { public virtual string SMTPServer { get { XAttribute x = this.Attribute(SMTPServerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24785,6 +26750,10 @@ public virtual string SMTPServer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FromXName = System.Xml.Linq.XName.Get("From", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24793,6 +26762,9 @@ public virtual string SMTPServer { public virtual string From { get { XAttribute x = this.Attribute(FromXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24800,6 +26772,10 @@ public virtual string From { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ToXName = System.Xml.Linq.XName.Get("To", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24808,6 +26784,9 @@ public virtual string From { public virtual string To { get { XAttribute x = this.Attribute(ToXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24815,6 +26794,10 @@ public virtual string To { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CCXName = System.Xml.Linq.XName.Get("CC", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24823,6 +26806,9 @@ public virtual string To { public virtual string CC { get { XAttribute x = this.Attribute(CCXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24830,6 +26816,10 @@ public virtual string CC { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BCCXName = System.Xml.Linq.XName.Get("BCC", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24838,6 +26828,9 @@ public virtual string CC { public virtual string BCC { get { XAttribute x = this.Attribute(BCCXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24845,6 +26838,10 @@ public virtual string BCC { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SubjectXName = System.Xml.Linq.XName.Get("Subject", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24853,6 +26850,9 @@ public virtual string BCC { public virtual string Subject { get { XAttribute x = this.Attribute(SubjectXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24860,6 +26860,10 @@ public virtual string Subject { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PriorityXName = System.Xml.Linq.XName.Get("Priority", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24871,13 +26875,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailPriorityEnum? if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailPriorityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailPriorityEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailPriorityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailPriorityEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailPriorityEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(PriorityXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(PriorityXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(PriorityXName, value.ToString(), "Priority", global::Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailPriorityEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MessageSourceTypeXName = System.Xml.Linq.XName.Get("MessageSourceType", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24889,13 +26902,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? MessageSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(MessageSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(MessageSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(MessageSourceTypeXName, value.ToString(), "MessageSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MessageSourceXName = System.Xml.Linq.XName.Get("MessageSource", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24904,6 +26926,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? MessageSourceType { public virtual string MessageSource { get { XAttribute x = this.Attribute(MessageSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -24911,6 +26936,20 @@ public virtual string MessageSource { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SendMailTaskType", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + + static SendMailTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(AttachmentsXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(AttachmentsXName, typeof(AttachmentsElementType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -24918,6 +26957,13 @@ public virtual string MessageSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -24938,18 +26984,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SendMailTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(AttachmentsXName, typeof(AttachmentsElementType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } } public enum SendMailPriorityEnum { @@ -24963,29 +26997,31 @@ public enum SendMailPriorityEnum { public sealed class SendMailPriorityEnumValidator { + private SendMailPriorityEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "High", "Low", "Normal"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private SendMailPriorityEnumValidator() { - } } public partial class AttachmentsElementType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileNameXName = System.Xml.Linq.XName.Get("FileName", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AttachmentsElementType", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); - public static explicit operator AttachmentsElementType(XElement xe) { return XTypedServices.ToXTypedElement<AttachmentsElementType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<AttachmentsElementType>(this); + } + public AttachmentsElementType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileNameXName = System.Xml.Linq.XName.Get("FileName", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + /// <summary> /// <para> /// Occurrence: optional @@ -24994,6 +27030,9 @@ public AttachmentsElementType() { public virtual string FileName { get { XAttribute x = this.Attribute(FileNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25001,6 +27040,12 @@ public virtual string FileName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("AttachmentsElementType", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25021,31 +27066,45 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class SendMailTaskData : XTypedElement, IXMetaData { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<AttachmentsElementType>(this); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - } - - public partial class SendMailTaskData : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private SendMailTaskType ContentField; + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SendMailTaskData", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + public static SendMailTaskData Load(string xmlFile) { + return XTypedServices.Load<SendMailTaskData, SendMailTaskType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static SendMailTaskData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SendMailTaskData, SendMailTaskType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static SendMailTaskData Parse(string xml) { + return XTypedServices.Parse<SendMailTaskData, SendMailTaskType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator SendMailTaskData(XElement xe) { return XTypedServices.ToXTypedElement<SendMailTaskData, SendMailTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public SendMailTaskData() { - SetInnerType(new SendMailTaskType()); + public override XTypedElement Clone() { + return new SendMailTaskData(((SendMailTaskType)(this.Content.Clone()))); } - public SendMailTaskData(SendMailTaskType content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private SendMailTaskType ContentField; + + public SendMailTaskData() { + SetInnerType(new SendMailTaskType()); } public override XElement Untyped { @@ -25064,6 +27123,15 @@ public virtual SendMailTaskType Content { } } + private void SetInnerType(SendMailTaskType ContentField) { + this.ContentField = ((SendMailTaskType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public SendMailTaskData(SendMailTaskType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional @@ -25207,6 +27275,8 @@ public virtual string MessageSource { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SendMailTaskData", "www.microsoft.com/sqlserver/dts/tasks/sendmailtask"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -25220,6 +27290,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25240,43 +27314,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static SendMailTaskData Load(string xmlFile) { - return XTypedServices.Load<SendMailTaskData, SendMailTaskType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static SendMailTaskData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SendMailTaskData, SendMailTaskType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static SendMailTaskData Parse(string xml) { - return XTypedServices.Parse<SendMailTaskData, SendMailTaskType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new SendMailTaskData(((SendMailTaskType)(this.Content.Clone()))); - } - - private void SetInnerType(SendMailTaskType ContentField) { - this.ContentField = ((SendMailTaskType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -25287,29 +27324,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public SendMailTaskData SendMailTaskData { get {return rootObject as SendMailTaskData; } } - private XRootNamespace() { } - public XRootNamespace(SendMailTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -25406,6 +27423,26 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(SendMailTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SendMailTaskData SendMailTaskData { get {return rootObject as SendMailTaskData; } } } } namespace Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask { @@ -25425,40 +27462,46 @@ namespace Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask { public partial class ActiveXScriptTaskDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ScriptingLanguageXName = System.Xml.Linq.XName.Get("ScriptingLanguage", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ScriptTextXName = System.Xml.Linq.XName.Get("ScriptText", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName EntryMethodXName = System.Xml.Linq.XName.Get("EntryMethod", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ActiveXScriptTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); - public static explicit operator ActiveXScriptTaskDataType(XElement xe) { return XTypedServices.ToXTypedElement<ActiveXScriptTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<ActiveXScriptTaskDataType>(this); + } + public ActiveXScriptTaskDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ScriptingLanguageXName = System.Xml.Linq.XName.Get("ScriptingLanguage", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string ScriptingLanguage { + public virtual Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ScriptingLanguageEnum? ScriptingLanguage { get { XAttribute x = this.Attribute(ScriptingLanguageXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ScriptingLanguageEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ScriptingLanguageEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ScriptingLanguageEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ScriptingLanguageXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ScriptingLanguageXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ScriptingLanguageXName, value.ToString(), "ScriptingLanguage", global::Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ScriptingLanguageEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ScriptTextXName = System.Xml.Linq.XName.Get("ScriptText", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -25467,6 +27510,9 @@ public virtual string ScriptingLanguage { public virtual string ScriptText { get { XAttribute x = this.Attribute(ScriptTextXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25474,6 +27520,10 @@ public virtual string ScriptText { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName EntryMethodXName = System.Xml.Linq.XName.Get("EntryMethod", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -25482,6 +27532,9 @@ public virtual string ScriptText { public virtual string EntryMethod { get { XAttribute x = this.Attribute(EntryMethodXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25489,6 +27542,12 @@ public virtual string EntryMethod { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ActiveXScriptTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25509,43 +27568,66 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public enum ScriptingLanguageEnum { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<ActiveXScriptTaskDataType>(this); - } + VBScript, - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } + JScript_Compact, + + JScript, } - public sealed class ScriptingLanguageEnum { + public sealed class ScriptingLanguageEnumValidator { + + private ScriptingLanguageEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "VBScript", - "JScript.Compact", + "JScript.Compact:JScript_Compact", "JScript"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private ScriptingLanguageEnum() { - } } public partial class ActiveXScriptTaskData : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ActiveXScriptTaskDataType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ActiveXScriptTaskData", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static ActiveXScriptTaskData Load(string xmlFile) { + return XTypedServices.Load<ActiveXScriptTaskData, ActiveXScriptTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static ActiveXScriptTaskData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<ActiveXScriptTaskData, ActiveXScriptTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static ActiveXScriptTaskData Parse(string xml) { + return XTypedServices.Parse<ActiveXScriptTaskData, ActiveXScriptTaskDataType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator ActiveXScriptTaskData(XElement xe) { return XTypedServices.ToXTypedElement<ActiveXScriptTaskData, ActiveXScriptTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public ActiveXScriptTaskData() { - SetInnerType(new ActiveXScriptTaskDataType()); + public override XTypedElement Clone() { + return new ActiveXScriptTaskData(((ActiveXScriptTaskDataType)(this.Content.Clone()))); } - public ActiveXScriptTaskData(ActiveXScriptTaskDataType content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private ActiveXScriptTaskDataType ContentField; + + public ActiveXScriptTaskData() { + SetInnerType(new ActiveXScriptTaskDataType()); } public override XElement Untyped { @@ -25564,12 +27646,21 @@ public virtual ActiveXScriptTaskDataType Content { } } + private void SetInnerType(ActiveXScriptTaskDataType ContentField) { + this.ContentField = ((ActiveXScriptTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public ActiveXScriptTaskData(ActiveXScriptTaskDataType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string ScriptingLanguage { + public virtual Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask.ScriptingLanguageEnum? ScriptingLanguage { get { return this.ContentField.ScriptingLanguage; } @@ -25606,6 +27697,8 @@ public virtual string EntryMethod { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("ActiveXScriptTaskData", "www.microsoft.com/sqlserver/dts/tasks/activexscripttask"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -25619,6 +27712,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -25639,43 +27736,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static ActiveXScriptTaskData Load(string xmlFile) { - return XTypedServices.Load<ActiveXScriptTaskData, ActiveXScriptTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static ActiveXScriptTaskData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<ActiveXScriptTaskData, ActiveXScriptTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static ActiveXScriptTaskData Parse(string xml) { - return XTypedServices.Parse<ActiveXScriptTaskData, ActiveXScriptTaskDataType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new ActiveXScriptTaskData(((ActiveXScriptTaskDataType)(this.Content.Clone()))); - } - - private void SetInnerType(ActiveXScriptTaskDataType ContentField) { - this.ContentField = ((ActiveXScriptTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -25686,29 +27746,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public ActiveXScriptTaskData ActiveXScriptTaskData { get {return rootObject as ActiveXScriptTaskData; } } - private XRootNamespace() { } - public XRootNamespace(ActiveXScriptTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -25805,6 +27845,26 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(ActiveXScriptTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public ActiveXScriptTaskData ActiveXScriptTaskData { get {return rootObject as ActiveXScriptTaskData; } } } } namespace Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask { @@ -25829,63 +27889,10 @@ namespace Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask { /// </summary> public partial class Exec80PackageTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DTS2000PackageXName = System.Xml.Linq.XName.Get("DTS2000Package", ""); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocationXName = System.Xml.Linq.XName.Get("Location", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PackageNameXName = System.Xml.Linq.XName.Get("PackageName", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PackageIDXName = System.Xml.Linq.XName.Get("PackageID", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PackageVersionGUIDXName = System.Xml.Linq.XName.Get("PackageVersionGUID", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SQLServerXName = System.Xml.Linq.XName.Get("SQLServer", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SQLUsernameXName = System.Xml.Linq.XName.Get("SQLUsername", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName WindowsAuthenticationXName = System.Xml.Linq.XName.Get("WindowsAuthentication", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FilenameXName = System.Xml.Linq.XName.Get("Filename", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InnerGlobalVariablesXName = System.Xml.Linq.XName.Get("InnerGlobalVariables", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OuterGlobalVariablesXName = System.Xml.Linq.XName.Get("OuterGlobalVariables", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exec80PackageTaskType", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator Exec80PackageTaskType(XElement xe) { return XTypedServices.ToXTypedElement<Exec80PackageTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static Exec80PackageTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DTS2000PackageXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<Exec80PackageTaskType>(this); } /// <summary> @@ -25896,6 +27903,10 @@ static Exec80PackageTaskType() { public Exec80PackageTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DTS2000PackageXName = System.Xml.Linq.XName.Get("DTS2000Package", ""); + /// <summary> /// <para> /// Occurrence: optional @@ -25907,6 +27918,9 @@ public Exec80PackageTaskType() { public virtual byte[] DTS2000Package { get { XElement x = this.GetElement(DTS2000PackageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<byte[]>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary).Datatype); } set { @@ -25914,6 +27928,10 @@ public virtual byte[] DTS2000Package { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocationXName = System.Xml.Linq.XName.Get("Location", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -25925,13 +27943,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskLocationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskLocationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskLocationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskLocationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskLocationEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(LocationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(LocationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(LocationXName, value.ToString(), "Location", global::Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskLocationEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PackageNameXName = System.Xml.Linq.XName.Get("PackageName", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -25940,6 +27967,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask public virtual string PackageName { get { XAttribute x = this.Attribute(PackageNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25947,6 +27977,10 @@ public virtual string PackageName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PackageIDXName = System.Xml.Linq.XName.Get("PackageID", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -25955,6 +27989,9 @@ public virtual string PackageName { public virtual string PackageID { get { XAttribute x = this.Attribute(PackageIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25962,6 +27999,10 @@ public virtual string PackageID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PackageVersionGUIDXName = System.Xml.Linq.XName.Get("PackageVersionGUID", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -25970,6 +28011,9 @@ public virtual string PackageID { public virtual string PackageVersionGUID { get { XAttribute x = this.Attribute(PackageVersionGUIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25977,6 +28021,10 @@ public virtual string PackageVersionGUID { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SQLServerXName = System.Xml.Linq.XName.Get("SQLServer", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -25985,6 +28033,9 @@ public virtual string PackageVersionGUID { public virtual string SQLServer { get { XAttribute x = this.Attribute(SQLServerXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -25992,6 +28043,10 @@ public virtual string SQLServer { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SQLUsernameXName = System.Xml.Linq.XName.Get("SQLUsername", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26000,6 +28055,9 @@ public virtual string SQLServer { public virtual string SQLUsername { get { XAttribute x = this.Attribute(SQLUsernameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26007,6 +28065,28 @@ public virtual string SQLUsername { } } + public enum WindowsAuthenticationEnum { + + True, + + False, + } + + public sealed class WindowsAuthenticationEnumValidator { + + private WindowsAuthenticationEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName WindowsAuthenticationXName = System.Xml.Linq.XName.Get("WindowsAuthentication", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26018,13 +28098,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskType.WindowsAuthenticationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskType.WindowsAuthenticationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskType.WindowsAuthenticationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTaskType.WindowsAuthenticationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, WindowsAuthenticationEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(WindowsAuthenticationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(WindowsAuthenticationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(WindowsAuthenticationXName, value.ToString(), "WindowsAuthentication", WindowsAuthenticationEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FilenameXName = System.Xml.Linq.XName.Get("Filename", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26033,6 +28122,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask public virtual string Filename { get { XAttribute x = this.Attribute(FilenameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26040,6 +28132,10 @@ public virtual string Filename { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InnerGlobalVariablesXName = System.Xml.Linq.XName.Get("InnerGlobalVariables", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26048,6 +28144,9 @@ public virtual string Filename { public virtual string InnerGlobalVariables { get { XAttribute x = this.Attribute(InnerGlobalVariablesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26055,6 +28154,10 @@ public virtual string InnerGlobalVariables { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OuterGlobalVariablesXName = System.Xml.Linq.XName.Get("OuterGlobalVariables", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26063,6 +28166,9 @@ public virtual string InnerGlobalVariables { public virtual string OuterGlobalVariables { get { XAttribute x = this.Attribute(OuterGlobalVariablesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26070,6 +28176,20 @@ public virtual string OuterGlobalVariables { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exec80PackageTaskType", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + + static Exec80PackageTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(DTS2000PackageXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(DTS2000PackageXName, typeof(byte[])); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -26077,6 +28197,13 @@ public virtual string OuterGlobalVariables { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26097,25 +28224,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<Exec80PackageTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(DTS2000PackageXName, typeof(byte[])); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum WindowsAuthenticationEnum { - - True, - - False, - } } public enum Exec80PackageTaskLocationEnum { @@ -26129,31 +28237,53 @@ public enum Exec80PackageTaskLocationEnum { public sealed class Exec80PackageTaskLocationEnumValidator { + private Exec80PackageTaskLocationEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "SqlServer", "EmbeddedInTask", "StorageFile"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private Exec80PackageTaskLocationEnumValidator() { - } } public partial class Exec80PackageTaskData : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private Exec80PackageTaskType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exec80PackageTaskData", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static Exec80PackageTaskData Load(string xmlFile) { + return XTypedServices.Load<Exec80PackageTaskData, Exec80PackageTaskType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Exec80PackageTaskData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<Exec80PackageTaskData, Exec80PackageTaskType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static Exec80PackageTaskData Parse(string xml) { + return XTypedServices.Parse<Exec80PackageTaskData, Exec80PackageTaskType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator Exec80PackageTaskData(XElement xe) { return XTypedServices.ToXTypedElement<Exec80PackageTaskData, Exec80PackageTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public Exec80PackageTaskData() { - SetInnerType(new Exec80PackageTaskType()); + public override XTypedElement Clone() { + return new Exec80PackageTaskData(((Exec80PackageTaskType)(this.Content.Clone()))); } - public Exec80PackageTaskData(Exec80PackageTaskType content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private Exec80PackageTaskType ContentField; + + public Exec80PackageTaskData() { + SetInnerType(new Exec80PackageTaskType()); } public override XElement Untyped { @@ -26172,6 +28302,15 @@ public virtual Exec80PackageTaskType Content { } } + private void SetInnerType(Exec80PackageTaskType ContentField) { + this.ContentField = ((Exec80PackageTaskType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public Exec80PackageTaskData(Exec80PackageTaskType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional @@ -26329,6 +28468,8 @@ public virtual string OuterGlobalVariables { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("Exec80PackageTaskData", "www.microsoft.com/sqlserver/dts/tasks/exec80packagetask"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -26342,6 +28483,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26362,43 +28507,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static Exec80PackageTaskData Load(string xmlFile) { - return XTypedServices.Load<Exec80PackageTaskData, Exec80PackageTaskType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Exec80PackageTaskData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<Exec80PackageTaskData, Exec80PackageTaskType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static Exec80PackageTaskData Parse(string xml) { - return XTypedServices.Parse<Exec80PackageTaskData, Exec80PackageTaskType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new Exec80PackageTaskData(((Exec80PackageTaskType)(this.Content.Clone()))); - } - - private void SetInnerType(Exec80PackageTaskType ContentField) { - this.ContentField = ((Exec80PackageTaskType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -26409,29 +28517,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public Exec80PackageTaskData Exec80PackageTaskData { get {return rootObject as Exec80PackageTaskData; } } - private XRootNamespace() { } - public XRootNamespace(Exec80PackageTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -26528,6 +28616,26 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(Exec80PackageTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public Exec80PackageTaskData Exec80PackageTaskData { get {return rootObject as Exec80PackageTaskData; } } } } namespace Microsoft.SqlServer.Dts.Tasks.BulkInsertTask { @@ -26547,88 +28655,18 @@ namespace Microsoft.SqlServer.Dts.Tasks.BulkInsertTask { public partial class BulkInsertTaskDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BatchSizeXName = System.Xml.Linq.XName.Get("BatchSize", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CheckConstraintsXName = System.Xml.Linq.XName.Get("CheckConstraints", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SourceConnectionNameXName = System.Xml.Linq.XName.Get("SourceConnectionName", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationConnectionNameXName = System.Xml.Linq.XName.Get("DestinationConnectionName", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataFileTypeXName = System.Xml.Linq.XName.Get("DataFileType", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DestinationTableNameXName = System.Xml.Linq.XName.Get("DestinationTableName", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FirstRowXName = System.Xml.Linq.XName.Get("FirstRow", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LastRowXName = System.Xml.Linq.XName.Get("LastRow", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UseFormatFileXName = System.Xml.Linq.XName.Get("UseFormatFile", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FormatFileXName = System.Xml.Linq.XName.Get("FormatFile", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SortedDataXName = System.Xml.Linq.XName.Get("SortedData", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TableLockXName = System.Xml.Linq.XName.Get("TableLock", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName KeepIdentityXName = System.Xml.Linq.XName.Get("KeepIdentity", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName KeepNullsXName = System.Xml.Linq.XName.Get("KeepNulls", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FieldTerminatorXName = System.Xml.Linq.XName.Get("FieldTerminator", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + public static explicit operator BulkInsertTaskDataType(XElement xe) { return XTypedServices.ToXTypedElement<BulkInsertTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RowTerminatorXName = System.Xml.Linq.XName.Get("RowTerminator", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<BulkInsertTaskDataType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FireTriggersXName = System.Xml.Linq.XName.Get("FireTriggers", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + public BulkInsertTaskDataType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MaximumErrorsXName = System.Xml.Linq.XName.Get("MaximumErrors", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BulkInsertTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); - - public static explicit operator BulkInsertTaskDataType(XElement xe) { return XTypedServices.ToXTypedElement<BulkInsertTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public BulkInsertTaskDataType() { - } + protected internal static readonly System.Xml.Linq.XName BatchSizeXName = System.Xml.Linq.XName.Get("BatchSize", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); /// <summary> /// <para> @@ -26638,6 +28676,9 @@ public BulkInsertTaskDataType() { public virtual object BatchSize { get { XAttribute x = this.Attribute(BatchSizeXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseUnionValue(x, global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.CodePageType.TypeDefinition); } set { @@ -26645,6 +28686,28 @@ public virtual object BatchSize { } } + public enum CheckConstraintsEnum { + + True, + + False, + } + + public sealed class CheckConstraintsEnumValidator { + + private CheckConstraintsEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CheckConstraintsXName = System.Xml.Linq.XName.Get("CheckConstraints", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26656,13 +28719,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.CheckConstraintsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.CheckConstraintsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.CheckConstraintsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.CheckConstraintsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, CheckConstraintsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(CheckConstraintsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(CheckConstraintsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(CheckConstraintsXName, value.ToString(), "CheckConstraints", CheckConstraintsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26671,6 +28743,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy public virtual string CodePage { get { XAttribute x = this.Attribute(CodePageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26678,6 +28753,10 @@ public virtual string CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SourceConnectionNameXName = System.Xml.Linq.XName.Get("SourceConnectionName", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26686,6 +28765,9 @@ public virtual string CodePage { public virtual string SourceConnectionName { get { XAttribute x = this.Attribute(SourceConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26693,6 +28775,10 @@ public virtual string SourceConnectionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationConnectionNameXName = System.Xml.Linq.XName.Get("DestinationConnectionName", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26701,6 +28787,9 @@ public virtual string SourceConnectionName { public virtual string DestinationConnectionName { get { XAttribute x = this.Attribute(DestinationConnectionNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26708,6 +28797,10 @@ public virtual string DestinationConnectionName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataFileTypeXName = System.Xml.Linq.XName.Get("DataFileType", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26719,13 +28812,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnum? Da if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DataFileTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DataFileTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DataFileTypeXName, value.ToString(), "DataFileType", global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DestinationTableNameXName = System.Xml.Linq.XName.Get("DestinationTableName", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26734,6 +28836,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.DataFileTypeEnum? Da public virtual string DestinationTableName { get { XAttribute x = this.Attribute(DestinationTableNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26741,6 +28846,10 @@ public virtual string DestinationTableName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FirstRowXName = System.Xml.Linq.XName.Get("FirstRow", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26759,6 +28868,10 @@ public virtual System.Int32? FirstRow { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LastRowXName = System.Xml.Linq.XName.Get("LastRow", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26777,6 +28890,28 @@ public virtual System.Int32? LastRow { } } + public enum UseFormatFileEnum { + + True, + + False, + } + + public sealed class UseFormatFileEnumValidator { + + private UseFormatFileEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UseFormatFileXName = System.Xml.Linq.XName.Get("UseFormatFile", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26788,13 +28923,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.UseFormatFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.UseFormatFileEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.UseFormatFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.UseFormatFileEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, UseFormatFileEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(UseFormatFileXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(UseFormatFileXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(UseFormatFileXName, value.ToString(), "UseFormatFile", UseFormatFileEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FormatFileXName = System.Xml.Linq.XName.Get("FormatFile", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26803,6 +28947,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy public virtual string FormatFile { get { XAttribute x = this.Attribute(FormatFileXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26810,6 +28957,10 @@ public virtual string FormatFile { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SortedDataXName = System.Xml.Linq.XName.Get("SortedData", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26818,6 +28969,9 @@ public virtual string FormatFile { public virtual string SortedData { get { XAttribute x = this.Attribute(SortedDataXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -26825,6 +28979,28 @@ public virtual string SortedData { } } + public enum TableLockEnum { + + True, + + False, + } + + public sealed class TableLockEnumValidator { + + private TableLockEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TableLockXName = System.Xml.Linq.XName.Get("TableLock", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26836,13 +29012,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.TableLockEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.TableLockEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.TableLockEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.TableLockEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, TableLockEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TableLockXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(TableLockXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(TableLockXName, value.ToString(), "TableLock", TableLockEnumValidator.TypeDefinition); + } + } + } + + public enum KeepIdentityEnum { + + True, + + False, + } + + public sealed class KeepIdentityEnumValidator { + + private KeepIdentityEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName KeepIdentityXName = System.Xml.Linq.XName.Get("KeepIdentity", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26854,13 +29057,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepIdentityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepIdentityEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepIdentityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepIdentityEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, KeepIdentityEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(KeepIdentityXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(KeepIdentityXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(KeepIdentityXName, value.ToString(), "KeepIdentity", KeepIdentityEnumValidator.TypeDefinition); + } } } + public enum KeepNullsEnum { + + True, + + False, + } + + public sealed class KeepNullsEnumValidator { + + private KeepNullsEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName KeepNullsXName = System.Xml.Linq.XName.Get("KeepNulls", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26872,43 +29102,94 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepNullsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepNullsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepNullsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.KeepNullsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, KeepNullsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(KeepNullsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(KeepNullsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(KeepNullsXName, value.ToString(), "KeepNulls", KeepNullsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FieldTerminatorXName = System.Xml.Linq.XName.Get("FieldTerminator", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string FieldTerminator { + public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum? FieldTerminator { get { XAttribute x = this.Attribute(FieldTerminatorXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(FieldTerminatorXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(FieldTerminatorXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(FieldTerminatorXName, value.ToString(), "FieldTerminator", global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RowTerminatorXName = System.Xml.Linq.XName.Get("RowTerminator", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual string RowTerminator { + public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum? RowTerminator { get { XAttribute x = this.Attribute(RowTerminatorXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RowTerminatorXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RowTerminatorXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RowTerminatorXName, value.ToString(), "RowTerminator", global::Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnumValidator.TypeDefinition); + } } } + public enum FireTriggersEnum { + + True, + + False, + } + + public sealed class FireTriggersEnumValidator { + + private FireTriggersEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FireTriggersXName = System.Xml.Linq.XName.Get("FireTriggers", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26920,13 +29201,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.FireTriggersEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.FireTriggersEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.FireTriggersEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataType.FireTriggersEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, FireTriggersEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(FireTriggersXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(FireTriggersXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(FireTriggersXName, value.ToString(), "FireTriggers", FireTriggersEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MaximumErrorsXName = System.Xml.Linq.XName.Get("MaximumErrors", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + /// <summary> /// <para> /// Occurrence: optional @@ -26945,6 +29235,12 @@ public virtual System.Int32? MaximumErrors { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BulkInsertTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -26965,56 +29261,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<BulkInsertTaskDataType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum CheckConstraintsEnum { - - True, - - False, - } - - public enum UseFormatFileEnum { - - True, - - False, - } - - public enum TableLockEnum { - - True, - - False, - } - - public enum KeepIdentityEnum { - - True, - - False, - } - - public enum KeepNullsEnum { - - True, - - False, - } - - public enum FireTriggersEnum { - - True, - - False, - } } public enum DataFileTypeEnum { @@ -27030,19 +29276,22 @@ public enum DataFileTypeEnum { public sealed class DataFileTypeEnumValidator { + private DataFileTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "DTSBulkInsert_DataFileType_Char", "DTSBulkInsert_DataFileType_Native", "DTSBulkInsert_DataFileType_WideChar", "DTSBulkInsert_DataFileType_WideNative"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private DataFileTypeEnumValidator() { - } } public sealed class CodePageType { + private CodePageType() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.UnionSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyAtomicType), null, new Xml.Schema.Linq.SimpleTypeValidator[] { new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), null), @@ -27050,42 +29299,78 @@ public sealed class CodePageType { "ACP", "OEM", "RAW"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve))}); + } + + public enum BulkInsertTaskTerminatorEnum { - private CodePageType() { - } + _CR__LF_, + + _CR_, + + _LF_, + + Semicolon____, + + Comma____, + + Tab, + + Vertical_Bar____, } - public sealed class BulkInsertTaskTerminatorEnum { + public sealed class BulkInsertTaskTerminatorEnumValidator { + + private BulkInsertTaskTerminatorEnumValidator() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { - "{CR}{LF}", - "{CR}", - "{LF}", - "Semicolon {;}", - "Comma {,}", + "{CR}{LF}:_CR__LF_", + "{CR}:_CR_", + "{LF}:_LF_", + "Semicolon {;}:Semicolon____", + "Comma {,}:Comma____", "Tab", - "Vertical Bar {|}"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private BulkInsertTaskTerminatorEnum() { - } + "Vertical Bar {|}:Vertical_Bar____"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } public partial class BulkInsertTaskData : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private BulkInsertTaskDataType ContentField; + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); + } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BulkInsertTaskData", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); + } + + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); + } + + public static BulkInsertTaskData Load(string xmlFile) { + return XTypedServices.Load<BulkInsertTaskData, BulkInsertTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static BulkInsertTaskData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<BulkInsertTaskData, BulkInsertTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); + } + + public static BulkInsertTaskData Parse(string xml) { + return XTypedServices.Parse<BulkInsertTaskData, BulkInsertTaskDataType>(xml, LinqToXsdTypeManager.Instance); + } public static explicit operator BulkInsertTaskData(XElement xe) { return XTypedServices.ToXTypedElement<BulkInsertTaskData, BulkInsertTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - public BulkInsertTaskData() { - SetInnerType(new BulkInsertTaskDataType()); + public override XTypedElement Clone() { + return new BulkInsertTaskData(((BulkInsertTaskDataType)(this.Content.Clone()))); } - public BulkInsertTaskData(BulkInsertTaskDataType content) { - SetInnerType(content); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private BulkInsertTaskDataType ContentField; + + public BulkInsertTaskData() { + SetInnerType(new BulkInsertTaskDataType()); } public override XElement Untyped { @@ -27104,6 +29389,15 @@ public virtual BulkInsertTaskDataType Content { } } + private void SetInnerType(BulkInsertTaskDataType ContentField) { + this.ContentField = ((BulkInsertTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public BulkInsertTaskData(BulkInsertTaskDataType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional @@ -27319,7 +29613,7 @@ public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskDataTy /// Occurrence: optional /// </para> /// </summary> - public virtual string FieldTerminator { + public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum? FieldTerminator { get { return this.ContentField.FieldTerminator; } @@ -27333,7 +29627,7 @@ public virtual string FieldTerminator { /// Occurrence: optional /// </para> /// </summary> - public virtual string RowTerminator { + public virtual Microsoft.SqlServer.Dts.Tasks.BulkInsertTask.BulkInsertTaskTerminatorEnum? RowTerminator { get { return this.ContentField.RowTerminator; } @@ -27370,6 +29664,8 @@ public virtual System.Int32? MaximumErrors { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BulkInsertTaskData", "www.microsoft.com/sqlserver/dts/tasks/bulkinserttask"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -27383,6 +29679,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -27403,43 +29703,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static BulkInsertTaskData Load(string xmlFile) { - return XTypedServices.Load<BulkInsertTaskData, BulkInsertTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static BulkInsertTaskData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<BulkInsertTaskData, BulkInsertTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static BulkInsertTaskData Parse(string xml) { - return XTypedServices.Parse<BulkInsertTaskData, BulkInsertTaskDataType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new BulkInsertTaskData(((BulkInsertTaskDataType)(this.Content.Clone()))); - } - - private void SetInnerType(BulkInsertTaskDataType ContentField) { - this.ContentField = ((BulkInsertTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -27450,29 +29713,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public BulkInsertTaskData BulkInsertTaskData { get {return rootObject as BulkInsertTaskData; } } - private XRootNamespace() { } - public XRootNamespace(BulkInsertTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -27569,6 +29812,26 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(BulkInsertTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public BulkInsertTaskData BulkInsertTaskData { get {return rootObject as BulkInsertTaskData; } } } } namespace Microsoft.SqlServer.Dts.Tasks.Sqltask { @@ -27593,287 +29856,10 @@ namespace Microsoft.SqlServer.Dts.Tasks.Sqltask { /// </summary> public partial class SqlTaskDataType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SelectedDatabasesType> SelectedDatabasesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OperatorNotifyListXName = System.Xml.Linq.XName.Get("OperatorNotifyList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OperatorNotifyListType> OperatorNotifyListField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParameterBindingXName = System.Xml.Linq.XName.Get("ParameterBinding", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SqlTaskParameterBindingType> ParameterBindingField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultBindingXName = System.Xml.Linq.XName.Get("ResultBinding", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDestinationListXName = System.Xml.Linq.XName.Get("BackupDestinationList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<BackupDestinationListType> BackupDestinationListField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupActionXName = System.Xml.Linq.XName.Get("BackupAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupIsIncrementalXName = System.Xml.Linq.XName.Get("BackupIsIncremental", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupFileGroupsFilesXName = System.Xml.Linq.XName.Get("BackupFileGroupsFiles", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDeviceTypeXName = System.Xml.Linq.XName.Get("BackupDeviceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupPhisycalDestinationTypeXName = System.Xml.Linq.XName.Get("BackupPhisycalDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDestinationTypeXName = System.Xml.Linq.XName.Get("BackupDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDestinationAutoFolderPathXName = System.Xml.Linq.XName.Get("BackupDestinationAutoFolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupActionForExistingBackupsXName = System.Xml.Linq.XName.Get("BackupActionForExistingBackups", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupCreateSubFolderXName = System.Xml.Linq.XName.Get("BackupCreateSubFolder", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupFileExtensionXName = System.Xml.Linq.XName.Get("BackupFileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupVerifyIntegrityXName = System.Xml.Linq.XName.Get("BackupVerifyIntegrity", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExpireDateXName = System.Xml.Linq.XName.Get("ExpireDate", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RetainDaysXName = System.Xml.Linq.XName.Get("RetainDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InDaysXName = System.Xml.Linq.XName.Get("InDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UseExpirationXName = System.Xml.Linq.XName.Get("UseExpiration", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupCompressionActionXName = System.Xml.Linq.XName.Get("BackupCompressionAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupTailLogXName = System.Xml.Linq.XName.Get("BackupTailLog", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IncludeIndexesXName = System.Xml.Linq.XName.Get("IncludeIndexes", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AgentJobIDXName = System.Xml.Linq.XName.Get("AgentJobID", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveBackupRestoreHistoryXName = System.Xml.Linq.XName.Get("RemoveBackupRestoreHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveAgentHistoryXName = System.Xml.Linq.XName.Get("RemoveAgentHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveDbMaintHistoryXName = System.Xml.Linq.XName.Get("RemoveDbMaintHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileTypeSelectedXName = System.Xml.Linq.XName.Get("FileTypeSelected", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FilePathXName = System.Xml.Linq.XName.Get("FilePath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FolderPathXName = System.Xml.Linq.XName.Get("FolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CleanSubFoldersXName = System.Xml.Linq.XName.Get("CleanSubFolders", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileExtensionXName = System.Xml.Linq.XName.Get("FileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AgeBasedXName = System.Xml.Linq.XName.Get("AgeBased", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DeleteSpecificFileXName = System.Xml.Linq.XName.Get("DeleteSpecificFile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MessageXName = System.Xml.Linq.XName.Get("Message", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SubjectXName = System.Xml.Linq.XName.Get("Subject", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UseOriginalAmountXName = System.Xml.Linq.XName.Get("UseOriginalAmount", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PercentageXName = System.Xml.Linq.XName.Get("Percentage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SortXName = System.Xml.Linq.XName.Get("Sort", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName KeepOnlineXName = System.Xml.Linq.XName.Get("KeepOnline", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CompactLargeObjectsXName = System.Xml.Linq.XName.Get("CompactLargeObjects", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSizeLimitXName = System.Xml.Linq.XName.Get("DatabaseSizeLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabasePercentLimitXName = System.Xml.Linq.XName.Get("DatabasePercentLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseReturnFreeSpaceXName = System.Xml.Linq.XName.Get("DatabaseReturnFreeSpace", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UpdateStatisticsTypeXName = System.Xml.Linq.XName.Get("UpdateStatisticsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UpdateScanTypeXName = System.Xml.Linq.XName.Get("UpdateScanType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UpdateSampleValueXName = System.Xml.Linq.XName.Get("UpdateSampleValue", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveOlderThanXName = System.Xml.Linq.XName.Get("RemoveOlderThan", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeUnitsTypeXName = System.Xml.Linq.XName.Get("TimeUnitsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SqlTaskDataType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SqlTaskDataType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName), new NamedContentModelEntity(OperatorNotifyListXName), new NamedContentModelEntity(ParameterBindingXName), new NamedContentModelEntity(ResultBindingXName), new NamedContentModelEntity(BackupDestinationListXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataType>(this); } /// <summary> @@ -27884,6 +29870,13 @@ static SqlTaskDataType() { public SqlTaskDataType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SelectedDatabasesType> SelectedDatabasesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -27914,6 +29907,13 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OperatorNotifyListXName = System.Xml.Linq.XName.Get("OperatorNotifyList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OperatorNotifyListType> OperatorNotifyListField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -27944,6 +29944,13 @@ public virtual IList<OperatorNotifyListType> OperatorNotifyList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParameterBindingXName = System.Xml.Linq.XName.Get("ParameterBinding", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SqlTaskParameterBindingType> ParameterBindingField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -27974,6 +29981,10 @@ public virtual IList<SqlTaskParameterBindingType> ParameterBinding { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultBindingXName = System.Xml.Linq.XName.Get("ResultBinding", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -27985,6 +29996,9 @@ public virtual IList<SqlTaskParameterBindingType> ParameterBinding { public virtual SqlTaskResultBindingType ResultBinding { get { XElement x = this.GetElement(ResultBindingXName); + if ((x == null)) { + return null; + } return ((SqlTaskResultBindingType)(x)); } set { @@ -27992,6 +30006,13 @@ public virtual SqlTaskResultBindingType ResultBinding { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDestinationListXName = System.Xml.Linq.XName.Get("BackupDestinationList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<BackupDestinationListType> BackupDestinationListField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -28022,6 +30043,10 @@ public virtual IList<BackupDestinationListType> BackupDestinationList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28030,6 +30055,9 @@ public virtual IList<BackupDestinationListType> BackupDestinationList { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28037,6 +30065,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28055,6 +30087,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28066,13 +30120,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IsStoredPro if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28084,13 +30165,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BypassPrepa if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28102,13 +30192,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28117,6 +30216,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28124,6 +30226,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28142,6 +30248,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28153,13 +30263,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28178,6 +30297,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28189,13 +30330,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.ExtendedLog if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28204,6 +30354,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.ExtendedLog public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28211,6 +30364,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28219,6 +30376,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28226,6 +30386,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28237,13 +30419,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IgnoreDatab if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupActionXName = System.Xml.Linq.XName.Get("BackupAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28262,6 +30453,28 @@ public virtual System.Int32? BackupAction { } } + public enum BackupIsIncrementalEnum { + + True, + + False, + } + + public sealed class BackupIsIncrementalEnumValidator { + + private BackupIsIncrementalEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupIsIncrementalXName = System.Xml.Linq.XName.Get("BackupIsIncremental", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28273,13 +30486,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupIsInc if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupIsIncrementalEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupIsIncrementalEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupIsIncrementalEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupIsIncrementalEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupIsIncrementalEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupIsIncrementalXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupIsIncrementalXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupIsIncrementalXName, value.ToString(), "BackupIsIncremental", BackupIsIncrementalEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupFileGroupsFilesXName = System.Xml.Linq.XName.Get("BackupFileGroupsFiles", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28288,6 +30510,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupIsInc public virtual string BackupFileGroupsFiles { get { XAttribute x = this.Attribute(BackupFileGroupsFilesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28295,6 +30520,10 @@ public virtual string BackupFileGroupsFiles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDeviceTypeXName = System.Xml.Linq.XName.Get("BackupDeviceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28313,6 +30542,10 @@ public virtual System.Int32? BackupDeviceType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupPhisycalDestinationTypeXName = System.Xml.Linq.XName.Get("BackupPhisycalDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28331,6 +30564,10 @@ public virtual System.Int32? BackupPhisycalDestinationType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDestinationTypeXName = System.Xml.Linq.XName.Get("BackupDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28349,6 +30586,10 @@ public virtual System.Int32? BackupDestinationType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDestinationAutoFolderPathXName = System.Xml.Linq.XName.Get("BackupDestinationAutoFolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28357,6 +30598,9 @@ public virtual System.Int32? BackupDestinationType { public virtual string BackupDestinationAutoFolderPath { get { XAttribute x = this.Attribute(BackupDestinationAutoFolderPathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28364,6 +30608,10 @@ public virtual string BackupDestinationAutoFolderPath { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupActionForExistingBackupsXName = System.Xml.Linq.XName.Get("BackupActionForExistingBackups", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28382,6 +30630,28 @@ public virtual System.Int32? BackupActionForExistingBackups { } } + public enum BackupCreateSubFolderEnum { + + True, + + False, + } + + public sealed class BackupCreateSubFolderEnumValidator { + + private BackupCreateSubFolderEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupCreateSubFolderXName = System.Xml.Linq.XName.Get("BackupCreateSubFolder", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28393,13 +30663,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupCreat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupCreateSubFolderEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupCreateSubFolderEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupCreateSubFolderEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupCreateSubFolderEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupCreateSubFolderEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupCreateSubFolderXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupCreateSubFolderXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupCreateSubFolderXName, value.ToString(), "BackupCreateSubFolder", BackupCreateSubFolderEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupFileExtensionXName = System.Xml.Linq.XName.Get("BackupFileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28408,6 +30687,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupCreat public virtual string BackupFileExtension { get { XAttribute x = this.Attribute(BackupFileExtensionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28415,6 +30697,28 @@ public virtual string BackupFileExtension { } } + public enum BackupVerifyIntegrityEnum { + + True, + + False, + } + + public sealed class BackupVerifyIntegrityEnumValidator { + + private BackupVerifyIntegrityEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupVerifyIntegrityXName = System.Xml.Linq.XName.Get("BackupVerifyIntegrity", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28426,13 +30730,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupVerif if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupVerifyIntegrityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupVerifyIntegrityEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupVerifyIntegrityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupVerifyIntegrityEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupVerifyIntegrityEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupVerifyIntegrityXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupVerifyIntegrityXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupVerifyIntegrityXName, value.ToString(), "BackupVerifyIntegrity", BackupVerifyIntegrityEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExpireDateXName = System.Xml.Linq.XName.Get("ExpireDate", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28451,6 +30764,10 @@ public virtual System.DateTime? ExpireDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RetainDaysXName = System.Xml.Linq.XName.Get("RetainDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28469,6 +30786,28 @@ public virtual System.Int32? RetainDays { } } + public enum InDaysEnum { + + True, + + False, + } + + public sealed class InDaysEnumValidator { + + private InDaysEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InDaysXName = System.Xml.Linq.XName.Get("InDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28480,13 +30819,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.InDaysEnum? if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.InDaysEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.InDaysEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.InDaysEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.InDaysEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, InDaysEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(InDaysXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(InDaysXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(InDaysXName, value.ToString(), "InDays", InDaysEnumValidator.TypeDefinition); + } + } + } + + public enum UseExpirationEnum { + + True, + + False, + } + + public sealed class UseExpirationEnumValidator { + + private UseExpirationEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UseExpirationXName = System.Xml.Linq.XName.Get("UseExpiration", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28498,13 +30864,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseExpirati if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseExpirationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseExpirationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseExpirationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseExpirationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, UseExpirationEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(UseExpirationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(UseExpirationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(UseExpirationXName, value.ToString(), "UseExpiration", UseExpirationEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupCompressionActionXName = System.Xml.Linq.XName.Get("BackupCompressionAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28523,6 +30898,28 @@ public virtual System.Int32? BackupCompressionAction { } } + public enum BackupTailLogEnum { + + True, + + False, + } + + public sealed class BackupTailLogEnumValidator { + + private BackupTailLogEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupTailLogXName = System.Xml.Linq.XName.Get("BackupTailLog", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28534,13 +30931,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupTailL if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupTailLogEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupTailLogEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupTailLogEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.BackupTailLogEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupTailLogEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupTailLogXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupTailLogXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupTailLogXName, value.ToString(), "BackupTailLog", BackupTailLogEnumValidator.TypeDefinition); + } + } + } + + public enum IncludeIndexesEnum { + + True, + + False, + } + + public sealed class IncludeIndexesEnumValidator { + + private IncludeIndexesEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeIndexesXName = System.Xml.Linq.XName.Get("IncludeIndexes", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28552,13 +30976,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IncludeInde if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IncludeIndexesEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IncludeIndexesEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IncludeIndexesEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IncludeIndexesEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IncludeIndexesEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IncludeIndexesXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IncludeIndexesXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IncludeIndexesXName, value.ToString(), "IncludeIndexes", IncludeIndexesEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AgentJobIDXName = System.Xml.Linq.XName.Get("AgentJobID", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28567,6 +31000,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.IncludeInde public virtual string AgentJobID { get { XAttribute x = this.Attribute(AgentJobIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28574,6 +31010,28 @@ public virtual string AgentJobID { } } + public enum RemoveBackupRestoreHistoryEnum { + + True, + + False, + } + + public sealed class RemoveBackupRestoreHistoryEnumValidator { + + private RemoveBackupRestoreHistoryEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveBackupRestoreHistoryXName = System.Xml.Linq.XName.Get("RemoveBackupRestoreHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28585,13 +31043,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveBacku if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveBackupRestoreHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveBackupRestoreHistoryEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveBackupRestoreHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveBackupRestoreHistoryEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RemoveBackupRestoreHistoryEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RemoveBackupRestoreHistoryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RemoveBackupRestoreHistoryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RemoveBackupRestoreHistoryXName, value.ToString(), "RemoveBackupRestoreHistory", RemoveBackupRestoreHistoryEnumValidator.TypeDefinition); + } + } + } + + public enum RemoveAgentHistoryEnum { + + True, + + False, + } + + public sealed class RemoveAgentHistoryEnumValidator { + + private RemoveAgentHistoryEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveAgentHistoryXName = System.Xml.Linq.XName.Get("RemoveAgentHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28603,13 +31088,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveAgent if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveAgentHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveAgentHistoryEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveAgentHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveAgentHistoryEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RemoveAgentHistoryEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RemoveAgentHistoryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RemoveAgentHistoryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RemoveAgentHistoryXName, value.ToString(), "RemoveAgentHistory", RemoveAgentHistoryEnumValidator.TypeDefinition); + } + } + } + + public enum RemoveDbMaintHistoryEnum { + + True, + + False, + } + + public sealed class RemoveDbMaintHistoryEnumValidator { + + private RemoveDbMaintHistoryEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveDbMaintHistoryXName = System.Xml.Linq.XName.Get("RemoveDbMaintHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28621,13 +31133,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveDbMai if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveDbMaintHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveDbMaintHistoryEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveDbMaintHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveDbMaintHistoryEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RemoveDbMaintHistoryEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RemoveDbMaintHistoryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RemoveDbMaintHistoryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RemoveDbMaintHistoryXName, value.ToString(), "RemoveDbMaintHistory", RemoveDbMaintHistoryEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileTypeSelectedXName = System.Xml.Linq.XName.Get("FileTypeSelected", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28636,6 +31157,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.RemoveDbMai public virtual string FileTypeSelected { get { XAttribute x = this.Attribute(FileTypeSelectedXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28643,6 +31167,10 @@ public virtual string FileTypeSelected { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FilePathXName = System.Xml.Linq.XName.Get("FilePath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28651,6 +31179,9 @@ public virtual string FileTypeSelected { public virtual string FilePath { get { XAttribute x = this.Attribute(FilePathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28658,6 +31189,10 @@ public virtual string FilePath { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FolderPathXName = System.Xml.Linq.XName.Get("FolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28666,6 +31201,9 @@ public virtual string FilePath { public virtual string FolderPath { get { XAttribute x = this.Attribute(FolderPathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28673,6 +31211,28 @@ public virtual string FolderPath { } } + public enum CleanSubFoldersEnum { + + True, + + False, + } + + public sealed class CleanSubFoldersEnumValidator { + + private CleanSubFoldersEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CleanSubFoldersXName = System.Xml.Linq.XName.Get("CleanSubFolders", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28684,13 +31244,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CleanSubFol if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CleanSubFoldersEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CleanSubFoldersEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CleanSubFoldersEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CleanSubFoldersEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, CleanSubFoldersEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(CleanSubFoldersXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(CleanSubFoldersXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(CleanSubFoldersXName, value.ToString(), "CleanSubFolders", CleanSubFoldersEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileExtensionXName = System.Xml.Linq.XName.Get("FileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28699,6 +31268,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CleanSubFol public virtual string FileExtension { get { XAttribute x = this.Attribute(FileExtensionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28706,6 +31278,28 @@ public virtual string FileExtension { } } + public enum AgeBasedEnum { + + True, + + False, + } + + public sealed class AgeBasedEnumValidator { + + private AgeBasedEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AgeBasedXName = System.Xml.Linq.XName.Get("AgeBased", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28717,13 +31311,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.AgeBasedEnu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.AgeBasedEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.AgeBasedEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.AgeBasedEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.AgeBasedEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, AgeBasedEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(AgeBasedXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(AgeBasedXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(AgeBasedXName, value.ToString(), "AgeBased", AgeBasedEnumValidator.TypeDefinition); + } + } + } + + public enum DeleteSpecificFileEnum { + + True, + + False, + } + + public sealed class DeleteSpecificFileEnumValidator { + + private DeleteSpecificFileEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DeleteSpecificFileXName = System.Xml.Linq.XName.Get("DeleteSpecificFile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28735,13 +31356,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DeleteSpeci if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DeleteSpecificFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DeleteSpecificFileEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DeleteSpecificFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DeleteSpecificFileEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, DeleteSpecificFileEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DeleteSpecificFileXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DeleteSpecificFileXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DeleteSpecificFileXName, value.ToString(), "DeleteSpecificFile", DeleteSpecificFileEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MessageXName = System.Xml.Linq.XName.Get("Message", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28750,6 +31380,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DeleteSpeci public virtual string Message { get { XAttribute x = this.Attribute(MessageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28757,6 +31390,10 @@ public virtual string Message { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28765,6 +31402,9 @@ public virtual string Message { public virtual string Profile { get { XAttribute x = this.Attribute(ProfileXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28772,6 +31412,10 @@ public virtual string Profile { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SubjectXName = System.Xml.Linq.XName.Get("Subject", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28780,6 +31424,9 @@ public virtual string Profile { public virtual string Subject { get { XAttribute x = this.Attribute(SubjectXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -28787,6 +31434,28 @@ public virtual string Subject { } } + public enum UseOriginalAmountEnum { + + True, + + False, + } + + public sealed class UseOriginalAmountEnumValidator { + + private UseOriginalAmountEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UseOriginalAmountXName = System.Xml.Linq.XName.Get("UseOriginalAmount", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28798,13 +31467,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseOriginal if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseOriginalAmountEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseOriginalAmountEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseOriginalAmountEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.UseOriginalAmountEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, UseOriginalAmountEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(UseOriginalAmountXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(UseOriginalAmountXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(UseOriginalAmountXName, value.ToString(), "UseOriginalAmount", UseOriginalAmountEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PercentageXName = System.Xml.Linq.XName.Get("Percentage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28823,6 +31501,28 @@ public virtual System.Int32? Percentage { } } + public enum SortEnum { + + True, + + False, + } + + public sealed class SortEnumValidator { + + private SortEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SortXName = System.Xml.Linq.XName.Get("Sort", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28834,13 +31534,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.SortEnum? S if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.SortEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.SortEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.SortEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.SortEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, SortEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SortXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SortXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SortXName, value.ToString(), "Sort", SortEnumValidator.TypeDefinition); + } + } + } + + public enum KeepOnlineEnum { + + True, + + False, + } + + public sealed class KeepOnlineEnumValidator { + + private KeepOnlineEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName KeepOnlineXName = System.Xml.Linq.XName.Get("KeepOnline", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28852,13 +31579,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.KeepOnlineE if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.KeepOnlineEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.KeepOnlineEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.KeepOnlineEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.KeepOnlineEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, KeepOnlineEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(KeepOnlineXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(KeepOnlineXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(KeepOnlineXName, value.ToString(), "KeepOnline", KeepOnlineEnumValidator.TypeDefinition); + } + } + } + + public enum CompactLargeObjectsEnum { + + True, + + False, + } + + public sealed class CompactLargeObjectsEnumValidator { + + private CompactLargeObjectsEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CompactLargeObjectsXName = System.Xml.Linq.XName.Get("CompactLargeObjects", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28870,13 +31624,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CompactLarg if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CompactLargeObjectsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CompactLargeObjectsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CompactLargeObjectsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.CompactLargeObjectsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, CompactLargeObjectsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(CompactLargeObjectsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(CompactLargeObjectsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(CompactLargeObjectsXName, value.ToString(), "CompactLargeObjects", CompactLargeObjectsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSizeLimitXName = System.Xml.Linq.XName.Get("DatabaseSizeLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28895,6 +31658,10 @@ public virtual System.Int32? DatabaseSizeLimit { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabasePercentLimitXName = System.Xml.Linq.XName.Get("DatabasePercentLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28913,6 +31680,28 @@ public virtual System.Int32? DatabasePercentLimit { } } + public enum DatabaseReturnFreeSpaceEnum { + + True, + + False, + } + + public sealed class DatabaseReturnFreeSpaceEnumValidator { + + private DatabaseReturnFreeSpaceEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseReturnFreeSpaceXName = System.Xml.Linq.XName.Get("DatabaseReturnFreeSpace", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28924,13 +31713,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DatabaseRet if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DatabaseReturnFreeSpaceEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DatabaseReturnFreeSpaceEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DatabaseReturnFreeSpaceEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataType.DatabaseReturnFreeSpaceEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, DatabaseReturnFreeSpaceEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DatabaseReturnFreeSpaceXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DatabaseReturnFreeSpaceXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DatabaseReturnFreeSpaceXName, value.ToString(), "DatabaseReturnFreeSpace", DatabaseReturnFreeSpaceEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UpdateStatisticsTypeXName = System.Xml.Linq.XName.Get("UpdateStatisticsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28949,6 +31747,10 @@ public virtual System.Int32? UpdateStatisticsType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UpdateScanTypeXName = System.Xml.Linq.XName.Get("UpdateScanType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28967,6 +31769,10 @@ public virtual System.Int32? UpdateScanType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UpdateSampleValueXName = System.Xml.Linq.XName.Get("UpdateSampleValue", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -28985,6 +31791,10 @@ public virtual System.Int32? UpdateSampleValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveOlderThanXName = System.Xml.Linq.XName.Get("RemoveOlderThan", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29003,6 +31813,10 @@ public virtual System.Int32? RemoveOlderThan { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeUnitsTypeXName = System.Xml.Linq.XName.Get("TimeUnitsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29021,6 +31835,10 @@ public virtual System.Int32? TimeUnitsType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29039,6 +31857,24 @@ public virtual System.Int32? DatabaseSelectionType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + static SqlTaskDataType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName), new NamedContentModelEntity(OperatorNotifyListXName), new NamedContentModelEntity(ParameterBindingXName), new NamedContentModelEntity(ResultBindingXName), new NamedContentModelEntity(BackupDestinationListXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); + localElementDictionary.Add(OperatorNotifyListXName, typeof(OperatorNotifyListType)); + localElementDictionary.Add(ParameterBindingXName, typeof(SqlTaskParameterBindingType)); + localElementDictionary.Add(ResultBindingXName, typeof(SqlTaskResultBindingType)); + localElementDictionary.Add(BackupDestinationListXName, typeof(BackupDestinationListType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -29046,6 +31882,13 @@ public virtual System.Int32? DatabaseSelectionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29066,215 +31909,47 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public enum SqlResultTypeEnum { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataType>(this); - } + ResultSetType_None, - private static void BuildElementDictionary() { - localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); - localElementDictionary.Add(OperatorNotifyListXName, typeof(OperatorNotifyListType)); - localElementDictionary.Add(ParameterBindingXName, typeof(SqlTaskParameterBindingType)); - localElementDictionary.Add(ResultBindingXName, typeof(SqlTaskResultBindingType)); - localElementDictionary.Add(BackupDestinationListXName, typeof(BackupDestinationListType)); - } + ResultSetType_Rowset, - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } - - public enum BackupIsIncrementalEnum { - - True, - - False, - } - - public enum BackupCreateSubFolderEnum { - - True, - - False, - } - - public enum BackupVerifyIntegrityEnum { - - True, - - False, - } - - public enum InDaysEnum { - - True, - - False, - } - - public enum UseExpirationEnum { - - True, - - False, - } - - public enum BackupTailLogEnum { - - True, - - False, - } - - public enum IncludeIndexesEnum { - - True, - - False, - } - - public enum RemoveBackupRestoreHistoryEnum { - - True, - - False, - } - - public enum RemoveAgentHistoryEnum { - - True, - - False, - } - - public enum RemoveDbMaintHistoryEnum { - - True, - - False, - } - - public enum CleanSubFoldersEnum { - - True, - - False, - } - - public enum AgeBasedEnum { - - True, - - False, - } - - public enum DeleteSpecificFileEnum { - - True, - - False, - } - - public enum UseOriginalAmountEnum { - - True, - - False, - } - - public enum SortEnum { - - True, - - False, - } - - public enum KeepOnlineEnum { - - True, - - False, - } - - public enum CompactLargeObjectsEnum { - - True, - - False, - } - - public enum DatabaseReturnFreeSpaceEnum { - - True, - - False, - } - } - - public enum SqlResultTypeEnum { - - ResultSetType_None, - - ResultSetType_Rowset, - - ResultSetType_SingleRow, + ResultSetType_SingleRow, ResultSetType_XML, } public sealed class SqlResultTypeEnumValidator { + private SqlResultTypeEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "ResultSetType_None", "ResultSetType_Rowset", "ResultSetType_SingleRow", "ResultSetType_XML"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private SqlResultTypeEnumValidator() { - } } public partial class SelectedDatabasesType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseNameXName = System.Xml.Linq.XName.Get("DatabaseName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SelectedDatabasesType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - public static explicit operator SelectedDatabasesType(XElement xe) { return XTypedServices.ToXTypedElement<SelectedDatabasesType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SelectedDatabasesType>(this); + } + public SelectedDatabasesType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseNameXName = System.Xml.Linq.XName.Get("DatabaseName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29283,6 +31958,9 @@ public SelectedDatabasesType() { public virtual string DatabaseName { get { XAttribute x = this.Attribute(DatabaseNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29290,6 +31968,12 @@ public virtual string DatabaseName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SelectedDatabasesType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29310,29 +31994,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SelectedDatabasesType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class OperatorNotifyListType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OperatorNotifyXName = System.Xml.Linq.XName.Get("OperatorNotify", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OperatorNotifyListType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - public static explicit operator OperatorNotifyListType(XElement xe) { return XTypedServices.ToXTypedElement<OperatorNotifyListType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<OperatorNotifyListType>(this); + } + public OperatorNotifyListType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OperatorNotifyXName = System.Xml.Linq.XName.Get("OperatorNotify", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29341,6 +32019,9 @@ public OperatorNotifyListType() { public virtual string OperatorNotify { get { XAttribute x = this.Attribute(OperatorNotifyXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29348,6 +32029,12 @@ public virtual string OperatorNotify { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("OperatorNotifyListType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29368,44 +32055,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<OperatorNotifyListType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class SqlTaskParameterBindingType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParameterNameXName = System.Xml.Linq.XName.Get("ParameterName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DtsVariableNameXName = System.Xml.Linq.XName.Get("DtsVariableName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public static explicit operator SqlTaskParameterBindingType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskParameterBindingType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParameterDirectionXName = System.Xml.Linq.XName.Get("ParameterDirection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskParameterBindingType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public SqlTaskParameterBindingType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ParameterSizeXName = System.Xml.Linq.XName.Get("ParameterSize", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskParameterBindingType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - public static explicit operator SqlTaskParameterBindingType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskParameterBindingType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SqlTaskParameterBindingType() { - } + protected internal static readonly System.Xml.Linq.XName ParameterNameXName = System.Xml.Linq.XName.Get("ParameterName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); /// <summary> /// <para> @@ -29415,6 +32080,9 @@ public SqlTaskParameterBindingType() { public virtual string ParameterName { get { XAttribute x = this.Attribute(ParameterNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29422,6 +32090,10 @@ public virtual string ParameterName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DtsVariableNameXName = System.Xml.Linq.XName.Get("DtsVariableName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29430,6 +32102,9 @@ public virtual string ParameterName { public virtual string DtsVariableName { get { XAttribute x = this.Attribute(DtsVariableNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29437,6 +32112,10 @@ public virtual string DtsVariableName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParameterDirectionXName = System.Xml.Linq.XName.Get("ParameterDirection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29448,13 +32127,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.ParameterDirectionEnum? Par if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.ParameterDirectionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.ParameterDirectionEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.ParameterDirectionEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.ParameterDirectionEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.ParameterDirectionEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ParameterDirectionXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ParameterDirectionXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ParameterDirectionXName, value.ToString(), "ParameterDirection", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.ParameterDirectionEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DataTypeXName = System.Xml.Linq.XName.Get("DataType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29473,6 +32161,10 @@ public virtual System.Int32? DataType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ParameterSizeXName = System.Xml.Linq.XName.Get("ParameterSize", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29491,6 +32183,12 @@ public virtual System.Int32? ParameterSize { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskParameterBindingType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29511,14 +32209,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskParameterBindingType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public enum ParameterDirectionEnum { @@ -29532,33 +32222,31 @@ public enum ParameterDirectionEnum { public sealed class ParameterDirectionEnumValidator { + private ParameterDirectionEnumValidator() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { "Input", "Output", "ReturnValue"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); - - private ParameterDirectionEnumValidator() { - } } public partial class SqlTaskResultBindingType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultNameXName = System.Xml.Linq.XName.Get("ResultName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DtsVariableNameXName = System.Xml.Linq.XName.Get("DtsVariableName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskResultBindingType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - public static explicit operator SqlTaskResultBindingType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskResultBindingType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskResultBindingType>(this); + } + public SqlTaskResultBindingType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultNameXName = System.Xml.Linq.XName.Get("ResultName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29567,6 +32255,9 @@ public SqlTaskResultBindingType() { public virtual string ResultName { get { XAttribute x = this.Attribute(ResultNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29574,6 +32265,10 @@ public virtual string ResultName { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DtsVariableNameXName = System.Xml.Linq.XName.Get("DtsVariableName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29582,6 +32277,9 @@ public virtual string ResultName { public virtual string DtsVariableName { get { XAttribute x = this.Attribute(DtsVariableNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29589,6 +32287,12 @@ public virtual string DtsVariableName { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskResultBindingType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29609,29 +32313,23 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskResultBindingType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class BackupDestinationListType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDestinationLocationXName = System.Xml.Linq.XName.Get("BackupDestinationLocation", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BackupDestinationListType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - public static explicit operator BackupDestinationListType(XElement xe) { return XTypedServices.ToXTypedElement<BackupDestinationListType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<BackupDestinationListType>(this); + } + public BackupDestinationListType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDestinationLocationXName = System.Xml.Linq.XName.Get("BackupDestinationLocation", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29640,6 +32338,9 @@ public BackupDestinationListType() { public virtual string BackupDestinationLocation { get { XAttribute x = this.Attribute(BackupDestinationLocationXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29647,6 +32348,12 @@ public virtual string BackupDestinationLocation { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("BackupDestinationListType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29667,81 +32374,76 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<BackupDestinationListType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public sealed class BackupActionEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private BackupActionEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class BackupDeviceTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 4, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private BackupDeviceTypeEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 4, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class BackupPhisycalDestinationTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), null); - private BackupPhisycalDestinationTypeEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), null); } public sealed class DestinationTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private DestinationTypeEnum() { } - } - - public sealed class BackupActionForExistingBackupsEnum { [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); + } + + public sealed class BackupActionForExistingBackupsEnum { private BackupActionForExistingBackupsEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class BackupCompressionActionEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private BackupCompressionActionEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class SqlTaskDatabaseSelectionTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 4, 0, null, 1, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private SqlTaskDatabaseSelectionTypeEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 4, 0, null, 1, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class SqlTaskTimeUnitsTypeEnum { + private SqlTaskTimeUnitsTypeEnum() { + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { 0, @@ -29749,78 +32451,49 @@ public sealed class SqlTaskTimeUnitsTypeEnum { 2, 3, 5}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - - private SqlTaskTimeUnitsTypeEnum() { - } } public sealed class SqlTaskFileTypeSelectedEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private SqlTaskFileTypeSelectedEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 1, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class SqlTaskUpdateStatisticsTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private SqlTaskUpdateStatisticsTypeEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 2, 0, null, 0, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public sealed class SqlTaskUpdateScanTypeEnum { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 3, 0, null, 2, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); - private SqlTaskUpdateScanTypeEnum() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(320)), null, 0, 0, null, 3, 0, null, 2, 0, null, 0, XmlSchemaWhiteSpace.Collapse)); } public partial class SqlTaskDataElementSqlTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public static explicit operator SqlTaskDataElementSqlTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementSqlTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementSqlTaskType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public SqlTaskDataElementSqlTaskType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementSqlTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - public static explicit operator SqlTaskDataElementSqlTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementSqlTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SqlTaskDataElementSqlTaskType() { - } + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); /// <summary> /// <para> @@ -29830,6 +32503,9 @@ public SqlTaskDataElementSqlTaskType() { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29837,6 +32513,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29855,6 +32535,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29866,13 +32568,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29884,13 +32613,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementSqlTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29902,13 +32640,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29917,6 +32664,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -29924,6 +32674,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29942,6 +32696,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -29953,13 +32711,24 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementSqlTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -29980,28 +32749,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementSqlTaskType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } } /// <summary> @@ -30011,146 +32758,10 @@ public enum BypassPrepareEnum { /// </summary> public partial class SqlTaskDataElementBackupTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SelectedDatabasesType> SelectedDatabasesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupActionXName = System.Xml.Linq.XName.Get("BackupAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupIsIncrementalXName = System.Xml.Linq.XName.Get("BackupIsIncremental", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupFileGroupsFilesXName = System.Xml.Linq.XName.Get("BackupFileGroupsFiles", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDeviceTypeXName = System.Xml.Linq.XName.Get("BackupDeviceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupPhisycalDestinationTypeXName = System.Xml.Linq.XName.Get("BackupPhisycalDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDestinationTypeXName = System.Xml.Linq.XName.Get("BackupDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDestinationAutoFolderPathXName = System.Xml.Linq.XName.Get("BackupDestinationAutoFolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupActionForExistingBackupsXName = System.Xml.Linq.XName.Get("BackupActionForExistingBackups", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupCreateSubFolderXName = System.Xml.Linq.XName.Get("BackupCreateSubFolder", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupFileExtensionXName = System.Xml.Linq.XName.Get("BackupFileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupVerifyIntegrityXName = System.Xml.Linq.XName.Get("BackupVerifyIntegrity", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExpireDateXName = System.Xml.Linq.XName.Get("ExpireDate", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RetainDaysXName = System.Xml.Linq.XName.Get("RetainDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName InDaysXName = System.Xml.Linq.XName.Get("InDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UseExpirationXName = System.Xml.Linq.XName.Get("UseExpiration", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupCompressionActionXName = System.Xml.Linq.XName.Get("BackupCompressionAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupTailLogXName = System.Xml.Linq.XName.Get("BackupTailLog", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementBackupTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SqlTaskDataElementBackupTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementBackupTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SqlTaskDataElementBackupTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementBackupTaskType>(this); } /// <summary> @@ -30161,6 +32772,13 @@ static SqlTaskDataElementBackupTaskType() { public SqlTaskDataElementBackupTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SelectedDatabasesType> SelectedDatabasesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -30191,6 +32809,10 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30199,6 +32821,9 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30206,6 +32831,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30224,6 +32853,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30235,13 +32886,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30253,13 +32931,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30271,13 +32958,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30286,6 +32982,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30293,6 +32992,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30311,6 +33014,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30322,13 +33029,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30347,6 +33063,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30358,13 +33096,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30373,6 +33120,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30380,6 +33130,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30388,6 +33142,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30395,6 +33152,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30406,13 +33185,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupActionXName = System.Xml.Linq.XName.Get("BackupAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30431,6 +33219,28 @@ public virtual System.Int32? BackupAction { } } + public enum BackupIsIncrementalEnum { + + True, + + False, + } + + public sealed class BackupIsIncrementalEnumValidator { + + private BackupIsIncrementalEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupIsIncrementalXName = System.Xml.Linq.XName.Get("BackupIsIncremental", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30442,13 +33252,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupIsIncrementalEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupIsIncrementalEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupIsIncrementalEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupIsIncrementalEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupIsIncrementalEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupIsIncrementalXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupIsIncrementalXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupIsIncrementalXName, value.ToString(), "BackupIsIncremental", BackupIsIncrementalEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupFileGroupsFilesXName = System.Xml.Linq.XName.Get("BackupFileGroupsFiles", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30457,6 +33276,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas public virtual string BackupFileGroupsFiles { get { XAttribute x = this.Attribute(BackupFileGroupsFilesXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30464,6 +33286,10 @@ public virtual string BackupFileGroupsFiles { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDeviceTypeXName = System.Xml.Linq.XName.Get("BackupDeviceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30482,6 +33308,10 @@ public virtual System.Int32? BackupDeviceType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupPhisycalDestinationTypeXName = System.Xml.Linq.XName.Get("BackupPhisycalDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30500,6 +33330,10 @@ public virtual System.Int32? BackupPhisycalDestinationType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDestinationTypeXName = System.Xml.Linq.XName.Get("BackupDestinationType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30518,6 +33352,10 @@ public virtual System.Int32? BackupDestinationType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDestinationAutoFolderPathXName = System.Xml.Linq.XName.Get("BackupDestinationAutoFolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30526,6 +33364,9 @@ public virtual System.Int32? BackupDestinationType { public virtual string BackupDestinationAutoFolderPath { get { XAttribute x = this.Attribute(BackupDestinationAutoFolderPathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30533,6 +33374,10 @@ public virtual string BackupDestinationAutoFolderPath { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupActionForExistingBackupsXName = System.Xml.Linq.XName.Get("BackupActionForExistingBackups", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30551,6 +33396,28 @@ public virtual System.Int32? BackupActionForExistingBackups { } } + public enum BackupCreateSubFolderEnum { + + True, + + False, + } + + public sealed class BackupCreateSubFolderEnumValidator { + + private BackupCreateSubFolderEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupCreateSubFolderXName = System.Xml.Linq.XName.Get("BackupCreateSubFolder", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30562,13 +33429,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupCreateSubFolderEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupCreateSubFolderEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupCreateSubFolderEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupCreateSubFolderEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupCreateSubFolderEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupCreateSubFolderXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupCreateSubFolderXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupCreateSubFolderXName, value.ToString(), "BackupCreateSubFolder", BackupCreateSubFolderEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupFileExtensionXName = System.Xml.Linq.XName.Get("BackupFileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30577,6 +33453,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas public virtual string BackupFileExtension { get { XAttribute x = this.Attribute(BackupFileExtensionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -30584,6 +33463,28 @@ public virtual string BackupFileExtension { } } + public enum BackupVerifyIntegrityEnum { + + True, + + False, + } + + public sealed class BackupVerifyIntegrityEnumValidator { + + private BackupVerifyIntegrityEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupVerifyIntegrityXName = System.Xml.Linq.XName.Get("BackupVerifyIntegrity", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30595,13 +33496,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupVerifyIntegrityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupVerifyIntegrityEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupVerifyIntegrityEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupVerifyIntegrityEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupVerifyIntegrityEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupVerifyIntegrityXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupVerifyIntegrityXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupVerifyIntegrityXName, value.ToString(), "BackupVerifyIntegrity", BackupVerifyIntegrityEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExpireDateXName = System.Xml.Linq.XName.Get("ExpireDate", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30620,6 +33530,10 @@ public virtual System.DateTime? ExpireDate { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RetainDaysXName = System.Xml.Linq.XName.Get("RetainDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30638,6 +33552,28 @@ public virtual System.Int32? RetainDays { } } + public enum InDaysEnum { + + True, + + False, + } + + public sealed class InDaysEnumValidator { + + private InDaysEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName InDaysXName = System.Xml.Linq.XName.Get("InDays", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30649,13 +33585,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.InDaysEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.InDaysEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.InDaysEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.InDaysEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, InDaysEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(InDaysXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(InDaysXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(InDaysXName, value.ToString(), "InDays", InDaysEnumValidator.TypeDefinition); + } + } + } + + public enum UseExpirationEnum { + + True, + + False, + } + + public sealed class UseExpirationEnumValidator { + + private UseExpirationEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UseExpirationXName = System.Xml.Linq.XName.Get("UseExpiration", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30667,13 +33630,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.UseExpirationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.UseExpirationEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.UseExpirationEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.UseExpirationEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, UseExpirationEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(UseExpirationXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(UseExpirationXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(UseExpirationXName, value.ToString(), "UseExpiration", UseExpirationEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupCompressionActionXName = System.Xml.Linq.XName.Get("BackupCompressionAction", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30692,6 +33664,28 @@ public virtual System.Int32? BackupCompressionAction { } } + public enum BackupTailLogEnum { + + True, + + False, + } + + public sealed class BackupTailLogEnumValidator { + + private BackupTailLogEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupTailLogXName = System.Xml.Linq.XName.Get("BackupTailLog", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30703,13 +33697,32 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupTailLogEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupTailLogEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupTailLogEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTaskType.BackupTailLogEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BackupTailLogEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BackupTailLogXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BackupTailLogXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BackupTailLogXName, value.ToString(), "BackupTailLog", BackupTailLogEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementBackupTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + static SqlTaskDataElementBackupTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -30717,6 +33730,13 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementBackupTas } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -30737,194 +33757,36 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + /// <summary> + /// <para> + /// Regular expression: (SelectedDatabases*, BackupDestinationList*) + /// </para> + /// </summary> + public partial class SqlTaskDataElementCheckIntegrityTaskType : XTypedElement, IXMetaData { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementBackupTaskType>(this); - } + public static explicit operator SqlTaskDataElementCheckIntegrityTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementCheckIntegrityTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static void BuildElementDictionary() { - localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementCheckIntegrityTaskType>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; + /// <summary> + /// <para> + /// Regular expression: (SelectedDatabases*, BackupDestinationList*) + /// </para> + /// </summary> + public SqlTaskDataElementCheckIntegrityTaskType() { } - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } - - public enum BackupIsIncrementalEnum { - - True, - - False, - } - - public enum BackupCreateSubFolderEnum { - - True, - - False, - } - - public enum BackupVerifyIntegrityEnum { - - True, - - False, - } - - public enum InDaysEnum { - - True, - - False, - } - - public enum UseExpirationEnum { - - True, - - False, - } - - public enum BackupTailLogEnum { - - True, - - False, - } - } - - /// <summary> - /// <para> - /// Regular expression: (SelectedDatabases*, BackupDestinationList*) - /// </para> - /// </summary> - public partial class SqlTaskDataElementCheckIntegrityTaskType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedList<SelectedDatabasesType> SelectedDatabasesField; - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BackupDestinationListXName = System.Xml.Linq.XName.Get("BackupDestinationList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<BackupDestinationListType> BackupDestinationListField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IncludeIndexesXName = System.Xml.Linq.XName.Get("IncludeIndexes", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementCheckIntegrityTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - public static explicit operator SqlTaskDataElementCheckIntegrityTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementCheckIntegrityTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - static SqlTaskDataElementCheckIntegrityTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName), new NamedContentModelEntity(BackupDestinationListXName)); - } - - /// <summary> - /// <para> - /// Regular expression: (SelectedDatabases*, BackupDestinationList*) - /// </para> - /// </summary> - public SqlTaskDataElementCheckIntegrityTaskType() { - } - /// <summary> /// <para> /// Occurrence: optional, repeating @@ -30955,6 +33817,13 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BackupDestinationListXName = System.Xml.Linq.XName.Get("BackupDestinationList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<BackupDestinationListType> BackupDestinationListField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -30985,6 +33854,10 @@ public virtual IList<BackupDestinationListType> BackupDestinationList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -30993,6 +33866,9 @@ public virtual IList<BackupDestinationListType> BackupDestinationList { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31000,6 +33876,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31018,6 +33898,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31029,13 +33931,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckInte if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31047,13 +33976,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckInte if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31065,13 +34003,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31080,6 +34027,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31087,6 +34037,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31105,6 +34059,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31116,13 +34074,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31141,6 +34108,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31152,13 +34141,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckInte if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31167,6 +34165,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckInte public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31174,6 +34175,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31182,6 +34187,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31189,6 +34197,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31200,13 +34230,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckInte if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } + } + } + + public enum IncludeIndexesEnum { + + True, + + False, + } + + public sealed class IncludeIndexesEnumValidator { + + private IncludeIndexesEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IncludeIndexesXName = System.Xml.Linq.XName.Get("IncludeIndexes", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31218,13 +34275,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckInte if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IncludeIndexesEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IncludeIndexesEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IncludeIndexesEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementCheckIntegrityTaskType.IncludeIndexesEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IncludeIndexesEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IncludeIndexesXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IncludeIndexesXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IncludeIndexesXName, value.ToString(), "IncludeIndexes", IncludeIndexesEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31243,6 +34309,21 @@ public virtual System.Int32? DatabaseSelectionType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementCheckIntegrityTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + static SqlTaskDataElementCheckIntegrityTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName), new NamedContentModelEntity(BackupDestinationListXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); + localElementDictionary.Add(BackupDestinationListXName, typeof(BackupDestinationListType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -31250,6 +34331,13 @@ public virtual System.Int32? DatabaseSelectionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -31270,120 +34358,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementCheckIntegrityTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); - localElementDictionary.Add(BackupDestinationListXName, typeof(BackupDestinationListType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } - - public enum IncludeIndexesEnum { - - True, - - False, - } } public partial class SqlTaskDataElementAgentJobTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public static explicit operator SqlTaskDataElementAgentJobTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementAgentJobTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementAgentJobTaskType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public SqlTaskDataElementAgentJobTaskType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AgentJobIDXName = System.Xml.Linq.XName.Get("AgentJobID", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementAgentJobTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - public static explicit operator SqlTaskDataElementAgentJobTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementAgentJobTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SqlTaskDataElementAgentJobTaskType() { - } + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); /// <summary> /// <para> @@ -31393,6 +34383,9 @@ public SqlTaskDataElementAgentJobTaskType() { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31400,6 +34393,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31418,6 +34415,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31429,13 +34448,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobT if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31447,13 +34493,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobT if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31465,13 +34520,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31480,6 +34544,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31487,6 +34554,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31505,6 +34576,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31516,13 +34591,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31541,24 +34625,55 @@ public virtual System.Int32? ServerVersion { } } - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.ExtendedLoggingEnum? ExtendedLogging { - get { + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.ExtendedLoggingEnum? ExtendedLogging { + get { XAttribute x = this.Attribute(ExtendedLoggingXName); if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31567,6 +34682,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobT public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31574,6 +34692,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31582,6 +34704,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31589,6 +34714,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31600,13 +34747,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobT if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AgentJobIDXName = System.Xml.Linq.XName.Get("AgentJobID", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31615,6 +34771,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementAgentJobT public virtual string AgentJobID { get { XAttribute x = this.Attribute(AgentJobIDXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31622,6 +34781,12 @@ public virtual string AgentJobID { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementAgentJobTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -31642,124 +34807,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementAgentJobTaskType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } } public partial class SqlTaskDataElementHistoryCleanupTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveBackupRestoreHistoryXName = System.Xml.Linq.XName.Get("RemoveBackupRestoreHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveAgentHistoryXName = System.Xml.Linq.XName.Get("RemoveAgentHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public static explicit operator SqlTaskDataElementHistoryCleanupTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementHistoryCleanupTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveDbMaintHistoryXName = System.Xml.Linq.XName.Get("RemoveDbMaintHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementHistoryCleanupTaskType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveOlderThanXName = System.Xml.Linq.XName.Get("RemoveOlderThan", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public SqlTaskDataElementHistoryCleanupTaskType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeUnitsTypeXName = System.Xml.Linq.XName.Get("TimeUnitsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementHistoryCleanupTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - public static explicit operator SqlTaskDataElementHistoryCleanupTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementHistoryCleanupTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SqlTaskDataElementHistoryCleanupTaskType() { - } + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); /// <summary> /// <para> @@ -31769,6 +34832,9 @@ public SqlTaskDataElementHistoryCleanupTaskType() { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31776,6 +34842,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31794,6 +34864,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31805,13 +34897,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31823,13 +34942,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31841,13 +34969,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31856,6 +34993,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31863,6 +35003,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31881,6 +35025,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31892,13 +35040,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31917,6 +35074,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31928,13 +35107,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31943,6 +35131,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31950,6 +35141,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31958,6 +35153,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -31965,6 +35163,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31976,13 +35196,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } + } + } + + public enum RemoveBackupRestoreHistoryEnum { + + True, + + False, + } + + public sealed class RemoveBackupRestoreHistoryEnumValidator { + + private RemoveBackupRestoreHistoryEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveBackupRestoreHistoryXName = System.Xml.Linq.XName.Get("RemoveBackupRestoreHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -31994,13 +35241,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveBackupRestoreHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveBackupRestoreHistoryEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveBackupRestoreHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveBackupRestoreHistoryEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RemoveBackupRestoreHistoryEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RemoveBackupRestoreHistoryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RemoveBackupRestoreHistoryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RemoveBackupRestoreHistoryXName, value.ToString(), "RemoveBackupRestoreHistory", RemoveBackupRestoreHistoryEnumValidator.TypeDefinition); + } + } + } + + public enum RemoveAgentHistoryEnum { + + True, + + False, + } + + public sealed class RemoveAgentHistoryEnumValidator { + + private RemoveAgentHistoryEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveAgentHistoryXName = System.Xml.Linq.XName.Get("RemoveAgentHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32012,13 +35286,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveAgentHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveAgentHistoryEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveAgentHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveAgentHistoryEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RemoveAgentHistoryEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RemoveAgentHistoryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RemoveAgentHistoryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RemoveAgentHistoryXName, value.ToString(), "RemoveAgentHistory", RemoveAgentHistoryEnumValidator.TypeDefinition); + } + } + } + + public enum RemoveDbMaintHistoryEnum { + + True, + + False, + } + + public sealed class RemoveDbMaintHistoryEnumValidator { + + private RemoveDbMaintHistoryEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveDbMaintHistoryXName = System.Xml.Linq.XName.Get("RemoveDbMaintHistory", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32030,13 +35331,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCl if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveDbMaintHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveDbMaintHistoryEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveDbMaintHistoryEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementHistoryCleanupTaskType.RemoveDbMaintHistoryEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, RemoveDbMaintHistoryEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(RemoveDbMaintHistoryXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(RemoveDbMaintHistoryXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(RemoveDbMaintHistoryXName, value.ToString(), "RemoveDbMaintHistory", RemoveDbMaintHistoryEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveOlderThanXName = System.Xml.Linq.XName.Get("RemoveOlderThan", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32055,6 +35365,10 @@ public virtual System.Int32? RemoveOlderThan { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeUnitsTypeXName = System.Xml.Linq.XName.Get("TimeUnitsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32073,6 +35387,12 @@ public virtual System.Int32? TimeUnitsType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementHistoryCleanupTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -32093,248 +35413,183 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class SqlTaskDataElementMaintenanceFileCleanupTaskType : XTypedElement, IXMetaData { + + public static explicit operator SqlTaskDataElementMaintenanceFileCleanupTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementMaintenanceFileCleanupTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementHistoryCleanupTaskType>(this); + return XTypedServices.CloneXTypedElement<SqlTaskDataElementMaintenanceFileCleanupTaskType>(this); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public SqlTaskDataElementMaintenanceFileCleanupTaskType() { } - public enum IsStoredProcEnum { - - True, - - False, + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual string Connection { + get { + XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + set { + this.SetAttribute(ConnectionXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } } - public enum BypassPrepareEnum { - - True, - - False, + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual System.Int32? TimeOut { + get { + XAttribute x = this.Attribute(TimeOutXName); + if ((x == null)) { + return null; + } + return XTypedServices.ParseValue<int>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } + set { + this.SetAttribute(TimeOutXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + } } - public enum ExtendedLoggingEnum { + public enum IsStoredProcEnum { True, False, } - public enum IgnoreDatabasesInNotOnlineStateEnum { + public sealed class IsStoredProcEnumValidator { - True, + private IsStoredProcEnumValidator() { + } - False, + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } - public enum RemoveBackupRestoreHistoryEnum { - - True, - - False, + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IsStoredProcEnum? IsStoredProc { + get { + XAttribute x = this.Attribute(IsStoredProcXName); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); + } + set { + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } } - public enum RemoveAgentHistoryEnum { + public enum BypassPrepareEnum { True, False, } - public enum RemoveDbMaintHistoryEnum { + public sealed class BypassPrepareEnumValidator { - True, + private BypassPrepareEnumValidator() { + } - False, + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } - } - - public partial class SqlTaskDataElementMaintenanceFileCleanupTaskType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> + public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.BypassPrepareEnum? BypassPrepare { + get { + XAttribute x = this.Attribute(BypassPrepareXName); + if ((x == null)) { + return null; + } + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); + } + set { + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileTypeSelectedXName = System.Xml.Linq.XName.Get("FileTypeSelected", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FilePathXName = System.Xml.Linq.XName.Get("FilePath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FolderPathXName = System.Xml.Linq.XName.Get("FolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CleanSubFoldersXName = System.Xml.Linq.XName.Get("CleanSubFolders", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName FileExtensionXName = System.Xml.Linq.XName.Get("FileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName AgeBasedXName = System.Xml.Linq.XName.Get("AgeBased", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DeleteSpecificFileXName = System.Xml.Linq.XName.Get("DeleteSpecificFile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName RemoveOlderThanXName = System.Xml.Linq.XName.Get("RemoveOlderThan", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeUnitsTypeXName = System.Xml.Linq.XName.Get("TimeUnitsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementMaintenanceFileCleanupTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - public static explicit operator SqlTaskDataElementMaintenanceFileCleanupTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementMaintenanceFileCleanupTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SqlTaskDataElementMaintenanceFileCleanupTaskType() { - } - - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual string Connection { - get { - XAttribute x = this.Attribute(ConnectionXName); - return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - set { - this.SetAttribute(ConnectionXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); /// <summary> /// <para> /// Occurrence: optional /// </para> /// </summary> - public virtual System.Int32? TimeOut { + public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { get { - XAttribute x = this.Attribute(TimeOutXName); + XAttribute x = this.Attribute(SqlStmtSourceTypeXName); if ((x == null)) { return null; } - return XTypedServices.ParseValue<int>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(TimeOutXName, value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype); - } - } - - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IsStoredProcEnum? IsStoredProc { - get { - XAttribute x = this.Attribute(IsStoredProcXName); - if ((x == null)) { - return null; + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); - } - set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } - - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.BypassPrepareEnum? BypassPrepare { - get { - XAttribute x = this.Attribute(BypassPrepareXName); - if ((x == null)) { - return null; + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); - } - set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } } - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> - public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { - get { - XAttribute x = this.Attribute(SqlStmtSourceTypeXName); - if ((x == null)) { - return null; - } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); - } - set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); - } - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); /// <summary> /// <para> @@ -32344,6 +35599,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32351,6 +35609,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32369,6 +35631,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32380,13 +35646,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32405,6 +35680,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32416,13 +35713,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32431,6 +35737,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32438,6 +35747,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32446,6 +35759,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32453,6 +35769,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32464,13 +35802,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileTypeSelectedXName = System.Xml.Linq.XName.Get("FileTypeSelected", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32479,6 +35826,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan public virtual string FileTypeSelected { get { XAttribute x = this.Attribute(FileTypeSelectedXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32486,6 +35836,10 @@ public virtual string FileTypeSelected { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FilePathXName = System.Xml.Linq.XName.Get("FilePath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32494,6 +35848,9 @@ public virtual string FileTypeSelected { public virtual string FilePath { get { XAttribute x = this.Attribute(FilePathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32501,6 +35858,10 @@ public virtual string FilePath { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FolderPathXName = System.Xml.Linq.XName.Get("FolderPath", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32509,6 +35870,9 @@ public virtual string FilePath { public virtual string FolderPath { get { XAttribute x = this.Attribute(FolderPathXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32516,6 +35880,28 @@ public virtual string FolderPath { } } + public enum CleanSubFoldersEnum { + + True, + + False, + } + + public sealed class CleanSubFoldersEnumValidator { + + private CleanSubFoldersEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CleanSubFoldersXName = System.Xml.Linq.XName.Get("CleanSubFolders", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32527,13 +35913,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.CleanSubFoldersEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.CleanSubFoldersEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.CleanSubFoldersEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.CleanSubFoldersEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, CleanSubFoldersEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(CleanSubFoldersXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(CleanSubFoldersXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(CleanSubFoldersXName, value.ToString(), "CleanSubFolders", CleanSubFoldersEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName FileExtensionXName = System.Xml.Linq.XName.Get("FileExtension", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32542,6 +35937,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan public virtual string FileExtension { get { XAttribute x = this.Attribute(FileExtensionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32549,6 +35947,28 @@ public virtual string FileExtension { } } + public enum AgeBasedEnum { + + True, + + False, + } + + public sealed class AgeBasedEnumValidator { + + private AgeBasedEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName AgeBasedXName = System.Xml.Linq.XName.Get("AgeBased", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32560,13 +35980,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.AgeBasedEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.AgeBasedEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.AgeBasedEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.AgeBasedEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, AgeBasedEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(AgeBasedXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(AgeBasedXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(AgeBasedXName, value.ToString(), "AgeBased", AgeBasedEnumValidator.TypeDefinition); + } + } + } + + public enum DeleteSpecificFileEnum { + + True, + + False, + } + + public sealed class DeleteSpecificFileEnumValidator { + + private DeleteSpecificFileEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DeleteSpecificFileXName = System.Xml.Linq.XName.Get("DeleteSpecificFile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32578,13 +36025,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenan if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.DeleteSpecificFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.DeleteSpecificFileEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.DeleteSpecificFileEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementMaintenanceFileCleanupTaskType.DeleteSpecificFileEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, DeleteSpecificFileEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DeleteSpecificFileXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DeleteSpecificFileXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DeleteSpecificFileXName, value.ToString(), "DeleteSpecificFile", DeleteSpecificFileEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName RemoveOlderThanXName = System.Xml.Linq.XName.Get("RemoveOlderThan", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32603,6 +36059,10 @@ public virtual System.Int32? RemoveOlderThan { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeUnitsTypeXName = System.Xml.Linq.XName.Get("TimeUnitsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32621,6 +36081,12 @@ public virtual System.Int32? TimeUnitsType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementMaintenanceFileCleanupTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -32641,63 +36107,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementMaintenanceFileCleanupTaskType>(this); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } - - public enum CleanSubFoldersEnum { - - True, - - False, - } - - public enum AgeBasedEnum { - - True, - - False, - } - - public enum DeleteSpecificFileEnum { - - True, - - False, - } } /// <summary> @@ -32707,90 +36116,10 @@ public enum DeleteSpecificFileEnum { /// </summary> public partial class SqlTaskDataElementNotifyOperatorTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName OperatorNotifyListXName = System.Xml.Linq.XName.Get("OperatorNotifyList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<OperatorNotifyListType> OperatorNotifyListField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName MessageXName = System.Xml.Linq.XName.Get("Message", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SubjectXName = System.Xml.Linq.XName.Get("Subject", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementNotifyOperatorTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SqlTaskDataElementNotifyOperatorTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementNotifyOperatorTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SqlTaskDataElementNotifyOperatorTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(OperatorNotifyListXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementNotifyOperatorTaskType>(this); } /// <summary> @@ -32801,6 +36130,13 @@ static SqlTaskDataElementNotifyOperatorTaskType() { public SqlTaskDataElementNotifyOperatorTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName OperatorNotifyListXName = System.Xml.Linq.XName.Get("OperatorNotifyList", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<OperatorNotifyListType> OperatorNotifyListField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -32831,6 +36167,10 @@ public virtual IList<OperatorNotifyListType> OperatorNotifyList { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32839,6 +36179,9 @@ public virtual IList<OperatorNotifyListType> OperatorNotifyList { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32846,6 +36189,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32864,6 +36211,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32875,13 +36244,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOpe if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32893,13 +36289,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOpe if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32911,13 +36316,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32926,6 +36340,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -32933,6 +36350,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32951,6 +36372,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32962,13 +36387,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -32987,24 +36421,55 @@ public virtual System.Int32? ServerVersion { } } - /// <summary> - /// <para> - /// Occurrence: optional - /// </para> - /// </summary> + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + /// <summary> + /// <para> + /// Occurrence: optional + /// </para> + /// </summary> public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.ExtendedLoggingEnum? ExtendedLogging { get { XAttribute x = this.Attribute(ExtendedLoggingXName); if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33013,6 +36478,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOpe public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33020,6 +36488,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33028,6 +36500,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33035,6 +36510,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33046,13 +36543,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOpe if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOperatorTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName MessageXName = System.Xml.Linq.XName.Get("Message", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33061,6 +36567,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementNotifyOpe public virtual string Message { get { XAttribute x = this.Attribute(MessageXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33068,6 +36577,10 @@ public virtual string Message { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ProfileXName = System.Xml.Linq.XName.Get("Profile", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33076,6 +36589,9 @@ public virtual string Message { public virtual string Profile { get { XAttribute x = this.Attribute(ProfileXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33083,6 +36599,10 @@ public virtual string Profile { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SubjectXName = System.Xml.Linq.XName.Get("Subject", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33091,6 +36611,9 @@ public virtual string Profile { public virtual string Subject { get { XAttribute x = this.Attribute(SubjectXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33098,6 +36621,20 @@ public virtual string Subject { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementNotifyOperatorTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + static SqlTaskDataElementNotifyOperatorTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(OperatorNotifyListXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(OperatorNotifyListXName, typeof(OperatorNotifyListType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -33105,6 +36642,13 @@ public virtual string Subject { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -33125,46 +36669,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementNotifyOperatorTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(OperatorNotifyListXName, typeof(OperatorNotifyListType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } } /// <summary> @@ -33174,98 +36678,10 @@ public enum IgnoreDatabasesInNotOnlineStateEnum { /// </summary> public partial class SqlTaskDataElementRebuildIndexTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SelectedDatabasesType> SelectedDatabasesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UseOriginalAmountXName = System.Xml.Linq.XName.Get("UseOriginalAmount", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName PercentageXName = System.Xml.Linq.XName.Get("Percentage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SortXName = System.Xml.Linq.XName.Get("Sort", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName KeepOnlineXName = System.Xml.Linq.XName.Get("KeepOnline", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementRebuildIndexTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SqlTaskDataElementRebuildIndexTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementRebuildIndexTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SqlTaskDataElementRebuildIndexTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementRebuildIndexTaskType>(this); } /// <summary> @@ -33276,6 +36692,13 @@ static SqlTaskDataElementRebuildIndexTaskType() { public SqlTaskDataElementRebuildIndexTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SelectedDatabasesType> SelectedDatabasesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -33306,6 +36729,10 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33314,6 +36741,9 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33321,6 +36751,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33339,6 +36773,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33350,13 +36806,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } } } + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33368,13 +36851,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33386,13 +36878,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33401,6 +36902,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33408,6 +36912,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33426,6 +36934,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33437,13 +36949,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33462,6 +36983,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33473,13 +37016,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33488,6 +37040,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33495,6 +37050,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33503,6 +37062,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33510,6 +37072,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33521,13 +37105,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } + } + } + + public enum UseOriginalAmountEnum { + + True, + + False, + } + + public sealed class UseOriginalAmountEnumValidator { + + private UseOriginalAmountEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UseOriginalAmountXName = System.Xml.Linq.XName.Get("UseOriginalAmount", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33539,13 +37150,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.UseOriginalAmountEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.UseOriginalAmountEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.UseOriginalAmountEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.UseOriginalAmountEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, UseOriginalAmountEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(UseOriginalAmountXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(UseOriginalAmountXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(UseOriginalAmountXName, value.ToString(), "UseOriginalAmount", UseOriginalAmountEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName PercentageXName = System.Xml.Linq.XName.Get("Percentage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33564,6 +37184,28 @@ public virtual System.Int32? Percentage { } } + public enum SortEnum { + + True, + + False, + } + + public sealed class SortEnumValidator { + + private SortEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SortXName = System.Xml.Linq.XName.Get("Sort", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33575,13 +37217,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.SortEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.SortEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.SortEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.SortEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, SortEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SortXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SortXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SortXName, value.ToString(), "Sort", SortEnumValidator.TypeDefinition); + } + } + } + + public enum KeepOnlineEnum { + + True, + + False, + } + + public sealed class KeepOnlineEnumValidator { + + private KeepOnlineEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName KeepOnlineXName = System.Xml.Linq.XName.Get("KeepOnline", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33593,13 +37262,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIn if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.KeepOnlineEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.KeepOnlineEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.KeepOnlineEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementRebuildIndexTaskType.KeepOnlineEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, KeepOnlineEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(KeepOnlineXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(KeepOnlineXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(KeepOnlineXName, value.ToString(), "KeepOnline", KeepOnlineEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33618,6 +37296,20 @@ public virtual System.Int32? DatabaseSelectionType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementRebuildIndexTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + static SqlTaskDataElementRebuildIndexTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -33625,6 +37317,13 @@ public virtual System.Int32? DatabaseSelectionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -33645,67 +37344,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementRebuildIndexTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } - - public enum UseOriginalAmountEnum { - - True, - - False, - } - - public enum SortEnum { - - True, - - False, - } - - public enum KeepOnlineEnum { - - True, - - False, - } } /// <summary> @@ -33715,86 +37353,10 @@ public enum KeepOnlineEnum { /// </summary> public partial class SqlTaskDataElementReorganizeIndexTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SelectedDatabasesType> SelectedDatabasesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CompactLargeObjectsXName = System.Xml.Linq.XName.Get("CompactLargeObjects", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementReorganizeIndexTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SqlTaskDataElementReorganizeIndexTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementReorganizeIndexTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SqlTaskDataElementReorganizeIndexTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementReorganizeIndexTaskType>(this); } /// <summary> @@ -33805,6 +37367,13 @@ static SqlTaskDataElementReorganizeIndexTaskType() { public SqlTaskDataElementReorganizeIndexTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SelectedDatabasesType> SelectedDatabasesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -33835,6 +37404,10 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33843,6 +37416,9 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33850,6 +37426,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33868,6 +37448,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33879,13 +37481,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganiz if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } } } + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33897,13 +37526,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganiz if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33915,13 +37553,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33930,6 +37577,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -33937,6 +37587,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33955,6 +37609,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33966,13 +37624,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -33991,6 +37658,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34002,13 +37691,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganiz if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34017,6 +37715,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganiz public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34024,6 +37725,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34032,6 +37737,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34039,6 +37747,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34050,13 +37780,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganiz if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + public enum CompactLargeObjectsEnum { + + True, + + False, + } + + public sealed class CompactLargeObjectsEnumValidator { + + private CompactLargeObjectsEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CompactLargeObjectsXName = System.Xml.Linq.XName.Get("CompactLargeObjects", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34068,13 +37825,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganiz if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.CompactLargeObjectsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.CompactLargeObjectsEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.CompactLargeObjectsEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementReorganizeIndexTaskType.CompactLargeObjectsEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, CompactLargeObjectsEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(CompactLargeObjectsXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(CompactLargeObjectsXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(CompactLargeObjectsXName, value.ToString(), "CompactLargeObjects", CompactLargeObjectsEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34093,177 +37859,67 @@ public virtual System.Int32? DatabaseSelectionType { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } - } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementReorganizeIndexTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - System.Xml.Linq.XName IXMetaData.SchemaName { - get { - return xName; - } + static SqlTaskDataElementReorganizeIndexTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return SchemaOrigin.Fragment; - } + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { - return LinqToXsdTypeManager.Instance; + return localElementDictionary; } } - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementReorganizeIndexTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); - } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; ContentModelEntity IXMetaData.GetContentModel() { return contentModel; } - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } - - public enum CompactLargeObjectsEnum { - - True, - - False, - } - } - - /// <summary> - /// <para> - /// Regular expression: (SelectedDatabases*) - /// </para> - /// </summary> - public partial class SqlTaskDataElementShrinkDatabaseTaskType : XTypedElement, IXMetaData { - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SelectedDatabasesType> SelectedDatabasesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSizeLimitXName = System.Xml.Linq.XName.Get("DatabaseSizeLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabasePercentLimitXName = System.Xml.Linq.XName.Get("DatabasePercentLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseReturnFreeSpaceXName = System.Xml.Linq.XName.Get("DatabaseReturnFreeSpace", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementShrinkDatabaseTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + System.Xml.Linq.XName IXMetaData.SchemaName { + get { + return xName; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.Fragment; + } + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + } + + /// <summary> + /// <para> + /// Regular expression: (SelectedDatabases*) + /// </para> + /// </summary> + public partial class SqlTaskDataElementShrinkDatabaseTaskType : XTypedElement, IXMetaData { public static explicit operator SqlTaskDataElementShrinkDatabaseTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementShrinkDatabaseTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SqlTaskDataElementShrinkDatabaseTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementShrinkDatabaseTaskType>(this); } /// <summary> @@ -34274,6 +37930,13 @@ static SqlTaskDataElementShrinkDatabaseTaskType() { public SqlTaskDataElementShrinkDatabaseTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SelectedDatabasesType> SelectedDatabasesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -34304,6 +37967,10 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34312,6 +37979,9 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34319,6 +37989,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34337,6 +38011,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34348,13 +38044,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34366,13 +38089,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34384,13 +38116,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34399,6 +38140,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34406,6 +38150,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34424,6 +38172,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34435,13 +38187,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34460,6 +38221,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34471,13 +38254,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34486,6 +38278,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDat public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34493,6 +38288,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34501,6 +38300,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34508,6 +38310,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34519,13 +38343,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSizeLimitXName = System.Xml.Linq.XName.Get("DatabaseSizeLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34544,6 +38377,10 @@ public virtual System.Int32? DatabaseSizeLimit { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabasePercentLimitXName = System.Xml.Linq.XName.Get("DatabasePercentLimit", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34562,6 +38399,28 @@ public virtual System.Int32? DatabasePercentLimit { } } + public enum DatabaseReturnFreeSpaceEnum { + + True, + + False, + } + + public sealed class DatabaseReturnFreeSpaceEnumValidator { + + private DatabaseReturnFreeSpaceEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseReturnFreeSpaceXName = System.Xml.Linq.XName.Get("DatabaseReturnFreeSpace", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34573,13 +38432,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDat if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.DatabaseReturnFreeSpaceEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.DatabaseReturnFreeSpaceEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.DatabaseReturnFreeSpaceEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementShrinkDatabaseTaskType.DatabaseReturnFreeSpaceEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, DatabaseReturnFreeSpaceEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(DatabaseReturnFreeSpaceXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(DatabaseReturnFreeSpaceXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(DatabaseReturnFreeSpaceXName, value.ToString(), "DatabaseReturnFreeSpace", DatabaseReturnFreeSpaceEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34598,6 +38466,20 @@ public virtual System.Int32? DatabaseSelectionType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementShrinkDatabaseTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + static SqlTaskDataElementShrinkDatabaseTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -34605,6 +38487,13 @@ public virtual System.Int32? DatabaseSelectionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -34625,53 +38514,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementShrinkDatabaseTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } - - public enum DatabaseReturnFreeSpaceEnum { - - True, - - False, - } } /// <summary> @@ -34681,94 +38523,10 @@ public enum DatabaseReturnFreeSpaceEnum { /// </summary> public partial class SqlTaskDataElementUpdateStatisticsTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<SelectedDatabasesType> SelectedDatabasesField; - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UpdateStatisticsTypeXName = System.Xml.Linq.XName.Get("UpdateStatisticsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UpdateScanTypeXName = System.Xml.Linq.XName.Get("UpdateScanType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName UpdateSampleValueXName = System.Xml.Linq.XName.Get("UpdateSampleValue", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementUpdateStatisticsTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - public static explicit operator SqlTaskDataElementUpdateStatisticsTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementUpdateStatisticsTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - static SqlTaskDataElementUpdateStatisticsTaskType() { - BuildElementDictionary(); - contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementUpdateStatisticsTaskType>(this); } /// <summary> @@ -34779,6 +38537,13 @@ static SqlTaskDataElementUpdateStatisticsTaskType() { public SqlTaskDataElementUpdateStatisticsTaskType() { } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SelectedDatabasesXName = System.Xml.Linq.XName.Get("SelectedDatabases", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private XTypedList<SelectedDatabasesType> SelectedDatabasesField; + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -34809,6 +38574,10 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34817,6 +38586,9 @@ public virtual IList<SelectedDatabasesType> SelectedDatabases { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34824,6 +38596,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34842,6 +38618,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34853,13 +38651,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateSta if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34871,13 +38696,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateSta if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34889,13 +38723,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34904,6 +38747,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34911,6 +38757,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34929,6 +38779,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34940,13 +38794,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34965,6 +38828,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34976,13 +38861,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateSta if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -34991,6 +38885,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateSta public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -34998,6 +38895,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35006,6 +38907,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35013,6 +38917,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35024,13 +38950,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateSta if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementUpdateStatisticsTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UpdateStatisticsTypeXName = System.Xml.Linq.XName.Get("UpdateStatisticsType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35049,6 +38984,10 @@ public virtual System.Int32? UpdateStatisticsType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UpdateScanTypeXName = System.Xml.Linq.XName.Get("UpdateScanType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35067,6 +39006,10 @@ public virtual System.Int32? UpdateScanType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName UpdateSampleValueXName = System.Xml.Linq.XName.Get("UpdateSampleValue", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35085,6 +39028,10 @@ public virtual System.Int32? UpdateSampleValue { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName DatabaseSelectionTypeXName = System.Xml.Linq.XName.Get("DatabaseSelectionType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35103,6 +39050,20 @@ public virtual System.Int32? DatabaseSelectionType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementUpdateStatisticsTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + static SqlTaskDataElementUpdateStatisticsTaskType() { + BuildElementDictionary(); + contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(SelectedDatabasesXName)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); + + private static void BuildElementDictionary() { + localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { @@ -35110,6 +39071,13 @@ public virtual System.Int32? DatabaseSelectionType { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private static ContentModelEntity contentModel; + + ContentModelEntity IXMetaData.GetContentModel() { + return contentModel; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35130,108 +39098,22 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementUpdateStatisticsTaskType>(this); - } - - private static void BuildElementDictionary() { - localElementDictionary.Add(SelectedDatabasesXName, typeof(SelectedDatabasesType)); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - - public enum IsStoredProcEnum { - - True, - - False, - } - - public enum BypassPrepareEnum { - - True, - - False, - } - - public enum ExtendedLoggingEnum { - - True, - - False, - } - - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, - } } public partial class SqlTaskDataElementTSQLExecuteTaskType : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public static explicit operator SqlTaskDataElementTSQLExecuteTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementTSQLExecuteTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public override XTypedElement Clone() { + return XTypedServices.CloneXTypedElement<SqlTaskDataElementTSQLExecuteTaskType>(this); + } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public SqlTaskDataElementTSQLExecuteTaskType() { + } [DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] - internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementTSQLExecuteTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); - - public static explicit operator SqlTaskDataElementTSQLExecuteTaskType(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskDataElementTSQLExecuteTaskType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public SqlTaskDataElementTSQLExecuteTaskType() { - } + protected internal static readonly System.Xml.Linq.XName ConnectionXName = System.Xml.Linq.XName.Get("Connection", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); /// <summary> /// <para> @@ -35241,6 +39123,9 @@ public SqlTaskDataElementTSQLExecuteTaskType() { public virtual string Connection { get { XAttribute x = this.Attribute(ConnectionXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35248,6 +39133,10 @@ public virtual string Connection { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TimeOutXName = System.Xml.Linq.XName.Get("TimeOut", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35266,6 +39155,28 @@ public virtual System.Int32? TimeOut { } } + public enum IsStoredProcEnum { + + True, + + False, + } + + public sealed class IsStoredProcEnumValidator { + + private IsStoredProcEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IsStoredProcXName = System.Xml.Linq.XName.Get("IsStoredProc", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35277,13 +39188,40 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IsStoredProcEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IsStoredProcEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IsStoredProcEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IsStoredProcEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IsStoredProcXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IsStoredProcXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IsStoredProcXName, value.ToString(), "IsStoredProc", IsStoredProcEnumValidator.TypeDefinition); + } + } + } + + public enum BypassPrepareEnum { + + True, + + False, + } + + public sealed class BypassPrepareEnumValidator { + + private BypassPrepareEnumValidator() { } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName BypassPrepareXName = System.Xml.Linq.XName.Get("BypassPrepare", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35295,13 +39233,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.BypassPrepareEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.BypassPrepareEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.BypassPrepareEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, BypassPrepareEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(BypassPrepareXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(BypassPrepareXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(BypassPrepareXName, value.ToString(), "BypassPrepare", BypassPrepareEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStmtSourceTypeXName = System.Xml.Linq.XName.Get("SqlStmtSourceType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35313,13 +39260,22 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.SourceTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.SourceTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(SqlStmtSourceTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(SqlStmtSourceTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(SqlStmtSourceTypeXName, value.ToString(), "SqlStmtSourceType", global::Microsoft.SqlServer.Dts.SourceTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName SqlStatementSourceXName = System.Xml.Linq.XName.Get("SqlStatementSource", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35328,6 +39284,9 @@ public virtual Microsoft.SqlServer.Dts.SourceTypeEnum? SqlStmtSourceType { public virtual string SqlStatementSource { get { XAttribute x = this.Attribute(SqlStatementSourceXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35335,6 +39294,10 @@ public virtual string SqlStatementSource { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName CodePageXName = System.Xml.Linq.XName.Get("CodePage", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35353,6 +39316,10 @@ public virtual System.Int32? CodePage { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ResultTypeXName = System.Xml.Linq.XName.Get("ResultType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35364,13 +39331,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum? ResultTy if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ResultTypeXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ResultTypeXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ResultTypeXName, value.ToString(), "ResultType", global::Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlResultTypeEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ServerVersionXName = System.Xml.Linq.XName.Get("ServerVersion", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35389,6 +39365,28 @@ public virtual System.Int32? ServerVersion { } } + public enum ExtendedLoggingEnum { + + True, + + False, + } + + public sealed class ExtendedLoggingEnumValidator { + + private ExtendedLoggingEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName ExtendedLoggingXName = System.Xml.Linq.XName.Get("ExtendedLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35400,13 +39398,22 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.ExtendedLoggingEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.ExtendedLoggingEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, ExtendedLoggingEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(ExtendedLoggingXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(ExtendedLoggingXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(ExtendedLoggingXName, value.ToString(), "ExtendedLogging", ExtendedLoggingEnumValidator.TypeDefinition); + } } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName LocalConnectionForLoggingXName = System.Xml.Linq.XName.Get("LocalConnectionForLogging", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35415,6 +39422,9 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecu public virtual string LocalConnectionForLogging { get { XAttribute x = this.Attribute(LocalConnectionForLoggingXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35422,6 +39432,10 @@ public virtual string LocalConnectionForLogging { } } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName TaskNameXName = System.Xml.Linq.XName.Get("TaskName", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35430,6 +39444,9 @@ public virtual string LocalConnectionForLogging { public virtual string TaskName { get { XAttribute x = this.Attribute(TaskNameXName); + if ((x == null)) { + return null; + } return XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); } set { @@ -35437,6 +39454,28 @@ public virtual string TaskName { } } + public enum IgnoreDatabasesInNotOnlineStateEnum { + + True, + + False, + } + + public sealed class IgnoreDatabasesInNotOnlineStateEnumValidator { + + private IgnoreDatabasesInNotOnlineStateEnumValidator() { + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = new Xml.Schema.Linq.AtomicSimpleTypeValidator(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)(16)), new object[] { + "True", + "False"}, 0, 0, null, null, 0, null, null, 0, null, 0, XmlSchemaWhiteSpace.Preserve)); + } + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [EditorBrowsable(EditorBrowsableState.Never)] + protected internal static readonly System.Xml.Linq.XName IgnoreDatabasesInNotOnlineStateXName = System.Xml.Linq.XName.Get("IgnoreDatabasesInNotOnlineState", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + /// <summary> /// <para> /// Occurrence: optional @@ -35448,13 +39487,24 @@ public virtual Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecu if ((x == null)) { return null; } - return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue<string>(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype)))); + return ((Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IgnoreDatabasesInNotOnlineStateEnum)(Enum.Parse(typeof(Microsoft.SqlServer.Dts.Tasks.Sqltask.SqlTaskDataElementTSQLExecuteTaskType.IgnoreDatabasesInNotOnlineStateEnum), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition)))); } set { - this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, value?.ToString(), XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + if (value == null) { + this.SetAttribute(IgnoreDatabasesInNotOnlineStateXName, null, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype); + } + else { + this.SetAttributeWithValidation(IgnoreDatabasesInNotOnlineStateXName, value.ToString(), "IgnoreDatabasesInNotOnlineState", IgnoreDatabasesInNotOnlineStateEnumValidator.TypeDefinition); + } } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskDataElementTSQLExecuteTaskType", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -35475,61 +39525,47 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } + } + + public partial class SqlTaskData : XTypedElement, IXMetaData { - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<SqlTaskDataElementTSQLExecuteTaskType>(this); + public void Save(string xmlFile) { + XTypedServices.Save(xmlFile, Untyped); } - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + public void Save(System.IO.TextWriter tw) { + XTypedServices.Save(tw, Untyped); } - public enum IsStoredProcEnum { - - True, - - False, + public void Save(System.Xml.XmlWriter xmlWriter) { + XTypedServices.Save(xmlWriter, Untyped); } - public enum BypassPrepareEnum { - - True, - - False, + public static SqlTaskData Load(string xmlFile) { + return XTypedServices.Load<SqlTaskData, SqlTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public enum ExtendedLoggingEnum { - - True, - - False, + public static SqlTaskData Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<SqlTaskData, SqlTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); } - public enum IgnoreDatabasesInNotOnlineStateEnum { - - True, - - False, + public static SqlTaskData Parse(string xml) { + return XTypedServices.Parse<SqlTaskData, SqlTaskDataType>(xml, LinqToXsdTypeManager.Instance); } - } - - public partial class SqlTaskData : XTypedElement, IXMetaData { - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private SqlTaskDataType ContentField; + public static explicit operator SqlTaskData(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskData, SqlTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskData", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + public override XTypedElement Clone() { + return new SqlTaskData(((SqlTaskDataType)(this.Content.Clone()))); + } - public static explicit operator SqlTaskData(XElement xe) { return XTypedServices.ToXTypedElement<SqlTaskData, SqlTaskDataType>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private SqlTaskDataType ContentField; public SqlTaskData() { SetInnerType(new SqlTaskDataType()); } - public SqlTaskData(SqlTaskDataType content) { - SetInnerType(content); - } - public override XElement Untyped { get { return base.Untyped; @@ -35546,6 +39582,15 @@ public virtual SqlTaskDataType Content { } } + private void SetInnerType(SqlTaskDataType ContentField) { + this.ContentField = ((SqlTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); + XTypedServices.SetName(this, this.ContentField); + } + + public SqlTaskData(SqlTaskDataType content) { + SetInnerType(content); + } + /// <summary> /// <para> /// Occurrence: optional, repeating @@ -36457,6 +40502,8 @@ public virtual System.Int32? DatabaseSelectionType { } } + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("SqlTaskData", "www.microsoft.com/sqlserver/dts/tasks/sqltask"); + Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { get { IXMetaData schemaMetaData = ((IXMetaData)(this.Content)); @@ -36470,6 +40517,10 @@ XTypedElement IXMetaData.Content { } } + ContentModelEntity IXMetaData.GetContentModel() { + return ContentModelEntity.Default; + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -36490,43 +40541,6 @@ ILinqToXsdTypeManager IXMetaData.TypeManager { return LinqToXsdTypeManager.Instance; } } - - public void Save(string xmlFile) { - XTypedServices.Save(xmlFile, Untyped); - } - - public void Save(System.IO.TextWriter tw) { - XTypedServices.Save(tw, Untyped); - } - - public void Save(System.Xml.XmlWriter xmlWriter) { - XTypedServices.Save(xmlWriter, Untyped); - } - - public static SqlTaskData Load(string xmlFile) { - return XTypedServices.Load<SqlTaskData, SqlTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static SqlTaskData Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<SqlTaskData, SqlTaskDataType>(xmlFile, LinqToXsdTypeManager.Instance); - } - - public static SqlTaskData Parse(string xml) { - return XTypedServices.Parse<SqlTaskData, SqlTaskDataType>(xml, LinqToXsdTypeManager.Instance); - } - - public override XTypedElement Clone() { - return new SqlTaskData(((SqlTaskDataType)(this.Content.Clone()))); - } - - private void SetInnerType(SqlTaskDataType ContentField) { - this.ContentField = ((SqlTaskDataType)(XTypedServices.GetCloneIfRooted(ContentField))); - XTypedServices.SetName(this, this.ContentField); - } - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; - } } public partial class XRootNamespace { @@ -36537,29 +40551,9 @@ public partial class XRootNamespace { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private XTypedElement rootObject; - - public SqlTaskData SqlTaskData { get {return rootObject as SqlTaskData; } } - private XRootNamespace() { } - public XRootNamespace(SqlTaskData root) { - this.doc = new XDocument(root.Untyped); - this.rootObject = root; - } - - public virtual XDocument XDocument { - get { - return doc; - } - } - - public virtual XTypedElement Root { - get { - return rootObject; - } - } - public static XRootNamespace Load(string xmlFile) { XRootNamespace root = new XRootNamespace(); root.doc = XDocument.Load(xmlFile); @@ -36656,5 +40650,25 @@ public virtual void Save(TextWriter textWriter, SaveOptions options) { public virtual void Save(string fileName, SaveOptions options) { doc.Save(fileName, options); } + + public virtual XDocument XDocument { + get { + return doc; + } + } + + public virtual XTypedElement Root { + get { + return rootObject; + } + } + + public XRootNamespace(SqlTaskData root) { + this.doc = new XDocument(root.Untyped); + this.rootObject = root; + } + + + public SqlTaskData SqlTaskData { get {return rootObject as SqlTaskData; } } } } diff --git a/LinqToXsd/Properties/launchSettings.json b/LinqToXsd/Properties/launchSettings.json index e73d3f0e..ab4e44c9 100644 --- a/LinqToXsd/Properties/launchSettings.json +++ b/LinqToXsd/Properties/launchSettings.json @@ -103,6 +103,12 @@ "workingDirectory": "..\\GeneratedSchemaLibraries\\AbstractTypeTest", "hotReloadEnabled": false }, + "DTSX": { + "commandName": "Project", + "commandLineArgs": "gen \"dtsx.xsd\" -a", + "workingDirectory": "..\\GeneratedSchemaLibraries\\DTSX", + "hotReloadEnabled": false + }, "ImportsXmlNamespace": { "commandName": "Project", "commandLineArgs": "gen \"ImportsXmlAttributes.xsd\" -a", From fc408d0e1ecccf42e69475bd8c5cf18a1162a519 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Sat, 28 Mar 2026 00:23:11 +0100 Subject: [PATCH 19/29] Complete work on simple types --- XObjectsCode/Src/ClrSimpleTypeInfo.cs | 27 +++++---------- XObjectsCode/Src/Model/CClass.cs | 33 +++++++++++++++++-- XObjectsCode/Src/Scriban/ScribanGlobals.cs | 4 +-- XObjectsCode/Src/SimpleTypeCodeDomHelper.cs | 2 +- XObjectsCode/Src/TypeBuilder.cs | 30 ++--------------- XObjectsCode/Src/TypesToCodeDom.cs | 16 +++++---- .../Templates/restrictions.scriban-cs | 2 +- .../simple-type-validator.scriban-cs | 31 +++++++++++++++++ XObjectsCode/Templates/simple-type.scriban-cs | 33 ++++++++++++++----- XObjectsCode/XObjectsCodeGen.csproj | 2 +- 10 files changed, 112 insertions(+), 68 deletions(-) create mode 100644 XObjectsCode/Templates/simple-type-validator.scriban-cs diff --git a/XObjectsCode/Src/ClrSimpleTypeInfo.cs b/XObjectsCode/Src/ClrSimpleTypeInfo.cs index 11bee00e..1bf603ca 100644 --- a/XObjectsCode/Src/ClrSimpleTypeInfo.cs +++ b/XObjectsCode/Src/ClrSimpleTypeInfo.cs @@ -131,25 +131,14 @@ public static ClrSimpleTypeInfo CreateSimpleTypeUnionAnonymousTypeInfo(XmlSchema return unionTypeInfo; } - public void UpdateClrTypeName(Dictionary<XmlSchemaObject, string> nameMappings, - LinqToXsdSettings settings) - { - string identifier = null; - string typeName = innerType.QualifiedName.Name; - string clrNameSpace = settings.GetClrNamespace(innerType.QualifiedName.Namespace); - if (nameMappings.TryGetValue(innerType, out identifier)) - { - clrtypeName = identifier; - } - else - { - clrtypeName = typeName; - } - - if (clrNameSpace != string.Empty) - { - clrtypeName = clrNameSpace + "." + clrtypeName; - } + public string FullyQualifiedName(Dictionary<XmlSchemaObject, string> nameMappings, LinqToXsdSettings settings) + { + var name = nameMappings.TryGetValue(innerType, out string identifier) + ? identifier + : innerType.QualifiedName.Name; + + var clrNameSpace = settings.GetClrNamespace(innerType.QualifiedName.Namespace); + return clrNameSpace == "" ? name : clrNameSpace + "." + name; } } diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index 7b9955a1..748ee0b4 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -40,15 +40,44 @@ public class CElement : CClass /// <summary> /// Represents a class depicting an xsd simple type wrapper in generated code /// </summary> -public class CSimpleType(ClrSimpleTypeInfo info) : CClass +public class CSimpleType( + ClrSimpleTypeInfo info, + Dictionary<XmlSchemaObject, string> nameMappings, + LinqToXsdSettings settings) + : CClass { public override bool IsSimpleType => true; - public string Name => info.clrtypeName; + public bool IsGlobal => info.IsGlobal; + + // For enums, the clrtypeName is used for `enum` declaration, + // so suffix "Validator" is added to the simple type class holding the `TypeDefinition`. + public string Name { get; } = info.clrtypeName + (info is EnumSimpleTypeInfo ? "Validator" : ""); + + public string FullyQualifiedName { get; } = info.FullyQualifiedName(nameMappings, settings); + public XmlSchemaDatatypeVariety Variety => info.Variety; public XmlTypeCode XmlTypeCode => info.TypeCode; public CompiledFacets Restrictions => info.RestrictionFacets; public IEnumerable<string> Comments => info.Annotations?.Select(a => a.Text) ?? []; + + public bool IsEnum => info is EnumSimpleTypeInfo; + public string EnumName => info.clrtypeName; + public IEnumerable<string> EnumValues + => ((EnumSimpleTypeInfo)info).InnerType + .GetEnumFacets() + .Select(x => x.Member); + + public bool IsList => info is ListSimpleTypeInfo; + public CSimpleType ListItemType => new CSimpleType( + ((ListSimpleTypeInfo)info).ItemType, + nameMappings, + settings); + + public bool IsUnion => info is UnionSimpleTypeInfo; + public IEnumerable<CSimpleType> UnionTypes + => ((UnionSimpleTypeInfo)info).MemberTypes + .Select(x => new CSimpleType(x, nameMappings, settings)); } \ No newline at end of file diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index 2e8ee0ec..85b75511 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -57,12 +57,12 @@ public static IEnumerable<CodeTypeDeclaration> Classes(CodeTypeDeclaration type) .Where(x => !x.IsEnum && !x.Name.EndsWith("EnumValidator")); } - public static CodeTypeDeclaration EnumDecl(string enumName, CodeTypeDeclaration type) + public static CodeTypeDeclaration? EnumDecl(string enumName, CodeTypeDeclaration type) { enumName = enumName.TrimEnd('?'); return type.Members .OfType<CodeTypeDeclaration>() - .First(x => x.IsEnum && x.Name == enumName); + .FirstOrDefault(x => x.IsEnum && x.Name == enumName); } public static CodeConstructor? Ctor(CodeTypeDeclaration type, int args = 0) diff --git a/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs b/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs index f09533ac..1824d427 100644 --- a/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs +++ b/XObjectsCode/Src/SimpleTypeCodeDomHelper.cs @@ -21,7 +21,7 @@ public static CodeExpression CreateSimpleTypeDef(ClrSimpleTypeInfo typeInfo, //If the enclosed member type or item type is a global named type, reuse the definition if (memberOrItemType && typeInfo.IsGlobal) { - typeInfo.UpdateClrTypeName(nameMappings, settings); + typeInfo.clrtypeName = typeInfo.FullyQualifiedName(nameMappings, settings); var typeNameToUse = typeInfo.clrtypeName; if (typeInfo is EnumSimpleTypeInfo) { typeNameToUse += Constants.EnumValidator; diff --git a/XObjectsCode/Src/TypeBuilder.cs b/XObjectsCode/Src/TypeBuilder.cs index ea3df145..de8e026d 100644 --- a/XObjectsCode/Src/TypeBuilder.cs +++ b/XObjectsCode/Src/TypeBuilder.cs @@ -367,8 +367,10 @@ protected static CodeMemberMethod DefaultContentModel(GeneratedTypesVisibility v internal static CodeTypeDeclaration CreateSimpleType(ClrSimpleTypeInfo typeInfo, Dictionary<XmlSchemaObject, string> nameMappings, - LinqToXsdSettings settings) + LinqToXsdSettings settings) { + // Fully implemented in simple-type.scriban-cs + string typeName = typeInfo is EnumSimpleTypeInfo ? typeInfo.clrtypeName + Constants.EnumValidator : typeInfo.clrtypeName; var simpleTypeDecl = new CodeTypeDeclaration(typeName); // might need special handling when typeInfo.clrtypeNs is null, but returning default Visibility (public) when clrtypeNs is null works for now @@ -395,27 +397,6 @@ internal static CodeTypeDeclaration CreateSimpleType(ClrSimpleTypeInfo typeInfo, return simpleTypeDecl; } - internal static CodeTypeDeclaration CreateEnumType(EnumSimpleTypeInfo typeInfo, - LinqToXsdSettings settings, ClrTypeInfo clrTypeInfo = null) - { - string typeName = typeInfo.clrtypeName; - - var enumTypeDecl = new CodeTypeDeclaration(typeName) { IsEnum = true }; - var typeVisibility = settings.NamespaceTypesVisibilityMap.ValueForKey(typeInfo.clrtypeNs).ToTypeAttribute(); - enumTypeDecl.TypeAttributes = TypeAttributes.Sealed | typeVisibility; - foreach (var facet in typeInfo.InnerType.GetEnumFacets()) - { - enumTypeDecl.Members.Add(new CodeMemberField(typeName, facet.Member)); - } - - if (clrTypeInfo != null) - enumTypeDecl.UserData[nameof(ClrTypeInfo)] = clrTypeInfo; - - ApplyAnnotations(enumTypeDecl, typeInfo); - - return enumTypeDecl; - } - internal void ApplyAnnotations(ClrTypeInfo typeInfo) { ApplyAnnotations(decl, typeInfo); @@ -790,11 +771,6 @@ private void InitializeTables() } } - internal class XEmptyTypedElementBuilder : TypeBuilder - { - public XEmptyTypedElementBuilder(LinqToXsdSettings settings) : base(settings) { } - } - internal class XSimpleTypedElementBuilder : TypeBuilder { string simpleTypeName; diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/TypesToCodeDom.cs index b19d6b42..4282b37b 100644 --- a/XObjectsCode/Src/TypesToCodeDom.cs +++ b/XObjectsCode/Src/TypesToCodeDom.cs @@ -43,8 +43,8 @@ public class CodeDomTypesGenerator public CodeDomTypesGenerator(LinqToXsdSettings settings) { - if (settings == null) throw new ArgumentNullException(nameof(settings)); - this.settings = settings; + this.settings = settings + ?? throw new ArgumentNullException(nameof(settings)); } public IEnumerable<CNamespace> GenerateTypes(ClrMappingInfo binding) @@ -70,8 +70,13 @@ public IEnumerable<CNamespace> GenerateTypes(ClrMappingInfo binding) { if (stInfo is EnumSimpleTypeInfo enumTypeInfo) { - var enumType = TypeBuilder.CreateEnumType(enumTypeInfo, settings, stInfo); - cNamespace.Add(enumType); + // The following is already generated in simple type template + // var enumType = TypeBuilder.CreateEnumType(enumTypeInfo, settings, stInfo); + // cNamespace.Add(enumType); // Enum declaration is generated by simple type template at the same time as validator + var enumType = new CodeTypeDeclaration(enumTypeInfo.clrtypeName) { IsEnum = true }; + + // TODO: Figure out how where descendant enum declarations could be generated + // and ensure template doesn't generate them twice. var enumsInOtherTypes = ns.DescendentTypeScopedEnumDeclarations(); // if an enum is defined in another type, remove it, if it is the same as the global (namespace scoped type) if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) @@ -83,8 +88,7 @@ public IEnumerable<CNamespace> GenerateTypes(ClrMappingInfo binding) } } - // TODO: for EnumSimpleTypeInfo, the name of this class should be stInfo.clrtypeName + "Validator" - cNamespace.Add(new CSimpleType(stInfo)); + cNamespace.Add(new CSimpleType(stInfo, nameMappings, settings)); } else { diff --git a/XObjectsCode/Templates/restrictions.scriban-cs b/XObjectsCode/Templates/restrictions.scriban-cs index ef10505e..013b401e 100644 --- a/XObjectsCode/Templates/restrictions.scriban-cs +++ b/XObjectsCode/Templates/restrictions.scriban-cs @@ -9,7 +9,7 @@ new Xml.Schema.Linq.RestrictionFacets(((Xml.Schema.Linq.RestrictionFlags)({{ $1. if $1 | has_restriction "Enumeration" "new object[] {" "\n " # match previous CodeDom formatting for now :( - $1.Enumeration | array.join ", " @value_literal + $1.Enumeration | array.join ",\n " @value_literal "}" else "null" diff --git a/XObjectsCode/Templates/simple-type-validator.scriban-cs b/XObjectsCode/Templates/simple-type-validator.scriban-cs new file mode 100644 index 00000000..ea1b5458 --- /dev/null +++ b/XObjectsCode/Templates/simple-type-validator.scriban-cs @@ -0,0 +1,31 @@ +{{~ + func validator_reference + if $0.IsGlobal + $0.FullyQualifiedName + ".TypeDefinition" + else + include 'simple-type-validator.scriban-cs' $0 + end + end +~}} +new Xml.Schema.Linq.{{ $1.Variety }}SimpleTypeValidator( + {{- #no line break -}} + XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.{{ $1.XmlTypeCode }}), {{ + include 'restrictions.scriban-cs' $1.Restrictions + + if $1.IsList + ", " + $1.ListItemType | validator_reference + end + + if $1.IsUnion + ", " + "new Xml.Schema.Linq.SimpleTypeValidator[] {\n" + for $unionType in $1.UnionTypes + " " + $unionType | validator_reference + if !for.last; ",\n"; end + end + "}" + end + -}} +) \ No newline at end of file diff --git a/XObjectsCode/Templates/simple-type.scriban-cs b/XObjectsCode/Templates/simple-type.scriban-cs index eddfd657..a230d0c5 100644 --- a/XObjectsCode/Templates/simple-type.scriban-cs +++ b/XObjectsCode/Templates/simple-type.scriban-cs @@ -1,3 +1,23 @@ +{{- if $1.IsEnum -}} + +{{~ if !$1.Comments.empty? ~}} +/// <summary> +{{~ for $text in $1.Comments ~}} +/// <para> +/// {{ $text | newline_prefix '///' }} +/// </para> +{{~ end ~}} +/// </summary> +{{~ end ~}} +{{ $1.Namespace.AccessModifier }} enum {{ $1.EnumName }} { +{{ for $enumValue in $1.EnumValues ~}} + + {{ $enumValue }}, +{{ end ~}} +} + +{{ end # if IsEnum -}} + {{~ if !$1.Comments.empty? ~}} /// <summary> {{~ for $text in $1.Comments ~}} @@ -11,14 +31,9 @@ private {{ $1.Name }}() { } - - {{~ # TODO: add 3rd parameter for lists and unions ~}} + [DebuggerBrowsable(DebuggerBrowsableState.Never)] - public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = {{ # no line break -}} - new Xml.Schema.Linq.{{ $1.Variety }}SimpleTypeValidator( - {{- #no line break -}} - XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.{{ $1.XmlTypeCode }}), {{ - include 'restrictions.scriban-cs' $1.Restrictions - -}} - ); + public static Xml.Schema.Linq.SimpleTypeValidator TypeDefinition = {{ + include 'simple-type-validator.scriban-cs' $1 + }}; } \ No newline at end of file diff --git a/XObjectsCode/XObjectsCodeGen.csproj b/XObjectsCode/XObjectsCodeGen.csproj index 6e9197fe..91901e05 100644 --- a/XObjectsCode/XObjectsCodeGen.csproj +++ b/XObjectsCode/XObjectsCodeGen.csproj @@ -17,7 +17,7 @@ <ItemGroup> <PackageReference Include="OneOf" Version="3.0.263" /> - <PackageReference Include="Scriban" Version="7.0.3" /> + <PackageReference Include="Scriban" Version="7.0.5" /> <PackageReference Include="PolySharp" Version="1.15.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> From 8800127b700e6b739213c6e73cc9d65fc771bb3c Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Sat, 28 Mar 2026 20:05:43 +0100 Subject: [PATCH 20/29] Match filename with contained type --- XObjectsCode/Src/{TypesToCodeDom.cs => CodeDomTypesGenerator.cs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename XObjectsCode/Src/{TypesToCodeDom.cs => CodeDomTypesGenerator.cs} (100%) diff --git a/XObjectsCode/Src/TypesToCodeDom.cs b/XObjectsCode/Src/CodeDomTypesGenerator.cs similarity index 100% rename from XObjectsCode/Src/TypesToCodeDom.cs rename to XObjectsCode/Src/CodeDomTypesGenerator.cs From 29fa656f41de79a7b6b9aec8d40f5b45f6d03b24 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Sat, 28 Mar 2026 22:39:37 +0100 Subject: [PATCH 21/29] Started working on elements --- XObjectsCode/Extensions/GeneralExtensions.cs | 2 +- XObjectsCode/Src/CodeDomHelper.cs | 34 --- XObjectsCode/Src/CodeDomTypesGenerator.cs | 159 +++++------ XObjectsCode/Src/Model/CClass.cs | 34 ++- XObjectsCode/Src/Model/CNamespace.cs | 24 +- XObjectsCode/Src/Scriban/ScribanGlobals.cs | 20 -- XObjectsCode/Src/TypeBuilder.cs | 114 +------- XObjectsCode/Src/XObjectsCoreGenerator.cs | 3 +- XObjectsCode/Templates/class.scriban-cs | 251 ++++-------------- XObjectsCode/Templates/comments.scriban-cs | 9 + XObjectsCode/Templates/file.scriban-cs | 4 +- XObjectsCode/Templates/manager.scriban-cs | 6 +- XObjectsCode/Templates/simple-type.scriban-cs | 20 +- 13 files changed, 177 insertions(+), 503 deletions(-) create mode 100644 XObjectsCode/Templates/comments.scriban-cs diff --git a/XObjectsCode/Extensions/GeneralExtensions.cs b/XObjectsCode/Extensions/GeneralExtensions.cs index 9c2763cf..3e6fb772 100644 --- a/XObjectsCode/Extensions/GeneralExtensions.cs +++ b/XObjectsCode/Extensions/GeneralExtensions.cs @@ -15,7 +15,7 @@ public static class GeneralExtensionMethods /// <param name="gtv"></param> /// <returns></returns> public static TypeAttributes ToTypeAttribute(this GeneratedTypesVisibility gtv) => - gtv.HasFlag(GeneratedTypesVisibility.Internal) || gtv == GeneratedTypesVisibility.Internal ? TypeAttributes.NestedAssembly : TypeAttributes.Public; + gtv.HasFlag(GeneratedTypesVisibility.Internal) ? TypeAttributes.NestedAssembly : TypeAttributes.Public; /// <summary> /// Converts <see cref="GeneratedTypesVisibility"/> to an appropriate <see cref="MemberAttributes"/> instance. diff --git a/XObjectsCode/Src/CodeDomHelper.cs b/XObjectsCode/Src/CodeDomHelper.cs index 9a4fbe3e..4ca37552 100644 --- a/XObjectsCode/Src/CodeDomHelper.cs +++ b/XObjectsCode/Src/CodeDomHelper.cs @@ -37,16 +37,6 @@ public static CodeMethodInvokeExpression CreateMethodCallFromField(string fieldN parameters); } - public static CodeTypeDeclaration CreateTypeDeclaration(string clrTypeName, string innerType, - GeneratedTypesVisibility generatedTypesVisibility = GeneratedTypesVisibility.Public, CodeNamespace parentNamespace = null) - { - CodeTypeDeclaration typeDecl = new CodeTypeDeclaration(clrTypeName); - typeDecl.TypeAttributes = generatedTypesVisibility.ToTypeAttribute(); - typeDecl.IsPartial = true; - if (parentNamespace is not null) typeDecl.ParentNamespace = parentNamespace; - return typeDecl; - } - public static CodeAttributeDeclaration SchemaProviderAttribute(string typeName) { CodeAttributeDeclaration customAtt = new CodeAttributeDeclaration("XmlSchemaProviderAttribute"); @@ -365,30 +355,6 @@ public static CodeFieldReferenceExpression CreateFieldReference(string typeName, return new CodeFieldReferenceExpression(targetObject, fieldName); } - public static CodeSnippetTypeMember CreateCast(string typeT, string typeT1, bool useAutoTyping, string @namespace = "", - GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) - { - CodeSnippetTypeMember castMember = new CodeSnippetTypeMember(); - @namespace = @namespace.IsNotEmpty() ? $"{@namespace}." : ""; - var visibilityKeyword = visibility.ToKeyword(); - var servicesClassName = @namespace + Constants.LinqToXsdTypeManager; - if (useAutoTyping) - { - castMember.Text = String.Concat($"\t\t{visibilityKeyword} static explicit operator ", typeT, "(XElement xe) { ", - "return (", typeT, ")", Constants.XTypedServices, ".ToXTypedElement(xe,", - servicesClassName, ".Instance as ILinqToXsdTypeManager); }"); - } - else - { - castMember.Text = String.Concat($"\t\t{visibilityKeyword} static explicit operator ", typeT, - "(XElement xe) { return ", Constants.XTypedServices, ".ToXTypedElement<", - GetInnerType(typeT, typeT1), ">(xe,", servicesClassName, - ".Instance as ILinqToXsdTypeManager); }"); - } - - return castMember; - } - public static string GetInnerType(string wrappingType, string wrappedType) { if (wrappedType == null) diff --git a/XObjectsCode/Src/CodeDomTypesGenerator.cs b/XObjectsCode/Src/CodeDomTypesGenerator.cs index 4282b37b..d22cce7d 100644 --- a/XObjectsCode/Src/CodeDomTypesGenerator.cs +++ b/XObjectsCode/Src/CodeDomTypesGenerator.cs @@ -21,8 +21,8 @@ public class CodeDomTypesGenerator // TODO: eventually remove XmlQualifiedName rootElementName = XmlQualifiedName.Empty; - public CodeTypeDeclaration RootElement { get; private set; } - public IEnumerable<CodeTypeDeclaration> AllRoots => codeNamespacesTable.Values.SelectMany(ns => ns.Roots); + public CElement RootElement { get; private set; } + public IEnumerable<CElement> AllRoots => codeNamespacesTable.Values.SelectMany(ns => ns.Roots); CNamespace cNamespace, rootNamespace; public CNamespace RootNamespace => rootNamespace; @@ -34,7 +34,7 @@ public class CodeDomTypesGenerator string currentNamespace; string currentFullTypeName; - public readonly List<CType> AllTypes = []; + public readonly List<CElement> AllTypes = []; // TODO: review naming, this is more an AllTypes than AllElements as it also contains wrapper classes for simple types // but then what's the difference with AllTypes above? is AllElements only the non-nested types? // I guess I'll figure it out after migrating more code. @@ -63,8 +63,7 @@ public IEnumerable<CNamespace> GenerateTypes(ClrMappingInfo binding) } cNamespace = GetCNamespace(type.clrtypeNs); - Debug.Assert(cNamespace != null); - var ns = cNamespace.Dom; + Debug.Assert(cNamespace != null); if (type is ClrSimpleTypeInfo stInfo) { @@ -77,6 +76,7 @@ public IEnumerable<CNamespace> GenerateTypes(ClrMappingInfo binding) // TODO: Figure out how where descendant enum declarations could be generated // and ensure template doesn't generate them twice. + var ns = cNamespace.Dom; var enumsInOtherTypes = ns.DescendentTypeScopedEnumDeclarations(); // if an enum is defined in another type, remove it, if it is the same as the global (namespace scoped type) if (enumsInOtherTypes.EqualEnumDeclarationExists(enumType)) @@ -92,58 +92,77 @@ public IEnumerable<CNamespace> GenerateTypes(ClrMappingInfo binding) } else { - var decl = ProcessType(type as ClrContentTypeInfo, null, true); // Sets current cNamespace - cNamespace.Add(decl); + var element = ProcessType2(type as ClrContentTypeInfo, null, true); // Sets current cNamespace as side-effet + cNamespace.Add(element); if (type.typeOrigin == SchemaOrigin.Element) { - cNamespace.Roots.Add(decl); - UpdateRootElement(type, decl); + cNamespace.Roots.Add(element); + UpdateRootElement(type, element); } } } ProcessWrapperTypes(); - CreateXRoots(); + FindRootNamespace(); return codeNamespacesTable.Values; } + private CElement ProcessType2(ClrContentTypeInfo typeInfo, string parentIdentifier, bool globalType) + { + SetFullTypeName(typeInfo, parentIdentifier); + + if (globalType) + currentNamespace = typeInfo.clrtypeNs; // dependent on SetFullTypeName above + + var element = new CElement(typeInfo); + + if (globalType) + { + if (typeInfo.typeOrigin == SchemaOrigin.Fragment) + AllTypes.Add(element); + else + AllElements.Add(element); + } + + return element; + } + private CodeTypeDeclaration ProcessType(ClrContentTypeInfo typeInfo, string parentIdentifier, bool globalType) { SetFullTypeName(typeInfo, parentIdentifier); if (globalType) - currentNamespace = typeInfo.clrtypeNs; + currentNamespace = typeInfo.clrtypeNs; // dependent on SetFullTypeName above - //Build type using TypeBuilder + // Build type using TypeBuilder typeBuilder = GetTypeBuilder(); typeBuilder.CreateTypeDeclaration(typeInfo, cNamespace.Dom); ProcessProperties(typeInfo.Content, typeInfo.Annotations); typeBuilder.CreateFunctionalConstructor(typeInfo.Annotations); typeBuilder.ImplementInterfaces(settings.EnableServiceReference); - typeBuilder.ApplyAnnotations(typeInfo); CodeTypeDeclaration builtType = typeBuilder.TypeDeclaration; if (globalType) { // TODO: these shouldn't be a new instances but the instance built above by TypeBuilder, when migrated - if (typeInfo.typeOrigin == SchemaOrigin.Fragment) - AllTypes.Add(new() - { - Name = typeInfo.clrFullTypeName, - XsdName = typeInfo.schemaName, - XsdNs = typeInfo.schemaNs, - }); - else - AllElements.Add(new() - { - Dom = builtType, - Name = typeInfo.clrFullTypeName, - XsdName = typeInfo.schemaName, - XsdNs = typeInfo.schemaNs, - }); + // if (typeInfo.typeOrigin == SchemaOrigin.Fragment) + // AllTypes.Add(new() + // { + // Name = typeInfo.clrFullTypeName, + // XsdName = typeInfo.schemaName, + // XsdNs = typeInfo.schemaNs, + // }); + // else + // AllElements.Add(new() + // { + // Dom = builtType, + // Name = typeInfo.clrFullTypeName, + // XsdName = typeInfo.schemaName, + // XsdNs = typeInfo.schemaNs, + // }); } ProcessNestedTypes(typeInfo.NestedTypes, builtType, typeInfo.clrFullTypeName); @@ -151,19 +170,18 @@ private CodeTypeDeclaration ProcessType(ClrContentTypeInfo typeInfo, string pare } - private void ProcessNestedTypes(List<ClrTypeInfo> anonymousTypes, CodeTypeDeclaration parentTypeDecl, - string parentIdentifier) + private void ProcessNestedTypes(List<ClrTypeInfo> anonymousTypes, CodeTypeDeclaration parentTypeDecl, string parentIdentifier) { foreach (ClrTypeInfo nestedType in anonymousTypes) { - ClrSimpleTypeInfo stInfo = nestedType as ClrSimpleTypeInfo; + if (nestedType is EnumSimpleTypeInfo && EnumAlreadyExistsInParent(nestedType.clrtypeName, parentTypeDecl)) + continue; + CodeTypeDeclaration decl = null; - if (stInfo != null) + if (nestedType is ClrSimpleTypeInfo simpleTypeInfo) { - if (stInfo is EnumSimpleTypeInfo && EnumAlreadyExistsInParent(stInfo.clrtypeName, parentTypeDecl)) continue; - - decl = TypeBuilder.CreateSimpleType(stInfo, nameMappings, settings); - //Anonymous simple types are private within the scope of the parent class + decl = TypeBuilder.CreateSimpleType(simpleTypeInfo, nameMappings, settings); + // Anonymous simple types are private within the scope of the parent class decl.TypeAttributes = TypeAttributes.NestedPrivate; } else @@ -240,9 +258,7 @@ private static bool EnumAlreadyExistsInParent(string clrEnumTypeName, CodeTypeDe { return parent.Members .OfType<CodeTypeDeclaration>() - .Where(m => m.IsEnum) - .Select(m => m.Name) - .Contains(clrEnumTypeName); + .Any(m => m.IsEnum && m.Name == clrEnumTypeName); } private void ProcessGroup(GroupingInfo grouping, List<ClrAnnotation> annotations) @@ -296,7 +312,7 @@ private void ProcessComplexGroupProperties(GroupingInfo grouping, List<ClrAnnota } } - private void CreateXRoots() + private void FindRootNamespace() { string rootClrNamespace = settings.GetClrNamespace(rootElementName.Namespace); if (!codeNamespacesTable.TryGetValue(rootClrNamespace, out rootNamespace)) @@ -339,13 +355,13 @@ private void ProcessWrapperTypes() // }; // TODO: should not be a new instance but rather the one produced by code above, when migrated - AllElements.Add(new() - { - Dom = builder.TypeDeclaration, - Name = typeInfo.clrFullTypeName, - XsdName = typeInfo.schemaName, - XsdNs = typeInfo.schemaNs, - }); + // AllElements.Add(new() + // { + // Dom = builder.TypeDeclaration, + // Name = typeInfo.clrFullTypeName, + // XsdName = typeInfo.schemaName, + // XsdNs = typeInfo.schemaNs, + // }); } else { @@ -373,13 +389,13 @@ private void ProcessWrapperTypes() wrapperBuilder.ApplyAnnotations(typeInfo); // TODO: shouldn't be a new instance but rather from wrapperBuilder when migrated - AllElements.Add(new() - { - Dom = wrapperBuilder.TypeDeclaration, - Name = typeInfo.clrFullTypeName, - XsdName = typeInfo.schemaName, - XsdNs = typeInfo.schemaNs, - }); + // AllElements.Add(new() + // { + // Dom = wrapperBuilder.TypeDeclaration, + // Name = typeInfo.clrFullTypeName, + // XsdName = typeInfo.schemaName, + // XsdNs = typeInfo.schemaNs, + // }); AllWrappers.Add(new(typeInfo.clrFullTypeName, innerTypeFullName)); @@ -418,14 +434,15 @@ private void ProcessWrapperTypes() var decl = builder.TypeDeclaration; cNamespace = GetCNamespace(typeInfo.clrtypeNs); - if (cType != null) + if (cType != null) // TODO: temporary + { cNamespace.Add(cType); - else - cNamespace.Add(decl); // TODO: remove at end of migration - cNamespace.Roots.Add(decl); - - if (typeInfo.typeOrigin == SchemaOrigin.Element) - UpdateRootElement(typeInfo, decl); + cNamespace.Roots.Add((CElement)cType); + if (typeInfo.typeOrigin == SchemaOrigin.Element) + UpdateRootElement(typeInfo, (CElement)cType); + } + // else + // cNamespace.Add(decl); // TODO: remove at end of migration } } @@ -485,17 +502,11 @@ private TypeBuilder GetTypeBuilder() private void SetFullTypeName(ClrTypeInfo typeInfo, string parentIdentifier) { - if (parentIdentifier == null) - { - if (typeInfo.clrtypeNs == string.Empty) - currentFullTypeName = typeInfo.clrtypeName; - else - currentFullTypeName = typeInfo.clrtypeNs + "." + typeInfo.clrtypeName; - } - else - { - currentFullTypeName = parentIdentifier + "." + typeInfo.clrtypeName; - } + currentFullTypeName = parentIdentifier != null + ? parentIdentifier + "." + typeInfo.clrtypeName + : typeInfo.clrtypeNs != "" + ? typeInfo.clrtypeNs + "." + typeInfo.clrtypeName + : typeInfo.clrtypeName; typeInfo.clrFullTypeName = currentFullTypeName; XmlQualifiedName baseTypeName = typeInfo.BaseTypeName; @@ -510,12 +521,10 @@ private void SetFullTypeName(ClrTypeInfo typeInfo, string parentIdentifier) } if (typeInfo.typeOrigin == SchemaOrigin.Element && (rootElementName.IsEmpty || typeInfo.IsRoot)) - { rootElementName = new XmlQualifiedName(typeInfo.schemaName, typeInfo.schemaNs); - } } - private void UpdateRootElement(ClrTypeInfo info, CodeTypeDeclaration decl) + private void UpdateRootElement(ClrTypeInfo info, CElement decl) { // The last IsRoot element is assumed to be the schema root element // When there is no IsRoot element, then the first element in schema is the assumed root. diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index 748ee0b4..38a6645c 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -2,6 +2,7 @@ using System.CodeDom; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Xml.Schema; @@ -17,24 +18,33 @@ public abstract class CClass // This isn't great OOP design but Scriban doesn't have first-class support for OOP (no `is` operator) public virtual bool IsSimpleType => false; + + [return: NotNullIfNotNull(nameof(name))] + protected static string? QualifiedName(string? ns, string? name, bool global = false) + { + if (name == null) return null; + var fqn = string.IsNullOrWhiteSpace(ns) ? name : ns + "." + name; + return global ? "global::" + fqn : fqn; + } } /// <summary> /// Represents a class depicting an xsd element in generated code /// </summary> -public class CElement : CClass +public class CElement(ClrContentTypeInfo info) : CClass { - // TODO: Temporary, remove after full migration - public required CodeTypeDeclaration Dom { get; init; } - - /// <summary>Fully qualified C# generated class name</summary> - public required string Name { get; init; } - - /// <summary>Tag namespace (from xsd)</summary> - public required string XsdNs { get; init; } - - /// <summary>Tag name (from xsd)</summary> - public required string XsdName { get; init; } + public string XName => info.schemaName; + public string XNamespace => info.schemaNs; + public string Name => info.clrtypeName; + public string Fqn => QualifiedName(Namespace!.Name, Name); + public bool IsAbstract => info.IsAbstract; + public bool IsSealed => info.IsSealed; + public bool IsSubstitutionHead => info.IsSubstitutionHead; + public bool IsDerived => info.IsDerived; + public string BaseType => QualifiedName(info.baseTypeClrNs, info.baseTypeClrName, global: true) ?? "XTypedElement"; + public bool HasSaveMethods => info.typeOrigin == SchemaOrigin.Element && !info.IsDerived; + public bool HasLoadMethods => info.typeOrigin == SchemaOrigin.Element; + public IEnumerable<string> Comments => info.Annotations?.Select(a => a.Text) ?? []; } /// <summary> diff --git a/XObjectsCode/Src/Model/CNamespace.cs b/XObjectsCode/Src/Model/CNamespace.cs index da94dcdd..b6694928 100644 --- a/XObjectsCode/Src/Model/CNamespace.cs +++ b/XObjectsCode/Src/Model/CNamespace.cs @@ -3,9 +3,6 @@ using System.CodeDom; using System.Collections.Generic; using System.Linq; -using System.Reflection; -using Xml.Schema.Linq.CodeGen.Scriban; -using Xml.Schema.Linq.Extensions; namespace Xml.Schema.Linq.CodeGen.Model; @@ -23,31 +20,12 @@ public class CNamespace(string name) public required string AccessModifier { get; init; } // List of root elements in this namespace (also found in Types and Elements) - public List<CodeTypeDeclaration> Roots { get; } = []; + public List<CElement> Roots { get; } = []; public List<CClass> Types { get; } = []; public IEnumerable<CElement> Elements => Types.OfType<CElement>(); - public void Add(CodeTypeDeclaration type) - { - // TODO: should be passed instead of CodeTypeDeclaration - CClass ctype = new CElement - { - Dom = type, - Name = type.Name, - XsdName = ScribanGlobals.LocalName(type, "xName"), - XsdNs = ScribanGlobals.Namespace(type, "xName"), - }; - - ctype.Namespace = this; - Types.Add(ctype); - - // TODO: temporary, remove after full migration - Dom.Types.Add(type); - type.SetParent(Dom); - } - public void Add(CClass type) { type.Namespace = this; diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index 85b75511..f055d906 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -169,26 +169,6 @@ public static IEnumerable<string> EnumValues(CodeTypeDeclaration enumType) }; } - public static string LocalName(CodeTypeDeclaration type, string name) - { - var init = type.Members - .OfType<CodeMemberField>() - .FirstOrDefault(x => x.Name == name) - ?.InitExpression as CodeMethodInvokeExpression; - if (init is null) return "TODO: review null"; - return (string)(init.Parameters[0] as CodePrimitiveExpression)!.Value; - } - - public static string Namespace(CodeTypeDeclaration type, string name) - { - var init = type.Members - .OfType<CodeMemberField>() - .FirstOrDefault(x => x.Name == name) - ?.InitExpression as CodeMethodInvokeExpression; - if (init is null) return "TODO: review null"; - return (string)(init.Parameters[1] as CodePrimitiveExpression)!.Value; - } - public static bool HasContentModel(CodeTypeDeclaration type) { return type.Members diff --git a/XObjectsCode/Src/TypeBuilder.cs b/XObjectsCode/Src/TypeBuilder.cs index de8e026d..44d672e2 100644 --- a/XObjectsCode/Src/TypeBuilder.cs +++ b/XObjectsCode/Src/TypeBuilder.cs @@ -46,10 +46,7 @@ internal CodeTypeDeclaration TypeDeclaration } internal virtual void CreateDefaultConstructor(List<ClrAnnotation> annotations) - { - decl.Members.Add(ApplyAnnotations(CodeDomHelper.CreateConstructor(DefaultVisibility.ToMemberAttribute()), annotations, - null)); - } + { } internal virtual CodeConstructor CreateFunctionalConstructor(List<ClrAnnotation> annotations) { @@ -113,27 +110,6 @@ internal virtual void Init() InnerInit(); } - protected virtual void AddBaseType() - { - //Set basetype - string baseTypeClrName = clrTypeInfo.baseTypeClrName; - - if (baseTypeClrName != null) - { - string baseTypeClrNs = clrTypeInfo.baseTypeClrNs; - string baseTypeRef; - if (baseTypeClrNs.IsNotEmpty()) - baseTypeRef = "global::" + baseTypeClrNs + "." + baseTypeClrName; - else - baseTypeRef = "global::" + baseTypeClrName; - decl.BaseTypes.Add(baseTypeRef); - } - else - { - decl.BaseTypes.Add(Constants.XTypedElement); - } - } - protected virtual void ImplementContentModelMetaData() { decl.Members.Add(DefaultContentModel()); @@ -149,93 +125,7 @@ internal void CreateTypeDeclaration(ClrTypeInfo clrTypeInfo, CodeNamespace paren this.clrTypeInfo = clrTypeInfo; SetElementWildCardFlag(clrTypeInfo.HasElementWildCard); - string schemaName = clrTypeInfo.schemaName; - string schemaNs = clrTypeInfo.schemaNs; - string clrTypeName = clrTypeInfo.clrtypeName; - SchemaOrigin typeOrigin = clrTypeInfo.typeOrigin; - - CodeTypeDeclaration typeDecl = CodeDomHelper.CreateTypeDeclaration(clrTypeName, InnerType, DefaultVisibility, parentNamespace); - - if (clrTypeInfo.IsAbstract) - { - typeDecl.TypeAttributes |= TypeAttributes.Abstract; - } - else if (clrTypeInfo.IsSealed) - { - typeDecl.TypeAttributes |= TypeAttributes.Sealed; - } - - decl = typeDecl; - - AddBaseType(); - CreateServicesMembers(); - CreateDefaultConstructor(clrTypeInfo.Annotations); - } - - internal void CreateServicesMembers() - { - string innerType = InnerType; - string clrTypeName = clrTypeInfo.clrtypeName; - - bool useAutoTyping = clrTypeInfo.IsAbstract || clrTypeInfo.IsSubstitutionHead; - if (clrTypeInfo.typeOrigin == SchemaOrigin.Element) - { - //Disable load and parse for complex types - CodeTypeMember load = CodeDomHelper.CreateStaticMethod( - "Load", clrTypeName, innerType, "xmlFile", "System.String", useAutoTyping, DefaultVisibility); - // http://linqtoxsd.codeplex.com/WorkItem/View.aspx?WorkItemId=4093 - var loadReader = CodeDomHelper.CreateStaticMethod( - "Load", clrTypeName, innerType, "xmlFile", "System.IO.TextReader", useAutoTyping, DefaultVisibility); - CodeTypeMember parse = CodeDomHelper.CreateStaticMethod("Parse", clrTypeName, innerType, "xml", - "System.String", useAutoTyping, DefaultVisibility); - if (clrTypeInfo.IsDerived) - { - load.Attributes |= MemberAttributes.New; - parse.Attributes |= MemberAttributes.New; - } - else - { - decl.Members.Add(CodeDomHelper.CreateSave("xmlFile", "System.String", DefaultVisibility)); - decl.Members.Add(CodeDomHelper.CreateSave("tw", "System.IO.TextWriter", DefaultVisibility)); - decl.Members.Add(CodeDomHelper.CreateSave("xmlWriter", "System.Xml.XmlWriter", DefaultVisibility)); - } - - decl.Members.Add(load); - decl.Members.Add(loadReader); - decl.Members.Add(parse); - } - - CodeTypeMember cast = CodeDomHelper.CreateCast(clrTypeName, innerType, useAutoTyping); // dont pass default visibility; as operators must be public and static - decl.Members.Add(cast); - - if (!clrTypeInfo.IsAbstract) - { - //Add Clone for non-abstract types - CodeMemberMethod clone = CodeDomHelper.CreateMethod("Clone", - new CodeTypeReference(Constants.XTypedElement), MemberAttributes.Public | MemberAttributes.Override); - if (innerType == null) - { - CodeMethodInvokeExpression callClone = CodeDomHelper.CreateMethodCall( - new CodeTypeReferenceExpression(Constants.XTypedServices), - "CloneXTypedElement<" + clrTypeName + ">", new CodeThisReferenceExpression()); - clone.Statements.Add(new CodeMethodReturnStatement(callClone)); - } - else - { - CodeMethodInvokeExpression callClone = CodeDomHelper.CreateMethodCall( - new CodePropertyReferenceExpression(CodeDomHelper.This(), Constants.CInnerTypePropertyName), - "Clone"); - clone.Statements.Add( - new CodeMethodReturnStatement( - new CodeObjectCreateExpression( - clrTypeName, - new CodeCastExpression( - new CodeTypeReference(innerType), - callClone)))); - } - - decl.Members.Add(clone); - } + decl = new(clrTypeInfo.clrtypeName); } protected virtual void ImplementCommonIXMetaData() diff --git a/XObjectsCode/Src/XObjectsCoreGenerator.cs b/XObjectsCode/Src/XObjectsCoreGenerator.cs index 33d7cb08..62b07b9d 100644 --- a/XObjectsCode/Src/XObjectsCoreGenerator.cs +++ b/XObjectsCode/Src/XObjectsCoreGenerator.cs @@ -144,8 +144,7 @@ string RenderCodeUnit(IEnumerable<CNamespace> namespaces) Namespaces = nsArray, TypeManager = new ScriptObject // So that we can make use of `with TypeManager` in manager.scriban-cs { - // TODO: when RootElement is a POCO model class, it should provide CNamespace more easily - { "Namespace", nsArray.FirstOrDefault(ns => ns.Dom == codeGenerator.RootElement.ParentNamespace) }, + { "Namespace", codeGenerator.RootElement.Namespace }, { "RootElement", codeGenerator.RootElement }, { "AllTypes", codeGenerator.AllTypes }, { "AllElements", codeGenerator.AllElements }, diff --git a/XObjectsCode/Templates/class.scriban-cs b/XObjectsCode/Templates/class.scriban-cs index b12aebf5..ba7acb1f 100644 --- a/XObjectsCode/Templates/class.scriban-cs +++ b/XObjectsCode/Templates/class.scriban-cs @@ -1,6 +1,11 @@ -{{ $1 | comments -}} -public partial class {{ $1.Name }} : XTypedElement, IXMetaData { - {{~ if !$.isNested ~}} +{{ include 'comments.scriban-cs' $1.Comments -}} +{{ + $1.Namespace.AccessModifier + $1.IsAbstract ? " abstract" : "" + $1.IsSealed ? " sealed" : "" +}} partial class {{ $1.Name }} : {{ $1.BaseType }}, IXMetaData { + + {{- if $1.HasSaveMethods }} public void Save(string xmlFile) { XTypedServices.Save(xmlFile, Untyped); @@ -13,211 +18,71 @@ public partial class {{ $1.Name }} : XTypedElement, IXMetaData { public void Save(System.Xml.XmlWriter xmlWriter) { XTypedServices.Save(xmlWriter, Untyped); } - + + {{- end -}} + + {{- + if $1.HasLoadMethods + if $1.IsAbstract || $1.IsSubstitutionHead + }} + public static {{ $1.Name }} Load(string xmlFile) { - return XTypedServices.Load<{{ $1.Name }}>(xmlFile); + return (({{ $1.Name }})XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance)); } - + public static {{ $1.Name }} Load(System.IO.TextReader xmlFile) { - return XTypedServices.Load<{{ $1.Name }}>(xmlFile); + return (({{ $1.Name }})XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance)); } public static {{ $1.Name }} Parse(string xml) { - return XTypedServices.Parse<{{ $1.Name }}>(xml); - } - {{~ end ~}} - - public static explicit operator {{ $1.Name }}(XElement xe) { return XTypedServices.ToXTypedElement<{{ $1.Name }}>(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - - public override XTypedElement Clone() { - return XTypedServices.CloneXTypedElement<{{ $1.Name }}>(this); - } - - {{ $1 | ctor | comments -}} - public {{ $1.Name }}() { + return (({{ $1.Name }})XTypedServices.ToXTypedElement(XElement.Parse(xmlFile), LinqToXsdTypeManager.Instance)); } - {{- - $simple = $1 | simple_type - if $simple != null - $validatorType = $1 | validator - $enumType = $simple | (regex.matches "Enum\\??$").empty? ? null : $simple | string.split "." | array.last - if $enumType + {{~ # when InnerType, generic type <$1.Name> must adapted and a 2nd parameter with SingletonTypeManager must be added ~}} + {{~ + else # if IsAbstract || IsSubstitutionHead + $new = $1.IsDervived ? "new " : "" }} - {{ include 'enum.scriban-cs' 'TypedValue' ($enumType | enum_decl $1) $simple }} - - {{- else # simple type but not an enum }} - - {{- if ($1 | properties).empty? }} - - {{ $1 | ctor 1 | comments -}} - public {{ $1.Name }}({{ $simple }} content) { - this.TypedValue = content; + public static {{ $new -}} {{ $1.Name }} Load(string xmlFile) { + return XTypedServices.Load<{{ $1.Name }}>(xmlFile); } - {{- end }} - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - protected internal static readonly System.Xml.Linq.XName TypedValueXName = System.Xml.Linq.XName.Get("TypedValue", ""); - - public virtual {{ $simple }} TypedValue { - get { - XElement x = this.Untyped; - return XTypedServices.ParseValue<{{ $simple }}>(x, XmlSchemaType.GetBuiltInSimpleType({{ $simple | xml_type_code }}).Datatype); - } - set { - {{~ if $validatorType == null ~}} - this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType({{ $simple | xml_type_code }}).Datatype); - {{~ else ~}} - this.SetValueWithValidation(value, "TypedValue", {{ $validatorType }}.TypeDefinition); - {{~ end ~}} - } + public static {{ $new -}} {{ $1.Name }} Load(System.IO.TextReader xmlFile) { + return XTypedServices.Load<{{ $1.Name }}>(xmlFile); } - {{- end # if $enumType }} - - {{- end # if $simple }} - - {{- for $prop in $1 | properties }} - - {{- - $propType = $prop.Type | type_name - $enumType = $propType | (regex.matches "Enum\\??$").empty? ? null : $propType | string.split "." | array.last - if $enumType - }} - - {{ - include 'enum.scriban-cs' $prop.Name ($enumType | enum_decl $1) $propType $prop ($prop | default_value $1) - continue - end - }} - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [EditorBrowsable(EditorBrowsableState.Never)] - protected internal static readonly System.Xml.Linq.XName {{ $prop.Name }}XName = System.Xml.Linq.XName.Get("{{ $1 | local_name $prop.Name + 'XName' }}", "{{ $1 | namespace $prop.Name + 'XName' }}"); + public static {{ $new -}} {{ $1.Name }} Parse(string xml) { + return XTypedServices.Parse<{{ $1.Name }}>(xml); + } {{- - $default = $prop | default_value $1 - if $default + end # if IsAbstract || IsSubstitutionHead + end # if HasLoadMethods }} - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static {{ $prop.Type | type_name }} {{ $prop.Name }}DefaultValue = System.Xml.XmlConvert.{{ $default }}; - {{- end }} - - {{- if $prop | is_list }} - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private XTypedList<{{ $prop.Name }}> {{ $prop.Name }}Field; + public static explicit operator {{ $1.Name }}(XElement xe) { {{ + if $1.IsAbstract || $1.IsSubstitutionHead # match weird double-space in legacy code + }} return ({{ $1.Name }})XTypedServices.ToXTypedElement + {{- else # TODO: handle <$1.Name> for nested types -}} + return XTypedServices.ToXTypedElement<{{ $1.Name }}> + {{- end + -}}(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); } - {{- end }} + {{- if !$1.IsAbstract }} - {{ $prop | comments -}} - public virtual {{ $prop.Type | type_name}} {{ $prop.Name }} { - {{- if $prop | is_list }} - get { - if ((this.{{ $prop.Name }}Field == null)) { - this.{{ $prop.Name }}Field = new XTypedList<{{ $prop.Name }}>(this, LinqToXsdTypeManager.Instance, {{ $prop.Name }}XName); - } - return this.{{ $prop.Name }}Field; - } - set { - if ((value == null)) { - this.{{ $prop.Name }}Field = null; - } - else { - if ((this.{{ $prop.Name }}Field == null)) { - this.{{ $prop.Name }}Field = XTypedList<{{ $prop.Name }}>.Initialize(this, LinqToXsdTypeManager.Instance, value, {{ $prop.Name }}XName); - } - else { - XTypedServices.SetList<{{ $prop.Name }}>(this.{{ $prop.Name }}Field, value); - } - } - } - - {{- else if $prop | is_element }} - get { - XElement x = this.GetElement({{ $prop.Name }}XName); - {{- if $prop | is_optional }} - if ((x == null)) { - return null; - } - {{- end }} - return (({{ $prop.Type | type_name }})(x)); - } - set { - this.SetElement({{ $prop.Name }}XName, value); - } - - {{- else }} - get { - XAttribute x = this.Attribute({{ $prop.Name }}XName); - {{- if $prop | is_optional }} - if ((x == null)) { - return {{ $default ? $prop.Name + "DefaultValue" : "null" }}; - } - {{- end }} - return XTypedServices.ParseValue<{{ $prop.Type | type_name nullable: false }}>(x, XmlSchemaType.GetBuiltInSimpleType({{ $prop.Type | xml_type_code $prop.Name }}).Datatype); - } - set { - this.SetAttribute({{ $prop.Name }}XName, value, XmlSchemaType.GetBuiltInSimpleType({{ $prop.Type | xml_type_code $prop.Name }}).Datatype); - } - - {{- end }} - } - {{- end }} - - private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("{{ $1 | local_name 'xName' }}", "{{ $1 | namespace 'xName' }}"); - - {{- if $1 | has_elements }} - - static {{ $1.Name }}() { - BuildElementDictionary(); - {{- if $1 | has_content_model }} - contentModel = new SequenceContentModelEntity( - {{- for $el in $1 | elements -}} - new NamedContentModelEntity({{ $el.Name }}XName) - {{- if !for.last; ', '; end -}} - {{- end -}} - ); - {{- end }} - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Dictionary<System.Xml.Linq.XName, System.Type> localElementDictionary = new Dictionary<System.Xml.Linq.XName, System.Type>(); - - private static void BuildElementDictionary() { - {{- for $prop in $1 | elements }} - localElementDictionary.Add({{ $prop.Name }}XName, typeof({{ $prop.Type | type_name | list_element | string.split "." | array.last }})); - {{- end }} - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - Dictionary<System.Xml.Linq.XName, System.Type> IXMetaData.LocalElementsDictionary { - get { - return localElementDictionary; - } + public override XTypedElement Clone() { + {{~ # TODO: return new $1(($1.InnerType)this.Content.Clone); when InnerType ~}} + return XTypedServices.CloneXTypedElement<{{ $1.Name }}>(this); } - {{- end }} - - {{- if $1 | has_content_model }} - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ContentModelEntity contentModel; - - ContentModelEntity IXMetaData.GetContentModel() { - return contentModel; - } - {{- else }} - - ContentModelEntity IXMetaData.GetContentModel() { - return ContentModelEntity.Default; + {{ include 'comments.scriban-cs' $1.Comments -}} + public {{ $1.Name }}() { + {{~ # TODO: review CreateDEfaultConstructor for Wrapper types ~}} } - {{- end }} + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("{{ $1.XName }}", "{{ $1.XNamespace }}"); [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { @@ -226,23 +91,5 @@ public partial class {{ $1.Name }} : XTypedElement, IXMetaData { } } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - SchemaOrigin IXMetaData.TypeOrigin { - get { - return {{ if $.isNested -}} SchemaOrigin.Fragment {{- else -}} SchemaOrigin.Element {{- end }}; - } - } - - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - ILinqToXsdTypeManager IXMetaData.TypeManager { - get { - return LinqToXsdTypeManager.Instance; - } - } - - {{- for $type in $1 | classes }} - - {{ include 'class.scriban-cs' $type isNested: true }} - - {{- end }} + {{ # TODO: continue work on IXMetadata }} } \ No newline at end of file diff --git a/XObjectsCode/Templates/comments.scriban-cs b/XObjectsCode/Templates/comments.scriban-cs new file mode 100644 index 00000000..da64b594 --- /dev/null +++ b/XObjectsCode/Templates/comments.scriban-cs @@ -0,0 +1,9 @@ +{{~ if !$1.empty? ~}} +/// <summary> +{{~ for $text in $1 ~}} +/// <para> +/// {{ $text | newline_prefix '///' }} +/// </para> +{{~ end ~}} +/// </summary> +{{ end ~}} \ No newline at end of file diff --git a/XObjectsCode/Templates/file.scriban-cs b/XObjectsCode/Templates/file.scriban-cs index 20564b45..fb6f3741 100644 --- a/XObjectsCode/Templates/file.scriban-cs +++ b/XObjectsCode/Templates/file.scriban-cs @@ -27,6 +27,7 @@ namespace {{ $ns.Name }} { using System.Xml.Linq; using Xml.Schema.Linq; {{ + # Extra usings if TypeManager.Namespace == $ns # TypeManager namespace import all other namespaces for $otherNs in Namespaces @@ -39,12 +40,13 @@ namespace {{ $ns.Name }} { "using " + TypeManager.Namespace.Name + ";\n" end + # Write all types for $type in $ns.Types "\n\n" if $type.IsSimpleType include 'simple-type.scriban-cs' $type else - include 'class.scriban-cs' $type.Dom + include 'class.scriban-cs' $type end end -}} diff --git a/XObjectsCode/Templates/manager.scriban-cs b/XObjectsCode/Templates/manager.scriban-cs index 997d5fbf..6be9d35b 100644 --- a/XObjectsCode/Templates/manager.scriban-cs +++ b/XObjectsCode/Templates/manager.scriban-cs @@ -11,7 +11,7 @@ private static void BuildTypeDictionary() { {{- for $type in AllTypes }} - typeDictionary.Add(System.Xml.Linq.XName.Get("{{ $type.XsdName }}", "{{ $type.XsdNs }}"), typeof(global::{{ $type.Name }})); + typeDictionary.Add(System.Xml.Linq.XName.Get("{{ $type.XName }}", "{{ $type.XNamespace }}"), typeof(global::{{ $type.Fqn }})); {{- end }} } @@ -23,7 +23,7 @@ private static void BuildElementDictionary() { {{- for $el in AllElements }} - elementDictionary.Add(System.Xml.Linq.XName.Get("{{ $el.XsdName }}", "{{ $el.XsdNs }}"), typeof(global::{{ $el.Name }})); + elementDictionary.Add(System.Xml.Linq.XName.Get("{{ $el.XName }}", "{{ $el.XNamespace }}"), typeof(global::{{ $el.Fqn }})); {{- end }} } @@ -92,7 +92,7 @@ public static System.Type GetRootType() { {{- if RootElement }} - return elementDictionary[System.Xml.Linq.XName.Get("{{ TypeManager.RootElement | local_name 'xName' }}", "{{ TypeManager.RootElement | namespace 'xName' }}")]; + return elementDictionary[System.Xml.Linq.XName.Get("{{ TypeManager.RootElement.XName }}", "{{ TypeManager.RootElement.XNamespace }}")]; {{- else }} return typeof(Xml.Schema.Linq.XTypedElement); {{- end }} diff --git a/XObjectsCode/Templates/simple-type.scriban-cs b/XObjectsCode/Templates/simple-type.scriban-cs index a230d0c5..600eea20 100644 --- a/XObjectsCode/Templates/simple-type.scriban-cs +++ b/XObjectsCode/Templates/simple-type.scriban-cs @@ -1,14 +1,6 @@ {{- if $1.IsEnum -}} -{{~ if !$1.Comments.empty? ~}} -/// <summary> -{{~ for $text in $1.Comments ~}} -/// <para> -/// {{ $text | newline_prefix '///' }} -/// </para> -{{~ end ~}} -/// </summary> -{{~ end ~}} +{{ include 'comments.scriban-cs' $1.Comments -}} {{ $1.Namespace.AccessModifier }} enum {{ $1.EnumName }} { {{ for $enumValue in $1.EnumValues ~}} @@ -18,15 +10,7 @@ {{ end # if IsEnum -}} -{{~ if !$1.Comments.empty? ~}} -/// <summary> -{{~ for $text in $1.Comments ~}} -/// <para> -/// {{ $text | newline_prefix '///' }} -/// </para> -{{~ end ~}} -/// </summary> -{{~ end ~}} +{{ include 'comments.scriban-cs' $1.Comments -}} {{ $1.Namespace.AccessModifier }} sealed class {{ $1.Name }} { private {{ $1.Name }}() { From 78f88fd375e92ee1510c7ad50b7274bffb1d1c8a Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Sun, 29 Mar 2026 17:07:11 +0200 Subject: [PATCH 22/29] IXmlSerializable support --- XObjectsCode/Src/CodeDomTypesGenerator.cs | 21 -------- XObjectsCode/Src/Model/CClass.cs | 5 +- XObjectsCode/Src/TypeBuilder.cs | 63 +---------------------- XObjectsCode/Templates/class.scriban-cs | 28 +++++++++- 4 files changed, 31 insertions(+), 86 deletions(-) diff --git a/XObjectsCode/Src/CodeDomTypesGenerator.cs b/XObjectsCode/Src/CodeDomTypesGenerator.cs index d22cce7d..cbeec4de 100644 --- a/XObjectsCode/Src/CodeDomTypesGenerator.cs +++ b/XObjectsCode/Src/CodeDomTypesGenerator.cs @@ -470,26 +470,6 @@ private CodeTypeDeclaration GetCodeTypeDeclaration(string typeName, CodeNamespac return null; } - private void AddDefaultImports(CodeNamespace newCodeNamespace) - { - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Collections")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Collections.Generic")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.ComponentModel")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.IO")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Linq")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Diagnostics")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Xml")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Xml.Schema")); - if (settings.EnableServiceReference) - { - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Xml.Serialization")); - } - - newCodeNamespace.Imports.Add(new CodeNamespaceImport("System.Xml.Linq")); - newCodeNamespace.Imports.Add(new CodeNamespaceImport("Xml.Schema.Linq")); - } - private TypeBuilder GetTypeBuilder() { if (typeBuilder == null) @@ -578,7 +558,6 @@ private CNamespace GetCNamespace(string clrNamespace) .GetValueOrDefault(clrNamespace, GeneratedTypesVisibility.Public) .ToKeyword(), }; - AddDefaultImports(currentCodeNamespace.Dom); codeNamespacesTable.Add(clrNamespace, currentCodeNamespace); } diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index 38a6645c..aa831f4a 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -13,10 +13,10 @@ namespace Xml.Schema.Linq.CodeGen.Model; /// </summary> public abstract class CClass { - /// <summary>Parent C# namespace</summary> public CNamespace? Namespace { get; set; } - // This isn't great OOP design but Scriban doesn't have first-class support for OOP (no `is` operator) + // This isn't great OOP design but Scriban doesn't have first-class support for OOP (no `is` operator). + // Maybe it'd be cleaner to put the `is CSimpleType` behind a global function. public virtual bool IsSimpleType => false; [return: NotNullIfNotNull(nameof(name))] @@ -59,6 +59,7 @@ public class CSimpleType( public override bool IsSimpleType => true; public bool IsGlobal => info.IsGlobal; + public SchemaOrigin Origin => info.typeOrigin; // For enums, the clrtypeName is used for `enum` declaration, // so suffix "Validator" is added to the simple type class holding the `TypeDefinition`. diff --git a/XObjectsCode/Src/TypeBuilder.cs b/XObjectsCode/Src/TypeBuilder.cs index 44d672e2..193b3535 100644 --- a/XObjectsCode/Src/TypeBuilder.cs +++ b/XObjectsCode/Src/TypeBuilder.cs @@ -90,13 +90,9 @@ protected virtual void SetElementWildCardFlag(bool hasAny) //Do nothing by default } - internal virtual void ImplementInterfaces(bool enableServiceReference) + internal void ImplementInterfaces(bool enableServiceReference) { ImplementIXMetaData(); - if (enableServiceReference) - { - ImplementIXmlSerializable(); - } } protected void InnerInit() @@ -175,63 +171,6 @@ private void ImplementIXMetaData() decl.BaseTypes.Add(interfaceName); } - private void ImplementIXmlSerializable() - { - string interfaceName = Constants.IXmlSerializable; - string typeManagerName = Constants.LinqToXsdTypeManager; - string methodName = clrTypeInfo.clrtypeName + "SchemaProvider"; - CodeMemberMethod schemaProviderMethod = - CodeDomHelper.CreateMethod(methodName, null, DefaultVisibility.ToMemberAttribute() | MemberAttributes.Static); - - schemaProviderMethod.Parameters.Add(new CodeParameterDeclarationExpression("XmlSchemaSet", "schemas")); - schemaProviderMethod.Statements.Add( - //LinqtoXsdTypeManager.AddSchemas(schemas) - CodeDomHelper.CreateMethodCall(new CodeTypeReferenceExpression(typeManagerName), - "AddSchemas", new CodeVariableReferenceExpression("schemas"))); - - CodeExpression qNameExp = new CodeObjectCreateExpression("XmlQualifiedName", - new CodePrimitiveExpression(clrTypeInfo.schemaName), new CodePrimitiveExpression(clrTypeInfo.schemaNs)); - - if (clrTypeInfo.typeOrigin == SchemaOrigin.Element) - { - schemaProviderMethod.Statements.Add( - //XmlSchemaElement element = (XmlSchemaElement)schemas.GlobalElements[new XmlQualifiedName("orders", "http://tempuri/Orders.org")]; - new CodeVariableDeclarationStatement("XmlSchemaElement", "element", - new CodeCastExpression("XmlSchemaElement", - new CodeIndexerExpression( - new CodePropertyReferenceExpression( - new CodeVariableReferenceExpression("schemas"), - "GlobalElements"), qNameExp)))); - - //if(element != null) { return element.ElementSchemaType; } else { return null;} - schemaProviderMethod.Statements.Add( - new CodeConditionStatement( - new CodeBinaryOperatorExpression( - new CodeVariableReferenceExpression("element"), - CodeBinaryOperatorType.IdentityInequality, - new CodePrimitiveExpression(null)), - new CodeMethodReturnStatement( - new CodePropertyReferenceExpression( - new CodeVariableReferenceExpression("element"), - "ElementSchemaType")))); - - schemaProviderMethod.Statements.Add( - new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); - - schemaProviderMethod.ReturnType = new CodeTypeReference("XmlSchemaType"); - } - else - { - schemaProviderMethod.ReturnType = new CodeTypeReference("XmlQualifiedName"); - schemaProviderMethod.Statements.Add( - new CodeMethodReturnStatement(qNameExp)); - } - - decl.CustomAttributes.Add(CodeDomHelper.SchemaProviderAttribute(clrTypeInfo.clrtypeName)); - decl.BaseTypes.Add(interfaceName); - decl.Members.Add(schemaProviderMethod); - } - protected virtual void ImplementFSMMetaData() { //Do nothing. diff --git a/XObjectsCode/Templates/class.scriban-cs b/XObjectsCode/Templates/class.scriban-cs index ba7acb1f..c8c940f1 100644 --- a/XObjectsCode/Templates/class.scriban-cs +++ b/XObjectsCode/Templates/class.scriban-cs @@ -1,9 +1,18 @@ {{ include 'comments.scriban-cs' $1.Comments -}} +{{- if Settings.EnableServiceReference }} +[XmlSchemaProviderAttribute("{{$1.Name}}SchemaProvider")] +{{ end -}} {{ $1.Namespace.AccessModifier $1.IsAbstract ? " abstract" : "" $1.IsSealed ? " sealed" : "" -}} partial class {{ $1.Name }} : {{ $1.BaseType }}, IXMetaData { + " partial class " + $1.Name + " : " + $1.BaseType + ", IXMetaData" + Settings.EnableServiceReference ? ", IXmlSerializable" : "" +}} { {{- if $1.HasSaveMethods }} @@ -92,4 +101,21 @@ } {{ # TODO: continue work on IXMetadata }} + + {{- if Settings.EnableServiceReference }} + + public static {{ $1.Origin == "Element" ? "XmlSchemaType" : "XmlQualifiedName" }} {{ $1.Name }}SchemaProvider() { + LinqToXsdTypeManager.AddSchemas(schemas); + {{~ if $1.Origin == "Element" ~}} + XmlSchemaElement element = (XmlSchemaElement)schemas.GlobalElements[new XmlQualifiedName({{ $1.XName | string.literal }}, {{ $1.XNamespace | string.literal }})]; + if (element != null) { + return element.ElementSchemaType; + } + return null; + {{~ else ~}} + return new XmlQualifiedName({{ $1.XName | string.literal }}, {{ $1.XNamespace | string.literal }}); + {{~ end ~}} + } + + {{- end }} } \ No newline at end of file From 35c37c6d15fb194518dc3c19e2e16ad6d7756145 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Sun, 29 Mar 2026 17:17:35 +0200 Subject: [PATCH 23/29] IXMetaData implementation, except content-related --- XObjectsCode/Src/CodeDomHelper.cs | 12 --------- XObjectsCode/Src/Model/CClass.cs | 3 +-- XObjectsCode/Src/TypeBuilder.cs | 36 +------------------------ XObjectsCode/Templates/class.scriban-cs | 15 ++++++++++- 4 files changed, 16 insertions(+), 50 deletions(-) diff --git a/XObjectsCode/Src/CodeDomHelper.cs b/XObjectsCode/Src/CodeDomHelper.cs index 4ca37552..3d6a6776 100644 --- a/XObjectsCode/Src/CodeDomHelper.cs +++ b/XObjectsCode/Src/CodeDomHelper.cs @@ -156,18 +156,6 @@ public static CodeMemberProperty CreateTypeManagerProperty(MemberAttributes attr return property; } - public static CodeMemberProperty CreateTypeOriginProperty(SchemaOrigin typeOrigin, - MemberAttributes visibility) - { - CodeTypeReference originType = new CodeTypeReference(Constants.Origin); - CodeMemberProperty property = - CreateInterfaceImplProperty(Constants.TypeOrigin, Constants.IXMetaData, originType, visibility); - property.GetStatements.Add(new CodeMethodReturnStatement(new CodeFieldReferenceExpression( - new CodeTypeReferenceExpression(originType), - typeOrigin == SchemaOrigin.Element ? "Element" : "Fragment"))); - return property; - } - public static CodeMemberMethod CreateMethod(string methodName, CodeTypeReference returnType, MemberAttributes methodAttributes) { diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index aa831f4a..19e9f1a5 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -1,6 +1,5 @@ #nullable enable -using System.CodeDom; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -35,6 +34,7 @@ public class CElement(ClrContentTypeInfo info) : CClass { public string XName => info.schemaName; public string XNamespace => info.schemaNs; + public SchemaOrigin Origin => info.typeOrigin; public string Name => info.clrtypeName; public string Fqn => QualifiedName(Namespace!.Name, Name); public bool IsAbstract => info.IsAbstract; @@ -59,7 +59,6 @@ public class CSimpleType( public override bool IsSimpleType => true; public bool IsGlobal => info.IsGlobal; - public SchemaOrigin Origin => info.typeOrigin; // For enums, the clrtypeName is used for `enum` declaration, // so suffix "Validator" is added to the simple type class holding the `TypeDefinition`. diff --git a/XObjectsCode/Src/TypeBuilder.cs b/XObjectsCode/Src/TypeBuilder.cs index 193b3535..4cc16d4b 100644 --- a/XObjectsCode/Src/TypeBuilder.cs +++ b/XObjectsCode/Src/TypeBuilder.cs @@ -129,46 +129,12 @@ protected virtual void ImplementCommonIXMetaData() //Do nothing, this will inherit the LocalElementDictionary from XTypedElement which returns empty dict and Content which returns null } - public CodeMemberProperty CreateSchemaNameProperty(string schemaName, string schemaNs, MemberAttributes attributes) - { - // HACK: CodeDom doesn't model readonly fields... but it doesn't check the type either! - var field = new CodeMemberField("readonly System.Xml.Linq.XName", "xName") - { - Attributes = MemberAttributes.Private | MemberAttributes.Static, - InitExpression = CodeDomHelper.XNameGetExpression(schemaName, schemaNs), - }; - decl.Members.Add(field); - - CodeMemberProperty property = CodeDomHelper.CreateInterfaceImplProperty(Constants.SchemaName, Constants.IXMetaData, - new CodeTypeReference(Constants.XNameType), attributes); - property.GetStatements.Add(new CodeMethodReturnStatement(new CodeFieldReferenceExpression(null, "xName"))); - return property; - } - private void ImplementIXMetaData() { - string interfaceName = Constants.IXMetaData; - - CodeMemberProperty schemaNameProperty = - CreateSchemaNameProperty(clrTypeInfo.schemaName, clrTypeInfo.schemaNs, DefaultVisibility.ToMemberAttribute()); - + // TODO: content-related metadata ImplementCommonIXMetaData(); if (clrTypeInfo.HasElementWildCard) ImplementFSMMetaData(); else ImplementContentModelMetaData(); - - - CodeMemberProperty typeOriginProperty = - CodeDomHelper.CreateTypeOriginProperty(clrTypeInfo.typeOrigin, DefaultVisibility.ToMemberAttribute()); - - CodeDomHelper.AddBrowseNever(schemaNameProperty); - CodeDomHelper.AddBrowseNever(typeOriginProperty); - - decl.Members.Add(schemaNameProperty); - decl.Members.Add(typeOriginProperty); - var typeManagerProperty = CodeDomHelper.CreateTypeManagerProperty(DefaultVisibility.ToMemberAttribute()); - typeManagerProperty.Attributes = MemberAttributes.FamilyOrAssembly; - decl.Members.Add(CodeDomHelper.AddBrowseNever(typeManagerProperty)); - decl.BaseTypes.Add(interfaceName); } protected virtual void ImplementFSMMetaData() diff --git a/XObjectsCode/Templates/class.scriban-cs b/XObjectsCode/Templates/class.scriban-cs index c8c940f1..b6c38896 100644 --- a/XObjectsCode/Templates/class.scriban-cs +++ b/XObjectsCode/Templates/class.scriban-cs @@ -93,6 +93,7 @@ private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("{{ $1.XName }}", "{{ $1.XNamespace }}"); + {{~ # TODO: IXMetadata related to content (elements, contentmodel, FSM) ~}} [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { get { @@ -100,8 +101,20 @@ } } - {{ # TODO: continue work on IXMetadata }} + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + SchemaOrigin IXMetaData.TypeOrigin { + get { + return SchemaOrigin.{{ $1.Origin }}; + } + } + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + ILinqToXsdTypeManager IXMetaData.TypeManager { + get { + return LinqToXsdTypeManager.Instance; + } + } + {{- if Settings.EnableServiceReference }} public static {{ $1.Origin == "Element" ? "XmlSchemaType" : "XmlQualifiedName" }} {{ $1.Name }}SchemaProvider() { From 7cbd35499466feb5fa68ce3b5a9f6eed4db1e441 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Sun, 29 Mar 2026 20:59:49 +0200 Subject: [PATCH 24/29] Initial work on attributes --- XObjectsCode/Src/ClrPropertyInfo.cs | 97 ++++++++++++++++++++- XObjectsCode/Src/CodeDomTypesGenerator.cs | 9 ++ XObjectsCode/Src/Model/CClass.cs | 6 ++ XObjectsCode/Src/Model/CContent.cs | 46 ++++++++++ XObjectsCode/Src/Scriban/ScribanGlobals.cs | 30 +++++++ XObjectsCode/Src/XsdToTypesConverter.cs | 17 ++-- XObjectsCode/Templates/attribute.scriban-cs | 55 ++++++++++++ XObjectsCode/Templates/class.scriban-cs | 13 ++- 8 files changed, 260 insertions(+), 13 deletions(-) create mode 100644 XObjectsCode/Src/Model/CContent.cs create mode 100644 XObjectsCode/Templates/attribute.scriban-cs diff --git a/XObjectsCode/Src/ClrPropertyInfo.cs b/XObjectsCode/Src/ClrPropertyInfo.cs index 066ed04d..3036cd92 100644 --- a/XObjectsCode/Src/ClrPropertyInfo.cs +++ b/XObjectsCode/Src/ClrPropertyInfo.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using System.Text.RegularExpressions; using System.Xml.Schema; using Xml.Schema.Linq.Extensions; using XObjects; @@ -295,6 +296,50 @@ public override bool VerifyRequired public override XCodeTypeReference ReturnType => returnType ??= CreateReturnType(IsEnum ? typeRef.ClrFullTypeName : clrTypeName); + private string? returnTypeStr = null, returnTypeFqn = null; + + // TODO: rename after getting rid of CodeDom ReturnType property above + public string ReturnTypeStr + { + get + { + if (returnTypeStr == null) + (returnTypeStr, returnTypeFqn) = CreateReturnTypeStr(IsEnum ? typeRef.ClrFullTypeName : clrTypeName); + return returnTypeStr; + } + } + + public string? ReturnTypeFqn + { + get + { + if (returnTypeStr == null) + (returnTypeStr, returnTypeFqn) = CreateReturnTypeStr(IsEnum ? typeRef.ClrFullTypeName : clrTypeName); + return returnTypeFqn; + } + } + + private string? fixedOrDefaultBaseType = null; + private bool isFixedOrDefaultList; + + public string FixedOrDefaultBaseType + { + get { + if (fixedOrDefaultBaseType == null) + (fixedOrDefaultBaseType, isFixedOrDefaultList) = CreateFixedOrDefaultType(ReturnTypeStr); + return fixedOrDefaultBaseType; + } + } + + public bool IsFixedOrDefaultList + { + get { + if (fixedOrDefaultBaseType == null) + (fixedOrDefaultBaseType, isFixedOrDefaultList) = CreateFixedOrDefaultType(ReturnTypeStr); + return isFixedOrDefaultList; + } + } + private string QualifiedType => typeRef.IsLocalType && !typeRef.IsSimpleType ? parentTypeFullName + "." + clrTypeName : clrTypeName; @@ -303,6 +348,55 @@ public override XCodeTypeReference ReturnType ? QualifiedType + "?" : QualifiedType; + private (string, string?) CreateReturnTypeStr(string typeName) + { + if (IsList || !IsRef && IsSchemaList) + { + var listType = (IsEnum, IsNillable) switch + { + (true, true) => typeRef.ClrFullTypeName + "?", + (true, false) => typeRef.ClrFullTypeName, + _ => NullableType, + }; + return (hasSet ? $"IList<{listType}>" : $"IEnumerable<{listType}>", null); + } + + string fullTypeName = typeRef.IsLocalType && !typeRef.IsSimpleType + ? parentTypeFullName + "." + typeName + : typeName; // For simple types, return type is always XSD -> CLR mapping + + if (!IsRef && IsNullable && (settings.NullableReferences || typeRef.IsValueType)) + return (fullTypeName + "?", null); + + return (typeName, fullTypeName); + } + + private static bool RegexExtract(string text, string pattern, out string result) + { + var match = Regex.Match(text, pattern); + result = match.Success ? match.Groups[1].Value : ""; + return match.Success; + } + + private (string, bool) CreateFixedOrDefaultType(string typeName) + { + string baseType; + + if (RegexExtract(typeName, @"\bNullable<([^,>]+)>$", out baseType)) // Nullable<T> + return (baseType, false); + + if (typeName.EndsWith("?")) // T? + return (typeName[..^1], false); + + if (RegexExtract(typeName, @"^(.+)\[\]$", out baseType)) // T[] + return (baseType, true); + + if (RegexExtract(typeName, @"\bI?List<([^,>]+)>$", out baseType)) // IList<T> + return (baseType, true); + + return (typeName, false); + } + private XCodeTypeReference CreateReturnType(string typeName) { if (IsList || !IsRef && IsSchemaList) @@ -366,7 +460,7 @@ public void UpdateTypeReference( this.clrTypeName = typeRef.GetClrFullTypeName(currentNamespaceScope, nameMappings, settings, out string refTypeName); - if ((Validation || IsUnion) || IsEnum) + if (Validation || IsUnion || IsEnum) { this.simpleTypeClrTypeName = typeRef.GetSimpleTypeClrTypeDefName(currentNamespaceScope, nameMappings); } @@ -393,6 +487,7 @@ public void SetPropertyAttributes(CodeMemberProperty clrProperty, MemberAttribut public override CodeMemberProperty? AddToType(CodeTypeDeclaration parentTypeDecl, List<ClrAnnotation> annotations, GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) { + // TODO Scriban migration: done, remove when not referenced if (parentTypeDecl == null) throw new ArgumentNullException(nameof(parentTypeDecl)); if (!ShouldGenerate) { diff --git a/XObjectsCode/Src/CodeDomTypesGenerator.cs b/XObjectsCode/Src/CodeDomTypesGenerator.cs index cbeec4de..df2b35ce 100644 --- a/XObjectsCode/Src/CodeDomTypesGenerator.cs +++ b/XObjectsCode/Src/CodeDomTypesGenerator.cs @@ -118,6 +118,15 @@ private CElement ProcessType2(ClrContentTypeInfo typeInfo, string parentIdentifi var element = new CElement(typeInfo); + foreach (var content in typeInfo.Content) + { + if (content is ClrPropertyInfo info) + { + // TODO: review handling of createNestedEnumType action + info.UpdateTypeReference(currentFullTypeName, currentNamespace, nameMappings, (_) => {}); + } + } + if (globalType) { if (typeInfo.typeOrigin == SchemaOrigin.Fragment) diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index 19e9f1a5..3a6b2a6f 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -45,6 +45,12 @@ public class CElement(ClrContentTypeInfo info) : CClass public bool HasSaveMethods => info.typeOrigin == SchemaOrigin.Element && !info.IsDerived; public bool HasLoadMethods => info.typeOrigin == SchemaOrigin.Element; public IEnumerable<string> Comments => info.Annotations?.Select(a => a.Text) ?? []; + + public IEnumerable<CContent> Content => info.Content + .Where(x => x is not ClrPropertyInfo { ShouldGenerate: false }) + .Select(x => x.ContentType == ContentType.Property + ? new CAttribute((ClrPropertyInfo)x) as CContent + : new CGrouping(x)); } /// <summary> diff --git a/XObjectsCode/Src/Model/CContent.cs b/XObjectsCode/Src/Model/CContent.cs new file mode 100644 index 00000000..0c795f73 --- /dev/null +++ b/XObjectsCode/Src/Model/CContent.cs @@ -0,0 +1,46 @@ +using System.Collections.Generic; +using System.IO; +using System.Linq; +using Microsoft.VisualBasic; + +namespace Xml.Schema.Linq.CodeGen.Model; + +/// <summary> +/// Represents properties of an CElement: attributes or grouping of tag content +/// </summary> +public abstract class CContent(ContentInfo info) +{ + public ContentType ContentType => info.ContentType; +} + +/// <summary> +/// Represents a property depicting an element attribute in generated code +/// </summary> +public class CAttribute(ClrPropertyInfo info) : CContent(info) +{ + public string XNamespace => info.PropertyNs; + public string XName => info.SchemaName; + public string XNameField { get; } = info.PropertyName + "XName"; + public string Name => info.PropertyName; + public string Type => info.ReturnTypeStr; + public bool IsNew => info.IsNew; + public bool IsEnum => info.IsEnum; + public IEnumerable<string> Comments => info.Annotations.Select(x => x.Text); + + public bool IsOptional => info.IsOptional; + public string FixedOrDefaultValue => info.FixedValue ?? info.DefaultValue; + public string FixedOrDefaultBaseType => info.FixedOrDefaultBaseType; + public bool IsFixedOrDefaultList => info.IsFixedOrDefaultList; + public string FixedOrDefaultField { get; } = info switch + { + { FixedValue: not null } => info.PropertyName + "FixedValue", + { DefaultValue: not null } => info.PropertyName + "DefaultValue", + _ => null, + }; +} + +/// <summary> +/// Represents a property depicting an element content in generated code +/// </summary> +public class CGrouping(ContentInfo info) : CContent(info) +{} \ No newline at end of file diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index f055d906..475a1448 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -30,6 +30,36 @@ public static string ValueLiteral(object value) return JsonSerializer.Serialize(value); } + public static string LocalName(string fqn) + { + int dot = fqn.LastIndexOf('.'); + return dot < 0 ? fqn : fqn.Substring(dot + 1); + } + + public static string Builtin(string type) + { + return type switch + { + "System.Int16" => "short", + "System.Int32" => "int", + "System.Int64" => "long", + "System.String" => "string", + "System.Object" => "object", + "System.Boolean" => "bool", + "System.Void" => "void", + "System.Char" => "char", + "System.Byte" => "byte", + "System.UInt16" => "ushort", + "System.UInt32" => "uint", + "System.UInt64" => "ulong", + "System.SByte" => "sbyte", + "System.Single" => "float", + "System.Double" => "double", + "System.Decimal" => "decimal", + _ => type, + }; + } + // Temporary marker comment: temporary helpers to adapt from CodeDom public static void Comments(TemplateContext ctx, object target) diff --git a/XObjectsCode/Src/XsdToTypesConverter.cs b/XObjectsCode/Src/XsdToTypesConverter.cs index 82874ff6..057fbc70 100644 --- a/XObjectsCode/Src/XsdToTypesConverter.cs +++ b/XObjectsCode/Src/XsdToTypesConverter.cs @@ -1190,14 +1190,12 @@ private void SetFixedDefaultValue(XmlSchemaAttribute attribute, ClrPropertyInfo if (attribute.AttributeSchemaType.DerivedBy == XmlSchemaDerivationMethod.Union) { - string value = propertyInfo.FixedValue; - if (value == null) - value = propertyInfo.DefaultValue; + string value = propertyInfo.FixedValue ?? propertyInfo.DefaultValue; if (value != null) { - propertyInfo.unionDefaultType = attribute - .AttributeSchemaType.Datatype - .ParseValue(value, new NameTable(), null).GetType(); + propertyInfo.unionDefaultType = attribute.AttributeSchemaType.Datatype + .ParseValue(value, new NameTable(), null) + .GetType(); } } } @@ -1224,13 +1222,10 @@ private void SetFixedDefaultValue(XmlSchemaElement element, ClrPropertyInfo prop if (element.ElementSchemaType.DerivedBy == XmlSchemaDerivationMethod.Union) { - string value = propertyInfo.FixedValue; - if (value == null) - value = propertyInfo.DefaultValue; + string value = propertyInfo.FixedValue ?? propertyInfo.DefaultValue; if (value != null) { - propertyInfo.unionDefaultType = element - .ElementSchemaType.Datatype + propertyInfo.unionDefaultType = element.ElementSchemaType.Datatype .ParseValue(value, new NameTable(), null) .GetType(); } diff --git a/XObjectsCode/Templates/attribute.scriban-cs b/XObjectsCode/Templates/attribute.scriban-cs new file mode 100644 index 00000000..410606a0 --- /dev/null +++ b/XObjectsCode/Templates/attribute.scriban-cs @@ -0,0 +1,55 @@ +{{~ + $new = $1.IsNew ? "new " : "" +~}} + +[DebuggerBrowsable(DebuggerBrowsableState.Never)] +[EditorBrowsable(EditorBrowsableState.Never)] +protected internal static readonly {{ $new -}} System.Xml.Linq.XName {{ $1.XNameField }} = System.Xml.Linq.XName.Get("{{ $1.XName }}", "{{ $1.XNamespace }}"); + +{{- if $1.FixedOrDefaultValue }} + +{{~ # TODO: built-in must be applied more thoroughly, incl. on generic inner types such as List<string> ~}} +{{~ # TODO: review $1.Type for Union types, see. ClrPropertyInfo.CreateFixedDefaultValue ~}} +[DebuggerBrowsable(DebuggerBrowsableState.Never)] +private static {{ $1.Type | builtin }} {{ $1.FixedOrDefaultField }} = {{ + attr = $1 # funcs have their own local scope and non-global names won't resolve in parent scope :( + + func make_value + $local_type = attr.FixedOrDefaultBaseType | local_name + if $local_type == "String" || $local_type == "Object" + $0 | string.literal + else if attr.IsEnum + attr.FixedOrDefaultBaseType + "." + $0 + else if $local_type == "Uri" + "new Uri(" + ($0 | string.literal) + ")" + else + "System.Xml.XmlConvert.To" + $local_type + "(" + ($0 | string.literal) + ")" + end + end + + if $1.IsFixedOrDefaultList + "new " + ($1.FixedOrDefaultBaseType | builtin) + "[] {\n " + $1.FixedOrDefaultValue | string.split ' ' | array.join ",\n " @make_value + "}" + else + $1.FixedOrDefaultValue | make_value + end +}}; +{{- end }} + +{{~ # TODO: continue review of ClrPropertyInfo.AddToType after CreateFixedDefaultValue ~}} +{{ include 'comments.scriban-cs' $1.Comments -}} +public virtual {{ $new -}} {{ $1.Type | builtin }} {{ $1.Name }} { + get { + XAttribute x = this.Attribute({{ $1.XNameField }}); + {{- if $1.IsOptional }} + if ((x == null)) { + return {{ $1.FixedOrDefaultField ?? "null" }}; + } + {{- end }} + return XTypedServices.ParseValue<{{ $1.Type | builtin }}>(x, XmlSchemaType.GetBuiltInSimpleType({{ $1.Type }}).Datatype); + } + set { + this.SetAttribute({{ $1.XNameField }}, value, XmlSchemaType.GetBuiltInSimpleType({{ $1.Type }}).Datatype); + } +} \ No newline at end of file diff --git a/XObjectsCode/Templates/class.scriban-cs b/XObjectsCode/Templates/class.scriban-cs index b6c38896..297c6e3f 100644 --- a/XObjectsCode/Templates/class.scriban-cs +++ b/XObjectsCode/Templates/class.scriban-cs @@ -91,8 +91,19 @@ {{~ # TODO: review CreateDEfaultConstructor for Wrapper types ~}} } + {{- + for $content in $1.Content + if $content.ContentType == "Property" + }} + {{ include 'attribute.scriban-cs' $content -}} + {{- # TODO: else 'grouping' + end + end + }} + private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("{{ $1.XName }}", "{{ $1.XNamespace }}"); - + + {{~ # TODO: CreateFunctionalConstructor }} {{~ # TODO: IXMetadata related to content (elements, contentmodel, FSM) ~}} [DebuggerBrowsable(DebuggerBrowsableState.Never)] System.Xml.Linq.XName IXMetaData.SchemaName { From c19e532685345a6d4a5e43e3a60a520bbc1a1a88 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Wed, 1 Apr 2026 00:54:23 +0200 Subject: [PATCH 25/29] Work on property getters --- XObjectsCode/Src/ClrPropertyInfo.cs | 200 ++++++-------------- XObjectsCode/Src/Model/CClass.cs | 16 +- XObjectsCode/Src/Model/CContent.cs | 9 + XObjectsCode/Src/Scriban/ScribanGlobals.cs | 12 +- XObjectsCode/Templates/attribute.scriban-cs | 84 +++++++- XObjectsCode/Templates/class.scriban-cs | 22 +-- 6 files changed, 170 insertions(+), 173 deletions(-) diff --git a/XObjectsCode/Src/ClrPropertyInfo.cs b/XObjectsCode/Src/ClrPropertyInfo.cs index 3036cd92..ea19cabe 100644 --- a/XObjectsCode/Src/ClrPropertyInfo.cs +++ b/XObjectsCode/Src/ClrPropertyInfo.cs @@ -606,35 +606,7 @@ public override void AddToConstructor(CodeConstructor functionalConstructor) } } } - - private CodeVariableDeclarationStatement GetValueMethodCall() - { - switch (propertyOrigin) - { - case SchemaOrigin.Element: - return new CodeVariableDeclarationStatement( - "XElement", - "x", - CodeDomHelper.CreateMethodCall(CodeDomHelper.This(), "GetElement", xNameExpression)); - - case SchemaOrigin.Attribute: - return new CodeVariableDeclarationStatement( - "XAttribute", - "x", - CodeDomHelper.CreateMethodCall(CodeDomHelper.This(), "Attribute", xNameExpression)); - - case SchemaOrigin.Text: - return new CodeVariableDeclarationStatement( - "XElement", - "x", - new CodePropertyReferenceExpression(CodeDomHelper.This(), Constants.Untyped)); - - case SchemaOrigin.None: - default: - throw new InvalidOperationException(); - } - } - + private void AddSetValueMethodCall(CodeStatementCollection setStatements) { string setMethodName = "Set"; @@ -911,24 +883,24 @@ private void AddGetStatements(CodeStatementCollection getStatements) return; } - // Fixed attributes always have the same value, whether they're present or not. - if (FixedValue != null && propertyOrigin == SchemaOrigin.Attribute) - { - ReturnFixedValue(getStatements); - return; - } + // // Fixed attributes always have the same value, whether they're present or not. + // if (FixedValue != null && propertyOrigin == SchemaOrigin.Attribute) + // { + // ReturnFixedValue(getStatements); + // return; + // } - getStatements.Add(GetValueMethodCall()); - CheckOccurrence(getStatements); - CheckNillable(getStatements); + // getStatements.Add(GetValueMethodCall()); + // CheckOccurrence(getStatements); + // CheckNillable(getStatements); // Fixed elements always have the same value, _when they're present._ // If they're optional they can still be absent and read as null, which is handled in CheckOccurence - if (FixedValue != null && propertyOrigin != SchemaOrigin.Attribute) - { - ReturnFixedValue(getStatements); - return; - } - GetElementDefaultValue(getStatements); // Attribute default value is handled in CheckOccurence + // if (FixedValue != null && propertyOrigin != SchemaOrigin.Attribute) + // { + // ReturnFixedValue(getStatements); + // return; + // } + // GetElementDefaultValue(getStatements); // Attribute default value is handled in CheckOccurence CodeVariableReferenceExpression returnValueExp = new CodeVariableReferenceExpression("x"); CodeExpression returnExp; if (!IsRef && typeRef.IsSimpleType) @@ -1001,106 +973,50 @@ private void AddGetStatements(CodeStatementCollection getStatements) private void CheckOccurrence(CodeStatementCollection getStatements) { - Debug.Assert(!this.IsList); - CodeStatement returnStatement = null; - if (CanBeAbsent) - { - // Absent attributes return their default value (if any). - // Note that absent elements return null, only empty elements return their default value (per xsd specs). - if (DefaultValue != null && propertyOrigin == SchemaOrigin.Attribute) - { - returnStatement = new CodeMethodReturnStatement( - new CodeFieldReferenceExpression( - null, - NameGenerator.ChangeClrName(propertyName, NameOptions.MakeDefaultValueField) - ) - ); - } - else - { - // For value types, this is needed to return T?, since ParseValue return T. - // It's not mandatory for ref types but it's more consistent and performant to do it always. - returnStatement = new CodeMethodReturnStatement(new CodePrimitiveExpression(null)); - } - } - else if (VerifyRequired) - { - Debug.Assert(this.occursInSchema == Occurs.One); - string origin = this.propertyOrigin == SchemaOrigin.Element ? "Element" : - this.propertyOrigin == SchemaOrigin.Attribute ? "Attribute" : null; - returnStatement = new CodeThrowExceptionStatement(new CodeObjectCreateExpression( - Constants.LinqToXsdException, new CodePrimitiveExpression("Missing required " + origin))); - } - - if (returnStatement != null) - { - getStatements.Add( - new CodeConditionStatement( - new CodeBinaryOperatorExpression( - new CodeVariableReferenceExpression("x"), - CodeBinaryOperatorType.IdentityEquality, - new CodePrimitiveExpression(null)), - returnStatement)); - } + // REVIEW: fully rewriten in scriban. + // Debug.Assert(!this.IsList); + // CodeStatement returnStatement = null; + // if (CanBeAbsent) + // { + // // Absent attributes return their default value (if any). + // // Note that absent elements return null, only empty elements return their default value (per xsd specs). + // if (DefaultValue != null && propertyOrigin == SchemaOrigin.Attribute) + // { + // returnStatement = new CodeMethodReturnStatement( + // new CodeFieldReferenceExpression( + // null, + // NameGenerator.ChangeClrName(propertyName, NameOptions.MakeDefaultValueField) + // ) + // ); + // } + // else + // { + // // For value types, this is needed to return T?, since ParseValue return T. + // // It's not mandatory for ref types but it's more consistent and performant to do it always. + // returnStatement = new CodeMethodReturnStatement(new CodePrimitiveExpression(null)); + // } + // } + // else if (VerifyRequired) + // { + // Debug.Assert(this.occursInSchema == Occurs.One); + // string origin = this.propertyOrigin == SchemaOrigin.Element ? "Element" : + // this.propertyOrigin == SchemaOrigin.Attribute ? "Attribute" : null; + // returnStatement = new CodeThrowExceptionStatement(new CodeObjectCreateExpression( + // Constants.LinqToXsdException, new CodePrimitiveExpression("Missing required " + origin))); + // } + + // if (returnStatement != null) + // { + // getStatements.Add( + // new CodeConditionStatement( + // new CodeBinaryOperatorExpression( + // new CodeVariableReferenceExpression("x"), + // CodeBinaryOperatorType.IdentityEquality, + // new CodePrimitiveExpression(null)), + // returnStatement)); + // } } - private void CheckNillable(CodeStatementCollection getStatements) - { - if (IsNillable) - { - getStatements.Add( - new CodeConditionStatement( - new CodeMethodInvokeExpression( - new CodeVariableReferenceExpression("x"), - "IsXsiNil"), - new CodeMethodReturnStatement(new CodePrimitiveExpression(null)) - ) - ); - } - } - - private void ReturnFixedValue(CodeStatementCollection getStatements) - { - getStatements.Add( - new CodeMethodReturnStatement( - new CodeFieldReferenceExpression( - null, - NameGenerator.ChangeClrName(propertyName, NameOptions.MakeFixedValueField) - ) - ) - ); - } - - private void GetElementDefaultValue(CodeStatementCollection getStatements) - { - // Default values of attributes are already handled previously based on attribute presence - if (propertyOrigin == SchemaOrigin.Attribute || DefaultValue == null) return; - - var x = new CodeVariableReferenceExpression("x"); - - // Default values apply when element is present and empty. - // Technically at this point x should be != null thanks to CheckOccurence but let's not crash with NRE if we're reading malformed XML. - // `if (x != null && x.IsEmpty) return defaultValue;` - getStatements.Add( - new CodeConditionStatement( - new CodeBinaryOperatorExpression( - new CodeBinaryOperatorExpression( - x, - CodeBinaryOperatorType.IdentityInequality, - new CodePrimitiveExpression(null) - ), - CodeBinaryOperatorType.BooleanAnd, - new CodeFieldReferenceExpression(x, "IsEmpty") - ), - new CodeMethodReturnStatement( - new CodeFieldReferenceExpression( - null, - NameGenerator.ChangeClrName(propertyName, NameOptions.MakeDefaultValueField) - ) - ) - ) - ); - } private void AddSetStatements(CodeStatementCollection setStatements) { diff --git a/XObjectsCode/Src/Model/CClass.cs b/XObjectsCode/Src/Model/CClass.cs index 3a6b2a6f..7acc2be9 100644 --- a/XObjectsCode/Src/Model/CClass.cs +++ b/XObjectsCode/Src/Model/CClass.cs @@ -46,11 +46,17 @@ public class CElement(ClrContentTypeInfo info) : CClass public bool HasLoadMethods => info.typeOrigin == SchemaOrigin.Element; public IEnumerable<string> Comments => info.Annotations?.Select(a => a.Text) ?? []; - public IEnumerable<CContent> Content => info.Content - .Where(x => x is not ClrPropertyInfo { ShouldGenerate: false }) - .Select(x => x.ContentType == ContentType.Property - ? new CAttribute((ClrPropertyInfo)x) as CContent - : new CGrouping(x)); + public IEnumerable<CAttribute> Content => info.Content.SelectMany(FlattenContents); + + private static IEnumerable<CAttribute> FlattenContents(ContentInfo info) + { + if (info.ContentType == ContentType.Property) + return info is ClrPropertyInfo { ShouldGenerate: true } p ? [new CAttribute(p)] : []; + // TODO: flesh out processing of groupings, this is just to understand better the content model + if (info.ContentType == ContentType.Grouping) return info.Children.SelectMany(FlattenContents); + // TODO: wildcard + return []; + } } /// <summary> diff --git a/XObjectsCode/Src/Model/CContent.cs b/XObjectsCode/Src/Model/CContent.cs index 0c795f73..60e20d46 100644 --- a/XObjectsCode/Src/Model/CContent.cs +++ b/XObjectsCode/Src/Model/CContent.cs @@ -21,13 +21,22 @@ public class CAttribute(ClrPropertyInfo info) : CContent(info) public string XNamespace => info.PropertyNs; public string XName => info.SchemaName; public string XNameField { get; } = info.PropertyName + "XName"; + public string XTypeCode => info.TypeReference.TypeCodeString; + public SchemaOrigin Origin => info.Origin; public string Name => info.PropertyName; public string Type => info.ReturnTypeStr; public bool IsNew => info.IsNew; + public bool IsOverride => info.IsOverride; + public bool HasSet => info.HasSet; public bool IsEnum => info.IsEnum; + public bool IsNillable => info.IsNillable; // Whether xs:nil is an acceptable value (e.g. can be used to override default value) + public bool CanBeAbsent => info.CanBeAbsent; // Whether tag/attribute can be absent from document + public bool VerifyRequired => info.VerifyRequired; // Throws when attempting to read a required but missing element or attribute public IEnumerable<string> Comments => info.Annotations.Select(x => x.Text); public bool IsOptional => info.IsOptional; + public string FixedValue => info.FixedValue; + public string DefaultValue => info.DefaultValue; public string FixedOrDefaultValue => info.FixedValue ?? info.DefaultValue; public string FixedOrDefaultBaseType => info.FixedOrDefaultBaseType; public bool IsFixedOrDefaultList => info.IsFixedOrDefaultList; diff --git a/XObjectsCode/Src/Scriban/ScribanGlobals.cs b/XObjectsCode/Src/Scriban/ScribanGlobals.cs index 475a1448..b93ab7e2 100644 --- a/XObjectsCode/Src/Scriban/ScribanGlobals.cs +++ b/XObjectsCode/Src/Scriban/ScribanGlobals.cs @@ -25,9 +25,15 @@ public static bool HasRestriction(CompiledFacets facets, RestrictionFlags test) public static string ValueLiteral(object value) { - if (value is DateTime dt) return $"new System.DateTime({dt.Ticks})"; - // For most types JSON serialization and C# agree on representation :) - return JsonSerializer.Serialize(value); + return value switch + { + DateTime dt => $"new System.DateTime({dt.Ticks})", + TimeSpan ts => $"new TimeSpan({ts.Ticks})", + Uri uri => $"new Uri({JsonSerializer.Serialize(uri.OriginalString)})", + byte[] bytes => $"new byte[] { string.Join(", ", bytes) }", + // For most types JSON serialization and C# agree on representation :) + _ => JsonSerializer.Serialize(value), + }; } public static string LocalName(string fqn) diff --git a/XObjectsCode/Templates/attribute.scriban-cs b/XObjectsCode/Templates/attribute.scriban-cs index 410606a0..983eddcb 100644 --- a/XObjectsCode/Templates/attribute.scriban-cs +++ b/XObjectsCode/Templates/attribute.scriban-cs @@ -35,21 +35,87 @@ private static {{ $1.Type | builtin }} {{ $1.FixedOrDefaultField }} = {{ $1.FixedOrDefaultValue | make_value end }}; + {{- end }} {{~ # TODO: continue review of ClrPropertyInfo.AddToType after CreateFixedDefaultValue ~}} +{{~ # TODO: list getter/setter ~}} {{ include 'comments.scriban-cs' $1.Comments -}} -public virtual {{ $new -}} {{ $1.Type | builtin }} {{ $1.Name }} { +public {{ + $1.IsOverride ? "override " : "virtual " + $new + $1.Type | builtin +}} {{ $1.Name }} { get { - XAttribute x = this.Attribute({{ $1.XNameField }}); - {{- if $1.IsOptional }} - if ((x == null)) { - return {{ $1.FixedOrDefaultField ?? "null" }}; - } - {{- end }} - return XTypedServices.ParseValue<{{ $1.Type | builtin }}>(x, XmlSchemaType.GetBuiltInSimpleType({{ $1.Type }}).Datatype); + {{ + # TODO: substitution head + + # Fixed attributes always have the same value, whether they're present or not + if $1.FixedValue && $1.Origin == "Attribute" + "return " + $1.FixedOrDefaultField + ";\n" + + else + case $1.Origin + when "Attribute" + "XAttribute x = this.Attribute(" + $1.XNameField + ");\n" + when "Element" + "XElement x = this.GetElement(" + $1.XNameField + ");\n" + when "Text" + "XElement x = this.Untyped;\n" + end + + if $1.CanBeAbsent + "if ((x == null)) {\n" + # Absent attributes return their default value (if any). + # Note that absent elements return null, only empty elements return their default value (per xsd specs). + if $1.DefaultValue && $1.Origin == "Attribute" + " return " + $1.FixedOrDefaultField + ";\n" + else + " return null;\n" + end + "}\n" + + else if $1.VerifyRequired + "if ((x == null)) {\n" + " throw new LinqToXsdException(" + ("Missing required " + $1.Origin | string.literal) + ");\n" + "}\n" + end + + if $1.IsNillable + "if (x.IsXsiNil) {\n" + " return null;\n" + "}\n" + end + + # Note attributes when fixed value have an exit above (they're always equal to fixed value). + # This applies only to elements, who enforce their fixed value only when _present._ + # Missing elements are still null (handled above in CanBeAbsent). + if $1.FixedValue + "return " + $1.FixedOrDefaultField + ";\n" + else + # Attributes default value is applied based on their presence above + if $1.DefaultValue && $1.Origin != "Attribute" + "if (x != null && x.IsEmpty) {\n" + " return " + $1.FixedOrDefaultField + ";\n" + "}\n" + end + + # TODO: many different cases based on type, this is the simplest + "return XTypedServices.ParseValue<" + ($1.Type | builtin) + ">(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype);\n" + end + end + -}} } + {{~ if $1.HasSet ~}} set { - this.SetAttribute({{ $1.XNameField }}, value, XmlSchemaType.GetBuiltInSimpleType({{ $1.Type }}).Datatype); + {{ + # TODO: temporary, review + if $1.Origin == "Element" + "this.SetElement(" + $1.XNameField + ", value);\n" + else + "this.SetAttribute(" + $1.XNameField + ", value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype);\n" + end + -}} } + {{~ end ~}} } \ No newline at end of file diff --git a/XObjectsCode/Templates/class.scriban-cs b/XObjectsCode/Templates/class.scriban-cs index 297c6e3f..e53f9ec8 100644 --- a/XObjectsCode/Templates/class.scriban-cs +++ b/XObjectsCode/Templates/class.scriban-cs @@ -36,19 +36,19 @@ }} public static {{ $1.Name }} Load(string xmlFile) { - return (({{ $1.Name }})XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance)); + return (({{ $1.Name }})(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } public static {{ $1.Name }} Load(System.IO.TextReader xmlFile) { - return (({{ $1.Name }})XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance)); + return (({{ $1.Name }})(XTypedServices.ToXTypedElement(XElement.Load(xmlFile), LinqToXsdTypeManager.Instance))); } public static {{ $1.Name }} Parse(string xml) { - return (({{ $1.Name }})XTypedServices.ToXTypedElement(XElement.Parse(xmlFile), LinqToXsdTypeManager.Instance)); + return (({{ $1.Name }})(XTypedServices.ToXTypedElement(XElement.Parse(xml), LinqToXsdTypeManager.Instance))); } - {{~ # when InnerType, generic type <$1.Name> must adapted and a 2nd parameter with SingletonTypeManager must be added ~}} - {{~ + {{- # TODO: when InnerType, generic type <$1.Name> must adapted and a 2nd parameter with SingletonTypeManager must be added ~}} + {{- else # if IsAbstract || IsSubstitutionHead $new = $1.IsDervived ? "new " : "" }} @@ -91,15 +91,9 @@ {{~ # TODO: review CreateDEfaultConstructor for Wrapper types ~}} } - {{- - for $content in $1.Content - if $content.ContentType == "Property" - }} - {{ include 'attribute.scriban-cs' $content -}} - {{- # TODO: else 'grouping' - end - end - }} + {{- for $content in $1.Content }} + {{ include 'attribute.scriban-cs' $content }} + {{- end }} private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("{{ $1.XName }}", "{{ $1.XNamespace }}"); From 48e2e9c9604a15608016854058e73a3dd0440424 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Thu, 2 Apr 2026 01:23:13 +0200 Subject: [PATCH 26/29] Complete non-list property getter --- XObjectsCode/Src/ClrPropertyInfo.cs | 154 ++++++++++---------- XObjectsCode/Src/Model/CContent.cs | 15 +- XObjectsCode/Templates/attribute.scriban-cs | 23 ++- XObjectsCode/Templates/class.scriban-cs | 2 +- 4 files changed, 107 insertions(+), 87 deletions(-) diff --git a/XObjectsCode/Src/ClrPropertyInfo.cs b/XObjectsCode/Src/ClrPropertyInfo.cs index ea19cabe..a025c3bb 100644 --- a/XObjectsCode/Src/ClrPropertyInfo.cs +++ b/XObjectsCode/Src/ClrPropertyInfo.cs @@ -901,74 +901,74 @@ private void AddGetStatements(CodeStatementCollection getStatements) // return; // } // GetElementDefaultValue(getStatements); // Attribute default value is handled in CheckOccurence - CodeVariableReferenceExpression returnValueExp = new CodeVariableReferenceExpression("x"); - CodeExpression returnExp; - if (!IsRef && typeRef.IsSimpleType) - { - //for referencing properties, directly create the object of referenced type - CodeTypeReference parseType = ReturnType; - if (typeRef.IsValueType && IsNullable) - { - parseType = new CodeTypeReference(clrTypeName); - } - - if (IsUnion) - { - returnExp = CodeDomHelper.CreateMethodCall( - CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), - Constants.ParseUnionValue, - returnValueExp, - GetSimpleTypeClassExpression(IsUnion)); - } - else - { - string parseMethodName; - CodeExpression simpleTypeExpression = GetSchemaDatatypeExpression(); - if (IsSchemaList) - { - parseMethodName = Constants.ParseListValue; - parseType = new CodeTypeReference(clrTypeName); - } - else - { - // XTypedServices.ParseValue<string> - parseMethodName = Constants.ParseValue; - if (IsEnum) { - if (TypeReference.SchemaObject is XmlSchemaSimpleType simpleSchemaType) { - parseType = new CodeTypeReference(simpleSchemaType.Datatype.ValueType); - } - } - } + // CodeVariableReferenceExpression returnValueExp = new CodeVariableReferenceExpression("x"); + // CodeExpression returnExp; + // if (!IsRef && typeRef.IsSimpleType) + // { + // //for referencing properties, directly create the object of referenced type + // CodeTypeReference parseType = ReturnType; + // if (typeRef.IsValueType && IsNullable) + // { + // parseType = new CodeTypeReference(clrTypeName); + // } - if (IsEnum) - { - // XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype, global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition) - returnExp = CodeDomHelper.CreateMethodCall( - CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), // XTypedServices - parseMethodName, // ParseValue - returnValueExp, // x - simpleTypeExpression, // XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype - GetSimpleTypeClassExpression()); // global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition - // (EnumType) Enum.Parse(typeof(EnumType), returnExp) - returnExp = CodeDomHelper.CreateParseEnumCall(this.TypeReference.ClrFullTypeName, returnExp); - } - else - { - returnExp = CodeDomHelper.CreateGenericMethodCall( - CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), - parseMethodName, - parseType, - returnValueExp, - simpleTypeExpression); - } - } - } - else - { - returnExp = new CodeCastExpression(ReturnType, returnValueExp); - } + // if (IsUnion) + // { + // returnExp = CodeDomHelper.CreateMethodCall( + // CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), + // Constants.ParseUnionValue, + // returnValueExp, + // GetSimpleTypeClassExpression(IsUnion)); + // } + // else + // { + // string parseMethodName; + // CodeExpression simpleTypeExpression = GetSchemaDatatypeExpression(); + // if (IsSchemaList) + // { + // parseMethodName = Constants.ParseListValue; + // parseType = new CodeTypeReference(clrTypeName); + // } + // else + // { + // // XTypedServices.ParseValue<string> + // parseMethodName = Constants.ParseValue; + // if (IsEnum) { + // if (TypeReference.SchemaObject is XmlSchemaSimpleType simpleSchemaType) { + // parseType = new CodeTypeReference(simpleSchemaType.Datatype.ValueType); + // } + // } + // } + + // if (IsEnum) + // { + // // XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype, global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition) + // returnExp = CodeDomHelper.CreateMethodCall( + // CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), // XTypedServices + // parseMethodName, // ParseValue + // returnValueExp, // x + // simpleTypeExpression, // XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype + // GetSimpleTypeClassExpression()); // global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition + // // (EnumType) Enum.Parse(typeof(EnumType), returnExp) + // returnExp = CodeDomHelper.CreateParseEnumCall(this.TypeReference.ClrFullTypeName, returnExp); + // } + // else + // { + // returnExp = CodeDomHelper.CreateGenericMethodCall( + // CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), + // parseMethodName, + // parseType, + // returnValueExp, + // simpleTypeExpression); + // } + // } + // } + // else + // { + // returnExp = new CodeCastExpression(ReturnType, returnValueExp); + // } - getStatements.Add(new CodeMethodReturnStatement(returnExp)); + // getStatements.Add(new CodeMethodReturnStatement(returnExp)); } private void CheckOccurrence(CodeStatementCollection getStatements) @@ -1173,30 +1173,22 @@ protected CodeExpression GetSchemaDatatypeExpression() Constants.Datatype); } - protected CodeExpression GetFullyQualifiedSimpleTypeClassExpression(string namespacePrefix) + public string GetSimpleTypeDefinition(bool disambiguateProperty) { - throw new NotImplementedException(); - // if (namespacePrefix == null) throw new ArgumentNullException(nameof(namespacePrefix)); - // Debug.Assert(this.simpleTypeClrTypeName != null); - - // return CodeDomHelper.CreateFieldReference( - // this.simpleTypeClrTypeName, Constants.SimpleTypeDefInnerType); + return disambiguateProperty && propertyName == simpleTypeClrTypeName + ? $"global::{settings.GetClrNamespace(PropertyNs)}.{simpleTypeClrTypeName}.TypeDefinition" + : $"{simpleTypeClrTypeName}.TypeDefinition"; } protected CodeExpression GetSimpleTypeClassExpression(bool disambiguateWhenPropertyAndTypeNameAreTheSame = false) { Debug.Assert(this.simpleTypeClrTypeName.IsNotEmpty()); - var areTheSameAndShouldDisambiguate = false; - if (disambiguateWhenPropertyAndTypeNameAreTheSame) { - if (this.propertyName == this.simpleTypeClrTypeName) { - areTheSameAndShouldDisambiguate = true; - } - } + var areTheSameAndShouldDisambiguate = disambiguateWhenPropertyAndTypeNameAreTheSame && propertyName == simpleTypeClrTypeName; string typeName = areTheSameAndShouldDisambiguate - ? $"global::{this.settings.GetClrNamespace(PropertyNs)}.{this.simpleTypeClrTypeName}" - : this.simpleTypeClrTypeName; + ? $"global::{settings.GetClrNamespace(PropertyNs)}.{simpleTypeClrTypeName}" + : simpleTypeClrTypeName; var codeFieldReferenceExpression = CodeDomHelper.CreateFieldReference(typeName, Constants.SimpleTypeDefInnerType); diff --git a/XObjectsCode/Src/Model/CContent.cs b/XObjectsCode/Src/Model/CContent.cs index 60e20d46..cf7d9fdd 100644 --- a/XObjectsCode/Src/Model/CContent.cs +++ b/XObjectsCode/Src/Model/CContent.cs @@ -25,16 +25,27 @@ public class CAttribute(ClrPropertyInfo info) : CContent(info) public SchemaOrigin Origin => info.Origin; public string Name => info.PropertyName; public string Type => info.ReturnTypeStr; + public string ClrType => info.ClrTypeName; // TODO: clarify naming and usage, seems to be the underlying type (e.g., without nullable) + public string ClrFullTypeName => info.TypeReference.ClrFullTypeName; // same name but different location than previous one?!? + public string SimpleTypeDefinition => info.GetSimpleTypeDefinition(disambiguateProperty: true); + public string LocalSimpleTypeDefinition => info.GetSimpleTypeDefinition(disambiguateProperty: false); public bool IsNew => info.IsNew; public bool IsOverride => info.IsOverride; public bool HasSet => info.HasSet; + public bool IsRef => info.IsRef; + public bool IsValueType => info.TypeReference.IsValueType; + public bool IsSimpleType => info.TypeReference.IsSimpleType; public bool IsEnum => info.IsEnum; + public bool IsUnion => info.IsUnion; + public bool IsList => info.IsList; + public bool IsSchemaList => info.IsSchemaList; + public bool IsNullable => info.IsNullable; // Whether the C# type is nullable (both reference and value types) public bool IsNillable => info.IsNillable; // Whether xs:nil is an acceptable value (e.g. can be used to override default value) - public bool CanBeAbsent => info.CanBeAbsent; // Whether tag/attribute can be absent from document + public bool IsOptional => info.IsOptional; // Whether element/attribute cardinality can be 0 + public bool CanBeAbsent => info.CanBeAbsent; // Whether tag/attribute is optional, or part of a choice public bool VerifyRequired => info.VerifyRequired; // Throws when attempting to read a required but missing element or attribute public IEnumerable<string> Comments => info.Annotations.Select(x => x.Text); - public bool IsOptional => info.IsOptional; public string FixedValue => info.FixedValue; public string DefaultValue => info.DefaultValue; public string FixedOrDefaultValue => info.FixedValue ?? info.DefaultValue; diff --git a/XObjectsCode/Templates/attribute.scriban-cs b/XObjectsCode/Templates/attribute.scriban-cs index 983eddcb..0271be48 100644 --- a/XObjectsCode/Templates/attribute.scriban-cs +++ b/XObjectsCode/Templates/attribute.scriban-cs @@ -40,7 +40,7 @@ private static {{ $1.Type | builtin }} {{ $1.FixedOrDefaultField }} = {{ {{~ # TODO: continue review of ClrPropertyInfo.AddToType after CreateFixedDefaultValue ~}} {{~ # TODO: list getter/setter ~}} -{{ include 'comments.scriban-cs' $1.Comments -}} +{{ include 'comments.scriban-cs' ($1.Comments | array.concat $2.Comments) -}} public {{ $1.IsOverride ? "override " : "virtual " $new @@ -100,8 +100,25 @@ public {{ "}\n" end - # TODO: many different cases based on type, this is the simplest - "return XTypedServices.ParseValue<" + ($1.Type | builtin) + ">(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype);\n" + if $1.IsRef || !$1.IsSimpleType + "return ((" + $1.Type + ")(x));\n" + else if $1.IsUnion + "return XTypedServices.ParseUnionValue(x, " + $1.SimpleTypeDefinition + ");\n" + else if $1.IsEnum + "return ((" + $1.ClrFullTypeName + ")(Enum.Parse(typeof(" + $1.ClrFullTypeName + "), XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype, " + $1.LocalSimpleTypeDefinition + "))));\n" + else + if $1.IsValueType && $1.IsNullable + $parseMethod = "ParseValue" + $parseType = $1.ClrType + else if $1.IsSchemaList + $parseMethod = "ParseListValue" + $parseType = $1.ClrType + else + $parseMethod = "ParseValue" + $parseType = $1.Type + end + "return XTypedServices." + $parseMethod + "<" + ($parseType | builtin) + ">(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype);\n" + end end end -}} diff --git a/XObjectsCode/Templates/class.scriban-cs b/XObjectsCode/Templates/class.scriban-cs index e53f9ec8..b36f0f00 100644 --- a/XObjectsCode/Templates/class.scriban-cs +++ b/XObjectsCode/Templates/class.scriban-cs @@ -92,7 +92,7 @@ } {{- for $content in $1.Content }} - {{ include 'attribute.scriban-cs' $content }} + {{ include 'attribute.scriban-cs' $content $1 }} {{- end }} private static readonly System.Xml.Linq.XName xName = System.Xml.Linq.XName.Get("{{ $1.XName }}", "{{ $1.XNamespace }}"); From ac274ece3ec5818088a0ab97b949641584f809c3 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Sat, 4 Apr 2026 02:46:30 +0200 Subject: [PATCH 27/29] Non-list setters (incl. validation) --- XObjectsCode/Extensions/CodeDomExtensions.cs | 271 --------------- XObjectsCode/Src/ClrPropertyInfo.cs | 345 +------------------ XObjectsCode/Src/ClrTypeReference.cs | 79 +---- XObjectsCode/Src/Model/CContent.cs | 3 +- XObjectsCode/Templates/attribute.scriban-cs | 90 ++++- 5 files changed, 114 insertions(+), 674 deletions(-) diff --git a/XObjectsCode/Extensions/CodeDomExtensions.cs b/XObjectsCode/Extensions/CodeDomExtensions.cs index 3320d955..26ed2a9f 100644 --- a/XObjectsCode/Extensions/CodeDomExtensions.cs +++ b/XObjectsCode/Extensions/CodeDomExtensions.cs @@ -8,7 +8,6 @@ using System.CodeDom.Compiler; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; @@ -22,11 +21,6 @@ public static bool HasXNameFieldForProperty(this CodeTypeDeclaration typeDeclara { var hasXNameFieldForProperty = false; -#if DEBUG - var str = typeDeclaration.ToCodeString(); - Debug.Assert(str.IsNotEmpty()); -#endif - foreach (var member in typeDeclaration.Members) { if (member is CodeMemberField field) { var propertyXnameFieldName = property.PropertyName + "XName"; @@ -109,253 +103,10 @@ private static StringWriter ToStringWriterInternal( return stringWriter; } - public static StringWriter ToStringWriter(this CodeTypeDeclaration codeTypeDeclaration) => ToStringWriterInternal(codeTypeDeclaration); public static string ToCodeString(this CodeTypeDeclaration codeTypeDeclaration) => ToCodeStringInternal(codeTypeDeclaration); - /// <summary> - /// Generates code string from the current <see cref="CodeExpression"/>. - /// </summary> - /// <param name="statement"></param> - /// <returns></returns> - public static StringWriter ToStringWriter(this CodeStatement statement) => ToStringWriterInternal(statement); - public static string ToCodeString(this CodeStatement statement) => ToCodeStringInternal(statement); - - /// <summary> - /// Generates code string from the current <see cref="CodeNamespace"/>. - /// </summary> - /// <param name="codeNamespace"></param> - /// <returns></returns> - public static StringWriter ToStringWriter(this CodeNamespace codeNamespace) => ToStringWriterInternal(codeNamespace); - public static string ToCodeString(this CodeNamespace codeNamespace) => ToCodeStringInternal(codeNamespace); - - public static StringWriter ToStringWriter(this CodeTypeMember codeTypeMember) => ToStringWriterInternal(codeTypeMember); - public static string ToCodeString(this CodeTypeMember codeTypeMember) => ToCodeStringInternal(codeTypeMember); - - /// <summary> - /// Generates code string from the current <see cref="CodeExpression"/>. - /// </summary> - /// <param name="codeExpression"></param> - /// <returns></returns> - public static StringWriter ToStringWriter(this CodeExpression codeExpression) => ToStringWriterInternal(codeExpression); public static string ToCodeString(this CodeExpression codeExpression) => ToCodeStringInternal(codeExpression); - /// <summary> - /// Generates code string from the current <see cref="CodeCompileUnit"/>. - /// </summary> - /// <param name="ccu"></param> - /// <returns></returns> - public static StringWriter ToStringWriter(this CodeCompileUnit ccu) => ToStringWriterInternal(ccu); - public static string ToCodeString(this CodeCompileUnit ccu) => ToCodeStringInternal(ccu); - - public static string ToCodeString(this CompilerError ce) => ce.ToString(); - - public static string ToCodeString(this CodeAttributeArgument ce) => ce.ToCodeStringInternal(); - private static string ToCodeStringInternal(this CodeAttributeArgument caa, CodeGeneratorOptions? options = null) - { - return $"{caa.Name} = {caa.Value.ToCodeString()}"; - } - - public static string ToCodeString(this CodeAttributeDeclaration ce) => ce.ToCodeStringInternal(); - private static string ToCodeStringInternal(this CodeAttributeDeclaration caa, CodeGeneratorOptions? options = null) - { - throw new NotImplementedException(); - } - - public static string ToCodeString(this CodeCatchClause ce) => ce.ToCodeStringInternal(); - private static string ToCodeStringInternal(this CodeCatchClause caa, CodeGeneratorOptions? options = null) - { - throw new NotImplementedException(); - } - - public static string ToCodeString(this CodeDirective ce) => ce.ToCodeStringInternal(); - private static string ToCodeStringInternal(this CodeDirective caa, CodeGeneratorOptions? options = null) - { - throw new NotImplementedException(); - } - - public static string ToCodeString(this CodeTypeParameter ce) => ce.ToCodeStringInternal(); - private static string ToCodeStringInternal(this CodeTypeParameter caa, CodeGeneratorOptions? options = null) - { - throw new NotImplementedException(); - } - - public static string ToCodeString(this CodeTypeReference ce) => ce.ToCodeStringInternal(); - private static string ToCodeStringInternal(this CodeTypeReference caa, CodeGeneratorOptions? options = null) - { - throw new NotImplementedException(); - } - - internal static string ToCodeStringFromCollections(this CollectionBase collectionBase) - { - string codeString = collectionBase switch { - CompilerErrorCollection compilererrorcollection => compilererrorcollection.ToCodeString(), - CodeAttributeArgumentCollection codeattributeargumentcollection => codeattributeargumentcollection.ToCodeString(), - CodeAttributeDeclarationCollection codeattributedeclarationcollection => codeattributedeclarationcollection.ToCodeString(), - CodeCatchClauseCollection codecatchclausecollection => codecatchclausecollection.ToCodeString(), - CodeCommentStatementCollection codecommentstatementcollection => codecommentstatementcollection.ToCodeString(), - CodeDirectiveCollection codedirectivecollection => codedirectivecollection.ToCodeString(), - CodeExpressionCollection codeexpressioncollection => codeexpressioncollection.ToCodeString(), - CodeNamespaceCollection codenamespacecollection => codenamespacecollection.ToCodeString(), - CodeParameterDeclarationExpressionCollection codeparameterdeclarationexpressioncollection => codeparameterdeclarationexpressioncollection.ToCodeString(), - CodeStatementCollection codestatementcollection => codestatementcollection.ToCodeString(), - CodeTypeDeclarationCollection codetypedeclarationcollection => codetypedeclarationcollection.ToCodeString(), - CodeTypeMemberCollection codetypemembercollection => codetypemembercollection.ToCodeString(), - CodeTypeParameterCollection codetypeparametercollection => codetypeparametercollection.ToCodeString(), - CodeTypeReferenceCollection codetypereferencecollection => codetypereferencecollection.ToCodeString(), - _ => throw new NotSupportedException("Only CodeDOM collections supported") - }; - - return codeString; - } - - public static string ToCodeString(this CompilerErrorCollection compilererrorcollection) - { - var str = ""; - foreach (CompilerError element in compilererrorcollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeAttributeArgumentCollection codeattributeargumentcollection) - { - var str = ""; - foreach (CodeAttributeArgument element in codeattributeargumentcollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeAttributeDeclarationCollection codeattributedeclarationcollection) - { - var str = ""; - foreach (CodeAttributeDeclaration element in codeattributedeclarationcollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeCatchClauseCollection codecatchclausecollection) - { - var str = ""; - foreach (CodeCatchClause element in codecatchclausecollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeCommentStatementCollection codecommentstatementcollection) - { - var str = ""; - foreach (CodeCommentStatement element in codecommentstatementcollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeDirectiveCollection codedirectivecollection) - { - var str = ""; - foreach (CodeDirective element in codedirectivecollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeExpressionCollection codeexpressioncollection) - { - var str = ""; - foreach (CodeExpression element in codeexpressioncollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeNamespaceCollection codenamespacecollection) - { - var str = ""; - foreach (CodeNamespace element in codenamespacecollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeParameterDeclarationExpressionCollection codeparameterdeclarationexpressioncollection) - { - var str = ""; - foreach (CodeParameterDeclarationExpression element in codeparameterdeclarationexpressioncollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeStatementCollection codestatementcollection) - { - var str = ""; - foreach (CodeStatement element in codestatementcollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeTypeDeclarationCollection codetypedeclarationcollection) - { - var str = ""; - foreach (CodeTypeDeclaration element in codetypedeclarationcollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeTypeMemberCollection codetypemembercollection) - { - var str = ""; - foreach (CodeTypeMember element in codetypemembercollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeTypeParameterCollection codetypeparametercollection) - { - var str = ""; - foreach (CodeTypeParameter element in codetypeparametercollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - public static string ToCodeString(this CodeTypeReferenceCollection codetypereferencecollection) - { - var str = ""; - foreach (CodeTypeReference element in codetypereferencecollection) { - str += element.ToCodeString() + "\n"; - } - - return str; - } - - public static CodeNamespace ShallowClone(this CodeNamespace current) => new CodeNamespace(current.Name); - - /// <summary> - /// Determines if an enum equivalent <see cref="CodeTypeDeclaration"/> already exists in the current sequence. - /// <para>Checks the <see cref="CodeTypeDeclaration.Members"/> as well.</para> - /// </summary> - /// <param name="possibleEnums"></param> - /// <param name="enumDeclaration"></param> - /// <returns></returns> - public static bool EquivalentEnumDeclarationExists(this IEnumerable<CodeTypeDeclaration> possibleEnums, CodeTypeDeclaration enumDeclaration) - { - if (enumDeclaration == null) throw new ArgumentNullException(nameof(enumDeclaration)); - if (!enumDeclaration.IsEnum) return false; - - var existingEnumExists = (from dec in possibleEnums - where dec.IsEquivalentEnumDeclaration(enumDeclaration) - select dec); - - return existingEnumExists.Any(); - } - /// <summary> /// Determines if an equal enum <see cref="CodeTypeDeclaration"/> already exists in the current sequence. /// <para>Checks the <see cref="CodeTypeDeclaration.Members"/> as well.</para> @@ -409,19 +160,6 @@ where t.Members.OfType<CodeTypeDeclaration>().Any(c => c.IsEquivalentEnumDeclara return typeWithTheSameEnum.First(); } - /// <summary> - /// Gathers all enum <see cref="CodeTypeDeclaration"/> from the current namespace. - /// </summary> - /// <param name="namespace"></param> - /// <returns></returns> - public static List<CodeTypeDeclaration> NamespaceScopedEnumDeclarations(this CodeNamespace @namespace) - { - var codeTypeDeclarations = @namespace.Types.OfType<CodeTypeDeclaration>().ToList(); - var namespaceScopedEnums = codeTypeDeclarations.Where(c => c.IsEnum); - - return namespaceScopedEnums.ToList(); - } - /// <summary> /// Determines if the current <see cref="CodeMemberField"/> and another are the same in terms of their /// name and type. @@ -711,15 +449,6 @@ public void SetParent(TCodeObject parent) extension(CodeTypeDeclaration type) { - /// <summary> - /// Retain a reference to the parent <see cref="CodeNamespace"/> this type is meant to be enclosed in. - /// </summary> - public CodeNamespace? ParentNamespace - { - get => type.GetParent<CodeNamespace>(); - set => type.SetParent(value!); - } - public void ChangeVisibility(TypeAttributes visibility) { if (!visibility.HasVisibilityMask()) { diff --git a/XObjectsCode/Src/ClrPropertyInfo.cs b/XObjectsCode/Src/ClrPropertyInfo.cs index a025c3bb..39a976c0 100644 --- a/XObjectsCode/Src/ClrPropertyInfo.cs +++ b/XObjectsCode/Src/ClrPropertyInfo.cs @@ -468,26 +468,9 @@ public void UpdateTypeReference( this.parentTypeFullName = typeRef.IsEnum ? typeRef.UpdateClrFullEnumTypeName(this, currentTypeScope, currentNamespaceScope) : currentTypeScope; } - public void SetPropertyAttributes(CodeMemberProperty clrProperty, MemberAttributes visibility) - { - if (isVirtual) - { - clrProperty.Attributes = - ((clrProperty.Attributes & ~MemberAttributes.ScopeMask & ~MemberAttributes.AccessMask) | - visibility); - } - else if (isOverride) - { - clrProperty.Attributes = - ((clrProperty.Attributes & ~MemberAttributes.ScopeMask & ~MemberAttributes.AccessMask) | - MemberAttributes.Public | MemberAttributes.Override); - } - } - public override CodeMemberProperty? AddToType(CodeTypeDeclaration parentTypeDecl, List<ClrAnnotation> annotations, GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) { - // TODO Scriban migration: done, remove when not referenced if (parentTypeDecl == null) throw new ArgumentNullException(nameof(parentTypeDecl)); if (!ShouldGenerate) { @@ -496,15 +479,15 @@ public void SetPropertyAttributes(CodeMemberProperty clrProperty, MemberAttribut ParentTypeDeclaration ??= parentTypeDecl; - CreateXNameField(parentTypeDecl); - CreateFixedDefaultValue(parentTypeDecl); + // CreateXNameField(parentTypeDecl); + // CreateFixedDefaultValue(parentTypeDecl); CodeMemberProperty clrProperty = CodeDomHelper.CreateProperty(ReturnType, hasSet, visibility.ToMemberAttribute()); - clrProperty.Name = propertyName; - SetPropertyAttributes(clrProperty, visibility.ToMemberAttribute()); - if (IsNew) - { - clrProperty.Attributes |= MemberAttributes.New; - } + // clrProperty.Name = propertyName; + // SetPropertyAttributes(clrProperty, visibility.ToMemberAttribute()); + // if (IsNew) + // { + // clrProperty.Attributes |= MemberAttributes.New; + //} if (IsList) { @@ -528,14 +511,14 @@ public void SetPropertyAttributes(CodeMemberProperty clrProperty, MemberAttribut else { AddGetStatements(clrProperty.GetStatements); - if (hasSet) - { - AddSetStatements(clrProperty.SetStatements); - } + // if (hasSet) + // { + // AddSetStatements(clrProperty.SetStatements); + // } } - ApplyAnnotations(clrProperty, annotations); - parentTypeDecl.Members.Add(clrProperty); + //ApplyAnnotations(clrProperty, annotations); + // parentTypeDecl.Members.Add(clrProperty); return clrProperty; } @@ -606,148 +589,6 @@ public override void AddToConstructor(CodeConstructor functionalConstructor) } } } - - private void AddSetValueMethodCall(CodeStatementCollection setStatements) - { - string setMethodName = "Set"; - if (!IsRef && IsSchemaList) - { - setMethodName = "SetList"; - } - else if (IsUnion) - { - setMethodName = "SetUnion"; - } - - bool validation = Validation; - bool xNameParm = true; - switch (propertyOrigin) - { - case SchemaOrigin.Element: - setMethodName += "Element"; - break; - - case SchemaOrigin.Attribute: - validation = this.IsEnum; - setMethodName += "Attribute"; - break; - - case SchemaOrigin.Text: - setMethodName += "Value"; - xNameParm = false; - break; - - case SchemaOrigin.None: - default: - throw new InvalidOperationException(); - } - - if (IsUnion) - { - var codeExpressionParams = new List<CodeExpression>() { - CodeDomHelper.SetValue(), - new CodePrimitiveExpression(this.propertyName), - CodeDomHelper.This(), - xNameParm ? xNameExpression : null, - GetSimpleTypeClassExpression(IsUnion) - }; - - var codeMethodInvokeExpression = CodeDomHelper.CreateMethodCall( - targetOBject: CodeDomHelper.This(), - methodName: setMethodName, - parameters: codeExpressionParams.ToNoDefaultArray()); - - #if DEBUG - var invokeExpressionString = codeMethodInvokeExpression.ToCodeString(); - Debug.Assert(invokeExpressionString != null); - #endif - setStatements.Add(codeMethodInvokeExpression); - } - else if (validation) - { - var valueExpr = new CodeSnippetExpression(IsEnum ? "value.ToString()" : "value"); - CodeMethodInvokeExpression setWithValidation; - if (xNameParm) - { - var setValue = CodeDomHelper.SetValue(); - // this.SetElementWithValidation(<PropertyName>XName, <valueExpr>, "<PropertyName>", global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition); - setWithValidation = CodeDomHelper.CreateMethodCall( - CodeDomHelper.This(), // this - setMethodName + "WithValidation", // SetElementWithValidation - xNameExpression, // <PropertyName>XName - valueExpr, - new CodePrimitiveExpression(PropertyName), // "<PropertyName>" - GetSimpleTypeClassExpression()); // global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition - } - else - { - setWithValidation = CodeDomHelper.CreateMethodCall( - CodeDomHelper.This(), - setMethodName + "WithValidation", - valueExpr, - new CodePrimitiveExpression(PropertyName), - GetSimpleTypeClassExpression()); - } - - // Skip validation when the set value is null. Also enum.ToString above would fail. - // (Setting an optional element to null actually removes it from DOM.) - if (IsNullable) - { - setStatements.Add(new CodeConditionStatement( - new CodeSnippetExpression("value == null"), - new[] { new CodeExpressionStatement(CreatePlainSetCall(setMethodName, IsNillable ? "XNil.Value" : "null", xNameParm)) }, - new[] { new CodeExpressionStatement(setWithValidation) } - )); - } - else - { - setStatements.Add(setWithValidation); - } - } - else - { - string valueExpr = !IsEnum || propertyOrigin == SchemaOrigin.Element - ? "value" - : IsNullable - ? "value?.ToString()" - : "value.ToString()"; - - if (IsNillable) - { - valueExpr += " ?? XNil.Value"; - } - - var setter = CreatePlainSetCall(setMethodName, valueExpr, xNameParm); - setStatements.Add(setter); - } - } - - private CodeExpression CreatePlainSetCall(string setMethodName, string valueExpr, bool xNameParm) - { - if (xNameParm) - { - var methodCall = CodeDomHelper.CreateMethodCall( - CodeDomHelper.This(), - setMethodName, - xNameExpression, - new CodeSnippetExpression(valueExpr) - ); - if (!IsRef && typeRef.IsSimpleType) - { - methodCall.Parameters.Add(GetSchemaDatatypeExpression()); - } - return methodCall; - } - else - { - return CodeDomHelper.CreateMethodCall( - CodeDomHelper.This(), - setMethodName, - new CodeSnippetExpression(valueExpr), - GetSchemaDatatypeExpression() - ); - } - } private void AddListGetStatements(CodeStatementCollection getStatements, CodeTypeReference listType, string listName) @@ -803,7 +644,6 @@ private void AddListGetStatements(CodeStatementCollection getStatements, CodeTyp } } - private void AddListSetStatements(CodeStatementCollection setStatements, CodeTypeReference listType, string listName) { @@ -877,103 +717,17 @@ private CodeExpression GetListSetStatementValueExpr() private void AddGetStatements(CodeStatementCollection getStatements) { + // TODO: if (IsSubstitutionHead) { AddSubstGetStatements(getStatements); return; } - - // // Fixed attributes always have the same value, whether they're present or not. - // if (FixedValue != null && propertyOrigin == SchemaOrigin.Attribute) - // { - // ReturnFixedValue(getStatements); - // return; - // } - - // getStatements.Add(GetValueMethodCall()); - // CheckOccurrence(getStatements); - // CheckNillable(getStatements); - // Fixed elements always have the same value, _when they're present._ - // If they're optional they can still be absent and read as null, which is handled in CheckOccurence - // if (FixedValue != null && propertyOrigin != SchemaOrigin.Attribute) - // { - // ReturnFixedValue(getStatements); - // return; - // } - // GetElementDefaultValue(getStatements); // Attribute default value is handled in CheckOccurence - // CodeVariableReferenceExpression returnValueExp = new CodeVariableReferenceExpression("x"); - // CodeExpression returnExp; - // if (!IsRef && typeRef.IsSimpleType) - // { - // //for referencing properties, directly create the object of referenced type - // CodeTypeReference parseType = ReturnType; - // if (typeRef.IsValueType && IsNullable) - // { - // parseType = new CodeTypeReference(clrTypeName); - // } - - // if (IsUnion) - // { - // returnExp = CodeDomHelper.CreateMethodCall( - // CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), - // Constants.ParseUnionValue, - // returnValueExp, - // GetSimpleTypeClassExpression(IsUnion)); - // } - // else - // { - // string parseMethodName; - // CodeExpression simpleTypeExpression = GetSchemaDatatypeExpression(); - // if (IsSchemaList) - // { - // parseMethodName = Constants.ParseListValue; - // parseType = new CodeTypeReference(clrTypeName); - // } - // else - // { - // // XTypedServices.ParseValue<string> - // parseMethodName = Constants.ParseValue; - // if (IsEnum) { - // if (TypeReference.SchemaObject is XmlSchemaSimpleType simpleSchemaType) { - // parseType = new CodeTypeReference(simpleSchemaType.Datatype.ValueType); - // } - // } - // } - - // if (IsEnum) - // { - // // XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype, global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition) - // returnExp = CodeDomHelper.CreateMethodCall( - // CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), // XTypedServices - // parseMethodName, // ParseValue - // returnValueExp, // x - // simpleTypeExpression, // XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.NmToken).Datatype - // GetSimpleTypeClassExpression()); // global::LinqToXsd.Schemas.Test.EnumsTypes.LanguageCodeEnumValidator.TypeDefinition - // // (EnumType) Enum.Parse(typeof(EnumType), returnExp) - // returnExp = CodeDomHelper.CreateParseEnumCall(this.TypeReference.ClrFullTypeName, returnExp); - // } - // else - // { - // returnExp = CodeDomHelper.CreateGenericMethodCall( - // CodeDomHelper.CreateTypeReferenceExp(Constants.XTypedServices), - // parseMethodName, - // parseType, - // returnValueExp, - // simpleTypeExpression); - // } - // } - // } - // else - // { - // returnExp = new CodeCastExpression(ReturnType, returnValueExp); - // } - - // getStatements.Add(new CodeMethodReturnStatement(returnExp)); } private void CheckOccurrence(CodeStatementCollection getStatements) { - // REVIEW: fully rewriten in scriban. + // Scriban: done // Debug.Assert(!this.IsList); // CodeStatement returnStatement = null; // if (CanBeAbsent) @@ -1017,13 +771,6 @@ private void CheckOccurrence(CodeStatementCollection getStatements) // } } - - private void AddSetStatements(CodeStatementCollection setStatements) - { - AddFixedValueChecking(setStatements); - AddSetValueMethodCall(setStatements); - } - private void AddSubstGetStatements(CodeStatementCollection getStatements) { Debug.Assert(propertyOrigin == SchemaOrigin.Element); @@ -1190,15 +937,7 @@ protected CodeExpression GetSimpleTypeClassExpression(bool disambiguateWhenPrope ? $"global::{settings.GetClrNamespace(PropertyNs)}.{simpleTypeClrTypeName}" : simpleTypeClrTypeName; - var codeFieldReferenceExpression = CodeDomHelper.CreateFieldReference(typeName, Constants.SimpleTypeDefInnerType); - - #if DEBUG - var str = codeFieldReferenceExpression.ToCodeString(); - Debug.Assert(str.IsNotEmpty()); - Debug.Assert(str.Contains("void.") == false, $"A void. type reference indicates that the mapping failed to generate a suitable {nameof(simpleTypeClrTypeName)} for the current {nameof(ClrPropertyInfo)}. This can happen due to the XSD type of the current property might be anonymous AND a union of multiple types. There are a few XSD type configurations that are not yet supported."); - #endif - - return codeFieldReferenceExpression; + return CodeDomHelper.CreateFieldReference(typeName, Constants.SimpleTypeDefInnerType); } public void CreateXNameField(CodeTypeDeclaration typeDecl) @@ -1257,55 +996,7 @@ protected void CreateFixedDefaultValue(CodeTypeDeclaration typeDecl) protected void AddFixedValueChecking(CodeStatementCollection setStatements) { - if (FixedValue == null) return; - - // The set value must match the property fixed value. - - CodeExpression fixedValueExpr = - new CodeFieldReferenceExpression(null, - NameGenerator.ChangeClrName(propertyName, NameOptions.MakeFixedValueField)); - - var valueExpr = new CodePropertySetValueReferenceExpression(); - - // Note the condition is opposite, because CodeDOM doesn't have unary negation... - // so we're doing `if (value == fixed) { /* ok */ } else throw` - CodeExpression condition = CodeDomHelper.CreateMethodCall( - fixedValueExpr, - Constants.EqualityCheck, - valueExpr); - - // If the property is an optional element, setting it to null is also acceptable: it removes the element from document. - // So we're checking `if (value == fixed || value == null) ...` - // On principle, setting attributes to null can also make sense as it would remove the XAttribute from document, - // but that doesn't mesh well with the type system (attributes with default/fixed values are never nullable, - // which would still be workable on Ref types with [AllowNull] on property, but we can't assign null to a value type setter. - // This is really an edge case and can be achieved by removing the XAttribute from Untyped. - if (IsNullable) - { - condition = new CodeBinaryOperatorExpression( - condition, - CodeBinaryOperatorType.BooleanOr, - new CodeBinaryOperatorExpression( - valueExpr, - CodeBinaryOperatorType.IdentityEquality, - new CodePrimitiveExpression(null) - ) - ); - } - - setStatements.Add( - new CodeConditionStatement( - condition, - new CodeStatement[] { }, - new CodeStatement[] - { - new CodeThrowExceptionStatement( - new CodeObjectCreateExpression(typeof(LinqToXsdFixedValueException), - new CodePropertySetValueReferenceExpression(), - fixedValueExpr)) - } - ) - ); + // Scriban: done } } } \ No newline at end of file diff --git a/XObjectsCode/Src/ClrTypeReference.cs b/XObjectsCode/Src/ClrTypeReference.cs index 057366a3..86412eac 100644 --- a/XObjectsCode/Src/ClrTypeReference.cs +++ b/XObjectsCode/Src/ClrTypeReference.cs @@ -218,7 +218,6 @@ public XmlSchemaObject SchemaObject public string GetSimpleTypeClrTypeDefName(string parentTypeClrNs, Dictionary<XmlSchemaObject, string> nameMappings) { Debug.Assert(this.IsSimpleType); - string clrTypeName = null; XmlSchemaObject key = schemaObject; if (IsTypeRef) { @@ -227,17 +226,10 @@ public string GetSimpleTypeClrTypeDefName(string parentTypeClrNs, Dictionary<Xml Debug.Assert(key != null); } - string identifier = null; - if (nameMappings.TryGetValue(key, out identifier)) - { - clrTypeName = identifier; - } - else - { - clrTypeName = typeName; - } + string clrTypeName = this.clrName = nameMappings.TryGetValue(key, out var identifier) + ? identifier + : typeName; - this.clrName = clrTypeName; if (IsEnum && !string.IsNullOrEmpty(clrTypeName)) { @@ -251,7 +243,7 @@ public string GetSimpleTypeClrTypeDefName(string parentTypeClrNs, Dictionary<Xml } // unfortunately this doesn't handle simple type unions - if (clrTypeName.IsEmpty() && key is XmlSchemaSimpleType { Content: XmlSchemaSimpleTypeUnion union }) + if (clrTypeName.IsEmpty() && key is XmlSchemaSimpleType { Content: XmlSchemaSimpleTypeUnion }) { clrTypeName = typeof(object).FullName; } @@ -263,9 +255,9 @@ public string GetClrFullTypeName( string parentTypeClrNs, Dictionary<XmlSchemaObject, string> nameMappings, LinqToXsdSettings settings, - out string refTypeName) + out string? refTypeName) { - string clrTypeName = null; + string clrTypeName; refTypeName = null; if (IsNamedComplexType || IsTypeRef) { @@ -324,64 +316,13 @@ public string GetClrFullTypeName( string EnsureNamespace() { - if (this.Namespace.IsNullOrEmpty()) - { - if (currentNamespaceScope == null) throw new ArgumentNullException(nameof(currentNamespaceScope)); - return currentNamespaceScope; - } - return this.Namespace; - } - } - - public bool IsForAnonymousXsdType - { - get { - return (schemaObject as XmlSchemaType)?.IsAnonymous() == true; + return !this.Namespace.IsNullOrEmpty() + ? this.Namespace + : currentNamespaceScope ?? throw new ArgumentNullException(nameof(currentNamespaceScope)); } } - /// <summary> - /// When this type reference is for a <see cref="XmlSchemaSimpleTypeUnion"/>, this property returns all the member types. - /// </summary> - public XmlSchemaObject[]? UnionMemberTypes - { - get { - Debug.Assert(typeRefFlags.HasFlag(ClrTypeRefFlags.IsUnion)); - - if (schemaObject is XmlSchemaSimpleType { Content: XmlSchemaSimpleTypeUnion union }) { - XmlSchemaSimpleType[] xmlSchemaSimpleTypes = union.GetUnionMemberTypes(); - return xmlSchemaSimpleTypes.Cast<XmlSchemaObject>().ToArray(); - } - - return null; - } - } - - /// <summary> - /// When this type reference is for a <see cref="XmlSchemaChoice"/> particle, this property returns all the possible choices. - /// </summary> - public XmlSchemaObject[]? ChoiceMemberTypes - { - get { - if (schemaObject is XmlSchemaComplexType type) { - if (type.ContentModel is XmlSchemaComplexContent complexContent) { - if (complexContent.Content is XmlSchemaComplexContentRestriction complexContentRestriction) { - if (complexContentRestriction.Particle is XmlSchemaChoice choice) { - return choice.Items.Cast<XmlSchemaObject>().ToArray(); - } - } - - if (complexContent.Content is XmlSchemaComplexContentExtension complexContentExtension) { - if (complexContentExtension.Particle is XmlSchemaChoice choice) { - return choice.Items.Cast<XmlSchemaObject>().ToArray(); - } - } - } - } - - return null; - } - } + public bool IsForAnonymousXsdType => (schemaObject as XmlSchemaType)?.IsAnonymous() == true; public XDocument ToXDoc() { diff --git a/XObjectsCode/Src/Model/CContent.cs b/XObjectsCode/Src/Model/CContent.cs index cf7d9fdd..7051318a 100644 --- a/XObjectsCode/Src/Model/CContent.cs +++ b/XObjectsCode/Src/Model/CContent.cs @@ -39,11 +39,12 @@ public class CAttribute(ClrPropertyInfo info) : CContent(info) public bool IsUnion => info.IsUnion; public bool IsList => info.IsList; public bool IsSchemaList => info.IsSchemaList; + public bool HasValidation => Origin == SchemaOrigin.Attribute ? IsEnum : info.Validation; public bool IsNullable => info.IsNullable; // Whether the C# type is nullable (both reference and value types) public bool IsNillable => info.IsNillable; // Whether xs:nil is an acceptable value (e.g. can be used to override default value) public bool IsOptional => info.IsOptional; // Whether element/attribute cardinality can be 0 public bool CanBeAbsent => info.CanBeAbsent; // Whether tag/attribute is optional, or part of a choice - public bool VerifyRequired => info.VerifyRequired; // Throws when attempting to read a required but missing element or attribute + public bool VerifyRequired => info.VerifyRequired; // Throws when attempting to read a required but missing element or attribute public IEnumerable<string> Comments => info.Annotations.Select(x => x.Text); public string FixedValue => info.FixedValue; diff --git a/XObjectsCode/Templates/attribute.scriban-cs b/XObjectsCode/Templates/attribute.scriban-cs index 0271be48..5bc6e8d6 100644 --- a/XObjectsCode/Templates/attribute.scriban-cs +++ b/XObjectsCode/Templates/attribute.scriban-cs @@ -40,7 +40,14 @@ private static {{ $1.Type | builtin }} {{ $1.FixedOrDefaultField }} = {{ {{~ # TODO: continue review of ClrPropertyInfo.AddToType after CreateFixedDefaultValue ~}} {{~ # TODO: list getter/setter ~}} -{{ include 'comments.scriban-cs' ($1.Comments | array.concat $2.Comments) -}} +{{ + case $1.Origin + when "Element" + include 'comments.scriban-cs' ($1.Comments | array.concat $2.Comments) + when "Attribute" + include 'comments.scriban-cs' $1.Comments + end +-}} public {{ $1.IsOverride ? "override " : "virtual " $new @@ -126,11 +133,82 @@ public {{ {{~ if $1.HasSet ~}} set { {{ - # TODO: temporary, review - if $1.Origin == "Element" - "this.SetElement(" + $1.XNameField + ", value);\n" - else - "this.SetAttribute(" + $1.XNameField + ", value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype);\n" + # FIXME: `if (value == fixed) {} else throw;` is backwards but to match legacy CodeDom generation + if $1.FixedValue + # If the property is an optional element, setting it to null is also acceptable: it removes the element from document. + # So we're checking `if (value == fixed || value == null) ...` + # On principle, setting attributes to null can also make sense as it would remove the XAttribute from document, + # but that doesn't mesh well with the type system (attributes with default/fixed values are never nullable, + # which would still be workable on Ref types with [AllowNull] on property, but we can't assign null to a value type setter. + # This is really an edge case and can be achieved by removing the XAttribute from Untyped. + if $1.IsNullable + "if (value == " + $1.FixedValue + " || value == null) {\n" + else + "if (value == " + $1.FixedValue + ") {\n" + end + "}\n" + "else {\n" + " throw new LinqToXsdFixedValueException(value, " + $1.FixedValue + ");\n" + "}\n" + end + + case $1.Origin + when "Element" + $set_origin = "Element" + when "Attribute" + $set_origin = "Attribute" + when "Text" + $set_origin = "Value" + end + + if $1.IsUnion + "this.SetUnion" + $set_origin + "(value, " + $1.Name + ", this, " + $1.Origin != "Text" ? $1.XNameField + ", " : "" + $1.SimpleTypeDefinition + ");\n" + + else + if $1.Origin == "Text" + $plain_set = "this.SetValue(value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype);\n" + else + if $1.HasValidation + # When using `SetXXXWithValidate` methods, normal `SetXXX` is only called for null values (see below) + $value = $1.IsNillable ? "XNil.Value" : "null" + else + $value = $1.Origin == "Element" || !$1.IsEnum ? "value" : $1.IsNullable ? "value?.ToString()" : "value.ToString()" + if $1.IsNillable + $value = $value + " ?? XNil.Value" + end + end + $set_method = (!$1.IsRef && $1.IsSchemaList ? "this.SetList" : "this.Set") + $set_origin + $plain_set = $set_method + "(" + $1.XNameField + ", " + $value + (!$1.IsRef && $1.IsSimpleType ? ", XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype" : "") + ");\n" + end + + if $1.HasValidation + $value = $1.IsEnum ? "value.ToString()" : "value" + if $1.Origin == "Text" + $validation_set = "this.SetValueWithValidation(" + $value + ", " + ($1.Name | string.literal) + ", " + $1.LocalSimpleTypeDefinition + ");\n" + else + $validation_set = $set_method + "WithValidation(" + $1.XNameField + ", " + $value + ", " + ($1.Name | string.literal) + ", " + $1.LocalSimpleTypeDefinition + ");\n" + end + + if ($1.IsNullable) + # Skip validation when the set value is null. Also enum.ToString above would fail. + # (Setting an optional element to null actually removes it from DOM.) + "if (value == null) {\n" + " " + $plain_set + "}\n" + "else {\n" + " " + $validation_set + "}\n" + else + $validation_set + end + + else + $plain_set + end end -}} } From 145773809ff372edc2b974e545d208b7c0568371 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Mon, 6 Apr 2026 23:01:05 +0200 Subject: [PATCH 28/29] List getter --- XObjectsCode/Src/ClrPropertyInfo.cs | 93 ++++----------------- XObjectsCode/Src/Model/CContent.cs | 18 ++-- XObjectsCode/Src/XsdToTypesConverter.cs | 51 +++++------ XObjectsCode/Templates/attribute.scriban-cs | 84 ++++++++++++++++++- 4 files changed, 129 insertions(+), 117 deletions(-) diff --git a/XObjectsCode/Src/ClrPropertyInfo.cs b/XObjectsCode/Src/ClrPropertyInfo.cs index 39a976c0..50c223e1 100644 --- a/XObjectsCode/Src/ClrPropertyInfo.cs +++ b/XObjectsCode/Src/ClrPropertyInfo.cs @@ -28,8 +28,6 @@ public partial class ClrPropertyInfo : ClrBasePropertyInfo string fixedDefaultValue; string simpleTypeClrTypeName; - ArrayList substitutionMembers; - #nullable enable /// <summary> /// The enclosing <see cref="CodeTypeDeclaration"/> that this <see cref="ClrPropertyInfo"/> instance is a part of. @@ -120,16 +118,9 @@ public ClrTypeReference TypeReference set { typeRef = value; } } - public ArrayList SubstitutionMembers - { - get { return substitutionMembers; } - set { substitutionMembers = value; } - } + public List<XmlSchemaElement> SubstitutionMembers { get; set; } - public bool IsSubstitutionHead - { - get { return substitutionMembers != null; } - } + public bool IsSubstitutionHead => SubstitutionMembers != null; public SchemaOrigin Origin { @@ -344,7 +335,7 @@ public bool IsFixedOrDefaultList ? parentTypeFullName + "." + clrTypeName : clrTypeName; - private string NullableType => IsNillable && (settings.NullableReferences || typeRef.IsValueType) + public string NullableType => IsNillable && (settings.NullableReferences || typeRef.IsValueType) ? QualifiedType + "?" : QualifiedType; @@ -497,20 +488,20 @@ public void UpdateTypeReference( AddMemberField(listName, listType, parentTypeDecl); //GetStatements - AddListGetStatements(clrProperty.GetStatements, listType, listName); + // AddListGetStatements(clrProperty.GetStatements, listType, listName); if (hasSet) { AddListSetStatements(clrProperty.SetStatements, listType, listName); } - if (settings.NullableReferences) - { - clrProperty.CustomAttributes.Add(new CodeAttributeDeclaration("System.Diagnostics.CodeAnalysis.AllowNull")); - } + // if (settings.NullableReferences) + // { + // clrProperty.CustomAttributes.Add(new CodeAttributeDeclaration("System.Diagnostics.CodeAnalysis.AllowNull")); + // } } else { - AddGetStatements(clrProperty.GetStatements); + // AddGetStatements(clrProperty.GetStatements); // if (hasSet) // { // AddSetStatements(clrProperty.SetStatements); @@ -528,9 +519,9 @@ public override void AddToContentModel(CodeObjectCreateExpression contentModelEx if (this.IsSubstitutionHead) { //Need to add member names to content model - CodeExpression[] substParams = new CodeExpression[substitutionMembers.Count]; + CodeExpression[] substParams = new CodeExpression[SubstitutionMembers.Count]; int i = 0; - foreach (XmlSchemaElement elem in substitutionMembers) + foreach (XmlSchemaElement elem in SubstitutionMembers) { substParams[i++] = CodeDomHelper.XNameGetExpression(elem.QualifiedName.Name, elem.QualifiedName.Namespace); @@ -590,60 +581,6 @@ public override void AddToConstructor(CodeConstructor functionalConstructor) } } - private void AddListGetStatements(CodeStatementCollection getStatements, CodeTypeReference listType, - string listName) - { - if (FixedValue != null) - { - getStatements.Add( - new CodeMethodReturnStatement( - new CodeFieldReferenceExpression(null, - NameGenerator.ChangeClrName(this.propertyName, NameOptions.MakeFixedValueField) - )) - ); - return; - } - - var listFieldRef = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), listName); - - CodeExpression newListExpr = new CodeObjectCreateExpression( - listType, - GetListParameters(false /*set*/, false /*constructor*/) - ); - if (IsNillable) - { - newListExpr = new CodeSnippetExpression( - newListExpr.ToCodeString() + " { SupportsXsiNil = true }" - ); - } - - getStatements.Add( - new CodeConditionStatement( - new CodeBinaryOperatorExpression( - listFieldRef, - CodeBinaryOperatorType.IdentityEquality, - new CodePrimitiveExpression(null) - ), - new CodeAssignStatement(listFieldRef, newListExpr) - )); - - if (IsEnum) - { - var lambdaExpr = new CodeSnippetExpression($"item => ({this.TypeReference.ClrFullTypeName}) Enum.Parse(typeof({this.TypeReference.ClrFullTypeName}), item)"); - var selectExpr = CodeDomHelper.CreateMethodCall(listFieldRef, "Select", lambdaExpr); - var toListExpr = new CodeMethodInvokeExpression(selectExpr, "ToList"); - getStatements.Add( - new CodeMethodReturnStatement( - toListExpr)); - } - else - { - getStatements.Add( - new CodeMethodReturnStatement( - listFieldRef)); - } - } - private void AddListSetStatements(CodeStatementCollection setStatements, CodeTypeReference listType, string listName) { @@ -774,11 +711,11 @@ private void CheckOccurrence(CodeStatementCollection getStatements) private void AddSubstGetStatements(CodeStatementCollection getStatements) { Debug.Assert(propertyOrigin == SchemaOrigin.Element); - CodeExpression[] substParams = new CodeExpression[substitutionMembers.Count + 2]; + CodeExpression[] substParams = new CodeExpression[SubstitutionMembers.Count + 2]; substParams[0] = CodeDomHelper.This(); substParams[1] = CodeDomHelper.SingletonTypeManager(); int i = 2; - foreach (XmlSchemaElement elem in substitutionMembers) + foreach (XmlSchemaElement elem in SubstitutionMembers) { substParams[i++] = CodeDomHelper.XNameGetExpression(elem.QualifiedName.Name, elem.QualifiedName.Namespace); @@ -853,7 +790,7 @@ private CodeExpression[] GetListParameters(bool set, bool constructor) if (this.IsSubstitutionHead) { - paramCount += substitutionMembers.Count; + paramCount += SubstitutionMembers.Count; typeParam = CodeDomHelper.SingletonTypeManager(); } else @@ -882,7 +819,7 @@ private CodeExpression[] GetListParameters(bool set, bool constructor) if (this.IsSubstitutionHead) { - foreach (XmlSchemaElement elem in substitutionMembers) + foreach (XmlSchemaElement elem in SubstitutionMembers) { listParameters[paramIndex++] = CodeDomHelper.XNameGetExpression(elem.QualifiedName.Name, elem.QualifiedName.Namespace); diff --git a/XObjectsCode/Src/Model/CContent.cs b/XObjectsCode/Src/Model/CContent.cs index 7051318a..7655268d 100644 --- a/XObjectsCode/Src/Model/CContent.cs +++ b/XObjectsCode/Src/Model/CContent.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using System.IO; +using System.IO.IsolatedStorage; using System.Linq; -using Microsoft.VisualBasic; +using System.Xml.Schema; namespace Xml.Schema.Linq.CodeGen.Model; @@ -25,13 +25,14 @@ public class CAttribute(ClrPropertyInfo info) : CContent(info) public SchemaOrigin Origin => info.Origin; public string Name => info.PropertyName; public string Type => info.ReturnTypeStr; + public string NullableType => info.NullableType; // One more type... this differs at least for lists where this is the element type public string ClrType => info.ClrTypeName; // TODO: clarify naming and usage, seems to be the underlying type (e.g., without nullable) - public string ClrFullTypeName => info.TypeReference.ClrFullTypeName; // same name but different location than previous one?!? + public string ClrFullTypeName => info.TypeReference.ClrFullTypeName; // Yet another type, seems to be used for enums public string SimpleTypeDefinition => info.GetSimpleTypeDefinition(disambiguateProperty: true); public string LocalSimpleTypeDefinition => info.GetSimpleTypeDefinition(disambiguateProperty: false); public bool IsNew => info.IsNew; public bool IsOverride => info.IsOverride; - public bool HasSet => info.HasSet; + public bool HasSet => info.HasSet; public bool IsRef => info.IsRef; public bool IsValueType => info.TypeReference.IsValueType; public bool IsSimpleType => info.TypeReference.IsSimpleType; @@ -41,12 +42,15 @@ public class CAttribute(ClrPropertyInfo info) : CContent(info) public bool IsSchemaList => info.IsSchemaList; public bool HasValidation => Origin == SchemaOrigin.Attribute ? IsEnum : info.Validation; public bool IsNullable => info.IsNullable; // Whether the C# type is nullable (both reference and value types) - public bool IsNillable => info.IsNillable; // Whether xs:nil is an acceptable value (e.g. can be used to override default value) + public bool IsNillable => info.IsNillable; // Whether xs:nil is an acceptable value (on elements) public bool IsOptional => info.IsOptional; // Whether element/attribute cardinality can be 0 - public bool CanBeAbsent => info.CanBeAbsent; // Whether tag/attribute is optional, or part of a choice - public bool VerifyRequired => info.VerifyRequired; // Throws when attempting to read a required but missing element or attribute + public bool CanBeAbsent => info.CanBeAbsent; // Whether element/attribute is optional, or element is part of a choice + public bool VerifyRequired => info.VerifyRequired; // Whether property should throw when attempting to read a missing required element or attribute public IEnumerable<string> Comments => info.Annotations.Select(x => x.Text); + public bool IsSubstitution => info.IsSubstitutionHead; + public List<XmlSchemaElement> SubstitutionMembers => info.SubstitutionMembers; + public string FixedValue => info.FixedValue; public string DefaultValue => info.DefaultValue; public string FixedOrDefaultValue => info.FixedValue ?? info.DefaultValue; diff --git a/XObjectsCode/Src/XsdToTypesConverter.cs b/XObjectsCode/Src/XsdToTypesConverter.cs index 057fbc70..ff65acc7 100644 --- a/XObjectsCode/Src/XsdToTypesConverter.cs +++ b/XObjectsCode/Src/XsdToTypesConverter.cs @@ -32,7 +32,7 @@ public partial class XsdToTypesConverter //properties in an object derivation hierary.(Virtual OR Override) Dictionary<XmlSchemaType, ClrPropertyInfo> textPropInheritanceTracker; - Dictionary<XmlQualifiedName, ArrayList> substitutionGroups; + private readonly Dictionary<XmlQualifiedName, List<XmlSchemaElement>> substitutionGroups = new(); public XsdToTypesConverter(LinqToXsdSettings configSettings) { @@ -41,7 +41,6 @@ public XsdToTypesConverter(LinqToXsdSettings configSettings) localSymbolTable = new LocalSymbolTable(); binding = new ClrMappingInfo(); textPropInheritanceTracker = new Dictionary<XmlSchemaType, ClrPropertyInfo>(); - substitutionGroups = new Dictionary<XmlQualifiedName, ArrayList>(); } public ClrMappingInfo GenerateMapping(XmlSchemaSet schemas) @@ -100,9 +99,9 @@ private void WalkSubstitutionGroup(XmlSchemaElement element, XmlSchemaElement le XmlSchemaElement head = schemas.GlobalElements[subsName] as XmlSchemaElement; if ((head.Block & XmlSchemaDerivationMethod.Substitution) == 0) { - if (!substitutionGroups.TryGetValue(subsName, out ArrayList groupMembers)) + if (!substitutionGroups.TryGetValue(subsName, out var groupMembers)) { - groupMembers = new ArrayList() { head }; + groupMembers = [ head ]; substitutionGroups.Add(subsName, groupMembers); } @@ -956,17 +955,14 @@ private ClrPropertyInfo BuildPropertyForElement(XmlSchemaElement elem, bool from bool isAnonymous = elem.SchemaType != null; XmlSchemaObject schemaObject = schemaType; - ArrayList substitutionMembers = null; if (elem.IsGlobal()) { - substitutionMembers = IsSubstitutionGroupHead(elem); - schemaTypeName = elem.QualifiedName; + isAnonymous = false; isTypeRef = true; typeRefOrigin = SchemaOrigin.Element; - schemaObject = - schemas.GlobalElements - [schemaTypeName]; //For ref, get the element decl SOM object, as nameMappings are keyed off the SOM object - isAnonymous = false; + schemaTypeName = elem.QualifiedName; + //For ref, get the element decl SOM object, as nameMappings are keyed off the SOM object + schemaObject = schemas.GlobalElements[schemaTypeName]; } ClrTypeReference typeRef = BuildTypeReference(schemaObject, schemaTypeName, isAnonymous, true); @@ -978,21 +974,18 @@ private ClrPropertyInfo BuildPropertyForElement(XmlSchemaElement elem, bool from localSymbolTable.AddAnonymousType(identifierName, elem, typeRef); } - ClrPropertyInfo propertyInfo = - new ClrPropertyInfo(identifierName, schemaNs, schemaName, GetOccurence(elem), configSettings); - propertyInfo.Origin = SchemaOrigin.Element; - propertyInfo.FromBaseType = fromBaseType; - propertyInfo.TypeReference = typeRef; - propertyInfo.ClrNamespace = clrNs; - propertyInfo.IsNillable = elem.IsNillable; + var propertyInfo = new ClrPropertyInfo(identifierName, schemaNs, schemaName, GetOccurence(elem), configSettings) + { + Origin = SchemaOrigin.Element, + FromBaseType = fromBaseType, + TypeReference = typeRef, + ClrNamespace = clrNs, + IsNillable = elem.IsNillable, + SubstitutionMembers = elem.IsGlobal() ? IsSubstitutionGroupHead(elem) : null, + }; SetFixedDefaultValue(elem, propertyInfo); - if (substitutionMembers != null) - { - propertyInfo.SubstitutionMembers = substitutionMembers; - } - //BuildAnnotationInformation(propertyInfo, elem); return propertyInfo; //Place it in the element's namespace, maybe element's parent type's namespace? @@ -1006,7 +999,10 @@ private ClrPropertyInfo BuildPropertyForElement(XmlSchemaElement elem, bool from /// <param name="isNew"></param> /// <param name="containingType"></param> /// <returns></returns> - private ClrPropertyInfo BuildPropertyForAttribute(XmlSchemaAttribute attribute, bool fromBaseType, bool isNew, + private ClrPropertyInfo BuildPropertyForAttribute( + XmlSchemaAttribute attribute, + bool fromBaseType, + bool isNew, ClrTypeInfo containingType = null) { string identifierName = localSymbolTable.AddAttribute(attribute); @@ -1153,12 +1149,9 @@ private Occurs GetOccurence(XmlSchemaAttribute attribute) return attribute.Use == XmlSchemaUse.Required ? Occurs.One : Occurs.ZeroOrOne; } - private ArrayList IsSubstitutionGroupHead(XmlSchemaElement element) + private List<XmlSchemaElement> IsSubstitutionGroupHead(XmlSchemaElement element) { - XmlQualifiedName elementName = element.QualifiedName; - ArrayList memberList; - substitutionGroups.TryGetValue(elementName, out memberList); - return memberList; + return substitutionGroups.GetValueOrDefault(element.QualifiedName, null); } private void Validationcallback(object sender, ValidationEventArgs args) diff --git a/XObjectsCode/Templates/attribute.scriban-cs b/XObjectsCode/Templates/attribute.scriban-cs index 5bc6e8d6..cbf31b08 100644 --- a/XObjectsCode/Templates/attribute.scriban-cs +++ b/XObjectsCode/Templates/attribute.scriban-cs @@ -38,8 +38,84 @@ private static {{ $1.Type | builtin }} {{ $1.FixedOrDefaultField }} = {{ {{- end }} -{{~ # TODO: continue review of ClrPropertyInfo.AddToType after CreateFixedDefaultValue ~}} -{{~ # TODO: list getter/setter ~}} +{{- + # TODO: split this template in several parts + if $1.IsList + $list_type = $1.IsSubstitution ? "XTypedSubstitutedList<" : $1.IsSimpleType ? "XSimpleList<" : "XTypedList<" + $list_type = $list_type + $1.NullableType + ">" +}} + +[DebuggerBrowsable(DebuggerBrowsableState.Never)] +private {{ $list_type }} {{ $1.Name }}Field; + +{{ + case $1.Origin + when "Element" + include 'comments.scriban-cs' ($1.Comments | array.concat $2.Comments) + when "Attribute" + include 'comments.scriban-cs' $1.Comments + end +-}} +{{- if Settings.NullableReferences }} +[System.Diagnostics.CodeAnalysis.AllowNull()] +{{ end -}} +public {{ + $1.IsOverride ? "override " : "virtual " + $new + $1.Type | builtin +}} {{ $1.Name }} { + get { + {{- if $1.FixedValue }} + return {{ $1.FixedOrDefaultField }}; + {{- else }} + if ((this.{{ $1.Name }}Field == null)) { + this.{{ $1.Name }}Field = new {{ $list_type }}( + {{- + "this" + if $1.Substitution + ", LinqToXsdTypeManager.Instance" + for $elem in $1.SubstitutionMembers + ", System.Xml.Linq.XName.Get(" + $elem.QualifiedName.Name | string.literal + ", " + $elem.QualifiedName.Namespace | string.literal + ")" + end + else if $1.IsSimpleType + ", XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype" + ", " + $1.XNameField + else + ", LinqToXsdTypeManager.Instance" + ", " + $1.XNameField + end + if $1.DefaultValue + ", " + $1.DefaultValue + end + ")" + if $1.IsNillable + " { SupportsXsiNil = true }" + end + }}; + } + {{- if $1.IsEnum }} + return this.{{ $1.Name }}Field.Select(item => ({{ $1.ClrFullTypeName }}) Enum.Parse(typeof({{ $1.ClrFullTypeName}}), item)).ToList(); + {{- else }} + return this.{{ $1.Name }}Field; + {{- + end # IsEnum + end # FixedValue + }} + } + + {{- if $1.HasSet }} + set { + {{~ # TODO: AddListSetStatements ~}} + } + {{- end }} +} + +{{- else # !IsList -}} + {{ case $1.Origin when "Element" @@ -213,4 +289,6 @@ public {{ -}} } {{~ end ~}} -} \ No newline at end of file +} + +{{- end # if IsList}} \ No newline at end of file From 00a22e2f1e2dc4b902a983ef84fb09728d6cac18 Mon Sep 17 00:00:00 2001 From: jods4 <joel.dumas@elca.ch> Date: Fri, 10 Apr 2026 01:55:53 +0200 Subject: [PATCH 29/29] List setter + some fixes in default values --- XObjectsCode/Src/ClrPropertyInfo.cs | 127 +++----------------- XObjectsCode/Templates/attribute.scriban-cs | 71 ++++++++++- 2 files changed, 79 insertions(+), 119 deletions(-) diff --git a/XObjectsCode/Src/ClrPropertyInfo.cs b/XObjectsCode/Src/ClrPropertyInfo.cs index 50c223e1..33654943 100644 --- a/XObjectsCode/Src/ClrPropertyInfo.cs +++ b/XObjectsCode/Src/ClrPropertyInfo.cs @@ -2,10 +2,8 @@ using System; using System.CodeDom; -using System.Collections; using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Text.RegularExpressions; using System.Xml.Schema; using Xml.Schema.Linq.Extensions; @@ -462,6 +460,7 @@ public void UpdateTypeReference( public override CodeMemberProperty? AddToType(CodeTypeDeclaration parentTypeDecl, List<ClrAnnotation> annotations, GeneratedTypesVisibility visibility = GeneratedTypesVisibility.Public) { + // Scriban: done. if (parentTypeDecl == null) throw new ArgumentNullException(nameof(parentTypeDecl)); if (!ShouldGenerate) { @@ -480,33 +479,33 @@ public void UpdateTypeReference( // clrProperty.Attributes |= MemberAttributes.New; //} - if (IsList) - { + // if (IsList) + // { //Create collection type for list - CodeTypeReference listType = GetListType(); - string listName = NameGenerator.ChangeClrName(propertyName, NameOptions.MakeField); - AddMemberField(listName, listType, parentTypeDecl); + // CodeTypeReference listType = GetListType(); + // string listName = NameGenerator.ChangeClrName(propertyName, NameOptions.MakeField); + // AddMemberField(listName, listType, parentTypeDecl); //GetStatements // AddListGetStatements(clrProperty.GetStatements, listType, listName); - if (hasSet) - { - AddListSetStatements(clrProperty.SetStatements, listType, listName); - } + // if (hasSet) + // { + // AddListSetStatements(clrProperty.SetStatements, listType, listName); + // } // if (settings.NullableReferences) // { // clrProperty.CustomAttributes.Add(new CodeAttributeDeclaration("System.Diagnostics.CodeAnalysis.AllowNull")); // } - } - else - { + // } + // else + // { // AddGetStatements(clrProperty.GetStatements); // if (hasSet) // { // AddSetStatements(clrProperty.SetStatements); // } - } + // } //ApplyAnnotations(clrProperty, annotations); // parentTypeDecl.Members.Add(clrProperty); @@ -581,77 +580,6 @@ public override void AddToConstructor(CodeConstructor functionalConstructor) } } - private void AddListSetStatements(CodeStatementCollection setStatements, CodeTypeReference listType, - string listName) - { - AddFixedValueChecking(setStatements); - - var listFieldRef = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), listName); - - CodeStatement[] trueStatements = - new CodeStatement[] - { - new CodeAssignStatement( //True 1 Then - listFieldRef, - new CodePrimitiveExpression(null) - ) - }; - - CodeStatement[] falseStatements = - new CodeStatement[] - { - new CodeConditionStatement( //False 1 Else if - new CodeBinaryOperatorExpression( // Condition2 - listFieldRef, - CodeBinaryOperatorType.IdentityEquality, - new CodePrimitiveExpression(null) - ), - new CodeStatement[] - { - new CodeAssignStatement( //Then 2 - listFieldRef, - new CodeMethodInvokeExpression( - new CodeTypeReferenceExpression(listType), - IsNillable ? Constants.InitializeNillable : Constants.Initialize, - GetListParameters(true /*set*/, false /*constructor*/)) - ) - }, - new CodeStatement[] - { - new CodeExpressionStatement( - new CodeMethodInvokeExpression( - new CodeTypeReferenceExpression("XTypedServices"), - Constants.SetList + "<" + NullableType + ">", - listFieldRef, - GetListSetStatementValueExpr())) - }) - }; - - setStatements.Add( - new CodeConditionStatement( - new CodeBinaryOperatorExpression( //if - CodeDomHelper.SetValue(), - CodeBinaryOperatorType.IdentityEquality, - new CodePrimitiveExpression(null) - ), - trueStatements, - falseStatements)); - } - - private CodeExpression GetListSetStatementValueExpr() - { - if (IsEnum) - { - var lambdaExpr = new CodeSnippetExpression("item => item.ToString()"); - var selectExpr = CodeDomHelper.CreateMethodCall(CodeDomHelper.SetValue(), "Select", lambdaExpr); - return new CodeMethodInvokeExpression(selectExpr, "ToList"); - } - else - { - return CodeDomHelper.SetValue(); - } - } - private void AddGetStatements(CodeStatementCollection getStatements) { // TODO: @@ -735,15 +663,6 @@ private void AddSubstGetStatements(CodeStatementCollection getStatements) new CodeVariableReferenceExpression("x")))); } - private void AddMemberField(string memberName, CodeTypeReference memberType, CodeTypeDeclaration parentType) - { - // Construct private field - CodeMemberField mem = new CodeMemberField(memberType, memberName); - mem.Attributes = MemberAttributes.Private; - CodeDomHelper.AddBrowseNever(mem); - parentType.Members.Add(mem); - } - private CodeTypeReference GetListType() { string listName; @@ -864,19 +783,6 @@ public string GetSimpleTypeDefinition(bool disambiguateProperty) : $"{simpleTypeClrTypeName}.TypeDefinition"; } - protected CodeExpression GetSimpleTypeClassExpression(bool disambiguateWhenPropertyAndTypeNameAreTheSame = false) - { - Debug.Assert(this.simpleTypeClrTypeName.IsNotEmpty()); - - var areTheSameAndShouldDisambiguate = disambiguateWhenPropertyAndTypeNameAreTheSame && propertyName == simpleTypeClrTypeName; - - string typeName = areTheSameAndShouldDisambiguate - ? $"global::{settings.GetClrNamespace(PropertyNs)}.{simpleTypeClrTypeName}" - : simpleTypeClrTypeName; - - return CodeDomHelper.CreateFieldReference(typeName, Constants.SimpleTypeDefInnerType); - } - public void CreateXNameField(CodeTypeDeclaration typeDecl) { // HACK: CodeDom doesn't model readonly fields... but it doesn't check the type either! @@ -930,10 +836,5 @@ protected void CreateFixedDefaultValue(CodeTypeDeclaration typeDecl) typeDecl.Members.Add(fixedOrDefaultField); } - - protected void AddFixedValueChecking(CodeStatementCollection setStatements) - { - // Scriban: done - } } } \ No newline at end of file diff --git a/XObjectsCode/Templates/attribute.scriban-cs b/XObjectsCode/Templates/attribute.scriban-cs index cbf31b08..4c8a75ea 100644 --- a/XObjectsCode/Templates/attribute.scriban-cs +++ b/XObjectsCode/Templates/attribute.scriban-cs @@ -89,7 +89,7 @@ public {{ ", " + $1.XNameField end if $1.DefaultValue - ", " + $1.DefaultValue + ", " + $1.FixedOrDefaultField end ")" if $1.IsNillable @@ -109,12 +109,71 @@ public {{ {{- if $1.HasSet }} set { - {{~ # TODO: AddListSetStatements ~}} + {{ + # FIXME: `if (value == fixed) {} else throw;` is backwards but to match legacy CodeDom generation + if $1.FixedValue + # If the property is an optional element, setting it to null is also acceptable: it removes the element from document. + # So we're checking `if (value == fixed || value == null) ...` + # On principle, setting attributes to null can also make sense as it would remove the XAttribute from document, + # but that doesn't mesh well with the type system (attributes with default/fixed values are never nullable, + # which would still be workable on Ref types with [AllowNull] on property, but we can't assign null to a value type setter. + # This is really an edge case and can be achieved by removing the XAttribute from Untyped. + if $1.IsNullable + "if (" + $1.FixedOrDefaultField + ".Equals(value) || value == null) {\n" + else + "if (" + $1.FixedOrDefaultField + ".Equals(value)) {\n" + end + "}\n" + "else {\n" + " throw new Xml.Schema.Linq.LinqToXsdFixedValueException(value, " + $1.FixedOrDefaultField + ");\n" + "}\n" + end + -}} + if ((value == null)) { + this.{{ $1.Name }}Field = null; + } + else { + if ((this.{{ $1.Name }}Field == null)) { + this.{{ $1.Name }}Field = {{ $list_type }}.{{ $1.IsNillable ? "InitializeNillable" : "Initialize" }}( + {{- + "this" + $value = $1.IsEnum ? "value.Select(item => item.ToString())" : "value" + if $1.Substitution + ", LinqToXsdTypeManager.Instance" + ", " + $value + for $elem in $1.SubstitutionMembers + ", System.Xml.Linq.XName.Get(" + $elem.QualifiedName.Name | string.literal + ", " + $elem.QualifiedName.Namespace | string.literal + ")" + end + else if $1.IsSimpleType + ", XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode." + $1.XTypeCode + ").Datatype" + ", " + $value + ", " + $1.XNameField + else + ", LinqToXsdTypeManager.Instance" + ", " + $value + ", " + $1.XNameField + end + }}); + } + else { + XTypedServices.SetList<{{ $1.NullableType }}>(this.{{ $1.Name }}Field, {{ + if $1.IsEnum + "value.Select(item => item.ToString()).ToList()" + else + "value" + end + }}); + } + } } {{- end }} } -{{- else # !IsList -}} +{{- else # !IsList }} {{ case $1.Origin @@ -218,13 +277,13 @@ public {{ # which would still be workable on Ref types with [AllowNull] on property, but we can't assign null to a value type setter. # This is really an edge case and can be achieved by removing the XAttribute from Untyped. if $1.IsNullable - "if (value == " + $1.FixedValue + " || value == null) {\n" + "if (" + $1.FixedOrDefaultField + ".Equals(value) || value == null) {\n" else - "if (value == " + $1.FixedValue + ") {\n" + "if (" + $1.FixedOrDefaultField + ".Equals(value)) {\n" end "}\n" "else {\n" - " throw new LinqToXsdFixedValueException(value, " + $1.FixedValue + ");\n" + " throw new Xml.Schema.Linq.LinqToXsdFixedValueException(value, " + $1.FixedOrDefaultField + ");\n" "}\n" end