Class MoveAttributeMapping
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.move.MoveAttributeMapping
-
Method Summary
Modifier and TypeMethodDescriptionstatic MoveAttributeMapping
static MoveAttributeMapping
static MoveAttributeMapping
create
(ObjectTypeAttributeBean from, ObjectTypeAttributeBean to, ObjectAttributeTransformer transformer) getFrom()
getTo()
Should be performed when a mapping exists (if shouldMap == true)Should be performed when a mapping exists (if shouldMap == true)boolean
Should the from attribute be mapped or not.
-
Method Details
-
create
public static MoveAttributeMapping create(ObjectTypeAttributeBean from, ObjectTypeAttributeBean to, ObjectAttributeTransformer transformer) -
create
-
create
-
getTransformer
Should be performed when a mapping exists (if shouldMap == true)- Returns:
- the transformer that transforms the attribute from one object type attribute to the target object type attribute
- Throws:
NoSuchElementException
- if no mapping is present.
-
getFrom
-
shouldMap
public boolean shouldMap()Should the from attribute be mapped or not. If the from attribute does not have a mapping this will return false and other methods should not be called- Returns:
- should this be mapped
-
getTo
Should be performed when a mapping exists (if shouldMap == true)- Returns:
- the object type attribute that is the target for the move
- Throws:
NoSuchElementException
- if no mapping is present.
-