public class NodeAssociationParserImpl extends Object implements NodeAssociationParser
Modifier and Type | Field and Description |
---|---|
static String |
ASSOCIATION_TYPE |
static String |
SINK_NODE_ENTITY |
static String |
SINK_NODE_ID |
static String |
SOURCE_NODE_ENTITY |
static String |
SOURCE_NODE_ID |
AFFECTS_VERSION_TYPE, COMPONENT_TYPE, FIX_VERSION_TYPE, NODE_ASSOCIATION_ENTITY_NAME
Constructor and Description |
---|
NodeAssociationParserImpl() |
Modifier and Type | Method and Description |
---|---|
EntityRepresentation |
getEntityRepresentation(ExternalNodeAssociation nodeAssociation)
Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the
provided node association.
|
ExternalNodeAssociation |
parse(Map attributes)
Transforms a set of attributes into a NodeAssociation.
|
public static final String SOURCE_NODE_ID
public static final String SOURCE_NODE_ENTITY
public static final String SINK_NODE_ID
public static final String SINK_NODE_ENTITY
public static final String ASSOCIATION_TYPE
public ExternalNodeAssociation parse(Map attributes) throws ParseException
NodeAssociationParser
parse
in interface NodeAssociationParser
attributes
- is a map of key value pairs that represent the attributes of a NodeAssocation. The following
attributes are required, otherwise a ParseException will be thrown:ParseException
- If the attributes are invalid.public EntityRepresentation getEntityRepresentation(ExternalNodeAssociation nodeAssociation)
NodeAssociationParser
getEntityRepresentation
in interface NodeAssociationParser
nodeAssociation
- contains the populated fields that will end up in the EntityRepresentations mapCopyright © 2002-2015 Atlassian. All Rights Reserved.