com.edustructures.sifworks.assessment
Class Item

java.lang.Object
  extended by com.edustructures.sifworks.Element
      extended by com.edustructures.sifworks.SIFElement
          extended by com.edustructures.sifworks.SIFKeyedElement
              extended by com.edustructures.sifworks.assessment.Item
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Item
extends SIFKeyedElement

Since:
2.0
Version:
2.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.edustructures.sifworks.Element
CURRENT_SERIALIZE_VERSION
 
Constructor Summary
Item()
          Constructor
Item(java.lang.String itemNumber)
          Constructor that accepts values for all mandatory fields
 
Method Summary
 java.lang.String getDiagnosticStatement()
          Gets the value of the <DiagnosticStatement> element.
 java.lang.String getItemName()
          Gets the value of the <ItemName> element.
 java.lang.String getItemNumber()
          Gets the value of the <ItemNumber> element.
 java.lang.String getKey()
          Gets the key of this object
 ElementDef[] getKeyFields()
          Gets the metadata fields that make up the key of this object
 java.lang.Integer getNumberOfAttempts()
          Gets the value of the <NumberOfAttempts> element.
 java.lang.String getResponse()
          Gets the value of the <Response> element.
 java.lang.String getResponseLocation()
          Gets the value of the <ResponseLocation> element.
 java.lang.String getResponseStatus()
          Gets the value of the <ResponseStatus> element.
 javax.xml.datatype.Duration getResponseTime()
          Gets the value of the <ResponseTime> element.
 void setDiagnosticStatement(java.lang.String value)
          Sets the value of the <DiagnosticStatement> element.
 void setItemName(java.lang.String value)
          Sets the value of the <ItemName> element.
 void setItemNumber(java.lang.String value)
          Sets the value of the <ItemNumber> element.
 void setNumberOfAttempts(java.lang.Integer value)
          Sets the value of the <NumberOfAttempts> element.
 void setResponse(java.lang.String value)
          Sets the value of the <Response> element.
 void setResponseLocation(java.lang.String value)
          Sets the value of the <ResponseLocation> element.
 void setResponseStatus(ResponseStatus value)
          Sets the value of the <ResponseStatus> element.
 void setResponseStatus(java.lang.String value)
          Sets the value of the <ResponseStatus> element as a String.
 void setResponseTime(javax.xml.datatype.Duration value)
          Sets the value of the <ResponseTime> element.
 
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, 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
 

Constructor Detail

Item

public Item()
Constructor


Item

public Item(java.lang.String itemNumber)
Constructor that accepts values for all mandatory fields

Parameters:
itemNumber - Identifies the item on the assessment by number.
Method Detail

getKey

public java.lang.String getKey()
Gets the key of this object

Overrides:
getKey in class SIFElement
Returns:
The value of the object's Mandatory or Required attribute. If an object has more than one such attribute, the key is a period- delimited concatenation of the attribute values in sequential order

getKeyFields

public ElementDef[] getKeyFields()
Gets the metadata fields that make up the key of this object

Returns:
an array of metadata fields that make up the object's key

getItemNumber

public java.lang.String getItemNumber()
Gets the value of the <ItemNumber> element.

The SIF specification defines the meaning of this element as: "Identifies the item on the assessment by number."

Returns:
The ItemNumber element of this object.
Since:
2.0

setItemNumber

public void setItemNumber(java.lang.String value)
Sets the value of the <ItemNumber> element.

The SIF specification defines the meaning of this element as: "Identifies the item on the assessment by number."

Parameters:
value - A String object
Since:
2.0

getResponse

public java.lang.String getResponse()
Gets the value of the <Response> element.

The SIF specification defines the meaning of this element as: "Answer selected or student work in raw format."

Returns:
The Response element of this object.
Since:
2.0

setResponse

public void setResponse(java.lang.String value)
Sets the value of the <Response> element.

The SIF specification defines the meaning of this element as: "Answer selected or student work in raw format."

Parameters:
value - A String object
Since:
2.0

getResponseLocation

public java.lang.String getResponseLocation()
Gets the value of the <ResponseLocation> element.

The SIF specification defines the meaning of this element as: "An optional element that contains a URL pointing to the location of the response or additional response."

Returns:
The ResponseLocation element of this object.
Since:
2.0

setResponseLocation

public void setResponseLocation(java.lang.String value)
Sets the value of the <ResponseLocation> element.

The SIF specification defines the meaning of this element as: "An optional element that contains a URL pointing to the location of the response or additional response."

Parameters:
value - A String object
Since:
2.0

getResponseStatus

public java.lang.String getResponseStatus()
Gets the value of the <ResponseStatus> element.

The SIF specification defines the meaning of this element as: "Status of the response."

Returns:
The ResponseStatus element of this object.
Since:
2.0

setResponseStatus

public void setResponseStatus(ResponseStatus value)
Sets the value of the <ResponseStatus> element.

The SIF specification defines the meaning of this element as: "Status of the response."

Parameters:
value - A constant defined by the ResponseStatus class
Since:
2.0

setResponseStatus

public void setResponseStatus(java.lang.String value)
Sets the value of the <ResponseStatus> element as a String.

The SIF specification defines the meaning of this element as: "Status of the response."

Parameters:
value - The value as a String
Since:
2.0

getResponseTime

public javax.xml.datatype.Duration getResponseTime()
Gets the value of the <ResponseTime> element.

The SIF specification defines the meaning of this element as: "The length of time the student took to respond."

Returns:
The ResponseTime element of this object.
Since:
2.0

setResponseTime

public void setResponseTime(javax.xml.datatype.Duration value)
Sets the value of the <ResponseTime> element.

The SIF specification defines the meaning of this element as: "The length of time the student took to respond."

Parameters:
value - A javax.xml.datatype.Duration object
Since:
2.0

getItemName

public java.lang.String getItemName()
Gets the value of the <ItemName> element.

The SIF specification defines the meaning of this element as: "Identifies the item on the assessment by name."

Returns:
The ItemName element of this object.
Since:
2.0

setItemName

public void setItemName(java.lang.String value)
Sets the value of the <ItemName> element.

The SIF specification defines the meaning of this element as: "Identifies the item on the assessment by name."

Parameters:
value - A String object
Since:
2.0

getDiagnosticStatement

public java.lang.String getDiagnosticStatement()
Gets the value of the <DiagnosticStatement> element.

The SIF specification defines the meaning of this element as: "Psychometric purpose or design-related comment about the question."

Returns:
The DiagnosticStatement element of this object.
Since:
2.0

setDiagnosticStatement

public void setDiagnosticStatement(java.lang.String value)
Sets the value of the <DiagnosticStatement> element.

The SIF specification defines the meaning of this element as: "Psychometric purpose or design-related comment about the question."

Parameters:
value - A String object
Since:
2.0

getNumberOfAttempts

public java.lang.Integer getNumberOfAttempts()
Gets the value of the <NumberOfAttempts> element.

The SIF specification defines the meaning of this element as: "The number of times a student changes their answer or attempts a response."

Returns:
The NumberOfAttempts element of this object.
Since:
2.0

setNumberOfAttempts

public void setNumberOfAttempts(java.lang.Integer value)
Sets the value of the <NumberOfAttempts> element.

The SIF specification defines the meaning of this element as: "The number of times a student changes their answer or attempts a response."

Parameters:
value - A Integer object
Since:
2.0


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.