directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r491023 [2/2] - in /directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main: java/org/apache/directory/ldapstudio/dsmlv2/ java/org/apache/directory/ldapstudio/dsmlv2/engine/ java/org/apache/directory/ldapstudio/dsmlv2/reponse/ resources...
Date Fri, 29 Dec 2006 14:59:48 GMT
Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ExtendedResponseDsml.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ExtendedResponseDsml.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ExtendedResponseDsml.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ExtendedResponseDsml.java
Fri Dec 29 06:59:46 2006
@@ -30,34 +30,35 @@
 
 /**
  * DSML Decorator for ExtendedResponse
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class ExtendedResponseDsml extends LdapResponseDecorator implements DsmlDecorator
 {
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of ExtendedResponseDsml.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public ExtendedResponseDsml( LdapMessage ldapMessage )
     {
         super( ldapMessage );
     }
 
-
-    /**
-     * Get the message type
-     * 
-     * @return Returns the type.
+    
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.LdapMessageDecorator#getMessageType()
      */
     public int getMessageType()
     {
         return instance.getExtendedResponse().getMessageType();
     }
 
-
-    /**
-     * Convert the request to its XML representation in the DSMLv2 format.
-     * @param root the root dom4j Element
-     * @return the dom4j Element corresponding to the entry.
+    
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.DsmlDecorator#toDsml(org.dom4j.Element)
      */
     public Element toDsml( Element root )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapMessageDecorator.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapMessageDecorator.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapMessageDecorator.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapMessageDecorator.java
Fri Dec 29 06:59:46 2006
@@ -55,6 +55,9 @@
 /**
  * Decorator class for LDAP Message. This is the top level class, the one 
  * that holds the instance.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public abstract class LdapMessageDecorator extends LdapMessage
 {
@@ -63,8 +66,10 @@
 
 
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of LdapMessageDecorator.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public LdapMessageDecorator( LdapMessage ldapMessage )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResponseDecorator.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResponseDecorator.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResponseDecorator.java
Fri Dec 29 06:59:46 2006
@@ -28,12 +28,17 @@
 
 /**
  * Decorator abstract class for LdapResponse
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public abstract class LdapResponseDecorator extends LdapMessageDecorator
 {
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of LdapResponseDecorator.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public LdapResponseDecorator( LdapMessage ldapMessage )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultDsml.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultDsml.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultDsml.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultDsml.java
Fri Dec 29 06:59:46 2006
@@ -30,17 +30,26 @@
 
 /**
  * DSML Decorator for the LdapResult class.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class LdapResultDsml implements DsmlDecorator
 {
-    private LdapMessage message;
+    /** The LDAP Result to decorate */
     private LdapResult result;
 
+    /** The associated LDAP Message */
+    private LdapMessage message;
+
 
-    /** 
-     * Default Constructor
-     * @param result the LdapResult to decorate
-     * @param message the message associated
+    /**
+     * Creates a new instance of LdapResultDsml.
+     *
+     * @param result
+     *      the LdapResult to decorate
+     * @param message
+     *      the associated message
      */
     public LdapResultDsml( LdapResult result, LdapMessage message )
     {
@@ -49,10 +58,8 @@
     }
 
 
-    /**
-     * Convert the request to its XML representation in the DSMLv2 format.
-     * @param root the root dom4j Element
-     * @return the dom4j Element corresponding to the entry.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.DsmlDecorator#toDsml(org.dom4j.Element)
      */
     public Element toDsml( Element root )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultEnum.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultEnum.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultEnum.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultEnum.java
Fri Dec 29 06:59:46 2006
@@ -23,9 +23,13 @@
 
 /**
  * This Class helps to get resultCodeDesc for a ResultCode of a LdapResult.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class LdapResultEnum
 {
+    /** All the possible result value as string */
     private static String[] resultStrings;
 
     static
@@ -140,9 +144,12 @@
 
 
     /**
-     * Return the String description of a given result code 
-     * @param resultCode a result code
-     * @return the String description corresponding to the result code
+     * Gets the String description of a given result code 
+     * 
+     * @param resultCode 
+     *      a result code
+     * @return 
+     *      the String description corresponding to the result code
      */
     public static String getResultCodeDescr( int resultCode )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModDNResponseDsml.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModDNResponseDsml.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModDNResponseDsml.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModDNResponseDsml.java
Fri Dec 29 06:59:46 2006
@@ -27,12 +27,17 @@
 
 /**
  * DSML Decorator for ModDNResponse
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class ModDNResponseDsml extends LdapResponseDecorator implements DsmlDecorator
 {
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of ModDNResponseDsml.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public ModDNResponseDsml( LdapMessage ldapMessage )
     {
@@ -40,9 +45,8 @@
     }
 
 
-    /**
-     * Get the message type
-     * @return Returns the type.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.LdapMessageDecorator#getMessageType()
      */
     public int getMessageType()
     {
@@ -50,10 +54,8 @@
     }
 
 
-    /**
-     * Convert the request to its XML representation in the DSMLv2 format.
-     * @param root the root dom4j Element
-     * @return the dom4j Element corresponding to the entry.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.DsmlDecorator#toDsml(org.dom4j.Element)
      */
     public Element toDsml( Element root )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModifyResponseDsml.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModifyResponseDsml.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModifyResponseDsml.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ModifyResponseDsml.java
Fri Dec 29 06:59:46 2006
@@ -27,12 +27,17 @@
 
 /**
  * DSML Decorator for ModifyResponse
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class ModifyResponseDsml extends LdapResponseDecorator implements DsmlDecorator
 {
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of ModifyResponseDsml.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public ModifyResponseDsml( LdapMessage ldapMessage )
     {
@@ -40,9 +45,8 @@
     }
 
 
-    /**
-     * Get the message type
-     * @return Returns the type.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.LdapMessageDecorator#getMessageType()
      */
     public int getMessageType()
     {
@@ -50,10 +54,8 @@
     }
 
 
-    /**
-     * Convert the request to its XML representation in the DSMLv2 format.
-     * @param root the root dom4j Element
-     * @return the dom4j Element corresponding to the entry.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.DsmlDecorator#toDsml(org.dom4j.Element)
      */
     public Element toDsml( Element root )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResponse.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResponse.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResponse.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResponse.java
Fri Dec 29 06:59:46 2006
@@ -30,13 +30,27 @@
 import org.apache.directory.shared.ldap.codec.search.SearchResultReference;
 
 
+/**
+ * This class represents the DSML Search Response
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class SearchResponse extends LdapResponse
 {
+    /** The List of contained Search Result Entries */
     private List<SearchResultEntry> searchResultEntryList;
+
+    /** The List of contained Search Result References */
     private List<SearchResultReference> searchResultReferenceList;
+
+    /** The Search Result Done object */
     private SearchResultDone searchResultDone;
 
 
+    /**
+     * Creates a new instance of SearchResponse.
+     */
     public SearchResponse()
     {
         searchResultEntryList = new ArrayList<SearchResultEntry>();
@@ -44,12 +58,26 @@
     }
 
 
+    /**
+     * Adds a Search Result Entry
+     *
+     * @param searchResultEntry
+     *      the Search Result Entry to add
+     * @return
+     *      true (as per the general contract of the Collection.add method)
+     */
     public boolean addSearchResultEntry( SearchResultEntry searchResultEntry )
     {
         return searchResultEntryList.add( searchResultEntry );
     }
 
 
+    /**
+     * Gets the Current Search Result Entry
+     * 
+     * @return
+     *      the current Searche Result Entry
+     */
     public SearchResultEntry getCurrentSearchResultEntry()
     {
         if ( searchResultEntryList.size() > 0 )
@@ -63,39 +91,83 @@
     }
 
 
-    public boolean addSearchResultReference( SearchResultReference searchResultReference
)
+    /**
+     * Gets the Search Result Entry List
+     *
+     * @return
+     *      the Search Result Entry List
+     */
+    public List<SearchResultEntry> getSearchResultEntryList()
     {
-        return searchResultReferenceList.add( searchResultReference );
+        return searchResultEntryList;
     }
 
 
-    public SearchResultReference getCurrentSearchResultReference()
+    /**
+     * Adds a Search Result Reference
+     *
+     * @param searchResultReference
+     *      the Search Result Reference to add
+     * @return
+     *      true (as per the general contract of the Collection.add method)
+     */
+    public boolean addSearchResultReference( SearchResultReference searchResultReference
)
     {
-        return searchResultReferenceList.get( searchResultReferenceList.size() - 1 );
+        return searchResultReferenceList.add( searchResultReference );
     }
 
 
-    public SearchResultDone getSearchResultDone()
+    /**
+     * Gets the current Search Result Reference
+     *
+     * @return
+     *      the current Search Result Reference
+     */
+    public SearchResultReference getCurrentSearchResultReference()
     {
-        return searchResultDone;
+        if ( searchResultReferenceList.size() > 0 )
+        {
+            return searchResultReferenceList.get( searchResultReferenceList.size() - 1 );
+        }
+        else
+        {
+            return null;
+        }
     }
 
 
-    public void setSearchResultDone( SearchResultDone searchResultDone )
+    /**
+     * Gets the Search Result Reference List
+     *
+     * @return
+     *      the Search Result Reference List
+     */
+    public List<SearchResultReference> getSearchResultReferenceList()
     {
-        this.searchResultDone = searchResultDone;
+        return searchResultReferenceList;
     }
 
 
-    public List<SearchResultEntry> getSearchResultEntryList()
+    /**
+     * Gets the Search Result Entry
+     * 
+     * @return
+     *      the Search Result Entry
+     */
+    public SearchResultDone getSearchResultDone()
     {
-        return searchResultEntryList;
+        return searchResultDone;
     }
 
 
-    public List<SearchResultReference> getSearchResultReferenceList()
+    /**
+     * Sets the Search Result Entry
+     *
+     * @param searchResultDone
+     *      the Search Result Entry to set
+     */
+    public void setSearchResultDone( SearchResultDone searchResultDone )
     {
-        return searchResultReferenceList;
+        this.searchResultDone = searchResultDone;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultDoneDsml.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultDoneDsml.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultDoneDsml.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultDoneDsml.java
Fri Dec 29 06:59:46 2006
@@ -27,12 +27,17 @@
 
 /**
  * DSML Decorator for SearchResultDone
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class SearchResultDoneDsml extends LdapResponseDecorator implements DsmlDecorator
 {
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of SearchResultDoneDsml.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public SearchResultDoneDsml( LdapMessage ldapMessage )
     {
@@ -40,9 +45,8 @@
     }
 
 
-    /**
-     * Get the message type
-     * @return Returns the type.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.LdapMessageDecorator#getMessageType()
      */
     public int getMessageType()
     {
@@ -50,10 +54,8 @@
     }
 
 
-    /**
-     * Convert the request to its XML representation in the DSMLv2 format.
-     * @param root the root dom4j Element
-     * @return the dom4j Element corresponding to the entry.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.DsmlDecorator#toDsml(org.dom4j.Element)
      */
     public Element toDsml( Element root )
     {
@@ -63,5 +65,4 @@
         ldapResultDsml.toDsml( element );
         return element;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultEntryDsml.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultEntryDsml.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultEntryDsml.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultEntryDsml.java
Fri Dec 29 06:59:46 2006
@@ -36,12 +36,17 @@
 
 /**
  * DSML Decorator for SearchResultEntry
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class SearchResultEntryDsml extends LdapResponseDecorator implements DsmlDecorator
 {
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of SearchResultEntryDsml.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public SearchResultEntryDsml( LdapMessage ldapMessage )
     {
@@ -49,9 +54,8 @@
     }
 
 
-    /**
-     * Get the message type
-     * @return Returns the type.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.LdapMessageDecorator#getMessageType()
      */
     public int getMessageType()
     {
@@ -59,10 +63,8 @@
     }
 
 
-    /**
-     * Convert the request to its XML representation in the DSMLv2 format.
-     * @param root the root dom4j Element
-     * @return the dom4j Element corresponding to the entry.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.DsmlDecorator#toDsml(org.dom4j.Element)
      */
     public Element toDsml( Element root )
     {
@@ -89,16 +91,18 @@
                 while ( ne2.hasMoreElements() )
                 {
                     Object value = ne2.nextElement();
-                    
+
                     if ( ParserUtils.needsBase64Encoding( value ) )
                     {
                         Namespace xsdNamespace = new Namespace( "xsd", ParserUtils.XML_SCHEMA_URI
);
                         Namespace xsiNamespace = new Namespace( "xsi", ParserUtils.XML_SCHEMA_INSTANCE_URI
);
                         attributeElement.getDocument().getRootElement().add( xsdNamespace
);
                         attributeElement.getDocument().getRootElement().add( xsiNamespace
);
-                        
-                        Element valueElement = attributeElement.addElement( "value" ).addText(
ParserUtils.base64Encode( value ) );
-                        valueElement.addAttribute( new QName("type", xsiNamespace), "xsd:"
+ ParserUtils.BASE64BINARY );
+
+                        Element valueElement = attributeElement.addElement( "value" ).addText(
+                            ParserUtils.base64Encode( value ) );
+                        valueElement
+                            .addAttribute( new QName( "type", xsiNamespace ), "xsd:" + ParserUtils.BASE64BINARY
);
                     }
                     else
                     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultReferenceDsml.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultReferenceDsml.java?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultReferenceDsml.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultReferenceDsml.java
Fri Dec 29 06:59:46 2006
@@ -30,12 +30,17 @@
 
 /**
  * DSML Decorator for SearchResultReference
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class SearchResultReferenceDsml extends LdapResponseDecorator implements DsmlDecorator
 {
     /**
-     * Default constructor
-     * @param ldapMessage the message to decorate
+     * Creates a new instance of SearchResultReferenceDsml.
+     *
+     * @param ldapMessage
+     *      the message to decorate
      */
     public SearchResultReferenceDsml( LdapMessage ldapMessage )
     {
@@ -43,9 +48,8 @@
     }
 
 
-    /**
-     * Get the message type
-     * @return Returns the type.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.LdapMessageDecorator#getMessageType()
      */
     public int getMessageType()
     {
@@ -53,10 +57,8 @@
     }
 
 
-    /**
-     * Convert the request to its XML representation in the DSMLv2 format.
-     * @param root the root dom4j Element
-     * @return the dom4j Element corresponding to the entry.
+    /* (non-Javadoc)
+     * @see org.apache.directory.ldapstudio.dsmlv2.reponse.DsmlDecorator#toDsml(org.dom4j.Element)
      */
     public Element toDsml( Element root )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/resources/org/apache/directory/ldapstudio/dsmlv2/engine/DSMLv2.xslt
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/resources/org/apache/directory/ldapstudio/dsmlv2/engine/DSMLv2.xslt?view=diff&rev=491023&r1=491022&r2=491023
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/resources/org/apache/directory/ldapstudio/dsmlv2/engine/DSMLv2.xslt
(original)
+++ directory/trunks/ldapstudio/ldapstudio-dsml-parser/src/main/resources/org/apache/directory/ldapstudio/dsmlv2/engine/DSMLv2.xslt
Fri Dec 29 06:59:46 2006
@@ -1,3 +1,21 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
 <xsl:stylesheet version="1.0" 
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
@@ -27,4 +45,4 @@
    <!-- WARNING: this is dangerous. Handle with care -->
    <!-- <xsl:template match="text()[normalize-space(.)='']"/> -->
 
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>



Mime
View raw message