ext.sulis
Class SulisStructHelper

java.lang.Object
  extended by ext.sulis.SulisStructHelper

public class SulisStructHelper
extends java.lang.Object

purpose: provide static methods for checking WTParts CAD Objects/Structure


Constructor Summary
SulisStructHelper()
           
 
Method Summary
static boolean checkCadObjs(java.lang.Object o, java.util.Hashtable okStates)
          answer true or false if a Part's related CAD Objects are completely in acceptable state[s] (usually RELEASED)
static boolean checkPart(java.lang.Object o, java.util.Hashtable okStates, boolean checkSelf)
          answer true or false if a Part's children hava a (formerly) released version, and related CAD Objects are completely in acceptable state[s] (usually RELEASED)
static boolean checkPN(wt.maturity.PromotionNotice pn, java.util.Hashtable okStates, boolean checkSelf, java.util.Hashtable bad)
          answer true or false if all Parts in a PN are OK
static void main(java.lang.String[] a)
          print program usage info or call checkCadObjs() with supplied WTPart-OBID STATUS [STATUS ...]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SulisStructHelper

public SulisStructHelper()
Method Detail

main

public static void main(java.lang.String[] a)
                 throws java.lang.Exception
print program usage info or call checkCadObjs() with supplied WTPart-OBID STATUS [STATUS ...]

Parameters:
a - commandline args
Throws:
java.lang.Exception

checkPN

public static boolean checkPN(wt.maturity.PromotionNotice pn,
                              java.util.Hashtable okStates,
                              boolean checkSelf,
                              java.util.Hashtable bad)
answer true or false if all Parts in a PN are OK

Parameters:
obid -
okStates -
Returns:
boolean
Throws:
wt.util.WTException

checkPart

public static boolean checkPart(java.lang.Object o,
                                java.util.Hashtable okStates,
                                boolean checkSelf)
                         throws wt.util.WTException
answer true or false if a Part's children hava a (formerly) released version, and related CAD Objects are completely in acceptable state[s] (usually RELEASED)

Parameters:
obid -
okStates -
Returns:
boolean
Throws:
wt.util.WTException

checkCadObjs

public static boolean checkCadObjs(java.lang.Object o,
                                   java.util.Hashtable okStates)
                            throws wt.util.WTException
answer true or false if a Part's related CAD Objects are completely in acceptable state[s] (usually RELEASED)

Parameters:
obid -
okStates -
Returns:
boolean
Throws:
wt.util.WTException