Package com.helger.jaxb.builder
Class JAXBDocumentType
java.lang.Object
com.helger.jaxb.builder.JAXBDocumentType
- All Implemented Interfaces:
IJAXBDocumentType
@NotThreadSafe
@Deprecated(forRemoval=true,
since="11.0.3")
public class JAXBDocumentType
extends Object
implements IJAXBDocumentType
Deprecated, for removal: This API element is subject to removal in a future version.
Stand alone implementation of
IJAXBDocumentType. It is not
thread-safe because of the lazily loaded Schema.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionJAXBDocumentType(Class<?> aClass, List<? extends com.helger.commons.io.resource.ClassPathResource> aXSDs, String sNamespaceURI, String sLocalName) Deprecated, for removal: This API element is subject to removal in a future version.Simple constructor when you know what you are doing.JAXBDocumentType(Class<?> aClass, List<? extends com.helger.commons.io.resource.ClassPathResource> aXSDs, Function<? super String, ? extends String> aTypeToElementNameMapper) Deprecated, for removal: This API element is subject to removal in a future version.Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.final 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.final Class<?> Deprecated, for removal: This API element is subject to removal in a future version.final StringDeprecated, for removal: This API element is subject to removal in a future version.final StringDeprecated, 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.final Supplier<com.helger.xml.schema.XMLSchemaCache> Deprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.final JAXBDocumentTypesetXMLSchemaCacheProvider(Supplier<com.helger.xml.schema.XMLSchemaCache> aXMLSchemaCacheProvider) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.jaxb.builder.IJAXBDocumentType
getValidator, getValidator, validateXML
-
Field Details
-
JAXB_DEFAULT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
JAXBDocumentType
public JAXBDocumentType(@Nonnull Class<?> aClass, @Nullable List<? extends com.helger.commons.io.resource.ClassPathResource> aXSDs, @Nullable Function<? super String, ? extends String> aTypeToElementNameMapper) Deprecated, for removal: This API element is subject to removal in a future version.Constructor- Parameters:
aClass- The JAXB generated class of the root element. May not benull. This class must have the@XmlTypeannotation and the package the class resides in must have the@XmlSchemaannotation with a non-nullnamespaceproperty!aXSDs- The classpath relative paths to the XML Schema. May not benullbut maybe empty. If the main XSD imports another XSD, the imported XSD must come first in the list. So the XSDs without any dependencies must come first!aTypeToElementNameMapper- An optional function to determine element name from type name. E.g. in UBL the type has an additional "Type" at the end that may not occur here. SBDH in contrary does not have such a suffix. May benullindicating that no name mapping is necessary.
-
JAXBDocumentType
public JAXBDocumentType(@Nonnull Class<?> aClass, @Nullable List<? extends com.helger.commons.io.resource.ClassPathResource> aXSDs, @Nullable String sNamespaceURI, @Nonnull @Nonempty String sLocalName) Deprecated, for removal: This API element is subject to removal in a future version.Simple constructor when you know what you are doing.- Parameters:
aClass- The JAXB generated class of the root element. May not benull. This class must have the@XmlTypeannotation and the package the class resides in must have the@XmlSchemaannotation with a non-nullnamespaceproperty!aXSDs- The classpath relative paths to the XML Schema. May not benullbut maybe empty. If the main XSD imports another XSD, the imported XSD must come first in the list. So the XSDs without any dependencies must come first!sNamespaceURI- The namespace URI to use. May benull.sLocalName- The locale name of the element. May neither benullnor empty.- Since:
- 9.4.0
-
-
Method Details
-
getImplementationClass
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getImplementationClassin interfaceIJAXBDocumentType- Returns:
- The class implementing this document type. Never
null.
-
getAllXSDResources
@Nonnull @ReturnsMutableCopy public final 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.- Specified by:
getAllXSDResourcesin interfaceIJAXBDocumentType- Returns:
- The list of all paths within the classpath where the main XSD file
resides. Never
nullbut maybe empty.
-
getXMLSchemaCacheProvider
Deprecated, for removal: This API element is subject to removal in a future version. -
setXMLSchemaCacheProvider
@Nonnull public final JAXBDocumentType setXMLSchemaCacheProvider(@Nonnull Supplier<com.helger.xml.schema.XMLSchemaCache> aXMLSchemaCacheProvider) Deprecated, for removal: This API element is subject to removal in a future version. -
getNamespaceURI
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamespaceURIin interfaceIJAXBDocumentType- 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.- Specified by:
getLocalNamein interfaceIJAXBDocumentType- 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).
-
getSchema
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSchemain interfaceIJAXBDocumentType- Returns:
- The compiled
Schemaobject.
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-