public class DirectedRelationVO extends XMLBean
CLASSNAME, CLASSTYPE, DEFAULT_VISIBILITY, NOT_VISIBLE, VISIBLE
Constructor and Description |
---|
DirectedRelationVO() |
DirectedRelationVO(RelationVO relation,
boolean forward)
Constructor used to store a RelationVO and a sense.
|
DirectedRelationVO(RelationVO relation,
RoleVO sourceRole,
RoleVO destRole)
Constructor to store RelationVO and the source & destination roles.
|
DirectedRelationVO(java.lang.String through,
boolean forward)
Constructor to store the relation name and sense.
|
Modifier and Type | Method and Description |
---|---|
RoleVO |
getDestinationRole() |
RelationVO |
getForwardRelationVO()
Returns the internal RelationVO or its inverse
depending on isForward() being true or false
|
RelationVO |
getRelation() |
RoleVO |
getSourceRole() |
java.lang.String |
getThrough() |
boolean |
isForward() |
void |
setDestinationRole(RoleVO destinationRole) |
void |
setForward(boolean forward) |
void |
setRelation(RelationVO relation) |
void |
setSourceRole(RoleVO sourceRole) |
void |
setThrough(java.lang.String through) |
java.lang.String |
toString() |
copyToInstance, export2csv, getComments, getDescId, getGeneratedAt, getGenericAttr, getIcon, getIconName, getId, getLabel, getName, getO, getOrd, getVisibility, isDirty, isEnabled, isErased, isMandatory, isReadOnly, readFromFile, readFromStream, refreshMyLabel, refreshMyLabel, setComments, setDescId, setDirty, setEnabled, setErased, setGeneratedAt, setGenericAttr, setIcon, setIconName, setId, setLabel, setName, setO, setOrd, setVisibility, updateFromInstance, writeToFile, writeToStream, xmlSerialize
decode64, decode64bin, encode64, encode64bin, readObject, readObject64, toBean, toByteArray, toJSON, toJSONObject, toXML
public DirectedRelationVO()
public DirectedRelationVO(java.lang.String through, boolean forward)
through
- forward
- public DirectedRelationVO(RelationVO relation, boolean forward)
relation
- forward
- public DirectedRelationVO(RelationVO relation, RoleVO sourceRole, RoleVO destRole)
relation
- sourceRole
- destRole
- public RoleVO getDestinationRole()
public void setDestinationRole(RoleVO destinationRole)
public RelationVO getRelation()
public void setRelation(RelationVO relation)
public RoleVO getSourceRole()
public void setSourceRole(RoleVO sourceRole)
public boolean isForward()
public void setForward(boolean forward)
public java.lang.String getThrough()
public void setThrough(java.lang.String through)
public RelationVO getForwardRelationVO()