Examples of CDATA


Examples of org.jdom.CDATA

      desc.removeContent();
      if (!(f == null || f.equals(""))) {
        setInclude(f);
      }
      desc.addContent(new CDATA(description));
      _dom.setChanged(true);
      if(_dom.isDirectory() || _dom.isLifeElement()) _dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_job), SchedulerDom.MODIFY);
    }
  }
View Full Code Here

Examples of org.jdom.CDATA

      return new EntityRef(((IString)n.get(0)).getValue());
    }

    java.lang.String text = ((IString)n.get(0)).getValue();
    if (n.getConstructorType() == Factory.Node_cdata) {
      return new CDATA(text);
    }
    if (n.getConstructorType() == Factory.Node_charData) {
      return new Text(text);
    }
    if (n.getConstructorType() == Factory.Node_comment) {
View Full Code Here

Examples of org.jdom.CDATA

  private IConstructor convertContent(Content content, boolean trim) throws Skip {
    if (content instanceof Element) {
      return convertElement((Element)content, trim);
    }
    if (content instanceof CDATA) { // CDATA first (is subtype of Text)
      CDATA cdata = (CDATA)content;
      return vf.constructor(Factory.Node_cdata, getString(trim, cdata));
    }
    if (content instanceof Text) {
      Text text = (Text)content;
      return vf.constructor(Factory.Node_charData, getString(trim, text));
View Full Code Here

Examples of org.jdom.CDATA

        Element contentElement = new Element("content");
        contentElement.setAttribute("current-schema", currentSchema);
        targetElement.addContent(contentElement);
        String content = StringUtil.replace(this.content, "\n", "<br>");
        content = StringUtil.replace(content, "  ", "<sp>");
        CDATA cdata = new CDATA(content);
        contentElement.setContent(cdata);

    }
View Full Code Here

Examples of org.jdom.CDATA

        super.readState(sourceElement, project, virtualFile);
        Element contentElement = sourceElement.getChild("content");
        if (contentElement != null) {
            currentSchema = contentElement.getAttributeValue("current-schema");
            if (contentElement.getContentSize() > 0) {
                CDATA cdata = (CDATA) contentElement.getContent(0);

                String content = StringUtil.replace(cdata.getText(), "<br>", "\n");
                content = StringUtil.replace(content, "<sp>", "  ");
                this.content = content;
            }
        }
    }
View Full Code Here

Examples of org.jdom.CDATA

    public void readConfiguration(Element element) throws InvalidDataException {
        super.readConfiguration(element);
        Element conditionElement = element.getChild("condition");
        if (conditionElement.getContentSize() > 0) {
            CDATA cdata = (CDATA) conditionElement.getContent(0);
            condition = cdata.getText();
            condition = StringUtil.replace(condition, "<br>", "\n");
            condition = StringUtil.replace(condition, "<sp>", "  ");
        }
    }
View Full Code Here

Examples of org.jdom.CDATA

        Element conditionElement = new Element("condition");
        element.addContent(conditionElement);
        if (this.condition != null) {
            String condition = StringUtil.replace(this.condition, "\n", "<br>");
            condition = StringUtil.replace(condition, "  ", "<sp>");
            CDATA cdata = new CDATA(condition);
            conditionElement.setContent(cdata);
        }
    }
View Full Code Here

Examples of org.jdom.CDATA

            modificationElement.addContent(userElement);
        }

        if (comment != null) {
            Element commentElement = new Element(TAGNAME_COMMENT);
            CDATA cd;
            try {
                cd = new CDATA(comment);
            } catch (org.jdom.IllegalDataException e) {
                LOG.error(e);
                cd = new CDATA(
                        "Unable to parse comment. It contains illegal data.");
            }
            commentElement.addContent(cd);
            modificationElement.addContent(commentElement);
        }
View Full Code Here

Examples of org.jdom.CDATA

            Element projectElement = new Element(TAGNAME_PROJECT);
            projectElement.addContent(project);
            element.addContent(projectElement);

            Element commentElement = new Element(TAGNAME_COMMENT);
            CDATA cd;
            try {
                cd = new CDATA(comment);
            } catch (org.jdom.IllegalDataException e) {
                LOG.error(e);
                cd = new CDATA(
                        "Unable to parse comment.  It contains illegal data.");
            }
            commentElement.addContent(cd);
            element.addContent(commentElement);
View Full Code Here

Examples of org.jdom.CDATA

                    Document d =
                        new SAXBuilder().build( new StringReader(objectLockToken.getOwnerInfo()) );
                    owner.addContent(d.getRootElement());
                }
                catch( Throwable e ) {
                    owner.addContent(new CDATA(objectLockToken.getOwnerInfo()));
                }
            }
           
            Element timeout = new Element(E_TIMEOUT, DNSP);
            activelock.addContent(timeout);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.