C# Class SimpleFramework.Xml.Core.Signature

The Signature object is used to determine the details to use for an annotated field or method using both the field an annotation details. This allows defaults to be picked up from the method or field type if that have not been explicitly overridden in the annotation.
Afficher le fichier Open project: ngallagher/simplexml

Méthodes publiques

Méthode Description
GetName ( Class type ) : String
GetRoot ( Class type ) : String

This will acquire the name of the Root annotation for the specified class. This will traverse the inheritance hierarchy looking for the root annotation, when it is found it is used to acquire a name for the XML element it represents.

GetRoot ( Class real, Class type ) : String

This will acquire the name of the Root annotation for the specified class. This will traverse the inheritance hierarchy looking for the root annotation, when it is found it is used to acquire a name for the XML element it represents.

Signature ( Contact contact, Label label ) : SimpleFramework.Xml.Strategy

Constructor for the Signature object. This is used to create an object that will use information available within the field and annotation to determine exactly what the name of the XML element is to be and the type to use.

Private Methods

Méthode Description
IsEmpty ( text text ) : SimpleFramework.Xml.Strategy

Method Details

GetName() public méthode

public GetName ( Class type ) : String
type Class /// this is the type to acquire the root name for ///
Résultat String

GetRoot() public méthode

This will acquire the name of the Root annotation for the specified class. This will traverse the inheritance hierarchy looking for the root annotation, when it is found it is used to acquire a name for the XML element it represents.
public GetRoot ( Class type ) : String
type Class /// this is the type to acquire the root name with ///
Résultat String

GetRoot() public méthode

This will acquire the name of the Root annotation for the specified class. This will traverse the inheritance hierarchy looking for the root annotation, when it is found it is used to acquire a name for the XML element it represents.
public GetRoot ( Class real, Class type ) : String
real Class /// the actual type of the object being searched ///
type Class /// this is the type to acquire the root name with ///
Résultat String

Signature() public méthode

Constructor for the Signature object. This is used to create an object that will use information available within the field and annotation to determine exactly what the name of the XML element is to be and the type to use.
public Signature ( Contact contact, Label label ) : SimpleFramework.Xml.Strategy
contact Contact /// this is the method or field contact used ///
label Label /// this is the annotation on the contact object ///
Résultat SimpleFramework.Xml.Strategy