package org.ccnx.ccn.impl.repo;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;

import javax.xml.stream.XMLStreamException;

import org.ccnx.ccn.protocol.ContentName;
import org.ccnx.ccn.protocol.ContentObject;
import org.ccnx.ccn.protocol.MalformedContentNameStringException;


/**
 * 
 * @author rasmusse
 *
 */

public interface Policy {
	
	/**
	 * Update the policy
	 * 
	 * @param stream
	 * @return - false if update is not for us.
	 * @throws XMLStreamException
	 * @throws IOException
	 */
	boolean update(InputStream stream, boolean fromNet) throws XMLStreamException, IOException;

	public ArrayList<ContentName> getNameSpace();
	
	public ContentObject getPolicyContent();
	
	public void setVersion(String version);
	
	public void setLocalName(String localName) throws MalformedContentNameStringException;
	
	public void setGlobalPrefix(String globalName) throws MalformedContentNameStringException;
}

@@ -845,24 +845,57 @@
 xception;%0A%09%0A
+%09public String getLocalName();%0A%09%0A
 %09public void
@@ -974,10 +974,51 @@
 eption;%0A
+%09%0A%09public ContentName getGlobalPrefix();%0A
 %7D%0A

Add accessors for debugging