예제 #1
0
  public Document getXmlDataAsJDOMDocument() {
    if (xmlData == null) {
      return null;
    }

    if (xmlDataAsJDOMDocument == null) {
      xmlDataAsJDOMDocument = xmlData.getDocument();
    }

    return (Document) xmlDataAsJDOMDocument.clone();
  }
예제 #2
0
  public void setXmlData(Document value) {
    if (value == null) {
      this.xmlData = null;
    } else {
      this.xmlData = LazyInitializedJDOMDocument.parse(value);
    }

    // Invalidate cache
    xmlDataAsJDOMDocument = null;
    portletData = null;
    datasources = null;
  }