org.activemath.webapp.tutor.cgWebService.scorm.simpleScorm2004
Class Item

java.lang.Object
  extended by org.activemath.webapp.tutor.cgWebService.scorm.simpleScorm2004.Item

public class Item
extends Object

This class represents Manifest Items according to SCORM2004 specification of Content Packaging. An Item can be output as XML Stream.


Constructor Summary
Item()
          First the number of objects of this class will be counted, and then the identifier of Item will be generated based on this number.
 
Method Summary
 void dump(StringBuffer buf, int depth)
          Dumps the contents of this subtree into the provided string buffer.
 void dumpMetadata(StringBuffer buf, int depth)
          Dumps the metadata into the given buffer.
 void dumpTitle(StringBuffer buf, int depth)
          Dumps the title into the given buffer.
 void parse(OJElement omgroup)
          Parses the given omgroup with the goal of creating different kinds of items according to SCORM2004.
 void parse(OJref ref)
          Parses the given reference with the goal of creating an Item that contains reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Item

public Item()
First the number of objects of this class will be counted, and then the identifier of Item will be generated based on this number. Other members of this object will be initialised here.

Method Detail

parse

public void parse(OJElement omgroup)
Parses the given omgroup with the goal of creating different kinds of items according to SCORM2004. Each Omgroup, which is not on the root of OJDocument, and contains other omgroups, will be converted into Item without resource references. Each Omgroup, which contains References, will be converted into Items with resource reference.

Parameters:
omgroup -

parse

public void parse(OJref ref)
Parses the given reference with the goal of creating an Item that contains reference.

Parameters:
ref -

dump

public void dump(StringBuffer buf,
                 int depth)
Dumps the contents of this subtree into the provided string buffer.


dumpTitle

public void dumpTitle(StringBuffer buf,
                      int depth)
Dumps the title into the given buffer.

Parameters:
buf -
depth -

dumpMetadata

public void dumpMetadata(StringBuffer buf,
                         int depth)
Dumps the metadata into the given buffer. Currently there's no metadata parsed.

Parameters:
buf -
depth -