@MustImplementEqualsAndHashcode public interface IJAXBDocumentType extends com.helger.xml.schema.IHasSchema, Serializable
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsList<String> |
getAllXSDPaths() |
default com.helger.commons.collection.impl.ICommonsList<? extends com.helger.commons.io.resource.IReadableResource> |
getAllXSDResources() |
default com.helger.commons.collection.impl.ICommonsList<? extends com.helger.commons.io.resource.IReadableResource> |
getAllXSDResources(ClassLoader aClassLoader) |
Class<?> |
getImplementationClass() |
String |
getLocalName() |
String |
getNamespaceURI() |
Schema |
getSchema(ClassLoader aClassLoader) |
default Validator |
getValidator() |
default Validator |
getValidator(ClassLoader aClassLoader) |
default Validator |
getValidator(ClassLoader aClassLoader,
Locale aLocale) |
default com.helger.commons.error.list.IErrorList |
validateXML(com.helger.commons.io.resource.IReadableResource aXML)
Validate the passed XML instance against the XML Schema of this document
type using the default class loader.
|
default com.helger.commons.error.list.IErrorList |
validateXML(com.helger.commons.io.resource.IReadableResource aXML,
ClassLoader aClassLoader)
Validate the passed XML instance against the XML Schema of this document
type.
|
@Nonnull Class<?> getImplementationClass()
null.@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<String> getAllXSDPaths()
null but maybe empty.@Nonnull String getNamespaceURI()
null XML namespace of this JAXB document type.
If the element has no namespace this method must also return the
empty string.@Nonnull @Nonempty String getLocalName()
@Nonnull @ReturnsMutableCopy default com.helger.commons.collection.impl.ICommonsList<? extends com.helger.commons.io.resource.IReadableResource> getAllXSDResources()
null but maybe empty.@Nonnull @ReturnsMutableCopy default com.helger.commons.collection.impl.ICommonsList<? extends com.helger.commons.io.resource.IReadableResource> getAllXSDResources(@Nullable ClassLoader aClassLoader)
aClassLoader - The class loader to be used. May be null indicating
that the default class loader should be used.null but maybe empty.@Nullable Schema getSchema(@Nullable ClassLoader aClassLoader)
getSchema in interface com.helger.xml.schema.IHasSchemaaClassLoader - The class loader to be used. May be null indicating
that the default class loader should be used.Schema object retrieved by the
XMLSchemaCache. May be
null if no XSD was provided.@Nullable default Validator getValidator(@Nullable ClassLoader aClassLoader)
aClassLoader - The class loader to be used. May be null indicating
that the default class loader should be used.Validator object retrieved from the schema to
be obtained from getSchema(ClassLoader). If this document
type has no XML Schema that no Validator can be created and
the return value is null.@Nullable default Validator getValidator(@Nullable ClassLoader aClassLoader, @Nullable Locale aLocale)
aClassLoader - The class loader to be used. May be null indicating
that the default class loader should be used.aLocale - The locale to use for error message creation. May be
null to use the system locale.Validator object retrieved from the schema to
be obtained from getSchema(ClassLoader). If this document
type has no XML Schema that no Validator can be created and
the return value is null.@Nullable default com.helger.commons.error.list.IErrorList validateXML(@Nonnull com.helger.commons.io.resource.IReadableResource aXML)
aXML - The XML resource to be validated. May not be null.null is returned if this document type has no XSDs
assigned and therefore not validation can take place.@Nullable default com.helger.commons.error.list.IErrorList validateXML(@Nonnull com.helger.commons.io.resource.IReadableResource aXML, @Nullable ClassLoader aClassLoader)
aXML - The XML resource to be validated. May not be null.aClassLoader - The class loader to be used. May be null indicating
that the default class loader should be used.null is returned if this document type has no XSDs
assigned and therefore not validation can take place.Copyright © 2015–2018 Philip Helger. All rights reserved.