The NamespaceDecorator object is used to decorate any output node with namespaces. All namespaces added to this are applied to nodes that require decoration. This can add namespaces to the node as well as setting the primary namespace reference for the node. This results in qualification for the node.
Inheritance: Decorator
Ejemplo n.º 1
0
 /// <summary>
 /// Constructor for the <c>Qualifier</c> object. This is
 /// used to create a decorator that will scan the provided
 /// contact for <c>Namespace</c> annotations. These can
 /// then be applied to the output node to provide qualification.
 /// </summary>
 /// <param name="contact">
 /// this is the contact to be scanned
 /// </param>
 public Qualifier(Contact contact)
 {
     this.decorator = new NamespaceDecorator();
     this.Scan(contact);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor for the <c>Qualifier</c> object. This is
 /// used to create a decorator that will scan the provided
 /// contact for <c>Namespace</c> annotations. These can
 /// then be applied to the output node to provide qualification.
 /// </summary>
 /// <param name="contact">
 /// this is the contact to be scanned
 /// </param>
 public Qualifier(Contact contact) {
    this.decorator = new NamespaceDecorator();
    this.Scan(contact);
 }