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
 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 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

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.


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).