com.irisel.oms.olapi.beans
Class DirectedRelationVO
java.lang.Object
com.irisel.util.BaseBean
com.irisel.oms.olapi.beans.XMLBean
com.irisel.oms.olapi.beans.DirectedRelationVO
- All Implemented Interfaces:
- XMLBean, java.io.Serializable
public class DirectedRelationVO
- extends XMLBean
This class is to store a Relation and sense.
The relation can be stored as a RelationVO object or as a String, depending on the constructor used.
- Author:
- Jose Manuel Gomez Alvarez
- See Also:
- Serialized Form
Fields inherited from interface com.irisel.util.XMLBean |
CSV |
Methods inherited from class com.irisel.oms.olapi.beans.XMLBean |
copyToInstance, export2csv, getDescId, getGeneratedAt, getGenericAttr, getIcon, getIconName, getId, getLabel, getName, getO, getOrd, getVisibility, isDirty, isEnabled, isErased, isMandatory, isReadOnly, readFromFile, readFromStream, setDescId, setDirty, setEnabled, setErased, setGeneratedAt, setGenericAttr, setIcon, setIconName, setId, setLabel, setName, setO, setOrd, setVisibility, updateFromInstance, writeToFile, writeToStream, xmlSerialize |
Methods inherited from class com.irisel.util.BaseBean |
decode64, decode64bin, encode64, encode64bin, readObject, readObject64, toBean, toByteArray, toJSON, toJSONObject, toXML |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DirectedRelationVO
public DirectedRelationVO()
DirectedRelationVO
public DirectedRelationVO(java.lang.String through,
boolean forward)
- Constructor to store the relation name and sense.
The internal RelationVO is not initialized.
- Parameters:
through
- forward
-
DirectedRelationVO
public DirectedRelationVO(RelationVO relation,
boolean forward)
- Constructor used to store a RelationVO and a sense.
- Parameters:
relation
- forward
-
DirectedRelationVO
public DirectedRelationVO(RelationVO relation,
RoleVO sourceRole,
RoleVO destRole)
- Constructor to store RelationVO and the source & destination roles.
- Parameters:
relation
- sourceRole
- destRole
-
getDestinationRole
public RoleVO getDestinationRole()
setDestinationRole
public void setDestinationRole(RoleVO destinationRole)
getRelation
public RelationVO getRelation()
setRelation
public void setRelation(RelationVO relation)
getSourceRole
public RoleVO getSourceRole()
setSourceRole
public void setSourceRole(RoleVO sourceRole)
isForward
public boolean isForward()
setForward
public void setForward(boolean forward)
getThrough
public java.lang.String getThrough()
setThrough
public void setThrough(java.lang.String through)
toString
public java.lang.String toString()
- Overrides:
toString
in class XMLBean
getForwardRelationVO
public RelationVO getForwardRelationVO()
- Returns the internal RelationVO or its inverse
depending on isForward() being true or false
- Returns: