|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.xml.NSDL_DCToNCS_ITEMFormatConverter
public class NSDL_DCToNCS_ITEMFormatConverter
Converts from NSDL_DC format to the NCS_ITEM format. NOTE: assumes nsdl_dc is version 1.02 and first transforms to nsdl_dc 1.03 before converting to ncs_item.
XMLConversionService| Field Summary | |
|---|---|
protected File |
format_transform_file
NOT YET DOCUMENTED |
protected SimpleLuceneIndex |
index
NOT YET DOCUMENTED |
protected File |
version_transform_file
NOT YET DOCUMENTED |
| Constructor Summary | |
|---|---|
NSDL_DCToNCS_ITEMFormatConverter()
|
|
| Method Summary | |
|---|---|
String |
convertXML(String xml,
XMLDocReader docReader,
ServletContext context)
Performs XML conversion from ADN to oai_dc format. |
String |
getFromFormat()
Converts from the ncs_item format. |
String |
getToFormat()
Converts to the nsdl_dc format. |
protected void |
getXFormFilesAndIndex(ServletContext context)
Gets the xFormFilesAndIndex attribute of the NSDL_DCToNCS_ITEMFormatConverter object |
long |
lastModified(ServletContext context)
Gets the time this converter code was last modified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File format_transform_file
protected File version_transform_file
protected SimpleLuceneIndex index
| Constructor Detail |
|---|
public NSDL_DCToNCS_ITEMFormatConverter()
| Method Detail |
|---|
public String getFromFormat()
getFromFormat in interface XMLDocumentFormatConverterpublic String getToFormat()
getToFormat in interface XMLDocumentFormatConverterpublic long lastModified(ServletContext context)
lastModified in interface XMLDocumentFormatConvertercontext - The context in which this is running.
public String convertXML(String xml,
XMLDocReader docReader,
ServletContext context)
convertXML in interface XMLDocumentFormatConverterxml - XML input in the 'adn' format.docReader - A lucene doc reader for this record.context - The servlet context where this is running.
protected void getXFormFilesAndIndex(ServletContext context)
context - NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||