public class BaseVariantXMLSource extends Object implements InputStreamVariantSource
VariantXMLParser
class. This class will try to validate the XML file against the schema.Constructor and Description |
---|
BaseVariantXMLSource() |
BaseVariantXMLSource(VariantSAXHandler parser) |
Modifier and Type | Method and Description |
---|---|
List<Variant> |
getVariants()
Get the variants from the variant source.
|
void |
setHandler(VariantSAXHandler handler)
Setter for the SAX handler.
|
void |
setInputStream(InputStream inputStream)
Setter for the input stream that provides the description of the variants.
|
public BaseVariantXMLSource()
public BaseVariantXMLSource(VariantSAXHandler parser)
public void setHandler(VariantSAXHandler handler)
handler
- The SAX handlerpublic List<Variant> getVariants() throws VariantSourceException
VariantSource
getVariants
in interface VariantSource
VariantSourceException
- Thrown when unable to return the variantsVariantSourceConfigurationException
- Thrown when the variant source is not configuredpublic void setInputStream(InputStream inputStream)
InputStreamVariantSource
setInputStream
in interface InputStreamVariantSource
inputStream
- The input streamCopyright © 2016. All Rights Reserved.