org.sandev.TaskHeap.util
Class PlanComponentUtil

java.lang.Object
  extended byorg.sandev.TaskHeap.util.PlanComponentUtil

public class PlanComponentUtil
extends java.lang.Object

Useful utility methods for dealing with PlanComponent derived classes.


Constructor Summary
PlanComponentUtil()
           
 
Method Summary
static java.lang.String getName(org.sandev.basics.structs.SandStructMessage ssm)
          Return the value of the name field, or the empty string if this is not a PlanComponentStruct derived message.
static Note[] getNotes(org.sandev.basics.structs.SandStructMessage ssm)
          Return the notes array of the given PlanComponent message, or an empty array otherwise.
static long getParent(org.sandev.basics.structs.SandStructMessage ssm)
          Return the parent id of the given PlanComponent message, or zero if none was found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanComponentUtil

public PlanComponentUtil()
Method Detail

getName

public static java.lang.String getName(org.sandev.basics.structs.SandStructMessage ssm)
Return the value of the name field, or the empty string if this is not a PlanComponentStruct derived message.


getParent

public static long getParent(org.sandev.basics.structs.SandStructMessage ssm)
Return the parent id of the given PlanComponent message, or zero if none was found.


getNotes

public static Note[] getNotes(org.sandev.basics.structs.SandStructMessage ssm)
Return the notes array of the given PlanComponent message, or an empty array otherwise.