com.irisel.oms.olapi.beans
Class DirectedRelationVO

java.lang.Object
  extended by com.irisel.util.BaseBean
      extended by com.irisel.oms.olapi.beans.XMLBean
          extended by 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

Field Summary
 
Fields inherited from class com.irisel.oms.olapi.beans.XMLBean
CLASSNAME, CLASSTYPE, DEFAULT_VISIBILITY, NOT_VISIBLE, VISIBLE
 
Fields inherited from interface com.irisel.util.XMLBean
CSV
 
Constructor Summary
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.
 
Method Summary
 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()
           
 
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
 

Constructor Detail

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 -
Method Detail

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: