Interface IJAXBDocumentType

All Known Implementing Classes:
JAXBDocumentType

@MustImplementEqualsAndHashcode @Deprecated(forRemoval=true, since="11.0.3") public interface IJAXBDocumentType
Deprecated, for removal: This API element is subject to removal in a future version.
Base interface describing a single JAXB based document type, independent of the version and implementation.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    com.helger.commons.collection.impl.ICommonsList<com.helger.commons.io.resource.ClassPathResource>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    default Validator
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    default Validator
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    default com.helger.commons.error.list.IErrorList
    validateXML(com.helger.commons.io.resource.IReadableResource aXML)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Validate the passed XML instance against the XML Schema of this document type using the default class loader.
  • Method Details

    • getSchema

      Schema getSchema()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The compiled Schema object.
    • getImplementationClass

      @Nonnull Class<?> getImplementationClass()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The class implementing this document type. Never null.
    • getAllXSDResources

      @Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<com.helger.commons.io.resource.ClassPathResource> getAllXSDResources()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The list of all paths within the classpath where the main XSD file resides. Never null but maybe empty.
    • getNamespaceURI

      @Nonnull String getNamespaceURI()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The non-null XML namespace of this JAXB document type. If the element has no namespace this method must also return the empty string.
    • getLocalName

      @Nonnull @Nonempty String getLocalName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The local name of the root element of an XML document of this type. Corresponds to the name of the implementation class (without a package).
    • getValidator

      @Nullable default Validator getValidator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The compiled 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.
    • getValidator

      @Nullable default Validator getValidator(@Nullable Locale aLocale)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      aLocale - The locale to use for error message creation. May be null to use the system locale.
      Returns:
      The compiled 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.
      Since:
      9.0.1
    • validateXML

      @Nullable default com.helger.commons.error.list.IErrorList validateXML(@Nonnull com.helger.commons.io.resource.IReadableResource aXML)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Validate the passed XML instance against the XML Schema of this document type using the default class loader.
      Parameters:
      aXML - The XML resource to be validated. May not be null.
      Returns:
      A group of validation errors. Is empty if no error occurred. null is returned if this document type has no XSDs assigned and therefore not validation can take place.