view src/treecms/proto/api/Node.java @ 36:9663c816e370

commit.
author suika6039
date Mon, 27 Dec 2010 21:08:43 +0900
parents c0a0fa870e6e
children 78e9b96ef04a
line wrap: on
line source

package treecms.proto.api;

import java.util.List;

import java.util.Iterator;

public interface Node extends Iterable<Node>
{
	public Iterator<Node> iterator();
	public void addChildren(List<Node> _child);
	public List<Node> getChildren();
	public boolean isChild(Node _child);
	public Node addChild(Node _child);
	public boolean removeChild(Node _child);
	public void clearChildren();
	
	public String getTitle();
	public void setTitle(String _title);
	
	public String getClassName();
	public void setClassName(String _class);
	
	public String getAttribute(String _attr);
	public void setAttribute(String _attr,String _value);
	
	public void up(Node _child);
	public void down(Node _child);
	public void replace(Node _target,Node _newChild);
	
	public NodeID getID();
	public Node cloneNode();
	public Node createNode();
}