|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.core.SelfNamedPlugin
org.dspace.content.crosswalk.XSLTCrosswalk
org.dspace.content.crosswalk.XSLTDisseminationCrosswalk
public class XSLTDisseminationCrosswalk
Configurable XSLT-driven dissemination Crosswalk
See the XSLTCrosswalk superclass for details on configuration.
crosswalk.dissemination.PluginName.namespace.Prefix = namespace-URI crosswalk.dissemination.PluginName.schemaLocation = schemaLocation value crosswalk.dissemination.PluginName.preferList = boolean (default is false)For example:
crosswalk.dissemination.qdc.namespace.dc = http://purl.org/dc/elements/1.1/
crosswalk.dissemination.qdc.namespace.dcterms = http://purl.org/dc/terms/
crosswalk.dissemination.qdc.schemaLocation = \
http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2003/04/02/qualifieddc.xsd
crosswalk.dissemination.qdc.preferList = true
XSLTCrosswalk| Field Summary |
|---|
| Fields inherited from class org.dspace.content.crosswalk.XSLTCrosswalk |
|---|
CONFIG_PREFIX, DIM_NS |
| Fields inherited from interface org.dspace.content.crosswalk.DisseminationCrosswalk |
|---|
XSI_NS |
| Constructor Summary | |
|---|---|
XSLTDisseminationCrosswalk()
|
|
| Method Summary | |
|---|---|
boolean |
canDisseminate(DSpaceObject dso)
Determine is this crosswalk can dessiminate the given object. |
static org.jdom.Element |
createDIM(DSpaceObject dso)
Generate an intermediate representation of a DSpace object. |
static org.jdom.Element |
createDIM(DSpaceObject dso,
DCValue[] dcvs)
Generate an intermediate representation of a DSpace object. |
org.jdom.Element |
disseminateElement(DSpaceObject dso)
Disseminate the DSpace item, collection, or community. |
List<org.jdom.Element> |
disseminateList(DSpaceObject dso)
Disseminate the DSpace item, collection, or community. |
org.jdom.Namespace[] |
getNamespaces()
Return the namespace used by this crosswalk. |
static String[] |
getPluginNames()
|
String |
getSchemaLocation()
Return the schema location used by this crosswalk. |
boolean |
preferList()
return true if this crosswalk prefers the list form over an singe element, otherwise false. |
| Methods inherited from class org.dspace.content.crosswalk.XSLTCrosswalk |
|---|
getTransformer, makeAliases |
| Methods inherited from class org.dspace.core.SelfNamedPlugin |
|---|
getPluginInstanceName, setPluginInstanceName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XSLTDisseminationCrosswalk()
| Method Detail |
|---|
public static String[] getPluginNames()
public org.jdom.Namespace[] getNamespaces()
getNamespaces in interface DisseminationCrosswalkDisseminationCrosswalkpublic String getSchemaLocation()
getSchemaLocation in interface DisseminationCrosswalkDisseminationCrosswalk
public org.jdom.Element disseminateElement(DSpaceObject dso)
throws CrosswalkException,
IOException,
SQLException,
AuthorizeException
disseminateElement in interface DisseminationCrosswalkdso - the DSpace Object whose metadata to export.
null
CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.
CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk this kind of DSpace object.
IOException - I/O failure in services this calls
SQLException - Database failure in services this calls
AuthorizeException - current user not authorized for this operation.
CrosswalkExceptionDisseminationCrosswalk
public List<org.jdom.Element> disseminateList(DSpaceObject dso)
throws CrosswalkException,
IOException,
SQLException,
AuthorizeException
disseminateList in interface DisseminationCrosswalkdso - the DSpace Object whose metadata to export.
CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.
CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk this kind of DSpace object.
IOException - I/O failure in services this calls
SQLException - Database failure in services this calls
AuthorizeException - current user not authorized for this operation.
CrosswalkExceptionDisseminationCrosswalkpublic boolean canDisseminate(DSpaceObject dso)
canDisseminate in interface DisseminationCrosswalkdso - dspace object, e.g. an Item.
DisseminationCrosswalkpublic boolean preferList()
preferList in interface DisseminationCrosswalkDisseminationCrosswalk
public static org.jdom.Element createDIM(DSpaceObject dso,
DCValue[] dcvs)
dso - The dspace object to build a representation of.public static org.jdom.Element createDIM(DSpaceObject dso)
dso - The dspace object to build a representation of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||