net.sf.nakeduml.seamgeneration.page.SeamPagesSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metamodel Show documentation
Show all versions of metamodel Show documentation
A uml code generator and execution engine
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;
}
}