public class SchemaModule
extends java.lang.Object
repo-common-N.xsd defines a schema for a repository with packages, and the collection of
the schemas for all N would be represented by a single SchemaModule instance.
They can then be used for marshalling or unmarshalling XML documents by the repository framework.| Modifier and Type | Class and Description |
|---|---|
class |
SchemaModule.SchemaModuleVersion
Represents a single version of a schema, including a single XSD and a single
ObjectFactory. |
| Constructor and Description |
|---|
SchemaModule(java.lang.String ofPattern,
java.lang.String xsdPattern,
java.lang.Class resourceRoot) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createLatestFactory()
Creates an
ObjectFactory for the latest known version of this module. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLatestNamespace()
Gets the namespace of the our latest schema version.
|
java.lang.String |
getNamespacePrefix()
Gets the namespace prefix (the namespace with the final number (if any) removed) for our
latest schema version.
|
java.util.Map<java.lang.String,SchemaModule.SchemaModuleVersion> |
getNamespaceVersionMap()
Gets the map of namespaces to
SchemaModule.SchemaModuleVersions. |
int |
hashCode() |
public SchemaModule(@NonNull
java.lang.String ofPattern,
@NonNull
java.lang.String xsdPattern,
@NonNull
java.lang.Class resourceRoot)
ofPattern - Fully-qualified class name of the JAXB ObjectFactory classes
making up this module. Should have a single %d parameter, corresponding to
the 1-indexed version of the schema.xsdPattern - Filename pattern of the XSDs making up this module. Should have a single
%d parameter, corresponding to the 1-indexed version of the schema.resourceRoot - A class instance used via Class.getResource(String) to read
the XSD file.@NonNull public java.lang.Object createLatestFactory()
ObjectFactory for the latest known version of this module.@NonNull public java.util.Map<java.lang.String,SchemaModule.SchemaModuleVersion> getNamespaceVersionMap()
SchemaModule.SchemaModuleVersions. Should only be needed by
the repository framework.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object@NonNull public java.lang.String getNamespacePrefix()
public java.lang.String getLatestNamespace()