bbc.rd.tvanytime.segmentInformation
Class SegmentGroupType

java.lang.Object
  extended by bbc.rd.tvanytime.segmentInformation.SegmentGroupType
All Implemented Interfaces:
java.lang.Cloneable

public class SegmentGroupType
extends java.lang.Object
implements java.lang.Cloneable

SegmentGroupType: Represents a segment group type object

Version:
1.0
Author:
Tim Sargeant, BBC Research & Development, May 2002

Field Summary
static int ALTERNATIVE_GROUPS
           
static int BOOKMARKS
           
static int BOOKMARKS_EVENTS
           
static int BOOKMARKS_OBJECTS
           
static int HIGHLIGHTS
           
static int HIGHLIGHTS_EVENTS
           
static int HIGHLIGHTS_OBJECTS
           
static int INSERTION_POINTS
           
static int OTHER
           
static int PREVIEW
           
static int PREVIEW_SLIDESHOW
           
static int PREVIEW_TITLE
           
static int SHOTS
           
static int SYNOPSIS
           
static int TABLE_OF_CONTENTS
           
static int THEME_GROUP
           
 
Constructor Summary
SegmentGroupType()
          Constructor for objects of type SegmentGroupType
SegmentGroupType(int groupType)
          Constructor for objects of type SegmentGroupType with required fields
 
Method Summary
 java.lang.Object clone()
          Clones itself.
 int getType()
          Get the type of the title (BOOKMARKS, PREVIEW, THEME_GROUP, etc.)
 void setType(int groupType)
          Sets the group type
 java.lang.String toString()
          Return a string representation of this object.
 java.lang.String toString(int indent)
          Return a string representation of this object.
 java.lang.String toXML()
          Returns XML representation of this table.
 java.lang.String toXML(int indent)
          Returns XML representation of this table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HIGHLIGHTS

public static final int HIGHLIGHTS
See Also:
Constant Field Values

HIGHLIGHTS_OBJECTS

public static final int HIGHLIGHTS_OBJECTS
See Also:
Constant Field Values

HIGHLIGHTS_EVENTS

public static final int HIGHLIGHTS_EVENTS
See Also:
Constant Field Values

BOOKMARKS

public static final int BOOKMARKS
See Also:
Constant Field Values

BOOKMARKS_OBJECTS

public static final int BOOKMARKS_OBJECTS
See Also:
Constant Field Values

BOOKMARKS_EVENTS

public static final int BOOKMARKS_EVENTS
See Also:
Constant Field Values

THEME_GROUP

public static final int THEME_GROUP
See Also:
Constant Field Values

PREVIEW

public static final int PREVIEW
See Also:
Constant Field Values

PREVIEW_TITLE

public static final int PREVIEW_TITLE
See Also:
Constant Field Values

PREVIEW_SLIDESHOW

public static final int PREVIEW_SLIDESHOW
See Also:
Constant Field Values

TABLE_OF_CONTENTS

public static final int TABLE_OF_CONTENTS
See Also:
Constant Field Values

SYNOPSIS

public static final int SYNOPSIS
See Also:
Constant Field Values

SHOTS

public static final int SHOTS
See Also:
Constant Field Values

INSERTION_POINTS

public static final int INSERTION_POINTS
See Also:
Constant Field Values

ALTERNATIVE_GROUPS

public static final int ALTERNATIVE_GROUPS
See Also:
Constant Field Values

OTHER

public static final int OTHER
See Also:
Constant Field Values
Constructor Detail

SegmentGroupType

public SegmentGroupType()
Constructor for objects of type SegmentGroupType


SegmentGroupType

public SegmentGroupType(int groupType)
                 throws TVAnytimeException
Constructor for objects of type SegmentGroupType with required fields

Parameters:
groupType - the group type
Throws:
TVAnytimeException
Method Detail

getType

public int getType()
Get the type of the title (BOOKMARKS, PREVIEW, THEME_GROUP, etc.)

Returns:
the group type

setType

public void setType(int groupType)
             throws TVAnytimeException
Sets the group type

Parameters:
groupType - the group type
Throws:
TVAnytimeException - thrown when the group type is not valid

toXML

public java.lang.String toXML()
Returns XML representation of this table.

Returns:
XML representation of this table.

toXML

public java.lang.String toXML(int indent)
Returns XML representation of this table.

Parameters:
indent - Number of tabs with which to indent the string.
Returns:
XML representation of the table.

toString

public java.lang.String toString()
Return a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
string representation of this object.

toString

public java.lang.String toString(int indent)
Return a string representation of this object.

Parameters:
indent - number of tabs to put before the string.
Returns:
string representation of this object.

clone

public java.lang.Object clone()
Clones itself.

Overrides:
clone in class java.lang.Object
Returns:
A copy of itself.