Java Doc for AbstractAdapter.java in  » Content-Management-System » dspace » org » dspace » app » xmlui » objectmanager » 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 » Content Management System » dspace » org.dspace.app.xmlui.objectmanager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.dspace.app.xmlui.objectmanager.AbstractAdapter

All known Subclasses:   org.dspace.app.xmlui.objectmanager.RepositoryAdapter,  org.dspace.app.xmlui.objectmanager.ItemAdapter,  org.dspace.app.xmlui.objectmanager.ContainerAdapter,
AbstractAdapter
abstract public class AbstractAdapter (Code)
This is the abstract adapter containing all the common elements between the three types of adapters: item, container, and repository. Each adapter translate a given type of DSpace object into a METS document for rendering into the DRI document. This class provides the chasses for those unique parts of the document to be build upon, there are seven rendering methods that may be overriden for each section of the METS document. Header Descriptive Section Administrative Section File Section Structure Map Structural Link Behavioral Section
author:
   Scott Phillips


Field Summary
final public static  NamespaceDIM
    
final public static  StringDIM_URI
    
final public static  NamespaceMETS
    
public static  String[]METS_DEFINED_TYPES
    
final public static  StringMETS_URI
    
final public static  NamespaceXLINK
    
final public static  StringXLINK_URI
    
final public static  NamespaceXSI
    
final public static  StringXSI_URI
    
 List<String>amdTypes
    
protected  ContentHandlercontentHandler
     The SAX handlers for content and lexical events.
protected  StringcontextPath
     The contextPath of this webapplication, used for generateing urls.
 List<String>dmdTypes
    
 List<String>fileGrpTypes
    
protected  LexicalHandlerlexicalHandler
    
protected  NamespaceSupportnamespaces
    
 List<String>sections
    
 List<String>structTypes
    

Constructor Summary
public  AbstractAdapter(String contextPath)
     Construct a new adapter, implementers must use call this method so the approprate internal values are insured to be set correctly.

Method Summary
protected  voidendElement(Namespace namespace, String name)
     Send the SAX events to end this element.
public  DisseminationCrosswalkgetDisseminationCrosswalk(String crosswalkName)
     Return a dissemination crosswalk for the given name.
protected  StringgetGenericID(String prefix)
     Generate a unique METS id.
abstract protected  StringgetMETSID()
    
abstract protected  StringgetMETSLabel()
    
abstract protected  StringgetMETSOBJEDIT()
    
abstract protected  StringgetMETSOBJID()
    
abstract protected  StringgetMETSProfile()
    
public  booleanisDefinedMETStype(String metadataType)
     Determine if the provided metadata type is a stardard METS defined type.
protected  voidrenderAdministrativeSection()
    
protected  voidrenderBehavioralSection()
    
protected  voidrenderDescriptiveSection()
    
protected  voidrenderExtraSections()
    
protected  voidrenderFile(Item item, Bitstream bitstream, String fileID, String groupID)
     Generate a METS file element for a given bitstream.
Parameters:
  item - If the bitstream is associated with an item provid the itemotherwise leave null.
Parameters:
  bitstream - The bitstream to build a file element for.
Parameters:
  fileID - The unique file id for this file.
Parameters:
  groupID - The group id for this file, if it is derived from another filethen they should share the same groupID.
protected  voidrenderFileSection()
    
protected  voidrenderHeader()
    
public  voidrenderMETS(ContentHandler contentHandler, LexicalHandler lexicalHandler)
     Render the complete METS document.
protected  voidrenderStructuralLink()
    
protected  voidrenderStructureMap()
    
protected  voidsendCharacters(String characters)
     Send the SAX event for these plain characters, not wrapped in any elements.
public  voidsetAmdTypes(String amdTypes)
     A comma seperated list of METS administrative metadata formats to render.
public  voidsetDmdTypes(String dmdTypes)
     A comma seperated list of METS descriptive metadata formats to render.
public  voidsetFileGrpTypes(String fileGrpTypes)
     A comma seperated list of METS fileGrps to render.
public  voidsetSections(String sections)
     A comma seperated list of METS sections to render.
public  voidsetStructTypes(String structTypes)
     A comma seperated list of METS structural types to render.
protected  voidstartElement(Namespace namespace, String name, AttributeMap... attributes)
     Send the SAX events to start this element.

Field Detail
DIM
final public static Namespace DIM(Code)



DIM_URI
final public static String DIM_URI(Code)



METS
final public static Namespace METS(Code)



METS_DEFINED_TYPES
public static String[] METS_DEFINED_TYPES(Code)
The METS defined types of Metadata, if a format is not listed here then it should use the string "OTHER" and provide additional attributes describing the metadata type



METS_URI
final public static String METS_URI(Code)
Namespace declaration for METS & XLINK



XLINK
final public static Namespace XLINK(Code)



XLINK_URI
final public static String XLINK_URI(Code)



XSI
final public static Namespace XSI(Code)



XSI_URI
final public static String XSI_URI(Code)



amdTypes
List<String> amdTypes(Code)



contentHandler
protected ContentHandler contentHandler(Code)
The SAX handlers for content and lexical events. Also the support element for namespaces which knows the prefixes for each declared namespace.



contextPath
protected String contextPath(Code)
The contextPath of this webapplication, used for generateing urls.



dmdTypes
List<String> dmdTypes(Code)



fileGrpTypes
List<String> fileGrpTypes(Code)



lexicalHandler
protected LexicalHandler lexicalHandler(Code)



namespaces
protected NamespaceSupport namespaces(Code)



sections
List<String> sections(Code)
The variables that dicatacte what part of the METS document to render



structTypes
List<String> structTypes(Code)




Constructor Detail
AbstractAdapter
public AbstractAdapter(String contextPath)(Code)
Construct a new adapter, implementers must use call this method so the approprate internal values are insured to be set correctly.
Parameters:
  contextPath - The contextPath of this web application.




Method Detail
endElement
protected void endElement(Namespace namespace, String name) throws SAXException(Code)
Send the SAX events to end this element.
Parameters:
  contentHandler - (Required) The registered contentHandler where SAX eventsshould be routed too.
Parameters:
  namespaces - (Required) SAX Helper class to keep track of namespaces ableto determine the correct prefix for a given namespace URI.
Parameters:
  namespace - (Required) The namespace of this element.
Parameters:
  name - (Required) The local name of this element.



getDisseminationCrosswalk
public DisseminationCrosswalk getDisseminationCrosswalk(String crosswalkName) throws WingException(Code)
Return a dissemination crosswalk for the given name.
Parameters:
  crosswalkName - The crosswalk or throw an exception if not found.



getGenericID
protected String getGenericID(String prefix)(Code)
Generate a unique METS id. For consistancy, all prefixs should probably end in an underscore, "_".
Parameters:
  prefix - Prefix to prepend to the id for readability. A unique METS id.



getMETSID
abstract protected String getMETSID() throws WingException(Code)
the METS ID of the mets document.



getMETSLabel
abstract protected String getMETSLabel() throws WingException(Code)
The label of this METS document.



getMETSOBJEDIT
abstract protected String getMETSOBJEDIT()(Code)
Return the URL for editing this item



getMETSOBJID
abstract protected String getMETSOBJID() throws WingException(Code)
the URL for this item in the interface



getMETSProfile
abstract protected String getMETSProfile() throws WingException(Code)
The Profile this METS document conforms too.



isDefinedMETStype
public boolean isDefinedMETStype(String metadataType)(Code)
Determine if the provided metadata type is a stardard METS defined type. If it is not, use the other string.
Parameters:
  metadataType - type name True if METS defined



renderAdministrativeSection
protected void renderAdministrativeSection() throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)



renderBehavioralSection
protected void renderBehavioralSection() throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)



renderDescriptiveSection
protected void renderDescriptiveSection() throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)



renderExtraSections
protected void renderExtraSections() throws WingException, SAXException, CrosswalkException, SQLException, IOException(Code)



renderFile
protected void renderFile(Item item, Bitstream bitstream, String fileID, String groupID) throws SAXException(Code)
Generate a METS file element for a given bitstream.
Parameters:
  item - If the bitstream is associated with an item provid the itemotherwise leave null.
Parameters:
  bitstream - The bitstream to build a file element for.
Parameters:
  fileID - The unique file id for this file.
Parameters:
  groupID - The group id for this file, if it is derived from another filethen they should share the same groupID. The METS file element.



renderFileSection
protected void renderFileSection() throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)



renderHeader
protected void renderHeader() throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)
Each of the METS sections



renderMETS
public void renderMETS(ContentHandler contentHandler, LexicalHandler lexicalHandler) throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)
Render the complete METS document.



renderStructuralLink
protected void renderStructuralLink() throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)



renderStructureMap
protected void renderStructureMap() throws WingException, SAXException, CrosswalkException, IOException, SQLException(Code)



sendCharacters
protected void sendCharacters(String characters) throws SAXException(Code)
Send the SAX event for these plain characters, not wrapped in any elements.
Parameters:
  contentHandler - (Required) The registered contentHandler where SAX eventsshould be routed too.
Parameters:
  characters - (May be null) Characters to send.



setAmdTypes
public void setAmdTypes(String amdTypes)(Code)
A comma seperated list of METS administrative metadata formats to render.
Parameters:
  sections - Comma seperated list of METS metadata types.



setDmdTypes
public void setDmdTypes(String dmdTypes)(Code)
A comma seperated list of METS descriptive metadata formats to render. If no value is provided then only the DIM format is used.
Parameters:
  sections - Comma seperated list of METS metadata types.



setFileGrpTypes
public void setFileGrpTypes(String fileGrpTypes)(Code)
A comma seperated list of METS fileGrps to render. If no value is provided then all groups are rendered.
Parameters:
  sections - Comma seperated list of METS file groups.



setSections
public void setSections(String sections)(Code)
A comma seperated list of METS sections to render. If no value is provided then all METS sections are rendered.
Parameters:
  sections - Comma seperated list of METS sections.



setStructTypes
public void setStructTypes(String structTypes)(Code)
A comma seperated list of METS structural types to render. If no value is provided then only the DIM format is used.
Parameters:
  sections - Comma seperated list of METS structure types.



startElement
protected void startElement(Namespace namespace, String name, AttributeMap... attributes) throws SAXException(Code)
Send the SAX events to start this element.
Parameters:
  contentHandler - (Required) The registered contentHandler where SAX eventsshould be routed too.
Parameters:
  namespaces - (Required) SAX Helper class to keep track of namespaces ableto determine the correct prefix for a given namespace URI.
Parameters:
  namespace - (Required) The namespace of this element.
Parameters:
  name - (Required) The local name of this element.
Parameters:
  attributes - (May be null) Attributes for this element



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.