directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r359031 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
Date Mon, 26 Dec 2005 01:13:04 GMT
Author: elecharny
Date: Sun Dec 25 17:12:59 2005
New Revision: 359031

URL: http://svn.apache.org/viewcvs?rev=359031&view=rev
Log:
- Added Javadoco
- Renamed the SetOidByName() method to SetOids()
- Added a getOids() method

Modified:
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java

Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java?rev=359031&r1=359030&r2=359031&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
Sun Dec 25 17:12:59 2005
@@ -1,24 +1,71 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed 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.
+ *
+ */
+
 package org.apache.ldap.common.name;
 
 import java.util.HashMap;
 import java.util.Map;
 
+/**
+ * The DnOidContainer is a class which ill contain a global Map associating
+ * names to thier OIDs and Normalizer. 
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ *
+ */
 public class DnOidContainer 
 {
+	/** The internaml map containing the name, Oid, Normalizer */ 
 	private static Map oidByName = new HashMap();
 	
+	/**
+	 * Private constructor. This class cannot be constructed
+	 *
+	 */
 	private DnOidContainer()
 	{
 		// Empty private constructor
 	}
 
+	/**
+	 * Get the OID/Normalizer associated with the given name
+	 * @param name The type which OID is asked for
+	 * @return The couple OID/Normalizer correspondning to the given name
+	 */
 	public static Object getOidByName( String name ) 
 	{
 		return oidByName.get( name );
 	}
+	
+	/** 
+	 * Get the Map
+	 * @return The Oid Map
+	 */
+	public static Map getOids()
+	{
+		return oidByName;
+	}
 
-	public static void setOidByName(Map oidByName) 
+	/**
+	 * Set the Map
+	 * @param oids The Map to store
+	 */
+	public static void setOids(Map oids) 
 	{
-		DnOidContainer.oidByName = oidByName;
+		DnOidContainer.oidByName = oids;
 	}
 }



Mime
View raw message