*
* @param goalEntry The ManagementEntry representing a single goal.
*/
public static void printGoal(ManagementEntry goalEntry) {
Goal goal = goalEntry.getGoal();
System.out.println("Printing Goal #" + goal.getNumber());
System.out.println("Name: " + goal.getName());
System.out.println("Active? " + goal.getActive());
System.out.println("Value: " + goal.getValue());
if (goal.getDestination() != null) {
Destination destination = goal.getDestination();
System.out.println("Goal Type: Destination");
System.out.println("Destination - Case Sensitive: " + destination.getCaseSensitive());
System.out.println("Destination - Expression: " + destination.getExpression());
System.out.println("Destination - Match Type: " + destination.getMatchType());
System.out.println("Destination - Step 1 Required: : " + destination.getStep1Required());
System.out.println("Goal Steps: ");
for (Step step : goal.getDestination().getSteps()) {
System.out.println("Step: " + step.getNumber());
System.out.println("Name: " + step.getName());
System.out.println("Path: " + step.getPath());
}
} else if (goal.getEngagement() != null) {
Engagement engagement = goal.getEngagement();
System.out.println("Goal Type: Engagement");
System.out.println("Engagement - Type: " + engagement.getType());
System.out.println("Engagement - Threshhold Value: " + engagement.getThresholdValue());
System.out.println("Engagement - Comparison: " + engagement.getComparison());