C# Class System.Xml.Serialization.XmlReflectionImporter

Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement ) : XmlMembersMapping
ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc ) : XmlMembersMapping
ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc, bool openModel ) : XmlMembersMapping
ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc, bool openModel, XmlMappingAccess access ) : XmlMembersMapping
ImportTypeMapping ( Type type ) : XmlTypeMapping
ImportTypeMapping ( Type type, XmlRootAttribute root ) : XmlTypeMapping
ImportTypeMapping ( Type type, XmlRootAttribute root, string defaultNamespace ) : XmlTypeMapping
ImportTypeMapping ( Type type, string defaultNamespace ) : XmlTypeMapping
IncludeType ( Type type ) : void
IncludeTypes ( ICustomAttributeProvider provider ) : void
XmlReflectionImporter ( ) : System.Reflection
XmlReflectionImporter ( XmlAttributeOverrides attributeOverrides ) : System.Reflection
XmlReflectionImporter ( XmlAttributeOverrides attributeOverrides, string defaultNamespace ) : System.Reflection
XmlReflectionImporter ( string defaultNamespace ) : System.Reflection

Private Methods

Method Description
AddUniqueAccessor ( INameScope scope, Accessor accessor ) : void
AddUniqueAccessor ( MemberMapping member, INameScope elements, INameScope attributes, bool isSequence ) : void
CheckAmbiguousChoice ( XmlAttributes a, Type accessorType, string accessorName ) : void
CheckChoiceIdentifierMapping ( EnumMapping choiceMapping ) : void
CheckChoiceIdentifierType ( Type type, bool isArrayLike, string identifierName, string memberName ) : Type
CheckContext ( TypeDesc typeDesc, ImportContext context ) : void
CheckForm ( XmlSchemaForm form, bool isQualified ) : void
CheckNullable ( bool isNullable, TypeDesc typeDesc, TypeMapping mapping ) : void
CheckTopLevelAttributes ( XmlAttributes a, string accessorName ) : void
CountAtLevel ( XmlArrayItemAttributes attributes, int level ) : int
CreateArrayAttribute ( TypeDesc typeDesc ) : XmlArrayAttribute
CreateArrayElementsFromAttributes ( ArrayMapping arrayMapping, XmlArrayItemAttributes attributes, Type arrayElementType, string arrayElementNs, RecursionLimiter limiter ) : void
CreateArrayItemAttribute ( TypeDesc typeDesc, int nestingLevel ) : XmlArrayItemAttribute
CreateElementAccessor ( TypeMapping mapping, string ns ) : ElementAccessor
CreateElementAttribute ( TypeDesc typeDesc ) : XmlElementAttribute
CreateMemberReflectionException ( FieldModel model, Exception e ) : Exception
CreateNullableMapping ( TypeMapping baseMapping, Type type ) : NullableMapping
CreateReflectionException ( string context, Exception e ) : Exception
CreateRootMapping ( ) : StructMapping
CreateTypeReflectionException ( string context, Exception e ) : Exception
FindSpecifiedMember ( string memberName, XmlReflectionMember reflectionMembers ) : XmlReflectionMember
GetAttributes ( MemberInfo memberInfo ) : XmlAttributes
GetAttributes ( Type type, bool canBeSimpleType ) : XmlAttributes
GetChoiceIdentifierType ( XmlChoiceIdentifierAttribute choice, StructModel structModel, bool isArrayLike, string accessorName ) : Type
GetChoiceIdentifierType ( XmlChoiceIdentifierAttribute choice, XmlReflectionMember xmlReflectionMembers, bool isArrayLike, string accessorName ) : Type
GetContextName ( ImportContext context ) : string
GetDefaultValue ( TypeDesc fieldTypeDesc, Type t, XmlAttributes a ) : object
GetMappingName ( Mapping mapping ) : string
GetMethodFromSchemaProvider ( XmlSchemaProviderAttribute provider, Type type ) : MethodInfo
GetRootMapping ( ) : StructMapping
GetTopLevelMapping ( Type type, string defaultNamespace ) : XmlTypeMapping
GetTypeMapping ( string typeName, string ns, TypeDesc typeDesc, NameTable typeLib, Type type ) : TypeMapping
ImportAccessorMapping ( MemberMapping accessor, FieldModel model, XmlAttributes a, string ns, Type choiceIdentifierType, bool rpc, bool openModel, RecursionLimiter limiter ) : void
ImportArrayLikeMapping ( ArrayModel model, string ns, RecursionLimiter limiter ) : ArrayMapping
ImportConstantMapping ( ConstantModel model ) : ConstantMapping
ImportElement ( TypeModel model, XmlRootAttribute root, string defaultNamespace, RecursionLimiter limiter ) : ElementAccessor
ImportEnumMapping ( EnumModel model, string ns, bool repeats ) : EnumMapping
ImportFieldMapping ( StructModel parent, FieldModel model, XmlAttributes a, string ns, RecursionLimiter limiter ) : MemberMapping
ImportMemberMapping ( XmlReflectionMember xmlReflectionMember, string ns, XmlReflectionMember xmlReflectionMembers, bool rpc, bool openModel, RecursionLimiter limiter ) : MemberMapping
ImportMembersMapping ( XmlReflectionMember xmlReflectionMembers, string ns, bool hasWrapperElement, bool rpc, bool openModel, RecursionLimiter limiter ) : MembersMapping
ImportPrimitiveMapping ( PrimitiveModel model, ImportContext context, string dataType, bool repeats ) : PrimitiveMapping
ImportSpecialMapping ( Type type, TypeDesc typeDesc, string ns, ImportContext context, RecursionLimiter limiter ) : SpecialMapping
ImportStructLikeMapping ( StructModel model, string ns, bool openModel, XmlAttributes a, RecursionLimiter limiter ) : StructMapping
ImportTypeMapping ( TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, RecursionLimiter limiter ) : TypeMapping
ImportTypeMapping ( TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, bool repeats, bool openModel, RecursionLimiter limiter ) : TypeMapping
IncludeType ( Type type, RecursionLimiter limiter ) : void
IncludeTypes ( ICustomAttributeProvider provider, RecursionLimiter limiter ) : void
InitializeStructMembers ( StructMapping mapping, StructModel model, bool openModel, string typeName, RecursionLimiter limiter ) : bool
InvalidAttributeUseException ( Type type ) : Exception
IsAnonymousType ( XmlAttributes a, string contextNs ) : bool
ReconcileAccessor ( Accessor accessor, NameTable accessors ) : Accessor
ReconcileLocalAccessor ( ElementAccessor accessor, string ns ) : ElementAccessor
SetArrayMappingType ( ArrayMapping mapping, string defaultNs, Type type ) : void
SetBase ( SerializableMapping mapping, XmlQualifiedName baseQname ) : void
UnsupportedException ( TypeDesc typeDesc, ImportContext context ) : Exception
ValidationCallbackWithErrorCode ( object sender, ValidationEventArgs args ) : void
XsdTypeName ( Type type ) : string
XsdTypeName ( Type type, XmlAttributes a, string name ) : string

Method Details

ImportMembersMapping() public method

public ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement ) : XmlMembersMapping
elementName string
ns string
members XmlReflectionMember
hasWrapperElement bool
return XmlMembersMapping

ImportMembersMapping() public method

public ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc ) : XmlMembersMapping
elementName string
ns string
members XmlReflectionMember
hasWrapperElement bool
rpc bool
return XmlMembersMapping

ImportMembersMapping() public method

public ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc, bool openModel ) : XmlMembersMapping
elementName string
ns string
members XmlReflectionMember
hasWrapperElement bool
rpc bool
openModel bool
return XmlMembersMapping

ImportMembersMapping() public method

public ImportMembersMapping ( string elementName, string ns, XmlReflectionMember members, bool hasWrapperElement, bool rpc, bool openModel, XmlMappingAccess access ) : XmlMembersMapping
elementName string
ns string
members XmlReflectionMember
hasWrapperElement bool
rpc bool
openModel bool
access XmlMappingAccess
return XmlMembersMapping

ImportTypeMapping() public method

public ImportTypeMapping ( Type type ) : XmlTypeMapping
type System.Type
return XmlTypeMapping

ImportTypeMapping() public method

public ImportTypeMapping ( Type type, XmlRootAttribute root ) : XmlTypeMapping
type System.Type
root XmlRootAttribute
return XmlTypeMapping

ImportTypeMapping() public method

public ImportTypeMapping ( Type type, XmlRootAttribute root, string defaultNamespace ) : XmlTypeMapping
type System.Type
root XmlRootAttribute
defaultNamespace string
return XmlTypeMapping

ImportTypeMapping() public method

public ImportTypeMapping ( Type type, string defaultNamespace ) : XmlTypeMapping
type System.Type
defaultNamespace string
return XmlTypeMapping

IncludeType() public method

public IncludeType ( Type type ) : void
type System.Type
return void

IncludeTypes() public method

public IncludeTypes ( ICustomAttributeProvider provider ) : void
provider ICustomAttributeProvider
return void

XmlReflectionImporter() public method

public XmlReflectionImporter ( ) : System.Reflection
return System.Reflection

XmlReflectionImporter() public method

public XmlReflectionImporter ( XmlAttributeOverrides attributeOverrides ) : System.Reflection
attributeOverrides XmlAttributeOverrides
return System.Reflection

XmlReflectionImporter() public method

public XmlReflectionImporter ( XmlAttributeOverrides attributeOverrides, string defaultNamespace ) : System.Reflection
attributeOverrides XmlAttributeOverrides
defaultNamespace string
return System.Reflection

XmlReflectionImporter() public method

public XmlReflectionImporter ( string defaultNamespace ) : System.Reflection
defaultNamespace string
return System.Reflection