Package com.helger.jaxb.builder
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 TypeMethodDescriptioncom.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.Class<?> 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 ValidatorDeprecated, for removal: This API element is subject to removal in a future version.default ValidatorgetValidator(Locale aLocale) Deprecated, for removal: This API element is subject to removal in a future version.default com.helger.commons.error.list.IErrorListvalidateXML(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
Schemaobject.
-
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
nullbut maybe empty.
-
getNamespaceURI
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The non-
nullXML namespace of this JAXB document type. If the element has no namespace this method must also return the empty 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
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The compiled
Validatorobject retrieved from the schema to be obtained fromgetSchema().If this document type has no XML Schema that noValidatorcan be created and the return value isnull.
-
getValidator
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 benullto use the system locale.- Returns:
- The compiled
Validatorobject retrieved from the schema to be obtained fromgetSchema(). If this document type has no XML Schema that noValidatorcan be created and the return value isnull. - 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 benull.- Returns:
- A group of validation errors. Is empty if no error occurred.
nullis returned if this document type has no XSDs assigned and therefore not validation can take place.
-