|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uiuc.ndiipp.hubandspoke.profile.HaSMETSProfileFactory
public class HaSMETSProfileFactory
This class contains static methods for instantiating through various means HaSMETSProfile instances or subclasses.
| Constructor Summary | |
|---|---|
HaSMETSProfileFactory()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Perform basic functions from the command line like unzip or validate |
static HaSMETSProfile |
newHaSMETSProfile()
Create a new instance of a HaSMETSProfile object with a PackageType of AIP |
static HaSMETSProfile |
newHaSMETSProfile(METSProfile.PackageType pt)
Create a new instance of a HaSMETSProfile object |
static HaSMETSWebProfile |
newHaSMETSWebProfile()
Create a new instance of a HaSMETSWebProfile object with a package type of AIP |
static HaSMETSWebProfile |
newHaSMETSWebProfile(METSProfile.PackageType pt)
Create a new instance of a HaSMETSWebProfile object |
static HaSMETSProfile |
newInstance(java.io.File f)
Create a new HaSMETSProfile object or one of its subclasses from the XML file . |
static HaSMETSProfile |
newInstance(java.io.File f,
METSProfile.PackageType pt)
Create a new HaSMETSProfile object or one of its subclasses from the XML file . |
static HaSMETSProfile |
newInstance(java.lang.String filepath)
Create a new HaSMETSProfile object or one of its subclasses from the XML file at the given file path. |
static HaSMETSProfile |
newInstance(java.lang.String filepath,
METSProfile.PackageType pt)
Create a new HaSMETSProfile object or one of its subclasses from the XML file at the given file path. |
static HaSMETSProfile |
newInstance(java.net.URL url)
Create a new HaSMETSProfile object or one of its subclasses from the XML file at the given URL. |
static HaSMETSProfile |
newInstance(java.net.URL url,
METSProfile.PackageType pt)
Create a new HaSMETSProfile object or one of its subclasses from the XML file at the given URL. |
static HaSMETSProfile |
newInstance(java.util.zip.ZipFile zip,
boolean overWrite)
Create a new HaSMETSProfile object or one of its subclasses from the files contained in the given ZipFile. |
static HaSMETSProfile |
newInstance(java.util.zip.ZipFile zip,
boolean overWrite,
METSProfile.PackageType pt)
Create a new HaSMETSProfile object or one of its subclasses from the files contained in the given ZipFile. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HaSMETSProfileFactory()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - public static HaSMETSProfile newHaSMETSProfile(METSProfile.PackageType pt)
pt - the PackageType of the newly created package
public static HaSMETSProfile newHaSMETSProfile()
public static HaSMETSWebProfile newHaSMETSWebProfile(METSProfile.PackageType pt)
pt - the package type of the newly created package
public static HaSMETSWebProfile newHaSMETSWebProfile()
public static HaSMETSProfile newInstance(java.net.URL url,
METSProfile.PackageType pt)
throws HaSMETSProfileException
url - the URL to the XML METS file to loadpt - PackageType
HaSMETSProfileException
public static HaSMETSProfile newInstance(java.net.URL url)
throws HaSMETSProfileException
url - the URL to the XML METS file to load
HaSMETSProfileException
public static HaSMETSProfile newInstance(java.lang.String filepath,
METSProfile.PackageType pt)
throws HaSMETSProfileException
filepath - the file path to the XML METS file to loadpt - PackageType
HaSMETSProfileException
public static HaSMETSProfile newInstance(java.lang.String filepath)
throws HaSMETSProfileException
filepath - the file path to the XML METS file to load
HaSMETSProfileException
public static HaSMETSProfile newInstance(java.io.File f,
METSProfile.PackageType pt)
throws HaSMETSProfileException
f - the file containing XML METS file to loadpt - the PackageType of the new package
HaSMETSProfileException
public static HaSMETSProfile newInstance(java.io.File f)
throws HaSMETSProfileException
f - the file containing XML METS file to load
HaSMETSProfileException
public static HaSMETSProfile newInstance(java.util.zip.ZipFile zip,
boolean overWrite,
METSProfile.PackageType pt)
throws HaSMETSProfileException
zip - overWrite - pt -
HaSMETSProfileException
public static HaSMETSProfile newInstance(java.util.zip.ZipFile zip,
boolean overWrite)
throws HaSMETSProfileException
zip - overWrite -
HaSMETSProfileException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||