com.objectxp.mms.message.smil
Class Body

java.lang.Object
  extended by com.objectxp.mms.message.smil.Element
      extended by com.objectxp.mms.message.smil.Body

public class Body
extends Element

This class represents the SMIL "body" element. The body element contains information that is related to the temporal and linking behavior of the document. It acts as the root element of the timing tree.

Since:
jSMS 2.0

Field Summary
 
Fields inherited from class com.objectxp.mms.message.smil.Element
COMMON_CLASS, COMMON_ID, COMMON_TITLE, COMMON_XML_LANG, CONTCTRL_AUDIO_DESC, CONTCTRL_BITRATE, CONTCTRL_CAPTIONS, CONTCTRL_COMPONENT, CONTCTRL_CPU, CONTCTRL_LANGUAGE, CONTCTRL_OPERATING_SYSTEM, CONTCTRL_OVERDUB_OR_SUBTITLE, CONTCTRL_REQUIRED, CONTCTRL_SCREEN_DEPTH, CONTCTRL_SCREEN_SIZE, LINKING_ACCESSKEY, LINKING_ACTUATE, LINKING_ALT, LINKING_DEST_LEVEL, LINKING_DEST_PLAYSTATE, LINKING_EXTERNAL, LINKING_HREF, LINKING_SHOW, LINKING_SRC_LEVEL, LINKING_SRC_PLAYSTATE, LINKING_TABINDEX, LINKING_TARGET, MEDIA_SRC, MEDIA_TYPE, TIMING_BEGIN, TIMING_DUR, TIMING_END, TIMING_ENDSYNC, TIMING_FILL, TIMING_MAX, TIMING_MIN, TIMING_REPEAT_COUNT, TIMING_REPEAT_DUR
 
Constructor Summary
Body()
          Create a new Body.
 
Method Summary
 Element addAttribute(java.lang.String name, java.lang.String value)
          Add a COMMON attribute for this body element.
 Body addElement(Element element)
          Add a element to the Body.
 
Methods inherited from class com.objectxp.mms.message.smil.Element
getElements, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Body

public Body()
Create a new Body.

Method Detail

addElement

public Body addElement(Element element)
                throws java.lang.IllegalArgumentException
Add a element to the Body. Valid elements are:
  • Parameters:
    element - a element
    Throws:
    java.lang.IllegalArgumentException - for invalid elements

    addAttribute

    public Element addAttribute(java.lang.String name,
                                java.lang.String value)
                         throws java.lang.IllegalArgumentException
    Add a COMMON attribute for this body element.

    Overrides:
    addAttribute in class Element
    Parameters:
    name - the attribute name
    value - the attribute value
    Returns:
    this Element
    Throws:
    java.lang.IllegalArgumentException - for invalid attributes


    object XP, Inc. © 2000-2008. All rights reserved object XP