C# Class SimpleFramework.Xml.Core.ClassSchema

The Schema object is used to track which fields within an object have been visited by a converter. This object is necessary for processing Composite objects. In particular it is necessary to keep track of which required nodes have been visited and which have not, if a required not has not been visited then the XML source does not match the XML class schema and serialization must fail before processing any further.
Inheritance: Schema
Afficher le fichier Open project: ngallagher/simplexml

Méthodes publiques

Méthode Description
ClassSchema ( Scanner schema, Context context ) : SimpleFramework.Xml

Constructor for the Schema object. This is used to wrap the element and attribute XML annotations scanned from a class schema. The schema tracks all fields visited so that a converter can determine if all fields have been serialized.

IsPrimitive ( ) : bool

This is used to determine whether the scanned class represents a primitive type. A primitive type is a type that contains no XML annotations and so cannot be serialized with an XML form. Instead primitives a serialized using transformations.

ToString ( ) : String

Method Details

ClassSchema() public méthode

Constructor for the Schema object. This is used to wrap the element and attribute XML annotations scanned from a class schema. The schema tracks all fields visited so that a converter can determine if all fields have been serialized.
public ClassSchema ( Scanner schema, Context context ) : SimpleFramework.Xml
schema Scanner /// this contains all labels scanned from the class ///
context Context /// this is the context object for serialization ///
Résultat SimpleFramework.Xml

IsPrimitive() public méthode

This is used to determine whether the scanned class represents a primitive type. A primitive type is a type that contains no XML annotations and so cannot be serialized with an XML form. Instead primitives a serialized using transformations.
public IsPrimitive ( ) : bool
Résultat bool

ToString() public méthode

public ToString ( ) : String
Résultat String