Class StringTypeManufacturerImpl
- java.lang.Object
-
- uk.co.jemos.podam.typeManufacturers.AbstractTypeManufacturer<String>
-
- uk.co.jemos.podam.typeManufacturers.StringTypeManufacturerImpl
-
- All Implemented Interfaces:
TypeManufacturer<String>
public class StringTypeManufacturerImpl extends AbstractTypeManufacturer<String>
Default String type manufacturer. Created by tedonema on 17/05/2015.- Since:
- 6.0.0.RELEASE
-
-
Constructor Summary
Constructors Constructor Description StringTypeManufacturerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetStringOfLength(int length, AttributeMetadata attributeMetadata)It returns a String oflengthcharacters.StringgetStringValue(AttributeMetadata attributeMetadata)It returns a string valueStringgetType(DataProviderStrategy strategy, AttributeMetadata attributeMetadata, Map<String,Type> genericTypesArgumentsMap)Returns a type value conforming to the annotations and the AttributeMetadata provided.-
Methods inherited from class uk.co.jemos.podam.typeManufacturers.AbstractTypeManufacturer
findElementOfType, getDouble, getInteger
-
-
-
-
Method Detail
-
getType
public String getType(DataProviderStrategy strategy, AttributeMetadata attributeMetadata, Map<String,Type> genericTypesArgumentsMap)
Returns a type value conforming to the annotations and the AttributeMetadata provided.- Parameters:
strategy- The DataProviderStrategyattributeMetadata- The AttributeMetadatagenericTypesArgumentsMap- map with generic types mapped to actual types- Returns:
- A type value conforming to the annotations and the AttributeMetadata provided.
-
getStringValue
public String getStringValue(AttributeMetadata attributeMetadata)
It returns a string value- Parameters:
attributeMetadata- attribute metadata for instance to be fetched- Returns:
- A String of default length
-
getStringOfLength
public String getStringOfLength(int length, AttributeMetadata attributeMetadata)
It returns a String oflengthcharacters.- Parameters:
length- The number of characters required in the returned StringattributeMetadata- attribute metadata for instance to be fetched- Returns:
- A String of
lengthcharacters
-
-