예제 #1
0
  public void fromJDOM(Element element) {
    for (Object o : element.getChildren()) {
      Element child = (Element) o;
      String tag = child.getName();

      ILDModelObject member = addMember(tag);
      if (member != null) {
        member.fromJDOM(child);
      }
    }
  }
예제 #2
0
  public Element toJDOM() {
    Element element = new Element(getTagName(), IMSLD_NAMESPACE_100_EMBEDDED);

    for (ILDModelObject member : getShowHideTypes()) {
      Element child = member.toJDOM();
      if (child != null) {
        element.addContent(child);
      }
    }

    for (ILDModelObject member : getChangePropertyValueTypes()) {
      Element child = member.toJDOM();
      if (child != null) {
        element.addContent(child);
      }
    }

    for (ILDModelObject member : getNotificationTypes()) {
      Element child = member.toJDOM();
      if (child != null) {
        element.addContent(child);
      }
    }

    return element;
  }