All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmlpull.infoset.impl.XmlCommentImpl Maven / Gradle / Ivy

Go to download

XML Pull parser library developed by Extreme Computing Lab, Indian University

There is a newer version: 1.2.8
Show newest version
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_;
//    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy