Author: kayyagari
Date: Thu Nov 13 04:32:53 2008
New Revision: 713713
URL: http://svn.apache.org/viewvc?rev=713713&view=rev
Log:
o new interface for identifying extensible entry
o added a new method to entry interface
o added javadoc
Added:
directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/ExtensibleEntry.java
Modified:
directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/Entry.java
directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/NameClassPair.java
Modified: directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/Entry.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/Entry.java?rev=713713&r1=713712&r2=713713&view=diff
==============================================================================
--- directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/Entry.java
(original)
+++ directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/Entry.java
Thu Nov 13 04:32:53 2008
@@ -128,4 +128,14 @@
* An empty iterator will be returned if there are no additional entries.
*/
Iterator<Entry> getAdditionalEntries();
+
+
+ /**
+ *
+ * gets an Attribute present in the Entry (including the additional entries if present).
+ *
+ * @param name the name of the attribute
+ * @return attribute with the given name, null if no such attribute exists
+ */
+ Attribute getAttribute( String name );
}
Added: directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/ExtensibleEntry.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/ExtensibleEntry.java?rev=713713&view=auto
==============================================================================
--- directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/ExtensibleEntry.java
(added)
+++ directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/ExtensibleEntry.java
Thu Nov 13 04:32:53 2008
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ *
+ */
+package org.apache.directory.olm;
+
+/**
+ *
+ * Interface representing an ExtensibleEntry.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public interface ExtensibleEntry extends Entry
+{
+ /**
+ *
+ * adds a Attribute.
+ *
+ * @param attribute the attribute to be added
+ */
+ void addAttribute( Attribute attribute );
+
+
+ /**
+ *
+ * removes a Attribute.
+ *
+ * @param name name of the attribute to be removed
+ */
+ void removeAttribute( String name );
+}
\ No newline at end of file
Modified: directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/NameClassPair.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/NameClassPair.java?rev=713713&r1=713712&r2=713713&view=diff
==============================================================================
--- directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/NameClassPair.java
(original)
+++ directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/NameClassPair.java
Thu Nov 13 04:32:53 2008
@@ -21,7 +21,7 @@
/**
*
- * TODO NameClassPair.
+ * A simple pojo internally used while gerating the source code.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
* @version $Rev$, $Date$
|