|
||||||||||
| 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.XSLTIngestionCrosswalk
public class XSLTIngestionCrosswalk
Configurable XSLT-driven ingestion Crosswalk
See the XSLTCrosswalk superclass for details on configuration.
XSLTCrosswalk| Field Summary |
|---|
| Fields inherited from class org.dspace.content.crosswalk.XSLTCrosswalk |
|---|
CONFIG_PREFIX, DIM_NS |
| Constructor Summary | |
|---|---|
XSLTIngestionCrosswalk()
|
|
| Method Summary | |
|---|---|
static String[] |
getPluginNames()
|
void |
ingest(Context context,
DSpaceObject dso,
org.jdom.Element root)
Ingest a whole document. |
void |
ingest(Context context,
DSpaceObject dso,
List<org.jdom.Element> metadata)
Translate metadata with XSL stylesheet and ingest it. |
static void |
ingestDIM(Context context,
DSpaceObject dso,
org.jdom.Element dim)
Ingest a DIM metadata expression directly, without translating some other format into DIM. |
static void |
ingestDIM(Context context,
DSpaceObject dso,
List<org.jdom.Element> fields)
|
static void |
main(String[] argv)
Simple command-line rig for testing the DIM output of a stylesheet. |
| 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 XSLTIngestionCrosswalk()
| Method Detail |
|---|
public static String[] getPluginNames()
public void ingest(Context context,
DSpaceObject dso,
List<org.jdom.Element> metadata)
throws CrosswalkException,
IOException,
SQLException,
AuthorizeException
ingest in interface IngestionCrosswalkcontext - DSpace context.dso - DSpace Object (Item, Bitstream, etc) to which new metadata gets attached.metadata - List of XML Elements of metadata
CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.
CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk into this kind of DSpace object.
MetadataValidationException - (CrosswalkException) metadata format was not acceptable or missing required elements.
IOException - I/O failure in services this calls
SQLException - Database failure in services this calls
AuthorizeException - current user not authorized for this operation.
CrosswalkException
public void ingest(Context context,
DSpaceObject dso,
org.jdom.Element root)
throws CrosswalkException,
IOException,
SQLException,
AuthorizeException
ingest in interface IngestionCrosswalkcontext - DSpace context.dso - DSpace Object (usually an Item) to which new metadata gets attached.root - root Element of metadata document.
CrosswalkInternalException - (CrosswalkException) failure of the crosswalk itself.
CrosswalkObjectNotSupported - (CrosswalkException) Cannot crosswalk into this kind of DSpace object.
MetadataValidationException - (CrosswalkException) metadata format was not acceptable or missing required elements.
IOException - I/O failure in services this calls
SQLException - Database failure in services this calls
AuthorizeException - current user not authorized for this operation.
CrosswalkException
public static void ingestDIM(Context context,
DSpaceObject dso,
org.jdom.Element dim)
throws CrosswalkException,
IOException,
SQLException,
AuthorizeException
dim element is expected to be be the root of
a DIM document.
Note that this is ONLY implemented for Item, Collection, and Community objects. Also only works for the "dc" metadata schema.
context - the contextdso - object into which to ingest metadatadim - root of a DIM expression
CrosswalkException
IOException
SQLException
AuthorizeException
public static void ingestDIM(Context context,
DSpaceObject dso,
List<org.jdom.Element> fields)
throws CrosswalkException,
IOException,
SQLException,
AuthorizeException
CrosswalkException
IOException
SQLException
AuthorizeException
public static void main(String[] argv)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||