org.fao.geonet.kernel.mef
Class MEFLib
java.lang.Object
org.fao.geonet.kernel.mef.MEFLib
public class MEFLib
- extends Object
Utility class for MEF import and export.
|
Method Summary |
static String |
doExport(ServiceContext context,
String uuid,
String format,
boolean skipUUID,
boolean resolveXlink,
boolean removeXlinkAttribute)
|
static List<String> |
doImport(org.jdom.Element params,
ServiceContext context,
File mefFile,
String stylePath)
|
static List<String> |
doImportIndexGroup(org.jdom.Element params,
ServiceContext context,
File mefFile,
String stylePath)
|
static String |
doMEF2Export(ServiceContext context,
Set<String> uuids,
String format,
boolean skipUUID,
String stylePath,
boolean resolveXlink,
boolean removeXlinkAttribute)
|
static MEFLib.Version |
getMEFVersion(File mefFile)
Return MEF file version according to ZIP file content. |
static void |
visit(File mefFile,
IVisitor visitor,
IMEFVisitor v)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MEFLib
public MEFLib()
doImportIndexGroup
public static List<String> doImportIndexGroup(org.jdom.Element params,
ServiceContext context,
File mefFile,
String stylePath)
throws Exception
- Throws:
Exception
doImport
public static List<String> doImport(org.jdom.Element params,
ServiceContext context,
File mefFile,
String stylePath)
throws Exception
- Throws:
Exception
doExport
public static String doExport(ServiceContext context,
String uuid,
String format,
boolean skipUUID,
boolean resolveXlink,
boolean removeXlinkAttribute)
throws Exception
- Throws:
Exception
doMEF2Export
public static String doMEF2Export(ServiceContext context,
Set<String> uuids,
String format,
boolean skipUUID,
String stylePath,
boolean resolveXlink,
boolean removeXlinkAttribute)
throws Exception
- Throws:
Exception
visit
public static void visit(File mefFile,
IVisitor visitor,
IMEFVisitor v)
throws Exception
- Throws:
Exception
getMEFVersion
public static MEFLib.Version getMEFVersion(File mefFile)
- Return MEF file version according to ZIP file content.
- Parameters:
mefFile - mefFile to check version
- Returns:
- v1
Copyright © 2003-2013. All Rights Reserved.