Class TRelationship
- java.lang.Object
-
- org.omg.spec.bpmn.model.TBaseElement
-
- org.omg.spec.bpmn.model.TRelationship
-
public class TRelationship extends TBaseElement
Java class for tRelationship complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="tRelationship"> <complexContent> <extension base="{http://www.omg.org/spec/BPMN/20100524/MODEL}tBaseElement"> <sequence> <element name="source" type="{http://www.w3.org/2001/XMLSchema}QName" maxOccurs="unbounded"/> <element name="target" type="{http://www.w3.org/2001/XMLSchema}QName" maxOccurs="unbounded"/> </sequence> <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="direction" type="{http://www.omg.org/spec/BPMN/20100524/MODEL}tRelationshipDirection" /> <anyAttribute processContents='lax' namespace='##other'/> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected TRelationshipDirectiondirectionprotected List<QName>sourceprotected List<QName>targetprotected Stringtype-
Fields inherited from class org.omg.spec.bpmn.model.TBaseElement
documentation, extensionElements, id
-
-
Constructor Summary
Constructors Constructor Description TRelationship()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TRelationshipDirectiongetDirection()Gets the value of the direction property.List<QName>getSource()Gets the value of the source property.List<QName>getTarget()Gets the value of the target property.StringgetType()Gets the value of the type property.voidsetDirection(TRelationshipDirection value)Sets the value of the direction property.voidsetType(String value)Sets the value of the type property.-
Methods inherited from class org.omg.spec.bpmn.model.TBaseElement
getDocumentation, getExtensionElements, getId, getOtherAttributes, setExtensionElements, setId
-
-
-
-
Method Detail
-
getSource
public List<QName> getSource()
Gets the value of the source property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the source property.For example, to add a new item, do as follows:
getSource().add(newItem);Objects of the following type(s) are allowed in the list
QName
-
getTarget
public List<QName> getTarget()
Gets the value of the target property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the target property.For example, to add a new item, do as follows:
getTarget().add(newItem);Objects of the following type(s) are allowed in the list
QName
-
getType
public String getType()
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
public void setType(String value)
Sets the value of the type property.- Parameters:
value- allowed object isString
-
getDirection
public TRelationshipDirection getDirection()
Gets the value of the direction property.- Returns:
- possible object is
TRelationshipDirection
-
setDirection
public void setDirection(TRelationshipDirection value)
Sets the value of the direction property.- Parameters:
value- allowed object isTRelationshipDirection
-
-