org.mydm.core
Class EDocument

java.lang.Object
  extended byorg.mydm.core.EDocument

public class EDocument
extends java.lang.Object

Core class for the basic eDocument Object. Basically the document object consists of

Extra information like

See Also:
EAuthor, EIdentifier, EFile

Constructor Summary
EDocument()
          Constructor - Default.
 
Method Summary
 java.lang.String getAuthorsStr()
          Returns a concatenated string of authors
 java.lang.String getCollection()
          gets the collection.
 java.lang.String getDateCreated()
          Gets the date created.
 java.lang.String getDateModified()
          Gets the datemodified.
 EAuthor[] getEAuthors()
          Gets the Authors of the Document.
 EFile[] getEFiles()
          Gets the EFiles of the document.
 EIdentifier[] getEIdentifiers()
          Gets the EIdentifiers of the document.
 java.lang.String getEleValue(java.lang.String ele)
          gets the value of the metadata element.
 java.lang.String getFullMDString()
          Gets the all the metadata as a single string.
 java.lang.String getGenre()
          Gets the Genre - Document type.
 java.lang.String getId()
          gets the id.
 java.util.HashMap getMDHASH()
          Gets back the Complete MDHASH of this Object.
 java.lang.String getOwner()
          Gets the Owner of the document.
 java.lang.String getSource()
          Gets the source of the document.
 void setCollection(java.lang.String colname)
          Sets the collection name.
 void setDateCreated(java.lang.String datecreated)
          Sets the datecreated.
 void setDateModified(java.lang.String datemodified)
          Sets the datemodified of the document.
 void setEAuthors(EAuthor[] eauthors)
          Sets the EAuthors of the EDodcument.
 void setEFiles(EFile[] efiles)
          Sets EFiles of the document.
 void setEIdentifiers(EIdentifier[] eidentifiers)
          Sets the EIdentifiers of the document.
 void setEleValue(java.lang.String ele, java.lang.String elevalue)
          Sets the metadata value.
 void setFullMDString(java.lang.String mdftext)
          Sets the mdftext.
 void setGenre(java.lang.String gen)
          sets the genre.
 void setId(java.lang.String id)
          sets the id
 void setOwner(java.lang.String owner)
          Sets the owner of the document.
 void setSource(java.lang.String source)
          Sets the source of the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EDocument

public EDocument()
Constructor - Default.

Method Detail

getGenre

public java.lang.String getGenre()
Gets the Genre - Document type.

Returns:
genre

setGenre

public void setGenre(java.lang.String gen)
sets the genre.

Parameters:
gen -

getId

public java.lang.String getId()
gets the id.

Returns:
id

setId

public void setId(java.lang.String id)
sets the id

Parameters:
id -

getCollection

public java.lang.String getCollection()
gets the collection.

Returns:
collectionname

setCollection

public void setCollection(java.lang.String colname)
Sets the collection name. In principle moves the document to the new collection, if the colname is different from the old one.

Parameters:
colname -

getEleValue

public java.lang.String getEleValue(java.lang.String ele)
gets the value of the metadata element.

Parameters:
ele -
Returns:
elevalue - element value.

setEleValue

public void setEleValue(java.lang.String ele,
                        java.lang.String elevalue)
Sets the metadata value.

Parameters:
ele -
elevalue -

getMDHASH

public java.util.HashMap getMDHASH()
Gets back the Complete MDHASH of this Object. This an efficient way to get the whole metadata from the EDocument Object. This is better at the time showing complete list of metadata.
MDHASH
metadata element => value from the database.

Returns:

getEAuthors

public EAuthor[] getEAuthors()
Gets the Authors of the Document.

Returns:
EAuthor[] Array of EAuthor objects.

setEAuthors

public void setEAuthors(EAuthor[] eauthors)
Sets the EAuthors of the EDodcument.

Parameters:
eauthors - EAuthor[]

getEIdentifiers

public EIdentifier[] getEIdentifiers()
Gets the EIdentifiers of the document.

Returns:
EIdentifier[] Array of EIdentifiers.

setEIdentifiers

public void setEIdentifiers(EIdentifier[] eidentifiers)
Sets the EIdentifiers of the document.

Parameters:
eidentifiers - EIdentifier[]

getEFiles

public EFile[] getEFiles()
Gets the EFiles of the document.

Returns:
EFiles[] Array of EFile objects

setEFiles

public void setEFiles(EFile[] efiles)
Sets EFiles of the document.

Parameters:
efiles - Array of EFile objects

getOwner

public java.lang.String getOwner()
Gets the Owner of the document.

Returns:
owner string

setOwner

public void setOwner(java.lang.String owner)
Sets the owner of the document.

Parameters:
owner - string

getDateCreated

public java.lang.String getDateCreated()
Gets the date created.

Returns:
dateofcreation string.

setDateCreated

public void setDateCreated(java.lang.String datecreated)
Sets the datecreated.

Parameters:
datecreated - string.

getDateModified

public java.lang.String getDateModified()
Gets the datemodified.

Returns:
datemodified string

setDateModified

public void setDateModified(java.lang.String datemodified)
Sets the datemodified of the document.

Parameters:
datemodified - string

getSource

public java.lang.String getSource()
Gets the source of the document.

Returns:
source string.

setSource

public void setSource(java.lang.String source)
Sets the source of the document.

Parameters:
source - string

getFullMDString

public java.lang.String getFullMDString()
Gets the all the metadata as a single string. Useful for the simple search.

Returns:
completemetadata string.

setFullMDString

public void setFullMDString(java.lang.String mdftext)
Sets the mdftext.

Parameters:
mdftext - string

getAuthorsStr

public java.lang.String getAuthorsStr()
Returns a concatenated string of authors

Returns:
String authors string