Package org.apache.bval.jsr.xml
Class SchemaManager
- java.lang.Object
-
- org.apache.bval.jsr.xml.SchemaManager
-
public class SchemaManager extends Object
Unmarshals XML converging on latest schema version. Presumes backward compatiblity between schemae.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SchemaManager.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
VERSION_ATTRIBUTE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Schema>
getSchema(String ns, String version)
Optional<Schema>
getSchema(Document document)
(package private) static Schema
loadSchema(String resource)
<E extends Exception>
SchemarequireSchema(Document document, Function<String,E> exc)
<T> T
unmarshal(InputSource input, Class<T> type)
-
-
-
Field Detail
-
VERSION_ATTRIBUTE
public static final String VERSION_ATTRIBUTE
- See Also:
- Constant Field Values
-
-