|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.Element
com.edustructures.sifworks.SIFElement
com.edustructures.sifworks.SIFList<Component>
com.edustructures.sifworks.instr.Components
public class Components
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
Components()
Constructor |
|
Components(Component component)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
void |
addComponent(java.lang.String name,
java.lang.String reference)
Adds a new <Component> repeatable element. |
Component |
getComponent(java.lang.String name,
java.lang.String reference)
Gets a Component object instance. |
Component[] |
getComponents()
Gets all Component object instances. |
void |
removeComponent(java.lang.String name,
java.lang.String reference)
Removes a Component object instance. |
void |
setComponents(Component[] components)
Sets an array of Component objects. |
| Methods inherited from class com.edustructures.sifworks.SIFList |
|---|
add, addAll, clear, contains, containsAll, get, iterator, remove, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, clone, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getKey, getSIFValue, getSIFVersion, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, setSIFVersion, setTextValue, setXmlId, tag |
| Methods inherited from class com.edustructures.sifworks.Element |
|---|
compareTo, getElementDef, getParent, getRoot, isChanged, isDoNotEncode, isEmpty, setChanged, setDoNotEncode, setElementDef, setEmpty, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode, isEmpty |
| Constructor Detail |
|---|
public Components()
public Components(Component component)
component - | Method Detail |
|---|
public void addComponent(java.lang.String name,
java.lang.String reference)
<Component> repeatable element.
This form of setComponent is provided as a convenience method
that is functionally equivalent to the version of setComponent
that accepts a single Component object.
name - Name of learning resource component within the resource, i.e. "Chapter 1, Section 4.reference - Description of where ResourceComponent is located within resource or in general, i.e. "Section 4, pages 32-38," or URL string, or whatever locator is appropriate for media.
public void removeComponent(java.lang.String name,
java.lang.String reference)
Component object instance. More than one instance can be defined for this object because it is a repeatable field element.
name - Identifies the Component object to remove by its Name valuereference - Identifies the Component object to remove by its Reference value
public Component getComponent(java.lang.String name,
java.lang.String reference)
Component object instance. More than one instance can be defined for this object because it is a repeatable field element.
name - Identifies the Component object to return by its "Name" attribute valuereference - Identifies the Component object to return by its "Reference" attribute value
Component objectpublic Component[] getComponents()
Component object instances. More than one instance can be defined for this object because it is a repeatable field element.
Component objectspublic void setComponents(Component[] components)
Component objects. All existing
Component instances
are removed and replaced with this list. Calling this method with the
parameter value set to null removes all Components.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||