Java Doc for AuthoringXml.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » tool » assessment » qti » helper » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.tool.assessment.qti.helper 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.tool.assessment.qti.helper.AuthoringXml

AuthoringXml
public class AuthoringXml (Code)

Utility to load XML templates from Sprint context or local file system.

Copyright: Copyright (c) 2005 Sakai


author:
   Ed Smiley esmiley@stanford.edu
version:
   $Id: AuthoringXml.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $


Field Summary
final public static  StringASSESSMENT
    
final public static  StringITEM_AUDIO
    
final public static  StringITEM_ESSAY
    
final public static  StringITEM_FIB
    
final public static  StringITEM_FILE
    
final public static  StringITEM_FIN
    
final public static  StringITEM_MATCH
    
final public static  StringITEM_MATCHING
    
final public static  StringITEM_MCMC
    
final public static  StringITEM_MCSC
    
final public static  StringITEM_SURVEY
    
final public static  StringITEM_TF
    
final public static  StringSECTION
    
final public static  StringSETTINGS_FILE
    
final public static  StringSURVEY_10
    
final public static  StringSURVEY_5
    
final public static  StringSURVEY_AGREE
    
final public static  StringSURVEY_AVERAGE
    
final public static  StringSURVEY_EXCELLENT
    
final public static  StringSURVEY_PATH
    
final public static  StringSURVEY_STRONGLY
    
final public static  StringSURVEY_UNDECIDED
    
final public static  StringSURVEY_YES
    
final public static  StringTEMPLATE_PATH
    
public  MapvalidTemplates
    

Constructor Summary
public  AuthoringXml(int qtiVersion)
    

Method Summary
public  DocumentaddAttribute(Document document, String elementXpath, String attributeName)
    
public  DocumentaddElement(Document document, String parentXpath, Element element)
    
public  StringgetQtiPath()
    
public  intgetQtiVersion()
    
public  StringgetTemplateAsString(InputStream templateStream)
    
public  InputStreamgetTemplateInputStream(String templateName)
    
public  booleanisAssessment(String documentType)
    
public  booleanisItem(String documentType)
    
public  booleanisSection(String documentType)
    
public  booleanisSurveyFragment(String documentType)
    
public static  DocumentreadDocumentFromString(String in)
     Read a DOM Document from xml in a string.
public  DocumentreadXMLDocument(InputStream inputStream)
    
final public  ListselectNodes(Document document, String xpath)
    
public  voidsetQtiPath(String qtiPath)
    
public  voidsetQtiVersion(int qtiVersion)
    
public  Documentupdate(Document document, String xpath, Element element)
    
public  Documentupdate(Document document, String xpath, String value)
    
public  booleanvalid(String s)
    

Field Detail
ASSESSMENT
final public static String ASSESSMENT(Code)



ITEM_AUDIO
final public static String ITEM_AUDIO(Code)



ITEM_ESSAY
final public static String ITEM_ESSAY(Code)



ITEM_FIB
final public static String ITEM_FIB(Code)



ITEM_FILE
final public static String ITEM_FILE(Code)



ITEM_FIN
final public static String ITEM_FIN(Code)



ITEM_MATCH
final public static String ITEM_MATCH(Code)



ITEM_MATCHING
final public static String ITEM_MATCHING(Code)



ITEM_MCMC
final public static String ITEM_MCMC(Code)



ITEM_MCSC
final public static String ITEM_MCSC(Code)



ITEM_SURVEY
final public static String ITEM_SURVEY(Code)



ITEM_TF
final public static String ITEM_TF(Code)



SECTION
final public static String SECTION(Code)



SETTINGS_FILE
final public static String SETTINGS_FILE(Code)



SURVEY_10
final public static String SURVEY_10(Code)



SURVEY_5
final public static String SURVEY_5(Code)



SURVEY_AGREE
final public static String SURVEY_AGREE(Code)



SURVEY_AVERAGE
final public static String SURVEY_AVERAGE(Code)



SURVEY_EXCELLENT
final public static String SURVEY_EXCELLENT(Code)



SURVEY_PATH
final public static String SURVEY_PATH(Code)



SURVEY_STRONGLY
final public static String SURVEY_STRONGLY(Code)



SURVEY_UNDECIDED
final public static String SURVEY_UNDECIDED(Code)



SURVEY_YES
final public static String SURVEY_YES(Code)



TEMPLATE_PATH
final public static String TEMPLATE_PATH(Code)



validTemplates
public Map validTemplates(Code)




Constructor Detail
AuthoringXml
public AuthoringXml(int qtiVersion)(Code)




Method Detail
addAttribute
public Document addAttribute(Document document, String elementXpath, String attributeName)(Code)
Based on method in XmlStringBuffer
author:
   rpembry
author:
   casong changed XmlStringBuffer to be org.w3c.dom compliance,
author:
   Ed Smiley esmiley@stanford.edu changed method signatures used Document
Parameters:
  document - Document
Parameters:
  elementXpath -
Parameters:
  attributeName - modified Document



addElement
public Document addElement(Document document, String parentXpath, Element element)(Code)
Based on method in XmlStringBuffer
author:
   rpembry
author:
   casong changed XmlStringBuffer to be org.w3c.dom compliance,
author:
   Ed Smiley esmiley@stanford.edu changed method signatures used Document
Parameters:
  document - Document
Parameters:
  parentXpath -
Parameters:
  element - modified Document



getQtiPath
public String getQtiPath()(Code)



getQtiVersion
public int getQtiVersion()(Code)



getTemplateAsString
public String getTemplateAsString(InputStream templateStream)(Code)
get a template as a string from its input stream
Parameters:
  templateName - the xml string



getTemplateInputStream
public InputStream getTemplateInputStream(String templateName)(Code)
get template as stream using spring's ClassPathResource
Parameters:
  templateName -
Parameters:
  context -



isAssessment
public boolean isAssessment(String documentType)(Code)



isItem
public boolean isItem(String documentType)(Code)



isSection
public boolean isSection(String documentType)(Code)



isSurveyFragment
public boolean isSurveyFragment(String documentType)(Code)



readDocumentFromString
public static Document readDocumentFromString(String in)(Code)
Read a DOM Document from xml in a string.
Parameters:
  in - The string containing the XML A new DOM Document with the xml contents.



readXMLDocument
public Document readXMLDocument(InputStream inputStream)(Code)
read in XML document from input stream
Parameters:
  inputStream - source for XML document the Document



selectNodes
final public List selectNodes(Document document, String xpath)(Code)
Based on method in XmlStringBuffer
author:
   rpembry
author:
   casong changed XmlStringBuffer to be org.w3c.dom compliance,
author:
   Ed Smiley esmiley@stanford.edu changed method signatures used Document a List of Nodes



setQtiPath
public void setQtiPath(String qtiPath)(Code)



setQtiVersion
public void setQtiVersion(int qtiVersion)(Code)



update
public Document update(Document document, String xpath, Element element)(Code)
Based on method in XmlStringBuffer
author:
   rpembry
author:
   casong changed XmlStringBuffer to be org.w3c.dom compliance,
author:
   Ed Smiley esmiley@stanford.edu changed method signatures used Document
Parameters:
  document - Document
Parameters:
  xpath -
Parameters:
  element - modified Document



update
public Document update(Document document, String xpath, String value) throws DOMException, Exception(Code)
perform Update on this object Based on method originally in XmlStringBuffer
author:
   rashmi
author:
   casong
author:
   Ed Smiley esmiley@stanford.edu changed method signatures used Document
Parameters:
  document - Document
Parameters:
  xpath - :- xpath and
Parameters:
  value - :- Value of xpath modified Document
throws:
  DOMException - DOCUMENTATION PENDING
throws:
  Exception - DOCUMENTATION PENDING



valid
public boolean valid(String s)(Code)
test that a String is a valid template key
Parameters:
  s - a key true if it is a valid key



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.