C# Class Company.OrmLanguage.OrmLanguageSerializationBehaviorSerializationMessages

Utility class to provide serialization messages
Mostrar archivo Open project: thabart/SimpleOrm

Private Properties

Property Type Description
CannotMonikerizeElement void
ExpectingFullFormRelationship void
ExpectingShortFormRelationship void
IgnoredPropertyValue void
InvalidPropertyValue void

Public Methods

Method Description
AmbiguousMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, string moniker, global::Microsoft.VisualStudio.Modeling element1, global::Microsoft.VisualStudio.Modeling element2 ) : void

Add an error for ambiguous moniker.

AmbiguousSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace, string schemaPath ) : void

Add a warning for ambiguous schemas.

DanglingRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string relationshipType ) : void

Add an error for dangling relationship instance.

MissingId ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global newId ) : void

Add a warning for missing "Id" property.

MissingMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string monikerAttributeName ) : void

Add an error for missing moniker.

MonikerResolvedToDuplicateLink ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void

Add an warning for moniker resolved to duplicate link. The moniker will be ignored.

NoSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace ) : void

Add a warning for no schema found for the given target namespace, schema validation will be skipped in this case.

SchemaValidationError ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string message ) : void

Add a warning for schema validation error.

UnexpectedXmlElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void

Add an warning for unexpected XML element.

UnresolvedMoniker ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void

Add an error for unresolved moniker.

VersionMismatch ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global expectedVersion, global actualVersion ) : void

Add an error for Version mismatch.

Private Methods

Method Description
CannotMonikerizeElement ( global::Microsoft.VisualStudio.Modeling serializationContext, string domainClassName ) : void
ExpectingFullFormRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global relationshipType ) : void
ExpectingShortFormRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global relationshipType ) : void
IgnoredPropertyValue ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string propertyName, global propertyType, string value ) : void
InvalidPropertyValue ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string propertyName, global propertyType, string value ) : void

Method Details

AmbiguousMoniker() public static method

Add an error for ambiguous moniker.
public static AmbiguousMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, string moniker, global::Microsoft.VisualStudio.Modeling element1, global::Microsoft.VisualStudio.Modeling element2 ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
moniker string The ambiguous moniker string.
element1 global::Microsoft.VisualStudio.Modeling The first element using the given moniker.
element2 global::Microsoft.VisualStudio.Modeling The second element using the given moniker.
return void

AmbiguousSchema() public static method

Add a warning for ambiguous schemas.
public static AmbiguousSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace, string schemaPath ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
targetNamespace string Target namespace to be resolved.
schemaPath string The schema that is used to resolve the definition of the target namespace.
return void

DanglingRelationship() public static method

Add an error for dangling relationship instance.
public static DanglingRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string relationshipType ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
reader global The reader pointing to where the message is raised.
relationshipType string Type name of the relationship.
return void

MissingId() public static method

Add a warning for missing "Id" property.
public static MissingId ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global newId ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
newId global Auto-generated new Id.
return void

MissingMoniker() public static method

Add an error for missing moniker.
public static MissingMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string monikerAttributeName ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
reader global The reader pointing to where the message is raised.
monikerAttributeName string Name of the attribute that should hold the moniker.
return void

MonikerResolvedToDuplicateLink() public static method

Add an warning for moniker resolved to duplicate link. The moniker will be ignored.
public static MonikerResolvedToDuplicateLink ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void
serializationResult global::Microsoft.VisualStudio.Modeling SerializationResult to add the error message to.
moniker global::Microsoft.VisualStudio.Modeling Offending moniker.
return void

NoSchema() public static method

Add a warning for no schema found for the given target namespace, schema validation will be skipped in this case.
public static NoSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
targetNamespace string Target namespace that cannot be resolved.
return void

SchemaValidationError() public static method

Add a warning for schema validation error.
public static SchemaValidationError ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string message ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
message string Validation message reported from schema validation.
return void

UnexpectedXmlElement() public static method

Add an warning for unexpected XML element.
public static UnexpectedXmlElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
return void

UnresolvedMoniker() public static method

Add an error for unresolved moniker.
public static UnresolvedMoniker ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void
serializationResult global::Microsoft.VisualStudio.Modeling SerializationResult to add the error message to.
moniker global::Microsoft.VisualStudio.Modeling Unresolved moniker.
return void

VersionMismatch() public static method

Add an error for Version mismatch.
public static VersionMismatch ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global expectedVersion, global actualVersion ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
reader global The reader pointing to where the message is raised.
expectedVersion global The version that's expected.
actualVersion global Actual version from the file.
return void