Package com.android.repository.api
Class SchemaModule.SchemaModuleVersion<R>
- java.lang.Object
-
- com.android.repository.api.SchemaModule.SchemaModuleVersion<R>
-
- Enclosing class:
- SchemaModule<T>
public class SchemaModule.SchemaModuleVersion<R> extends java.lang.ObjectRepresents a single version of a schema, including a single XSD and a singleObjectFactory.
-
-
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 booleanequals(java.lang.Object obj)java.lang.StringgetNamespace()Gets the target namespace of this schema version.java.lang.StringgetNamespacePrefix()Gets our namespace prefix (the namespace with the final number (if any) removed).java.lang.Class<? extends R>getObjectFactory()Gets theObjectFactoryfor this schema version.java.io.InputStreamgetXsd()Gets the XSD file for this schema version.inthashCode()
-
-
-
Constructor Detail
-
SchemaModuleVersion
public SchemaModuleVersion(@NonNull java.lang.Class<? extends R> objectFactory, @NonNull java.lang.String xsdLocation)- Parameters:
objectFactory- The xjc-generatedObjectFactoryinstance for this schema version. Notably, the package containing this class must contain apackage-info.javawith aXmlSchemaannotation 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 theObjectFactoryfor 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getNamespacePrefix
@NonNull public java.lang.String getNamespacePrefix()
Gets our namespace prefix (the namespace with the final number (if any) removed).
-
-