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

com.thaiopensource.relaxng.input.parse.CommentListImpl Maven / Gradle / Ivy

The newest version!
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy