org.eclipse.mylyn.internal.wikitext.mediawiki.core.validation
Class CommentValidationRule

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.validation.ValidationRule
      extended by org.eclipse.mylyn.internal.wikitext.mediawiki.core.validation.CommentValidationRule

public class CommentValidationRule
extends ValidationRule

a validation rule that tests for malformed comment delimiters.

Author:
David Green

Constructor Summary
CommentValidationRule()
           
 
Method Summary
 ValidationProblem findProblem(String markup, int offset, int length)
          Starting at the given offset find the next validation problem.
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.validation.ValidationRule
findProblems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentValidationRule

public CommentValidationRule()
Method Detail

findProblem

public ValidationProblem findProblem(String markup,
                                     int offset,
                                     int length)
Description copied from class: ValidationRule
Starting at the given offset find the next validation problem.

Specified by:
findProblem in class ValidationRule
Parameters:
markup - the markup content in which a validation problem should be found
offset - the offset at which to start looking for problems
length - the length at which to stop looking for problems
Returns:
the validation problem if found, or null if no validation problem was detected


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.