Package org.testng.internal.annotations
Class FactoryAnnotation
- java.lang.Object
-
- org.testng.internal.annotations.BaseAnnotation
-
- org.testng.internal.annotations.FactoryAnnotation
-
- All Implemented Interfaces:
IAnnotation
,IFactoryAnnotation
,IParameterizable
,IDataProvidable
public class FactoryAnnotation extends BaseAnnotation implements IFactoryAnnotation
An implementation of IFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
m_dataProvider
private java.lang.Class<?>
m_dataProviderClass
private boolean
m_enabled
private java.util.List<java.lang.Integer>
m_indices
-
Constructor Summary
Constructors Constructor Description FactoryAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDataProvider()
java.lang.Class<?>
getDataProviderClass()
boolean
getEnabled()
Whether this annotation is enabled.java.util.List<java.lang.Integer>
getIndices()
void
setDataProvider(java.lang.String dataProvider)
void
setDataProviderClass(java.lang.Class<?> dataProviderClass)
void
setEnabled(boolean enabled)
void
setIndices(java.util.List<java.lang.Integer> indices)
-
Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
-
-
-
-
Method Detail
-
getDataProvider
public java.lang.String getDataProvider()
- Specified by:
getDataProvider
in interfaceIDataProvidable
-
setDataProvider
public void setDataProvider(java.lang.String dataProvider)
- Specified by:
setDataProvider
in interfaceIDataProvidable
-
setDataProviderClass
public void setDataProviderClass(java.lang.Class<?> dataProviderClass)
- Specified by:
setDataProviderClass
in interfaceIDataProvidable
-
getDataProviderClass
public java.lang.Class<?> getDataProviderClass()
- Specified by:
getDataProviderClass
in interfaceIDataProvidable
-
getEnabled
public boolean getEnabled()
Description copied from interface:IParameterizable
Whether this annotation is enabled.- Specified by:
getEnabled
in interfaceIParameterizable
- Returns:
- true if enabled
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceIParameterizable
-
getIndices
public java.util.List<java.lang.Integer> getIndices()
- Specified by:
getIndices
in interfaceIFactoryAnnotation
-
setIndices
public void setIndices(java.util.List<java.lang.Integer> indices)
- Specified by:
setIndices
in interfaceIFactoryAnnotation
-
-