org.qtitools.qti.node.item
Class Stylesheet

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.item.Stylesheet
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable

public class Stylesheet
extends AbstractObject

Used to associate an external stylesheet with an assessmentItem.

Author:
Jonathon Hare
See Also:
Serialized Form

Field Summary
static java.lang.String ATTR_HREF_NAME
          Name of href attribute in xml schema.
static java.lang.String ATTR_MEDIA_NAME
          Name of media attribute in xml schema.
static java.lang.String ATTR_TITLE_NAME
          Name of title attribute in xml schema.
static java.lang.String ATTR_TYPE_NAME
          Name of type attribute in xml schema.
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Fields inherited from interface org.qtitools.qti.node.XmlNode
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR
 
Constructor Summary
Stylesheet(AssessmentItem parent)
          Construct A stylesheet
 
Method Summary
 java.lang.String getClassTag()
          Gets QTI class name of this node.
 java.net.URI getHref()
          Gets value of href attribute.
 java.lang.String getMedia()
          Gets value of media attribute.
 java.lang.String getTitle()
          Gets value of title attribute.
 java.lang.String getType()
          Gets value of type attribute.
 void setHref(java.net.URI href)
          Sets new value of href attribute.
 void setMedia(java.lang.String media)
          Sets new value of media attribute.
 void setTitle(java.lang.String title)
          Sets new value of title attribute.
 void setType(java.lang.String type)
          Sets new value of type attribute.
 
Methods inherited from class org.qtitools.qti.node.AbstractObject
getParent, getParentItem, getParentResult, getParentTest, setParent
 
Methods inherited from class org.qtitools.qti.node.AbstractNode
attrToXmlString, bodyToXmlString, getAttributes, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validate, validateAttributes, validateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qtitools.qti.node.XmlNode
getAttributes, getFullName, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString
 
Methods inherited from interface org.qtitools.qti.validation.Validatable
validate
 

Field Detail

CLASS_TAG

public static final java.lang.String CLASS_TAG
Name of this class in xml schema.

See Also:
Constant Field Values

ATTR_HREF_NAME

public static final java.lang.String ATTR_HREF_NAME
Name of href attribute in xml schema.

See Also:
Constant Field Values

ATTR_TYPE_NAME

public static final java.lang.String ATTR_TYPE_NAME
Name of type attribute in xml schema.

See Also:
Constant Field Values

ATTR_MEDIA_NAME

public static final java.lang.String ATTR_MEDIA_NAME
Name of media attribute in xml schema.

See Also:
Constant Field Values

ATTR_TITLE_NAME

public static final java.lang.String ATTR_TITLE_NAME
Name of title attribute in xml schema.

See Also:
Constant Field Values
Constructor Detail

Stylesheet

public Stylesheet(AssessmentItem parent)
Construct A stylesheet

Parameters:
parent - Parent assessmentItem
Method Detail

getClassTag

public java.lang.String getClassTag()
Description copied from interface: XmlNode
Gets QTI class name of this node.

QTI class name has very important role during loading/saving nodes.

For example: Java class name is AssessmentTest; QTI class name is assessmentTest.

Specified by:
getClassTag in interface XmlNode
Specified by:
getClassTag in class AbstractNode
Returns:
QTI class name of this node

getHref

public java.net.URI getHref()
Gets value of href attribute.

Returns:
value of href attribute
See Also:
setHref(java.net.URI)

setHref

public void setHref(java.net.URI href)
Sets new value of href attribute.

Parameters:
href - new value of href attribute
See Also:
getHref()

getType

public java.lang.String getType()
Gets value of type attribute.

Returns:
value of type attribute
See Also:
setType(java.lang.String)

setType

public void setType(java.lang.String type)
Sets new value of type attribute.

Parameters:
type - new value of type attribute
See Also:
getType()

getMedia

public java.lang.String getMedia()
Gets value of media attribute.

Returns:
value of media attribute
See Also:
setMedia(java.lang.String)

setMedia

public void setMedia(java.lang.String media)
Sets new value of media attribute.

Parameters:
media - new value of media attribute
See Also:
getMedia()

getTitle

public java.lang.String getTitle()
Gets value of title attribute.

Returns:
value of title attribute
See Also:
setTitle(java.lang.String)

setTitle

public void setTitle(java.lang.String title)
Sets new value of title attribute.

Parameters:
title - new value of title attribute
See Also:
getTitle()


Copyright © 2009. All Rights Reserved.