Exemplo n.º 1
13
 /** @param element */
 private void init(Element element) {
   RStack stack = new RStack(element);
   author_ = URelaxer.getAttributePropertyAsString(element, "author");
   id_ = URelaxer.getAttributePropertyAsString(element, "id");
   xmlLang_ = URelaxer.getAttributePropertyAsString(element, "xml:lang");
   this.content_.clear();
   while (true) {
     if (RString.isMatch(stack)) {
       addContent(new RString(stack));
     } else if (FdImg.isMatch(stack)) {
       addContent(new FdImg(stack));
     } else if (FdIcon.isMatch(stack)) {
       addContent(new FdIcon(stack));
     } else if (FdLink.isMatch(stack)) {
       addContent(new FdLink(stack));
     } else if (FdJump.isMatch(stack)) {
       addContent(new FdJump(stack));
     } else if (FdFork.isMatch(stack)) {
       addContent(new FdFork(stack));
     } else if (FdAcronym.isMatch(stack)) {
       addContent(new FdAcronym(stack));
     } else if (FdStrong.isMatch(stack)) {
       addContent(new FdStrong(stack));
     } else if (FdEm.isMatch(stack)) {
       addContent(new FdEm(stack));
     } else if (FdCode.isMatch(stack)) {
       addContent(new FdCode(stack));
     } else if (FdSub.isMatch(stack)) {
       addContent(new FdSub(stack));
     } else if (FdSup.isMatch(stack)) {
       addContent(new FdSup(stack));
     } else if (FdBr.isMatch(stack)) {
       addContent(new FdBr(stack));
     } else {
       break;
     }
   }
 }
Exemplo n.º 2
0
 /** @param element */
 private void init(Element element) {
   RStack stack = new RStack(element);
   id_ = URelaxer.getAttributePropertyAsString(element, "id");
   xmlLang_ = URelaxer.getAttributePropertyAsString(element, "xml:lang");
   setTitle(new FtTitle(stack));
   if (FtSubtitle.isMatch(stack)) {
     setSubtitle(new FtSubtitle(stack));
   }
   if (FtVersion.isMatch(stack)) {
     setVersion(new FtVersion(stack));
   }
   if (FtType.isMatch(stack)) {
     setType(new FtType(stack));
   }
   if (FtAuthors.isMatch(stack)) {
     setAuthors(new FtAuthors(stack));
   }
   notice_.clear();
   while (true) {
     if (FtNotice.isMatch(stack)) {
       addNotice(new FtNotice(stack));
     } else {
       break;
     }
   }
   if (FtAbstract.isMatch(stack)) {
     setAbstract(new FtAbstract(stack));
   }
 }
Exemplo n.º 3
0
 /** @param element */
 private void init(Element element) {
   RStack stack = new RStack(element);
   id_ = URelaxer.getAttributePropertyAsString(element, "id");
   xmlLang_ = URelaxer.getAttributePropertyAsString(element, "xml:lang");
   person_.clear();
   while (true) {
     if (FtPerson.isMatch(stack)) {
       addPerson(new FtPerson(stack));
     } else {
       break;
     }
   }
 }
 /** @param element */
 private void init(Element element) {
   RStack stack = new RStack(element);
   rNSContext_.declareNamespace(element);
   content_ = URelaxer.getElementPropertyAsString(element);
   type_ = URelaxer.getAttributePropertyAsString(element, "type");
 }