OMS (v3.0.25)

oms3.util
Class Annotations

java.lang.Object
  extended by oms3.util.Annotations

public class Annotations
extends java.lang.Object

Annotation utilities.

Author:
od

Method Summary
static boolean isIn(java.lang.reflect.Field f)
          Checks is a field is tagged as 'In'
static boolean isInOut(java.lang.reflect.Field f)
           
static boolean isOut(java.lang.reflect.Field f)
           
static boolean plays(Role role, java.lang.String r)
          Checks if one role is played.
static boolean playsAll(Role role, java.lang.String... r)
          Checks if all roles are played.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

playsAll

public static boolean playsAll(Role role,
                               java.lang.String... r)
Checks if all roles are played.

Parameters:
role - the role to check.
r - the roles that all have to be played
Returns:
true or false.

plays

public static boolean plays(Role role,
                            java.lang.String r)
Checks if one role is played.

Parameters:
role - the role to check
r - the expected role
Returns:
true or false.

isIn

public static boolean isIn(java.lang.reflect.Field f)
Checks is a field is tagged as 'In'

Parameters:
f - the field to check
Returns:
true is 'In', false otherwise.

isOut

public static boolean isOut(java.lang.reflect.Field f)

isInOut

public static boolean isInOut(java.lang.reflect.Field f)

OMS (v3.0.25)

Generated 2010-08-11 08:44:20 MDT, USDA-ARS-ASRU/CSU, 2150 Center Ave, Fort Collins, CO 80526, U.S.A.