org.xmlpull.infoset.impl.XmlCommentImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xpp5 Show documentation
Show all versions of xpp5 Show documentation
XML Pull parser library developed by Extreme Computing Lab, Indian University
package org.xmlpull.infoset.impl;
import org.xmlpull.infoset.XmlComment;
import org.xmlpull.infoset.XmlContainer;
/**
* Simple implementation.
*
* @author Aleksander Slominski
*/
public class XmlCommentImpl implements XmlComment
{
// private XmlContainer owner_;
private String content_;
public XmlCommentImpl(String content) {
// public XmlCommentImpl(XmlContainer owner, String content) {
// this.owner_ = owner;
this.content_ = content;
if(content == null) throw new IllegalArgumentException("comment content can not be null");
}
public String getContent() {
return content_;
}
// public XmlContainer getParent() {
// return owner_;
// }
}