org.treebind
Class Ldap2XmlSaxFilter

java.lang.Object
  extended byorg.treebind.DefaultPipeElementImplementation
      extended byorg.treebind.DefaultFilterImplementation
          extended byorg.treebind.Ldap2XmlSaxFilter
All Implemented Interfaces:
Filter, PipeElement, Sink, Source

public class Ldap2XmlSaxFilter
extends DefaultFilterImplementation
implements Filter

Filter designed to stand between a LdapSource and a XmlSaxSink in a Ldap2XmlSaxPipe. This filter takes care of the impedence mismatches between the LDAP and XML object models.

Author:
vdv
See Also:
Filter, LdapSource, XmlSaxSink, Ldap2XmlSaxPipe

Constructor Summary
Ldap2XmlSaxFilter(Pipe pipe)
          Creates a new Ldap2XmlSaxFilter in its pipe.
 
Method Summary
 Name convertNature(Name role, Name nature)
          Converts a nature.
 
Methods inherited from class org.treebind.DefaultFilterImplementation
addLeaf, convertRole, endProperty, getSink, setSink, startProperty
 
Methods inherited from class org.treebind.DefaultPipeElementImplementation
getPipe, setPipe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.treebind.Source
getSink, setSink
 
Methods inherited from interface org.treebind.PipeElement
getPipe, setPipe
 
Methods inherited from interface org.treebind.Sink
addLeaf, endProperty, startProperty
 

Constructor Detail

Ldap2XmlSaxFilter

public Ldap2XmlSaxFilter(Pipe pipe)
Creates a new Ldap2XmlSaxFilter in its pipe.

Parameters:
pipe -
Method Detail

convertNature

public Name convertNature(Name role,
                          Name nature)
Description copied from class: DefaultFilterImplementation
Converts a nature. This method is used internaly to convert natures. Its implementation in this class returns the same nature. A filter that would only do name convertion could just overide this method together with the DefaultFilterImplementation.convertRole(Name, Name) method.

Overrides:
convertNature in class DefaultFilterImplementation
Parameters:
role - the role of the property being added
nature - the nature of the property being added
Returns:
the converted nature of the property being added
See Also:
DefaultFilterImplementation.convertRole(Name, Name)