| 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 |
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. |
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
|
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.
|
sections | List<String> sections(Code) | | The variables that dicatacte what part of the METS document to render
|
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. |
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. |
getMETSOBJEDIT | abstract protected String getMETSOBJEDIT()(Code) | | Return the URL for editing this item |
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 |
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. |
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 |
|
|