com.thaiopensource.relaxng.input.parse.CommentListImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trang Show documentation
Show all versions of trang Show documentation
Trang, a multi-format schema converter based on RELAX NG.
package com.thaiopensource.relaxng.input.parse;
import com.thaiopensource.relaxng.edit.SourceLocation;
import com.thaiopensource.relaxng.edit.Comment;
import com.thaiopensource.relaxng.parse.CommentList;
import com.thaiopensource.relaxng.parse.BuildException;
import java.util.List;
import java.util.Vector;
public class CommentListImpl implements CommentList {
final List list = new Vector();
public void addComment(String value, SourceLocation loc) throws BuildException {
Comment comment = new Comment(value);
comment.setSourceLocation(loc);
list.add(comment);
}
void add(CommentListImpl comments) {
list.addAll(comments.list);
}
}