All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.nakeduml.seamgeneration.page.SeamPagesSource Maven / Gradle / Ivy

The newest version!
package net.sf.nakeduml.seamgeneration.page;

import net.sf.nakeduml.textmetamodel.TextSource;

import org.jboss.seam.navigation.Page;

public class SeamPagesSource extends AbstractSeamPagesSource implements TextSource {
	
	public SeamPagesSource(Page page) {
		super(page);
	}

	protected void startComposition() {
		stringBuilder.append("\n");
		stringBuilder.append("\n\n");
		
		stringBuilder.append("    ");
		stringBuilder.append(page.getDescription());
		stringBuilder.append("\n\n");
	}

	protected void endComposition() {
		stringBuilder.append("");
	}

	public char[] toCharArray() {
		startComposition();
		outEvents();
		outActions();
		outBeginConversation();
		outEndConversation();
		outNavigations();
		endComposition();
		return stringBuilder.toString().toCharArray();
	}
	public boolean hasContent(){
		return true;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy