text.append("\n----------------"); //$NON-NLS-1$
if (model.getPages().length == 0) {
text.append("\nNo first page in model\n\n"); //$NON-NLS-1$
return;
}
IntroPage firstPage = model.getPages()[0];
text.append("\n\t\tFirst page children are: "); //$NON-NLS-1$
text
.append("\n\t\t\tGroups: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.GROUP).length);
text
.append("\n\t\t\tLinks: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.LINK).length);
text
.append("\n\t\t\tTexts: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.TEXT).length);
text
.append("\n\t\t\tHTMLs: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.HTML).length);
text
.append("\n\t\t\tImages: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.IMAGE).length);
text
.append("\n\t\t\tIncludes: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.INCLUDE).length);
text
.append("\n\t\t\tPage Titles: " //$NON-NLS-1$
+ firstPage
.getChildrenOfType(AbstractIntroElement.PAGE_TITLE).length);
text
.append("\n\t\t\tPage Heads: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.HEAD).length);
text
.append("\n\t\t\tModel Elements: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.ELEMENT).length);
text
.append("\n\t\t\tContainers: " //$NON-NLS-1$
+ firstPage
.getChildrenOfType(AbstractIntroElement.ABSTRACT_CONTAINER).length);
text
.append("\n\t\t\tAll Pages: " //$NON-NLS-1$
+ firstPage
.getChildrenOfType(AbstractIntroElement.ABSTRACT_PAGE).length);
text
.append("\n\t\t\tAnchors: " //$NON-NLS-1$
+ firstPage.getChildrenOfType(AbstractIntroElement.ANCHOR).length);
text
.append("\n\t\t\tContent providers: " //$NON-NLS-1$
+ firstPage
.getChildrenOfType(AbstractIntroElement.CONTENT_PROVIDER).length);
text
.append("\n\t\t\tElements with Text child(AbstractTextElemets): " //$NON-NLS-1$
+ firstPage
.getChildrenOfType(AbstractIntroElement.ABSTRACT_TEXT).length);
AbstractIntroElement[] linksAndGroups = (AbstractIntroElement[]) firstPage
.getChildrenOfType(AbstractIntroElement.GROUP
| AbstractIntroElement.LINK);
text.append("\n\t\t\tGroups and Links: " + linksAndGroups.length); //$NON-NLS-1$
}