|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.morpho.datapackage.MetadataObject
edu.ucsb.nceas.morpho.datapackage.AbstractDataPackage
edu.ucsb.nceas.morpho.datapackage.EML200DataPackage
class that represents a data package. This class is abstract. Specific datapackages e.g. eml2, beta6., etc extend this abstact class
Field Summary |
Fields inherited from class edu.ucsb.nceas.morpho.datapackage.AbstractDataPackage |
BOTH, config, dataPkgFile, entityArray, fileSysDataStore, id, initialId, LOCAL, location, METACAT, metacatDataStore |
Fields inherited from class edu.ucsb.nceas.morpho.datapackage.MetadataObject |
doc, grammar, grammarType, metadataNode, metadataPathNode, root |
Constructor Summary | |
EML200DataPackage()
|
Method Summary | |
AbstractDataPackage |
download(java.lang.String id)
Copies the AbstractDataPackage with the indicated id from metacat to the local file store |
java.lang.String |
getAuthor()
override method in AbstractDataPackage to get all authors and combine name fields |
org.w3c.dom.Node |
getReferencedNode(org.w3c.dom.Node node)
This method follows the pointer stored in 'references' node to return the DOM node referred to by 'references' |
org.w3c.dom.Node |
getSubtreeAtReference(java.lang.String refID)
returns cloned root Node of subtree identified by the passed unique String refID; returns null if not found |
org.w3c.dom.Node |
getSubtreeAtReferenceNoClone(java.lang.String refID)
returns pointer to root Node of subtree identified by the passed unique String refID; returns null if not found |
java.util.List |
getSubtreesThatReference(java.lang.String refID)
returns a List of pointers to subtrees that reference (the subtree identified by) the passed refID. |
boolean |
ignoreConsecutiveDelimiters(int entityIndex,
int physicalIndex)
no tag in eml2.0 for this information it is being put in additionalMetadata until a new version of eml is released |
void |
load(java.lang.String location,
java.lang.String identifier,
Morpho morpho)
This abstract method loads a datapackage from metacat or the local file system based on an identifier. |
org.w3c.dom.Node |
replaceSubtreeAtReference(java.lang.String refID,
org.w3c.dom.Node newSubtreeRoot)
replaces subtree identified by the passed unique String refID; returns null if not found. |
void |
serialize(java.lang.String location)
This abstract method turns the datapackage into a form (e.g. |
AbstractDataPackage |
upload(java.lang.String id,
boolean updatePackageId)
Copies the AbstractDataPackage with the indicated id from the local file store to Metacat |
Methods inherited from class edu.ucsb.nceas.morpho.datapackage.MetadataObject |
getGenericValue, getMetadataNode, getMetadataPath, getXPathValue, main, setGenericValue, setMetadataNode, setMetadataPath, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EML200DataPackage()
Method Detail |
public void serialize(java.lang.String location) throws MetacatUploadException
AbstractDataPackage
serialize
in class AbstractDataPackage
location
- String
MetacatUploadException
public void load(java.lang.String location, java.lang.String identifier, Morpho morpho)
AbstractDataPackage
load
in class AbstractDataPackage
location
- Stringidentifier
- Stringmorpho
- Morphopublic java.lang.String getAuthor()
getAuthor
in class AbstractDataPackage
public AbstractDataPackage upload(java.lang.String id, boolean updatePackageId) throws MetacatUploadException
AbstractDataPackage
upload
in class AbstractDataPackage
id
- String
MetacatUploadException
public AbstractDataPackage download(java.lang.String id)
AbstractDataPackage
download
in class AbstractDataPackage
id
- String
public org.w3c.dom.Node getReferencedNode(org.w3c.dom.Node node)
node
- Node
public org.w3c.dom.Node getSubtreeAtReference(java.lang.String refID)
getSubtreeAtReference
in class AbstractDataPackage
refID
- unique String refID
public java.util.List getSubtreesThatReference(java.lang.String refID)
getSubtreesThatReference
in class AbstractDataPackage
refID
- unique String refID
public org.w3c.dom.Node replaceSubtreeAtReference(java.lang.String refID, org.w3c.dom.Node newSubtreeRoot)
replaceSubtreeAtReference
in class AbstractDataPackage
refID
- unique String refID. Note that the new subtree will be given
the same refID as the subtree it replaces, even if the newSubtreeRoot
node has a different id setnewSubtreeRoot
- Node
public org.w3c.dom.Node getSubtreeAtReferenceNoClone(java.lang.String refID)
getSubtreeAtReferenceNoClone
in class AbstractDataPackage
refID
- unique String refID
public boolean ignoreConsecutiveDelimiters(int entityIndex, int physicalIndex)
ignoreConsecutiveDelimiters
in class AbstractDataPackage
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |