@MustImplementEqualsAndHashcode
public interface IJAXBDocumentType
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsList<com.helger.commons.io.resource.ClassPathResource> |
getAllXSDResources() |
Class<?> |
getImplementationClass() |
String |
getLocalName() |
String |
getNamespaceURI() |
Schema |
getSchema() |
default Validator |
getValidator() |
default Validator |
getValidator(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.
|
@Nonnull Class<?> getImplementationClass()
null.@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<com.helger.commons.io.resource.ClassPathResource> getAllXSDResources()
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()
@Nullable default Validator getValidator()
Validator object retrieved from the schema to
be obtained from getSchema().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 Locale aLocale)
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(). 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.Copyright © 2015–2021 Philip Helger. All rights reserved.