| Modifier and Type | Field and Description |
|---|---|
protected S |
stereotype |
| Modifier | Constructor and Description |
|---|---|
protected |
InteractionUnit(QName id,
String label) |
protected |
InteractionUnit(QName id,
String label,
S stereotype) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(InteractionUnitVisitor visitor) |
void |
addMapping(Mapping mapping) |
boolean |
doesConsume() |
boolean |
doesConsume(Resource<ResourceType> event) |
boolean |
doesProduce() |
boolean |
doesProduce(Resource<ResourceType> resource) |
boolean |
equals(Object o) |
<T extends Mapping> |
findMapping(MappingType type)
Finds the first mapping of a type within the hierarchy.
|
<T extends Mapping> |
findMapping(MappingType type,
Predicate<T> predicate)
Finds the first mapping of a type within the hierarchy.
|
QName |
getId() |
Set<Resource<ResourceType>> |
getInputs() |
String |
getLabel() |
<T extends Mapping> |
getMapping(MappingType type)
Get a mapping local to this unit.
|
Set<Resource<ResourceType>> |
getOutputs() |
Container |
getParent() |
Integer |
getScopeId() |
S |
getStereotype() |
int |
hashCode() |
boolean |
hasMapping(MappingType type) |
boolean |
hasParent() |
void |
setInputs(Resource<ResourceType>... resource) |
void |
setLabel(String label) |
void |
setOutputs(Resource<ResourceType>... resource) |
void |
setScopeId(Integer scopeId) |
String |
toString() |
public S getStereotype()
public void addMapping(Mapping mapping)
public boolean hasMapping(MappingType type)
public <T extends Mapping> T getMapping(MappingType type)
T - type - public <T extends Mapping> T findMapping(MappingType type)
type - public <T extends Mapping> T findMapping(MappingType type, Predicate<T> predicate)
type - predicate - Use null to ignorepublic Set<Resource<ResourceType>> getInputs()
public boolean doesConsume(Resource<ResourceType> event)
doesConsume in interface SupportsConsumptionpublic void accept(InteractionUnitVisitor visitor)
public Container getParent()
public boolean hasParent()
public QName getId()
public String getLabel()
public void setLabel(String label)
public boolean doesConsume()
doesConsume in interface Consumerpublic boolean doesProduce()
doesProduce in interface Producerpublic boolean doesProduce(Resource<ResourceType> resource)
doesProduce in interface SupportsProductionpublic void setOutputs(Resource<ResourceType>... resource)
setOutputs in interface Producerpublic void setInputs(Resource<ResourceType>... resource)
public Set<Resource<ResourceType>> getOutputs()
getOutputs in interface Producerpublic Integer getScopeId()
public void setScopeId(Integer scopeId)
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.