wt.fc
Class BinaryLinkUtilities

java.lang.Object
  extended bywt.fc.BinaryLinkUtilities

public class BinaryLinkUtilities
extends Object

Utility static methods for working with BinaryLink objects.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
BinaryLinkUtilities()
           
 
Method Summary
static Object[] getAllObjects(BinaryLink link)
          Gets all the role objects of this link.
static LinkInfo getLinkInfo(BinaryLink link)
          Return the LinkInfo object for this Link

Supported API: false
static Persistable getOtherObject(BinaryLink link, Persistable obj)
          

Supported API: false
static String getRole(BinaryLink link, Persistable obj)
          

Supported API: false
static Persistable getRoleAObject(BinaryLink link)
          Returns the role A object of this Link for this Link.
static QueryKey getRoleAObjectId(BinaryLink link)
          Return the object id of the role A object for this Link.
static Persistable getRoleBObject(BinaryLink link)
          Returns the role B object of this Link for this Link.
static QueryKey getRoleBObjectId(BinaryLink link)
          Return the object id of the role B object for this Link.
static Object getRoleObject(BinaryLink link, String rolename)
          Gets the role object of this link for the given role name.
static boolean isRoleAObject(BinaryLink link, Persistable obj)
          Returns whether or not the specified object is the object that plays role A in the specified link.
static boolean isRoleBObject(BinaryLink link, Persistable obj)
          Returns whether or not the specified object is the object that plays role B in the specified link.
static void setRoleAObject(BinaryLink link, Persistable roleAObject)
          Sets the role A object for this Link.
static void setRoleBObject(BinaryLink link, Persistable roleBObject)
          Sets the role B object for this Link.
static void setRoleObject(BinaryLink link, Object roleObject, String rolename)
          Sets the role object of this link for the given role name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

BinaryLinkUtilities

public BinaryLinkUtilities()
Method Detail

getLinkInfo

public static LinkInfo getLinkInfo(BinaryLink link)
                            throws WTIntrospectionException
Return the LinkInfo object for this Link

Supported API: false

Parameters:
link -
Returns:
LinkInfo
Throws:
WTIntrospectionException

getOtherObject

public static Persistable getOtherObject(BinaryLink link,
                                         Persistable obj)
                                  throws ObjectNotForLinkException


Supported API: false

Parameters:
link -
obj -
Returns:
Persistable
Throws:
ObjectNotForLinkException

getRole

public static String getRole(BinaryLink link,
                             Persistable obj)
                      throws WTException,
                             ObjectNotForLinkException


Supported API: false

Parameters:
link -
obj -
Returns:
String
Throws:
WTException
ObjectNotForLinkException

getRoleAObject

public static Persistable getRoleAObject(BinaryLink link)
Returns the role A object of this Link for this Link.

Supported API: false

Parameters:
link -
Returns:
Persistable

setRoleAObject

public static void setRoleAObject(BinaryLink link,
                                  Persistable roleAObject)
Sets the role A object for this Link.

Supported API: false

Parameters:
link -
roleAObject - The role A object for this Link.

getRoleAObjectId

public static QueryKey getRoleAObjectId(BinaryLink link)
Return the object id of the role A object for this Link.

Supported API: false

Parameters:
link -
Returns:
QueryKey

getRoleBObject

public static Persistable getRoleBObject(BinaryLink link)
Returns the role B object of this Link for this Link.

Supported API: false

Parameters:
link -
Returns:
Persistable

setRoleBObject

public static void setRoleBObject(BinaryLink link,
                                  Persistable roleBObject)
Sets the role B object for this Link.

Supported API: false

Parameters:
link -
roleBObject - The role B object for this Link.

getRoleBObjectId

public static QueryKey getRoleBObjectId(BinaryLink link)
Return the object id of the role B object for this Link.

Supported API: false

Parameters:
link -
Returns:
QueryKey

getAllObjects

public static Object[] getAllObjects(BinaryLink link)
Gets all the role objects of this link.

Supported API: false

Parameters:
link -
Returns:
Object[]

getRoleObject

public static Object getRoleObject(BinaryLink link,
                                   String rolename)
                            throws WTException
Gets the role object of this link for the given role name.

Supported API: false

Parameters:
link -
rolename -
Returns:
Object
Throws:
WTException

setRoleObject

public static void setRoleObject(BinaryLink link,
                                 Object roleObject,
                                 String rolename)
                          throws WTException
Sets the role object of this link for the given role name.

Supported API: false

Parameters:
link -
roleObject - The role A object for this Link.
rolename -
Throws:
WTException

isRoleAObject

public static boolean isRoleAObject(BinaryLink link,
                                    Persistable obj)
Returns whether or not the specified object is the object that plays role A in the specified link.


isRoleBObject

public static boolean isRoleBObject(BinaryLink link,
                                    Persistable obj)
Returns whether or not the specified object is the object that plays role B in the specified link.