public class Expression
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Expression(java.lang.String shelfmarkBase)
creates a new
Work -object with the given basic shelfmark |
Modifier and Type | Method and Description |
---|---|
void |
addDocument(Manifestation document)
adds a document to this work
|
Expression |
clone()
instantiates a clone of the object
|
boolean |
contains(Manifestation document)
checks whether a document is already in this work
|
boolean |
equals(java.lang.Object other)
returns compares two works by their basic shelfmarks
|
Manifestation |
getDocument(java.lang.String docNumber)
returns the document with the specified document number from this work
|
java.util.List<Manifestation> |
getDocuments()
returns all documents of this work
|
java.util.List<Event> |
getEvents()
returns the events of all items belonging to this work
|
java.util.List<Item> |
getItems()
returns the items belonging to this work
|
org.jdom2.Element |
getMAB()
returns bibliographic information for this work
|
java.lang.String |
getShelfmarkBase()
returns the basic shelfmark for this work
|
int |
hashCode()
returns a hash code for this work
|
void |
setMAB(org.jdom2.Element mab)
sets the bibliographic information for this work
|
void |
setShelfmarkBase(java.lang.String shelfmarkBase)
sets the basic shelfmark for this work
|
public Expression(java.lang.String shelfmarkBase)
Work
-object with the given basic shelfmarkshelfmarkBase
- the basic shelfmark of the workpublic java.lang.String getShelfmarkBase()
public void setShelfmarkBase(java.lang.String shelfmarkBase)
shelfmarkBase
- the basic shelfmarkpublic void setMAB(org.jdom2.Element mab)
mab
- a org.jdom2.element containing the bibliographic information
in MAB formatpublic org.jdom2.Element getMAB()
public void addDocument(Manifestation document)
document
- the document to be addedpublic boolean contains(Manifestation document)
document
- the document to be testedpublic java.util.List<Manifestation> getDocuments()
public java.util.List<Event> getEvents()
public java.util.List<Item> getItems()
public Manifestation getDocument(java.lang.String docNumber)
docNumber
- the document number of a document within the workpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- another workpublic int hashCode()
hashCode
in class java.lang.Object
public Expression clone()
clone
in class java.lang.Object