com.android.repository.api
Class SchemaModule.SchemaModuleVersion

java.lang.Object
  extended by com.android.repository.api.SchemaModule.SchemaModuleVersion
Enclosing class:
SchemaModule

public class SchemaModule.SchemaModuleVersion
extends java.lang.Object

Represents a single version of a schema, including a single XSD and a single ObjectFactory.


Constructor Summary
SchemaModule.SchemaModuleVersion(java.lang.Class objectFactory, java.lang.String xsdLocation)
           
 
Method Summary
 java.lang.String getNamespace()
          Gets the target namespace of this schema version.
 java.lang.Class getObjectFactory()
          Gets the ObjectFactory for this schema version.
 java.io.InputStream getXsd()
          Gets the XSD file for this schema version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaModule.SchemaModuleVersion

public SchemaModule.SchemaModuleVersion(@NonNull
                                        java.lang.Class 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.
xsd - The XSD file for this schema.
Method Detail

getObjectFactory

@NonNull
public java.lang.Class 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.