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

org.xmlpull.v1.builder.impl.XmlCommentImpl Maven / Gradle / Ivy

The newest version!
package org.xmlpull.v1.builder.impl;

import org.xmlpull.v1.builder.XmlComment;
import org.xmlpull.v1.builder.XmlContainer;

/**
 * Simple implementation.
 *
 * @author Aleksander Slominski
 */
public class XmlCommentImpl implements XmlComment
{
    private XmlContainer owner_;

    private String content_;

    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 - 2025 Weber Informatics LLC | Privacy Policy