|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylyn.internal.wikitext.core.validation.StandaloneMarkupValidator
public class StandaloneMarkupValidator
Validate markup given a set of rules (stand-alone, outside of an Eclipse environment)
Constructor Summary | |
---|---|
StandaloneMarkupValidator()
|
Method Summary | |
---|---|
void |
computeRules(String markupLanguage)
Compute rules for a markup language based on looking them up in the available plugin.xml files |
void |
computeRules(String markupLanguage,
URL url)
compute rules for the specified markup language given an URL to a plugin.xml |
List<ValidationRule> |
getRules()
|
static StandaloneMarkupValidator |
getValidator(String markupLanguage)
Get the default validator for the specified markup language. |
void |
setClassLoader(ClassLoader classLoader)
for testing purposes, set the class loader to use when loading validation rules |
List<ValidationProblem> |
validate(String markup)
|
List<ValidationProblem> |
validate(String markup,
int offset,
int length)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandaloneMarkupValidator()
Method Detail |
---|
public static StandaloneMarkupValidator getValidator(String markupLanguage)
markupLanguage
- the markup language for which a validator is desired
public List<ValidationProblem> validate(String markup)
public List<ValidationProblem> validate(String markup, int offset, int length)
public List<ValidationRule> getRules()
public void computeRules(String markupLanguage)
markupLanguage
- public void computeRules(String markupLanguage, URL url)
markupLanguage
- the markup language for which rules should be loadedurl
- the URL to the plugin.xml that specifies the rulespublic void setClassLoader(ClassLoader classLoader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |