stefan 2004/07/16 09:36:33
Modified: proposals/jcrri/src/org/apache/slide/jcr/core/state
ItemState.java ItemStateCache.java
ItemStateException.java ItemStateListener.java
ItemStateProvider.java NodeState.java
NoSuchItemStateException.java
PersistableItemState.java PersistenceManager.java
PersistentItemStateManager.java
Log:
jcrri
Revision Changes Path
1.4 +0 -0
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemState.java
Index: ItemState.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemState.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
1.5 +5 -4
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateCache.java
Index: ItemStateCache.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateCache.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ItemStateCache.java 22 Jun 2004 18:02:18 -0000 1.4
+++ ItemStateCache.java 16 Jul 2004 16:36:33 -0000 1.5
@@ -27,10 +27,10 @@
import org.apache.log4j.Logger;
import org.apache.slide.jcr.core.ItemId;
+import java.util.ArrayList;
+import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
-import java.util.Collection;
-import java.util.ArrayList;
/**
* An <code>ItemStateCache</code> maintains a cache of <code>ItemState</code>
@@ -129,6 +129,7 @@
/**
* Returns <code>true</code> if the cache contains no entries.
+ *
* @return <code>true</code> if the cache contains no entries.
*/
protected boolean isEmpty() {
1.4 +0 -0
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateException.java
Index: ItemStateException.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
1.4 +0 -0
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateListener.java
Index: ItemStateListener.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateListener.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
1.2 +2 -4
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateProvider.java
Index: ItemStateProvider.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/ItemStateProvider.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ItemStateProvider.java 7 Jul 2004 16:04:15 -0000 1.1
+++ ItemStateProvider.java 16 Jul 2004 16:36:33 -0000 1.2
@@ -43,7 +43,6 @@
throws NoSuchItemStateException, ItemStateException;
/**
- *
* @param id
* @return
*/
@@ -59,7 +58,6 @@
throws NoSuchItemStateException, ItemStateException;
/**
- *
* @param id
* @return
*/
1.7 +26 -3
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/NodeState.java
Index: NodeState.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/NodeState.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- NodeState.java 9 Jul 2004 16:48:55 -0000 1.6
+++ NodeState.java 16 Jul 2004 16:36:33 -0000 1.7
@@ -129,6 +129,7 @@
/**
* Sets the names of this node's mixin types.
+ *
* @param names set of names of mixin types
*/
public synchronized void setMixinTypeNames(Set names) {
@@ -138,6 +139,7 @@
/**
* Returns the id of the definition applicable to this node state.
+ *
* @return the id of the definition
*/
public NodeDefId getDefinitionId() {
@@ -146,6 +148,7 @@
/**
* Sets the id of the definition applicable to this node state.
+ *
* @param defId the id of the definition
*/
public void setDefinitionId(NodeDefId defId) {
@@ -247,7 +250,7 @@
* Determines if there is a <code>ChildNodeEntry</code> with the
* specified <code>name</code> and <code>index</code>.
*
- * @param name <code>QName</code> object specifying a node name
+ * @param name <code>QName</code> object specifying a node name
* @param index 1-based index if there are same-name child node entries
* @return <code>true</code> if there is a <code>ChildNodeEntry</code> with
* the specified <code>name</code> and <code>index</code>.
@@ -354,6 +357,26 @@
while (iter.hasNext()) {
ChildNodeEntry entry = (ChildNodeEntry) iter.next();
if (entry.getUUID().equals(uuid)) {
+ list.add(entry);
+ }
+ }
+ return Collections.unmodifiableList(list);
+ }
+
+ /**
+ * Returns a list of <code>ChildNodeEntry</code>s with the specified name.
+ *
+ * @param nodeName name of the child node entries that should be returned
+ * @return list of <code>ChildNodeEntry</code> objects
+ * @see #addChildNodeEntry
+ * @see #removeChildNodeEntry
+ */
+ public synchronized List getChildNodeEntries(QName nodeName) {
+ ArrayList list = new ArrayList();
+ Iterator iter = childNodeEntries.iterator();
+ while (iter.hasNext()) {
+ ChildNodeEntry entry = (ChildNodeEntry) iter.next();
+ if (entry.getName().equals(nodeName)) {
list.add(entry);
}
}
1.5 +2 -3
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/NoSuchItemStateException.java
Index: NoSuchItemStateException.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/NoSuchItemStateException.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- NoSuchItemStateException.java 7 Jul 2004 16:05:07 -0000 1.4
+++ NoSuchItemStateException.java 16 Jul 2004 16:36:33 -0000 1.5
@@ -24,7 +24,6 @@
package org.apache.slide.jcr.core.state;
-
/**
* The <code>NoSuchItemStateException</code> ...
*
1.4 +0 -0
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/PersistableItemState.java
Index: PersistableItemState.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/PersistableItemState.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
1.4 +2 -3
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/PersistenceManager.java
Index: PersistenceManager.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/PersistenceManager.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PersistenceManager.java 22 Jun 2004 18:02:33 -0000 1.3
+++ PersistenceManager.java 16 Jul 2004 16:36:33 -0000 1.4
@@ -35,7 +35,6 @@
public interface PersistenceManager {
/**
- *
* @param wspDef
* @throws Exception
*/
1.6 +0 -0
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/PersistentItemStateManager.java
Index: PersistentItemStateManager.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/PersistentItemStateManager.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]