Code Search for Developers
 
 
  

VirtualCouplingPage.java from MASE: Agile Software Engineering at Krugle


Show VirtualCouplingPage.java syntax highlighted

// Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the GNU General Public License version 2 or later.
package ca.ucalgary.cpsc.ebe.fitClipse.render.wiki;

import java.util.*;

public class VirtualCouplingPage implements WikiPage
{
	private WikiPage hostPage;
	private HashMap children = new HashMap();

	protected VirtualCouplingPage(WikiPage hostPage)
	{
		this.hostPage = hostPage;
	}

	public VirtualCouplingPage(WikiPage hostPage, WikiPage proxy) throws Exception
	{
		this.hostPage = hostPage;
		List proxyChildren = proxy.getChildren();
		for(Iterator iterator = proxyChildren.iterator(); iterator.hasNext();)
		{
			CommitingPage wikiPage = (CommitingPage) iterator.next();
			wikiPage.parent = this;
			children.put(wikiPage.getName(), wikiPage);
		}
	}

	public boolean hasChildPage(String pageName) throws Exception
	{
		return children.containsKey(pageName);
	}

	public PageData getData() throws Exception
	{
		return hostPage.getData();
	}

	public int compareTo(Object o)
	{
		return 0;
	}

	public WikiPage addChildPage(String name) throws Exception
	{
		return null;
	}

	public void removeChildPage(String name) throws Exception
	{
	}

	public PageData getDataVersion(String versionName) throws Exception
	{
		return null;
	}

	public WikiPage getParent() throws Exception
	{
		return hostPage.getParent();
	}

	public String getName() throws Exception
	{
		return hostPage.getName();
	}

	public WikiPage getChildPage(String name) throws Exception
	{
		WikiPage subpage = (WikiPage) children.get(name);
		if(subpage == null) subpage = hostPage.getChildPage(name);
		return subpage;
	}

	public List getChildren() throws Exception
	{
		return new ArrayList(children.values());
	}

	public VersionInfo commit(PageData data) throws Exception
	{
		return null;
	}

	public boolean hasExtension(String extensionName)
	{
		return false;
	}

	public Extension getExtension(String extensionName)
	{
		return null;
	}

	public PageCrawler getPageCrawler()
	{
		return hostPage.getPageCrawler();
	}
}



See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  BaseWikiPage.java
  CachingPage.java
  CommitingPage.java
  ExtendableWikiPage.java
  ExtendableWikiPageTest.java
  Extension.java
  InMemoryPage.java
  InheritedItemBuilder.java
  MockWikiPage.java
  MockXmlizerPageHandler.java
  MockingPageCrawler.java
  NoSuchVersionException.java
  NullVirtualCouplingPage.java
  PageCrawler.java
  PageCrawlerDeadEndStrategy.java
  PageCrawlerImpl.java
  PageData.java
  PagePointer.java
  PageXmlizer.java
  SymbolicPage.java
  VersionInfo.java
  VersionInfoTest.java
  VirtualCouplingExtension.java
  VirtualCouplingPage.java
  VirtualEnabledPageCrawler.java
  VirtualMockingPageCrawler.java
  WikiPage.java
  WikiPagePath.java
  WikiPageProperties.java
  WikiPageUtil.java
  XmlizerPageHandler.java