Exemplo n.º 1
0
  protected MultipleSyntaxElements createNewChildContainer(Node ref, Document syntax) {
    MultipleSyntaxElements ret = null;

    if ((ref.getNodeName()).equals("DE"))
      ret = MultipleDEsFactory.getInstance().createMultipleDEs(ref, '+', getPath(), syntax);
    else if ((ref.getNodeName()).equals("DEG"))
      ret = MultipleDEGsFactory.getInstance().createMultipleDEGs(ref, '+', getPath(), syntax);

    return ret;
  }
Exemplo n.º 2
0
  public void destroy() {
    List<MultipleSyntaxElements> childContainers = getChildContainers();
    for (Iterator<MultipleSyntaxElements> i = childContainers.iterator(); i.hasNext(); ) {
      MultipleSyntaxElements child = i.next();
      if (child instanceof MultipleDEGs) {
        MultipleDEGsFactory.getInstance().unuseObject(child);
      } else {
        MultipleDEsFactory.getInstance().unuseObject(child);
      }
    }

    super.destroy();
  }
Exemplo n.º 3
0
  protected MultipleSyntaxElements parseNewChildContainer(
      Node dataref,
      char predelim0,
      char predelim1,
      StringBuffer res,
      int fullResLen,
      Document syntax,
      Hashtable<String, String> predefs,
      Hashtable<String, String> valids) {
    MultipleSyntaxElements ret = null;

    if ((dataref.getNodeName()).equals("DEG"))
      ret =
          MultipleDEGsFactory.getInstance()
              .createMultipleDEGs(
                  dataref,
                  '+',
                  getPath(),
                  predelim0,
                  predelim1,
                  res,
                  fullResLen,
                  syntax,
                  predefs,
                  valids);
    else if ((dataref.getNodeName()).equals("DE"))
      ret =
          MultipleDEsFactory.getInstance()
              .createMultipleDEs(
                  dataref,
                  '+',
                  getPath(),
                  predelim0,
                  predelim1,
                  res,
                  fullResLen,
                  syntax,
                  predefs,
                  valids);

    return ret;
  }