public class ValidationContext extends Object
| Constructor and Description |
|---|
ValidationContext(URL document,
List<URL> schemas) |
public ValidationContext(URL document, List<URL> schemas) throws IOException
IOExceptionpublic ValidationContext prefixProvider(SchemaPathPrefixProvider provider)
public ValidationContext pathGate(SchemaPathGate gate)
public int documentLineCount()
public ErrorHandler.HandledResult handle(ValidationError error)
public List<List<SchemaElement>> alternateElementsForAttribute(String attribute)
public List<List<SchemaElement>> alternateElementsForElement(QName element)
public List<SchemaElement> schemaPathWithPrefix(List<SchemaElement> path)
public Set<String> attributesForElement(List<SchemaElement> path)
public Set<SchemaElement> elementsForElement(List<SchemaElement> path)
public List<List<DocElement>> pathsToDocElement(java.util.function.Function<DocElement,Boolean> pred)
public List<DocElement> pathToDocElement(java.util.function.Function<DocElement,Boolean> pred)
public List<DocElement> pathToDocElement(QName elementName, Position position)
public List<List<SchemaElement>> pathsToSchemaElement(java.util.function.Function<SchemaElement,Boolean> pred)
public List<SchemaElement> pathToSchemaElement(java.util.function.Function<SchemaElement,Boolean> pred)
public List<SchemaElement> mapDocPathToSchemaPath(List<DocElement> path)
public List<SchemaElement> mapDocLocationToSchemaPath(QName elementName, Position position)
public List<List<DocElement>> docElementSiblings(List<DocElement> element, java.util.function.Function<DocElement,Boolean> pred)
public List<List<SchemaElement>> schemaElementSiblings(List<SchemaElement> element)
public List<List<SchemaElement>> schemaElementSiblings(List<SchemaElement> element, java.util.function.Function<SchemaElement,Boolean> pred)
Copyright © 2017. All Rights Reserved.