use of org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort in project airavata by apache.
the class WSGraphFactory method createPort.
public PortImpl createPort(XmlElement portElement) {
String type = portElement.attributeValue(GraphSchema.NS, GraphSchema.PORT_TYPE_ATTRIBUTE);
if (type == null) {
// Old graphs don't have the namespace for the attribute.
type = portElement.attributeValue(GraphSchema.PORT_TYPE_ATTRIBUTE);
}
PortImpl port;
if (GraphSchema.PORT_TYPE_WS_DATA.equals(type)) {
port = new WSPort(portElement);
} else if (GraphSchema.PORT_TYPE_SYSTEM_DATA.equals(type)) {
port = new SystemDataPort(portElement);
} else if (GraphSchema.PORT_TYPE_CONTROL.equals(type)) {
port = new ControlPort(portElement);
} else if (GraphSchema.PORT_TYPE_EPR.equals(type)) {
port = new EPRPort(portElement);
} else if (GraphSchema.PORT_TYPE_INSTANCE.equals(type)) {
port = new InstanceDataPort(portElement);
} else {
// Default is WsPort because of backword compatibility
port = new WSPort(portElement);
}
return port;
}
use of org.apache.airavata.workflow.model.graph.amazon.InstanceDataPort in project airavata by apache.
the class InstanceComponentDataPort method createPort.
/**
* @see org.apache.airavata.workflow.model.component.ComponentDataPort#createPort()
*/
@Override
public DataPort createPort() {
DataPort n = new InstanceDataPort();
n.setName(PORT_NAME);
return n;
}
Aggregations