Class SchemaModule.SchemaModuleVersion<R>

  • Enclosing class:
    SchemaModule<T>

    public class SchemaModule.SchemaModuleVersion<R>
    extends java.lang.Object
    Represents a single version of a schema, including a single XSD and a single ObjectFactory.
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemaModuleVersion​(java.lang.Class<? extends R> objectFactory, java.lang.String xsdLocation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getNamespace()
      Gets the target namespace of this schema version.
      java.lang.String getNamespacePrefix()
      Gets our namespace prefix (the namespace with the final number (if any) removed).
      java.lang.Class<? extends R> getObjectFactory()
      Gets the ObjectFactory for this schema version.
      java.io.InputStream getXsd()
      Gets the XSD file for this schema version.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchemaModuleVersion

        public SchemaModuleVersion​(@NonNull
                                   java.lang.Class<? extends R> objectFactory,
                                   @NonNull
                                   java.lang.String xsdLocation)
        Parameters:
        objectFactory - The xjc-generated ObjectFactory instance for this schema version. Notably, the package containing this class must contain a package-info.java with a XmlSchema annotation giving the XML namespace of this schema.
        xsdLocation - The XSD file for this schema.
    • Method Detail

      • getObjectFactory

        @NonNull
        public java.lang.Class<? extends R> getObjectFactory()
        Gets the ObjectFactory for this schema version.
      • getXsd

        @NonNull
        public java.io.InputStream getXsd()
        Gets the XSD file for this schema version.
      • getNamespace

        @NonNull
        public java.lang.String getNamespace()
        Gets the target namespace of this schema version.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getNamespacePrefix

        @NonNull
        public java.lang.String getNamespacePrefix()
        Gets our namespace prefix (the namespace with the final number (if any) removed).