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.Stringm_dataProviderprivate java.lang.Class<?>m_dataProviderClassprivate booleanm_enabledprivate 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.StringgetDataProvider()java.lang.Class<?>getDataProviderClass()booleangetEnabled()Whether this annotation is enabled.java.util.List<java.lang.Integer>getIndices()voidsetDataProvider(java.lang.String dataProvider)voidsetDataProviderClass(java.lang.Class<?> dataProviderClass)voidsetEnabled(boolean enabled)voidsetIndices(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:
getDataProviderin interfaceIDataProvidable
-
setDataProvider
public void setDataProvider(java.lang.String dataProvider)
- Specified by:
setDataProviderin interfaceIDataProvidable
-
setDataProviderClass
public void setDataProviderClass(java.lang.Class<?> dataProviderClass)
- Specified by:
setDataProviderClassin interfaceIDataProvidable
-
getDataProviderClass
public java.lang.Class<?> getDataProviderClass()
- Specified by:
getDataProviderClassin interfaceIDataProvidable
-
getEnabled
public boolean getEnabled()
Description copied from interface:IParameterizableWhether this annotation is enabled.- Specified by:
getEnabledin interfaceIParameterizable- Returns:
- true if enabled
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceIParameterizable
-
getIndices
public java.util.List<java.lang.Integer> getIndices()
- Specified by:
getIndicesin interfaceIFactoryAnnotation
-
setIndices
public void setIndices(java.util.List<java.lang.Integer> indices)
- Specified by:
setIndicesin interfaceIFactoryAnnotation
-
-