|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.BinaryLinkUtilities
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 |
private static final String RESOURCE
private static final String CLASSNAME
Constructor Detail |
public BinaryLinkUtilities()
Method Detail |
public static LinkInfo getLinkInfo(BinaryLink link) throws WTIntrospectionException
link
-
WTIntrospectionException
public static Persistable getOtherObject(BinaryLink link, Persistable obj) throws ObjectNotForLinkException
link
- obj
-
ObjectNotForLinkException
public static String getRole(BinaryLink link, Persistable obj) throws WTException, ObjectNotForLinkException
link
- obj
-
WTException
ObjectNotForLinkException
public static Persistable getRoleAObject(BinaryLink link)
link
-
public static void setRoleAObject(BinaryLink link, Persistable roleAObject)
link
- roleAObject
- The role A object for this Link.public static QueryKey getRoleAObjectId(BinaryLink link)
link
-
public static Persistable getRoleBObject(BinaryLink link)
link
-
public static void setRoleBObject(BinaryLink link, Persistable roleBObject)
link
- roleBObject
- The role B object for this Link.public static QueryKey getRoleBObjectId(BinaryLink link)
link
-
public static Object[] getAllObjects(BinaryLink link)
link
-
public static Object getRoleObject(BinaryLink link, String rolename) throws WTException
link
- rolename
-
WTException
public static void setRoleObject(BinaryLink link, Object roleObject, String rolename) throws WTException
link
- roleObject
- The role A object for this Link.rolename
-
WTException
public static boolean isRoleAObject(BinaryLink link, Persistable obj)
public static boolean isRoleBObject(BinaryLink link, Persistable obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |