Package com.google.gdata.data.analytics

Examples of com.google.gdata.data.analytics.Goal


   *
   * @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());

View Full Code Here

TOP

Related Classes of com.google.gdata.data.analytics.Goal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.