예제 #1
0
 /**
  * Initializes the <code>FtAuthors</code> by the FtAuthors <code>source</code>.
  *
  * @param source
  */
 public void setup(FtAuthors source) {
   int size;
   setId(source.getId());
   setXmlLang(source.getXmlLang());
   this.person_.clear();
   size = source.person_.size();
   for (int i = 0; i < size; i++) {
     addPerson((FtPerson) source.getPerson(i).clone());
   }
 }
예제 #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");
   person_.clear();
   while (true) {
     if (FtPerson.isMatch(stack)) {
       addPerson(new FtPerson(stack));
     } else {
       break;
     }
   }
 }
예제 #3
0
 /**
  * Adds the FtPerson property <b>person</b>.
  *
  * @param person
  */
 public void addPerson(FtPerson[] person) {
   for (int i = 0; i < person.length; i++) {
     addPerson(person[i]);
   }
 }
예제 #4
0
 /**
  * Sets the FtPerson property <b>person</b>.
  *
  * @param person
  */
 public void setPerson(FtPerson person) {
   this.person_.clear();
   addPerson(person);
 }
예제 #5
0
 /**
  * Sets the FtPerson property <b>person</b>.
  *
  * @param person
  */
 public void setPerson(FtPerson[] person) {
   this.person_.clear();
   for (int i = 0; i < person.length; i++) {
     addPerson(person[i]);
   }
 }