C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
IsEmpty ( text text ) : SimpleFramework.Xml.Strategy

Описание методов

GetName() публичный Метод

public GetName ( Class type ) : String
type Class /// this is the type to acquire the root name for ///
Результат String

GetRoot() публичный Метод

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 ///
Результат String

GetRoot() публичный Метод

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 ///
Результат String

Signature() публичный Метод

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 ///
Результат SimpleFramework.Xml.Strategy