diff src/treecms/api/NodeChildren.java @ 14:8bf59f161b23

separete Node methods to NodeContext , NodeAttribute , NodeChildren
author misaka
date Tue, 17 May 2011 18:44:14 +0900
parents
children 084de6909451
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/treecms/api/NodeChildren.java	Tue May 17 18:44:14 2011 +0900
@@ -0,0 +1,20 @@
+package treecms.api;
+
+import java.util.List;
+import java.util.Set;
+
+public interface NodeChildren<T extends Node<T>>
+{
+	public List<T> getList();
+	public Set<String> getUUIDSet();
+	public boolean add(T _child);
+	public boolean addAll(NodeChildren<T> _children);
+	public T get(String _uuid);
+	public T get(int _index);
+	public T remove(String _uuid);
+	public T remove(int _index);
+	public T replace(T _newChild);
+	public boolean contains(String _id);
+	public boolean swap(String _uuid1,String _uuid2);
+	public void clearChildren();
+}