C# Класс SimpleFramework.Xml.Core.Qualifier

The Qualifier object is used to provide decorations to an output node for namespaces. This will scan a provided contact object for namespace annotations. If any are found they can then be used to apply these namespaces to the provided node. The Contact objects can represent fields or methods that have been annotated with XML annotations.
Наследование: Decorator
Показать файл Открыть проект

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

Метод Описание
Decorate ( OutputNode node ) : void

This method is used to decorate the provided node. This node can be either an XML element or an attribute. Decorations that can be applied to the node by invoking this method include things like namespaces and namespace lists.

Decorate ( OutputNode node, Decorator secondary ) : void

This method is used to decorate the provided node. This node can be either an XML element or an attribute. Decorations that can be applied to the node by invoking this method include things like namespaces and namespace lists. This can also be given another Decorator which is applied before this decorator, any common data can then be overwritten.

Namespace ( Contact contact ) : void

This is use to scan for Namespace annotations on the contact. Once a namespace has been located then it is used to populate the internal namespace decorator. This can then be used to decorate any output node that requires it.

Qualifier ( Contact contact ) : SimpleFramework.Xml.Stream

Constructor for the Qualifier object. This is used to create a decorator that will scan the provided contact for Namespace annotations. These can then be applied to the output node to provide qualification.

Scan ( Contact contact ) : void

This method is used to scan the Contact provided to determine if there are any namespace annotations. If there are any annotations then these are added to the internal namespace decorator. This ensues that they can be applied to the node when that node requests decoration.

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

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

This method is used to decorate the provided node. This node can be either an XML element or an attribute. Decorations that can be applied to the node by invoking this method include things like namespaces and namespace lists.
public Decorate ( OutputNode node ) : void
node OutputNode /// this is the node that is to be decorated by this ///
Результат void

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

This method is used to decorate the provided node. This node can be either an XML element or an attribute. Decorations that can be applied to the node by invoking this method include things like namespaces and namespace lists. This can also be given another Decorator which is applied before this decorator, any common data can then be overwritten.
public Decorate ( OutputNode node, Decorator secondary ) : void
node OutputNode /// this is the node that is to be decorated by this ///
secondary Decorator /// this is a secondary decorator to be applied ///
Результат void

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

This is use to scan for Namespace annotations on the contact. Once a namespace has been located then it is used to populate the internal namespace decorator. This can then be used to decorate any output node that requires it.
public Namespace ( Contact contact ) : void
contact Contact /// this is the contact to scan for namespaces ///
Результат void

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

Constructor for the Qualifier object. This is used to create a decorator that will scan the provided contact for Namespace annotations. These can then be applied to the output node to provide qualification.
public Qualifier ( Contact contact ) : SimpleFramework.Xml.Stream
contact Contact /// this is the contact to be scanned ///
Результат SimpleFramework.Xml.Stream

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

This method is used to scan the Contact provided to determine if there are any namespace annotations. If there are any annotations then these are added to the internal namespace decorator. This ensues that they can be applied to the node when that node requests decoration.
public Scan ( Contact contact ) : void
contact Contact /// this is the contact to be scanned for namespaces ///
Результат void