directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r358031 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/schema/OidNormalizer.java
Date Tue, 20 Dec 2005 16:27:10 GMT
Author: elecharny
Date: Tue Dec 20 08:27:06 2005
New Revision: 358031

URL: http://svn.apache.org/viewcvs?rev=358031&view=rev
Log:
Added a new helper class, which contains 
the couple OID/normalizer, used by the DNNormalizer

Added:
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/schema/OidNormalizer.java

Added: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/schema/OidNormalizer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/schema/OidNormalizer.java?rev=358031&view=auto
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/schema/OidNormalizer.java
(added)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/schema/OidNormalizer.java
Tue Dec 20 08:27:06 2005
@@ -0,0 +1,84 @@
+/*
+ *   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.schema;
+
+/**
+ * The OidNomalizer class contains a couple : and OID with its Normalizer
+ *  
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class OidNormalizer {
+	/** The oid */
+	private String oid;
+	
+	/** The normalizer to be used with this OID */
+	private Normalizer normalizer;
+	
+	/**
+	 * A constructor which accept two parameters
+	 * @param oid The oid
+	 * @param normalizer The associated normalizer
+	 */
+	public OidNormalizer( String oid, Normalizer normalizer )
+	{
+		this.oid = oid;
+		this.normalizer = normalizer;
+	}
+	
+	/**
+	 * A copy constructor. 
+	 * @param oidNormalizer The OidNormalizer to copy from
+	 */
+	public OidNormalizer( OidNormalizer oidNormalizer )
+	{
+		oid = oidNormalizer.oid;
+		normalizer = oidNormalizer.normalizer;
+	}
+
+	/**
+	 * Get the normalizer
+	 * @return The normalizer associated to the current OID
+	 */
+	public Normalizer getNormalizer() {
+		return normalizer;
+	}
+
+	/**
+	 * Set the normalizer
+	 * @param The normalizer to be associated to the current OID
+	 */
+	public void setNormalizer(Normalizer normalizer) {
+		this.normalizer = normalizer;
+	}
+
+	/**
+	 * Get the current OID
+	 * @return The current OID
+	 */
+	public String getOid() {
+		return oid;
+	}
+
+	/**
+	 * Set the current OID
+	 * @param The current OID
+	 */
+	public void setOid(String oid) {
+		this.oid = oid;
+	}
+}



Mime
View raw message