|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uiuc.ndiipp.hubandspoke.profile.METSProfile
public abstract class METSProfile
| Nested Class Summary | |
|---|---|
static class |
METSProfile.AMD_SECTION
|
static class |
METSProfile.DMDSecStatus
|
static class |
METSProfile.PackageType
|
static class |
METSProfile.PREMISAgentType
|
static class |
METSProfile.PREMISEventType
|
static class |
METSProfile.PREMISIdentifierType
|
static class |
METSProfile.PREMISLinkingAgentRole
|
static class |
METSProfile.PREMISObjectCategory
|
static class |
METSProfile.PREMISSwType
|
static class |
METSProfile.StructMapType
|
static class |
METSProfile.TechMDStatus
|
| Field Summary | |
|---|---|
static java.lang.String |
AMD_NS
|
static java.lang.String |
JHOVE_NS
|
static java.lang.String |
METS_NS
|
static java.lang.String |
MIX_NS
|
static java.lang.String |
MODS_NS
|
static java.lang.String |
PREMIS_NS
|
static java.lang.String |
TEXTMD_NS
|
static java.lang.String |
VMD_NS
|
static java.lang.String |
XLINK_NS
|
| Constructor Summary | |
|---|---|
METSProfile()
|
|
| Method Summary | |
|---|---|
static gov.loc.premis.PremisObjectDocument |
createBasicPremisObject(METSProfile.PREMISIdentifierType idType,
java.lang.String id,
METSProfile.PREMISObjectCategory objCat)
Return a basic PremisObjectDocument with the given parameters |
static gov.loc.premis.PremisObjectDocument |
createPremisObjectFromFile(java.io.File f,
METSProfile.PREMISIdentifierType idType)
|
java.net.URI |
getBaseURI()
Return the base URI of the current METS file |
gov.loc.mets.MetsMetsDocument |
getMetsDocument()
Return the underlying XMLBean MetsDocument object |
org.apache.xmlbeans.XmlID |
getNewID(java.lang.String prefix,
org.apache.xmlbeans.XmlObject xobj)
Get the next unassigned ID value that can be used in the METS file and assign it to an XmlObject |
gov.loc.mets.MetsMdSecType |
newPREMISObjectTechMD(gov.loc.mets.MetsDivType.Mptr mptr,
METSProfile.PREMISIdentifierType idType,
java.lang.String idVal)
Add a new PREMIS Object techMD section that is associated with the given mptr div, and return the newly added techMD section that contains the PREMIS object. |
gov.loc.mets.MetsMdSecType |
newPREMISObjectTechMD(gov.loc.mets.MetsDivType div,
METSProfile.PREMISIdentifierType idType,
java.lang.String idVal)
Add a new PREMIS Object techMD section that is associated with the given div element, and return the newly added techMD section that contains the PREMIS object. |
gov.loc.mets.MetsMdSecType |
newPREMISObjectTechMD(gov.loc.mets.MetsFileType ft,
METSProfile.PREMISIdentifierType idType,
java.lang.String idVal)
Add a new PREMIS Object techMD section that is associated with the given file, and return the newly added techMD section that contains the PREMIS object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AMD_NS
public static final java.lang.String JHOVE_NS
public static final java.lang.String METS_NS
public static final java.lang.String MIX_NS
public static final java.lang.String MODS_NS
public static final java.lang.String PREMIS_NS
public static final java.lang.String TEXTMD_NS
public static final java.lang.String VMD_NS
public static final java.lang.String XLINK_NS
| Constructor Detail |
|---|
public METSProfile()
| Method Detail |
|---|
public static gov.loc.premis.PremisObjectDocument createBasicPremisObject(METSProfile.PREMISIdentifierType idType,
java.lang.String id,
METSProfile.PREMISObjectCategory objCat)
idType - HaSMETSProfile.PREMISIdentifierTypeid - String with the identifier valueobjCat - HaSMETSProfile.PREMISObjectCategory
public static gov.loc.premis.PremisObjectDocument createPremisObjectFromFile(java.io.File f,
METSProfile.PREMISIdentifierType idType)
public java.net.URI getBaseURI()
public gov.loc.mets.MetsMetsDocument getMetsDocument()
public org.apache.xmlbeans.XmlID getNewID(java.lang.String prefix,
org.apache.xmlbeans.XmlObject xobj)
prefix - string that will be prepended to all ID values, if this is
null or empty string then the value "ID" will be usedxobj - the XmlObject to which the ID will be assigned
public gov.loc.mets.MetsMdSecType newPREMISObjectTechMD(gov.loc.mets.MetsDivType div,
METSProfile.PREMISIdentifierType idType,
java.lang.String idVal)
throws HaSMETSProfileException
NOTE: The idType and idVal parameters are not the same as the XML ID attributes used to associate the new techMD section to the file.
div - the div element to which the techMD is associatedidType - the type of the ID to be used with the PREMIS objectidVal - the value of the identifier
HaSMETSProfileException
public gov.loc.mets.MetsMdSecType newPREMISObjectTechMD(gov.loc.mets.MetsFileType ft,
METSProfile.PREMISIdentifierType idType,
java.lang.String idVal)
throws HaSMETSProfileException
NOTE: The idType and idVal parameters are not the same as the XML ID attributes used to associate the new techMD section to the file.
ft - the file to which the techMD is associatedidType - the type of the ID to be used with the PREMIS objectidVal - the value of the identifier
HaSMETSProfileException
public gov.loc.mets.MetsMdSecType newPREMISObjectTechMD(gov.loc.mets.MetsDivType.Mptr mptr,
METSProfile.PREMISIdentifierType idType,
java.lang.String idVal)
throws HaSMETSProfileException
NOTE: The idType and idVal parameters are not the same as the XML ID attributes used to associate the new techMD section to the file.
mptr - the mptr to which the techMD will be associatedidType - the type of the ID to be used with the PREMIS objectidVal - the value of the identifier
HaSMETSProfileException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||