Package uk.co.jemos.podam.api
Class AbstractMapArguments
- java.lang.Object
-
- uk.co.jemos.podam.api.AbstractMapArguments
-
- Direct Known Subclasses:
MapArguments,MapKeyOrElementsArguments
public abstract class AbstractMapArguments extends Object
Parent for map-related arguments POJO- Author:
- Marco Tedone
-
-
Field Summary
Fields Modifier and Type Field Description private List<Annotation>annotationsThe annotations for the attribute.private StringattributeNameThe name of map attribute in enclosing POJOprivate Class<?>keyOrValueTypeThe type of the Map key.private Map<? super Object,? super Object>mapToBeFilledThe Map to be returned.
-
Constructor Summary
Constructors Constructor Description AbstractMapArguments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Annotation>getAnnotations()StringgetAttributeName()Class<?>getKeyOrValueType()Map<? super Object,? super Object>getMapToBeFilled()voidsetAttributeName(String attributeName)voidsetKeyOrValueType(Class<?> keyOrValueType)voidsetMapToBeFilled(Map<? super Object,? super Object> mapToBeFilled)
-
-
-
Field Detail
-
attributeName
private String attributeName
The name of map attribute in enclosing POJO
-
keyOrValueType
private Class<?> keyOrValueType
The type of the Map key.
-
annotations
private List<Annotation> annotations
The annotations for the attribute.
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
- Returns:
- the attribute name for this map
-
setAttributeName
public void setAttributeName(String attributeName)
- Parameters:
attributeName- the attribute name for this map
-
getKeyOrValueType
public Class<?> getKeyOrValueType()
- Returns:
- the keyOrValueType
-
setKeyOrValueType
public void setKeyOrValueType(Class<?> keyOrValueType)
- Parameters:
keyOrValueType- the keyOrValueType to set
-
getMapToBeFilled
public Map<? super Object,? super Object> getMapToBeFilled()
- Returns:
- the mapToBeFilled
-
setMapToBeFilled
public void setMapToBeFilled(Map<? super Object,? super Object> mapToBeFilled)
- Parameters:
mapToBeFilled- the mapToBeFilled to set
-
getAnnotations
public List<Annotation> getAnnotations()
- Returns:
- the annotations
-
-