7 types derived from XmlSchemaObject
System.Private.Xml (7)
System\Xml\Schema\XmlSchema.cs (1)
16public class XmlSchema : XmlSchemaObject
System\Xml\Schema\XmlSchemaAnnotated.cs (1)
9public class XmlSchemaAnnotated : XmlSchemaObject
System\Xml\Schema\XmlSchemaAnnotation.cs (1)
9public class XmlSchemaAnnotation : XmlSchemaObject
System\Xml\Schema\XmlSchemaAppInfo.cs (1)
9public class XmlSchemaAppInfo : XmlSchemaObject
System\Xml\Schema\XmlSchemaDocumentation.cs (1)
11public class XmlSchemaDocumentation : XmlSchemaObject
System\Xml\Schema\XmlSchemaExternal.cs (1)
10public abstract class XmlSchemaExternal : XmlSchemaObject
System\Xml\Schema\XmlSchemaSubstitutionGroup.cs (1)
9internal class XmlSchemaSubstitutionGroup : XmlSchemaObject
228 references to XmlSchemaObject
netstandard (1)
netstandard.cs (1)
2350[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaObject))]
System.Data.Common (4)
System\Data\XMLSchema.cs (4)
511foreach (XmlSchemaObject so in attributes) 990foreach (XmlSchemaObject so in attributes) 1012foreach (XmlSchemaObject obj in attributeGroup.Attributes) 2512XmlSchemaObject e = elem.Parent!;
System.Private.DataContractSerialization (17)
System\Runtime\Serialization\SchemaExporter.cs (4)
560XmlSchemaObject[] itemArray = new XmlSchemaObject[schema.Items.Count]; 564XmlSchemaObject item = itemArray[j]; 670foreach (XmlSchemaObject schemaItem in schema.Items)
System\Runtime\Serialization\SchemaHelper.cs (4)
71foreach (XmlSchemaObject schemaObj in schema.Items) 103foreach (XmlSchemaObject schemaObj in schema.Items) 199foreach (XmlSchemaObject schemaObject in schema.Items) 216foreach (XmlSchemaObject schemaObject in schema.Items)
System\Runtime\Serialization\SchemaImporter.cs (9)
81foreach (XmlSchemaObject typeObj in schema.SchemaTypes.Values) 252foreach (XmlSchemaObject schemaObj in schema.SchemaTypes.Values) 287foreach (XmlSchemaObject schemaObj in schema.Elements.Values) 572XmlSchemaObject o = rootSequence.Items[0]; 604foreach (XmlSchemaObject schemaObject in serializationSchema.Items) 856XmlSchemaObject o = rootSequence.Items[0]; 1244foreach (XmlSchemaObject schemaObject in type.Annotation.Items) 1266foreach (XmlSchemaObject schemaObject in type.Annotation.Items) 1376XmlSchemaObject o = attributes[i];
System.Private.Xml (199)
System\Xml\Core\XsdValidatingReader.cs (2)
126internal XsdValidatingReader(XmlReader reader, XmlResolver? xmlResolver, XmlReaderSettings readerSettings, XmlSchemaObject? partialValidationType) 169private void SetupValidator(XmlReaderSettings readerSettings, XmlReader reader, XmlSchemaObject? partialValidationType)
System\Xml\Dom\DocumentSchemaValidator.cs (11)
87XmlSchemaObject? partialValidationType = null; 243private void CreateValidator(XmlSchemaObject? partialValidationType, XmlSchemaValidationFlags validationFlags) 482private XmlSchemaObject? FindSchemaInfo(XmlElement elementToValidate) 518XmlSchemaObject? ancestorSchemaObject = parentSchemaInfo.SchemaElement; 552XmlSchemaObject? schemaObject = FindSchemaInfo(parentElement); 575private XmlSchemaObject? GetTypeFromAncestors(XmlElement elementToValidate, XmlSchemaObject? ancestorType, int ancestorsCount) 612XmlSchemaObject? schemaInfoFound; 638private static bool AncestorTypeHasWildcard(XmlSchemaObject? ancestorType) 649private static XmlSchemaComplexType? GetComplexType(XmlSchemaObject? schemaObject) 760private XmlSchemaValidator CreateTypeFinderValidator(XmlSchemaObject? partialValidationType)
System\Xml\Schema\BaseProcessor.cs (17)
55protected void AddToTable(XmlSchemaObjectTable table, XmlQualifiedName qname, XmlSchemaObject item) 61XmlSchemaObject? existingObject = (XmlSchemaObject?)table[qname]; 76XmlSchemaObject? builtInAttributeGroup = schemaForXmlNS.AttributeGroups[qname]; 99XmlSchemaObject? builtInAttribute = schemaForXmlNS.Attributes[qname]; 156private static bool IsValidAttributeGroupRedefine(XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table) 175private static bool IsValidGroupRedefine(XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table) 194private static bool IsValidTypeRedefine(XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table) 213protected void SendValidationEvent(string code, XmlSchemaObject source) 218protected void SendValidationEvent(string code, string? msg, XmlSchemaObject source) 223protected void SendValidationEvent(string code, string? msg1, string? msg2, XmlSchemaObject source) 228protected void SendValidationEvent(string code, string?[]? args, Exception innerException, XmlSchemaObject source) 238protected void SendValidationEvent(string code, XmlSchemaObject source, XmlSeverityType severity) 248protected void SendValidationEvent(string code, string? msg, XmlSchemaObject source, XmlSeverityType severity)
System\Xml\Schema\DataTypeImplementation.cs (2)
411internal override void VerifySchemaValid(XmlSchemaObjectTable notations, XmlSchemaObject caller) {/*noop*/} 3074internal override void VerifySchemaValid(XmlSchemaObjectTable notations, XmlSchemaObject caller)
System\Xml\Schema\Inference\Infer.cs (2)
1314foreach (XmlSchemaObject? xsa in attributes) 1365foreach (XmlSchemaObject? xsa in attributes)
System\Xml\Schema\Preprocessor.cs (12)
505private void ParseUri(string uri, string code, XmlSchemaObject sourceSchemaObject) 727List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>(); 773SendValidationEvent(SR.Sch_InvalidCollection, (XmlSchemaObject)schemaItems[i]); 974internal static XmlSchema? GetParentSchema(XmlSchemaObject? currentSchemaObject) 2001private void PreprocessAttributes(XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute? anyAttribute, XmlSchemaObject parent) 2044private void ValidateIdAttribute(XmlSchemaObject xso) 2073private void ValidateNameAttribute(XmlSchemaObject xso) 2097private void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value) 2155private static void SetParent(XmlSchemaObject child, XmlSchemaObject parent) 2160private void PreprocessAnnotation(XmlSchemaObject schemaObject)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (12)
534List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>(); 698redefine.Schema!.Groups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!); 703redefine.Schema!.AttributeGroups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!); 708redefine.Schema!.SchemaTypes.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!); 1669private void PreprocessAttributes(XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute? anyAttribute, XmlSchemaObject parent) 1710private void ValidateIdAttribute(XmlSchemaObject xso) 1733private void ValidateNameAttribute(XmlSchemaObject xso) 1756private void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value) 1773private static void SetParent(XmlSchemaObject child, XmlSchemaObject parent) 1778private static void PreprocessAnnotation(XmlSchemaObject schemaObject)
System\Xml\Schema\SchemaInfo.cs (1)
176internal SchemaAttDef? GetAttributeXsd(SchemaElementDecl? ed, XmlQualifiedName qname, XmlSchemaObject? partialValidationType, out AttributeMatchState attributeMatchState)
System\Xml\Schema\SchemaNamespacemanager.cs (4)
13private readonly XmlSchemaObject _node; 15public SchemaNamespaceManager(XmlSchemaObject node) 26for (XmlSchemaObject? current = _node; current != null; current = current.Parent) 41for (XmlSchemaObject? current = _node; current != null; current = current.Parent)
System\Xml\Schema\XmlSchema.cs (1)
454XmlSchemaObject newItem;
System\Xml\Schema\XmlSchemaAttribute.cs (1)
171internal override XmlSchemaObject Clone()
System\Xml\Schema\XmlSchemaAttributeGroup.cs (1)
89internal override XmlSchemaObject Clone()
System\Xml\Schema\XmlSchemaComplexType.cs (3)
316internal override XmlSchemaObject Clone() 322internal XmlSchemaObject Clone(XmlSchema? parentSchema) 416XmlSchemaObject xso;
System\Xml\Schema\XmlSchemaDataType.cs (1)
76internal abstract void VerifySchemaValid(XmlSchemaObjectTable notations, XmlSchemaObject caller);
System\Xml\Schema\XmlSchemaElement.cs (2)
271internal override XmlSchemaObject Clone() 277internal XmlSchemaObject Clone(XmlSchema? parentSchema)
System\Xml\Schema\XmlSchemaException.cs (8)
25private XmlSchemaObject? _sourceSchemaObject; 116internal XmlSchemaException(string? res, XmlSchemaObject source) : 120internal XmlSchemaException(string? res, string? arg, XmlSchemaObject source) : 124internal XmlSchemaException(string? res, string?[]? args, XmlSchemaObject source) : 128internal XmlSchemaException(string? res, string?[]? args, Exception? innerException, string? sourceUri, int lineNumber, int linePosition, XmlSchemaObject? source) : 188public XmlSchemaObject? SourceSchemaObject 204internal void SetSchemaObject(XmlSchemaObject source) 209internal void SetSource(XmlSchemaObject source)
System\Xml\Schema\XmlSchemaGroup.cs (2)
72internal override XmlSchemaObject Clone() 78internal XmlSchemaObject Clone(XmlSchema parentSchema)
System\Xml\Schema\XmlSchemaObject.cs (4)
14private XmlSchemaObject? _parent; 41public XmlSchemaObject? Parent 88internal virtual XmlSchemaObject Clone() 90return (XmlSchemaObject)MemberwiseClone();
System\Xml\Schema\XmlSchemaObjectCollection.cs (12)
12private readonly XmlSchemaObject? _parent; 18public XmlSchemaObjectCollection(XmlSchemaObject? parent) 23public virtual XmlSchemaObject this[int index] 25get { return (XmlSchemaObject)List[index]!; } 34public int Add(XmlSchemaObject item) 39public void Insert(int index, XmlSchemaObject item) 44public int IndexOf(XmlSchemaObject item) 49public bool Contains(XmlSchemaObject item) 54public void Remove(XmlSchemaObject item) 59public void CopyTo(XmlSchemaObject[] array, int index) 120public XmlSchemaObject Current 122get { return (XmlSchemaObject)_enumerator.Current!; }
System\Xml\Schema\XmlSchemaObjectTable.cs (14)
12private readonly Dictionary<XmlQualifiedName, XmlSchemaObject> _table = new Dictionary<XmlQualifiedName, XmlSchemaObject>(); 19internal void Add(XmlQualifiedName name, XmlSchemaObject value) 26internal void Insert(XmlQualifiedName name, XmlSchemaObject value) 28XmlSchemaObject? oldValue; 45internal void Replace(XmlQualifiedName name, XmlSchemaObject value) 47XmlSchemaObject? oldValue; 66XmlSchemaObject? value; 77private int FindIndexByValue(XmlSchemaObject xso) 104public XmlSchemaObject? this[XmlQualifiedName name] 108XmlSchemaObject? value; 148internal XmlSchemaObject xso; 150public XmlSchemaObjectEntry(XmlQualifiedName name, XmlSchemaObject value) 270protected XmlSchemaObject? currentValue;
System\Xml\Schema\XmlSchemaSet.cs (4)
1369private bool AddToTable(XmlSchemaObjectTable table, XmlQualifiedName qname, XmlSchemaObject item) 1376XmlSchemaObject? existingObject = (XmlSchemaObject?)table[qname]; 1402XmlSchemaObject builtInAttribute = schemaForXmlNS.Attributes[qname]!;
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
44internal override XmlSchemaObject Clone()
System\Xml\Schema\XmlSchemaSimpleTypeList.cs (1)
36internal override XmlSchemaObject Clone()
System\Xml\Schema\XmlSchemaSimpleTypeRestriction.cs (1)
46internal override XmlSchemaObject Clone()
System\Xml\Schema\XmlSchemaSimpleTypeUnion.cs (1)
39internal override XmlSchemaObject Clone()
System\Xml\Schema\XmlSchemaValidator.cs (3)
106private XmlSchemaObject? _partialValidationType; 373public void Initialize(XmlSchemaObject partialValidationType) 525XmlSchemaObject? pvtAttribute = _currentState == ValidatorState.TopLevelAttribute ? _partialValidationType : null;
System\Xml\Schema\XsdBuilder.cs (7)
630private readonly Stack<XmlSchemaObject> _containerStack = new Stack<XmlSchemaObject>(); 637private XmlSchemaObject? _xso; 841private XmlSchemaObject ParentContainer 846private XmlSchemaObject GetContainer(State state) 848XmlSchemaObject container = null!; 2325private void AddAttribute(XmlSchemaObject value)
System\Xml\Serialization\ImportContext.cs (19)
60internal XmlSchemaObject? AddItem(XmlSchemaObject? item, XmlQualifiedName? qname) 77XmlSchemaObject cachedItem = (XmlSchemaObject)list[i]!; 96internal bool Match(XmlSchemaObject o1, XmlSchemaObject o2, bool shareTypes) 114private ArrayList GetDependencies(XmlSchemaObject o, ArrayList deps, Hashtable refs) 125GetDependencies((XmlSchemaObject)list[i]!, deps, refs); 132private int CompositeHash(XmlSchemaObject o) 156GetHash((XmlSchemaObject)items[i]!); 160private int GetHash(XmlSchemaObject o) 165if (hash is XmlSchemaObject) 181private static string ToString(XmlSchemaObject o, SchemaObjectWriter writer) 205foreach (XmlSchemaObject item in s.Items) 217internal void AddRef(ArrayList list, XmlSchemaObject? o) 234internal ArrayList Depends(XmlSchemaObject item) 249internal void Depends(XmlSchemaObject? item, ArrayList refs) 393foreach (XmlSchemaObject o in ((XmlSchemaGroupBase)item).Items) 405foreach (XmlSchemaObject o in ((XmlSchemaAttributeGroup)item).Attributes)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
1567if (structMapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(structMapping.TypeDesc.Type)) 1571throw new NotImplementedException(nameof(XmlSchemaObject));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
619if (mapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.Type))
System\Xml\Serialization\SchemaObjectWriter.cs (14)
61return _comparer.Compare(NameOf((XmlSchemaObject?)o1), NameOf((XmlSchemaObject?)o2)); 64internal static XmlQualifiedName NameOf(XmlSchemaObject? o) 139internal static string? Namespace(XmlSchemaObject? o) 274internal string WriteXmlSchemaObject(XmlSchemaObject? o) 277Write3_XmlSchemaObject((XmlSchemaObject?)o); 293Write3_XmlSchemaObject((XmlSchemaObject?)list[i]); 333private void Write3_XmlSchemaObject(XmlSchemaObject? o) 502XmlSchemaObject ai = (XmlSchemaObject)a[ia]; 661XmlSchemaObject? ai = (XmlSchemaObject?)a[ia]; 1174XmlSchemaObject ai = (XmlSchemaObject)a[ia];
System\Xml\Serialization\Types.cs (1)
1387internal static XmlQualifiedName ParseWsdlArrayType(string type, out string dims, XmlSchemaObject? parent)
System\Xml\Serialization\XmlSchemaExporter.cs (3)
257foreach (XmlSchemaObject o in schema.Items) 280private void AddSchemaItem(XmlSchemaObject item, string? ns, string? referencingNs) 322private bool SchemaContainsItem(XmlSchemaObject item, string ns)
System\Xml\Serialization\XmlSchemaImporter.cs (5)
172XmlSchemaObject? xso = Schemas.SchemaSet.GlobalTypes[typeName]; 335XmlSchemaObject parent = element; 1516foreach (XmlSchemaObject o in type.Annotation.Items) 1983XmlSchemaObject parent = element; 2011XmlSchemaObject parent = attribute;
System\Xml\Serialization\XmlSchemas.cs (18)
196foreach (XmlSchemaObject o in removes) 227XmlSchemaObject? ret = null; 299foreach (XmlSchemaObject o in schema.Items) 409XmlSchemaObject o = schema.Items[i]; 410XmlSchemaObject? dest = Find(o, originals); 436private static string? ItemName(XmlSchemaObject o) 465internal static XmlQualifiedName GetParentName(XmlSchemaObject item) 482private static string? GetSchemaItem(XmlSchemaObject? o, string? ns, string? details) 494XmlSchemaObject tmp = o; 572private static string Dump(XmlSchemaObject o) 588private static string MergeFailedMessage(XmlSchemaObject src, XmlSchemaObject dest, string? ns) 595internal static XmlSchemaObject? Find(XmlSchemaObject o, IList originals) 605foreach (XmlSchemaObject item in s.Items) 691XmlSchemaObject? source = exception.SourceSchemaObject; 756internal bool IsReference(XmlSchemaObject type) 758XmlSchemaObject parent = type;
System\Xml\Serialization\XmlSerializationReader.cs (1)
3295if (structMapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(structMapping.TypeDesc.Type))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1510if (structMapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(structMapping.TypeDesc.Type))
System\Xml\Serialization\XmlSerializationWriter.cs (3)
935XmlQualifiedName qname = TypeScope.ParseWsdlArrayType(attr.Value, out dims, (container is XmlSchemaObject) ? (XmlSchemaObject)container : null); 3143if (mapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.Type))
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1009if (mapping.TypeDesc.Type != null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.Type))
System.Private.Xml.Linq (5)
System\Xml\Schema\XNodeValidator.cs (5)
40public void Validate(XObject source, XmlSchemaObject? partialValidationType, bool addSchemaInfo) 499public static void Validate(this XElement source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 518public static void Validate(this XElement source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler, bool addSchemaInfo) 538public static void Validate(this XAttribute source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 557public static void Validate(this XAttribute source, XmlSchemaObject partialValidationType, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler, bool addSchemaInfo)
System.Xml (1)
System.Xml.cs (1)
75[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaObject))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
74[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaObject))]