org.sakaiproject.tool.gradebook.facades.sakai2impl
Class XmlImportable

java.lang.Object
  extended by org.sakaiproject.tool.gradebook.facades.sakai2impl.XmlImportable
All Implemented Interfaces:
org.sakaiproject.importer.api.Importable

public class XmlImportable
extends Object
implements org.sakaiproject.importer.api.Importable

A simple generic wrapper to add new types of importable objects without needing to subclass each of them. THIS IS CURRENTLY UNUSED. It's here on a speculative basis for upcoming import/archive/merge development.

TODO This would subclass AbstractImportable if AbstractImportable was bumped up to the importer.api package for looser coupling. Currently, the AbstractImportable JAR brings in unrelated dependencies such as the QTI class.


Constructor Summary
XmlImportable()
           
XmlImportable(String typeName, String xmlData)
          Create an importable object in one line.
 
Method Summary
 String getContextPath()
           
 String getGuid()
           
 String getLegacyGroup()
           
 org.sakaiproject.importer.api.Importable getParent()
           
 String getTypeName()
           
 String getXmlData()
           
 void setContextPath(String contextPath)
           
 void setGuid(String guid)
           
 void setLegacyGroup(String legacyGroup)
           
 void setParent(org.sakaiproject.importer.api.Importable parent)
           
 void setTypeName(String typeName)
           
 void setXmlData(String xmlData)
          Since this class doesn't parse the data, this property could easily be renamed "setDataDescription" and this class renamed "StringImportable".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlImportable

public XmlImportable()

XmlImportable

public XmlImportable(String typeName,
                     String xmlData)
Create an importable object in one line.

Parameters:
typeName - identifies what type of domain data is serialized in the XML
xmlData - XML string describing the data itself, suitable for archiving or merging
Method Detail

getTypeName

public String getTypeName()
Specified by:
getTypeName in interface org.sakaiproject.importer.api.Importable

setTypeName

public void setTypeName(String typeName)

getXmlData

public String getXmlData()

setXmlData

public void setXmlData(String xmlData)
Since this class doesn't parse the data, this property could easily be renamed "setDataDescription" and this class renamed "StringImportable". But since XML is central to our archive / export / merge plans, it seems worth advertising that the data can be parsed as such.

Parameters:
xmlData -

getParent

public org.sakaiproject.importer.api.Importable getParent()
Specified by:
getParent in interface org.sakaiproject.importer.api.Importable

setParent

public void setParent(org.sakaiproject.importer.api.Importable parent)
Specified by:
setParent in interface org.sakaiproject.importer.api.Importable

getGuid

public String getGuid()
Specified by:
getGuid in interface org.sakaiproject.importer.api.Importable

setGuid

public void setGuid(String guid)

getLegacyGroup

public String getLegacyGroup()
Specified by:
getLegacyGroup in interface org.sakaiproject.importer.api.Importable

setLegacyGroup

public void setLegacyGroup(String legacyGroup)
Specified by:
setLegacyGroup in interface org.sakaiproject.importer.api.Importable

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface org.sakaiproject.importer.api.Importable

setContextPath

public void setContextPath(String contextPath)
Specified by:
setContextPath in interface org.sakaiproject.importer.api.Importable


Copyright © 2011 Sakai Project. All Rights Reserved.