|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sciplore.resources.Resource
org.sciplore.resources.Citation
@Entity public class Citation
Resource class for citations.
Resource
Constructor Summary | |
---|---|
Citation()
|
Method Summary | |
---|---|
static Citation |
getCitation(Citation c)
Returns a matching Citation object from the database for an Citation object. |
static Citation |
getCitation(Document cited,
Document citing,
Integer chapter,
Integer character,
Integer paragraph,
Integer sentence,
Integer word)
Returns a Citation object from the database for a cited Document , a
citing Document , a chapter cound, a character count, a paragraph count,
a sentence count and a word count. |
static Citation |
getCitation(Integer id)
Returns a Citation object from the database for an identifier. |
static List<Citation> |
getCitations()
Returns a list of all citations in database. |
Document |
getCitedDocument()
Returns the cited Document . |
Document |
getCitingDocument()
Returns the cititing Document . |
String |
getContext()
Returns the context. |
Integer |
getCountChapter()
Returns the chapter count. |
Integer |
getCountCharacter()
Returns the character count. |
Integer |
getCountParagraph()
Returns the paragraph count. |
Integer |
getCountSentence()
Returns the sentence count. |
Integer |
getCountWord()
Returns the word count. |
Integer |
getId()
Returns the identifier. |
void |
setCitedDocument(Document citedDocument)
Sets the cited Document . |
void |
setCitingDocument(Document citingDocument)
Sets the cititing Document . |
void |
setContext(String context)
Sets the context. |
void |
setCountChapter(Integer countChapter)
Sets the chapter count. |
void |
setCountCharacter(Integer countCharacter)
Sets the character count. |
void |
setCountParagraph(Integer countParagraph)
Sets the paragraph count. |
void |
setCountSentence(Integer countSentence)
Sets the sentence count. |
void |
setCountWord(Integer countWord)
Sets the word count. |
void |
setId(Integer id)
Sets the identifier. |
static Citation |
sync(Citation cit)
Synchronizes a Citation object with a record from the database. |
Methods inherited from class org.sciplore.resources.Resource |
---|
save |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Citation()
Method Detail |
---|
public static Citation getCitation(Citation c)
c
- the Citation object
public static Citation getCitation(Integer id)
id
- the identifier
public static Citation getCitation(Document cited, Document citing, Integer chapter, Integer character, Integer paragraph, Integer sentence, Integer word)
Document
, a
citing Document
, a chapter cound, a character count, a paragraph count,
a sentence count and a word count.
cited
- the cited Document
citing
- the citing Document
chapter
- the chapter countcharacter
- the character countparagraph
- the paragraph countsentence
- the sentence countword
- the word count
Document
public static List<Citation> getCitations()
public static Citation sync(Citation cit)
cit
- the citation
public Document getCitedDocument()
Document
.
Document
public Document getCitingDocument()
Document
.
Document
public String getContext()
public Integer getCountChapter()
public Integer getCountCharacter()
public Integer getCountParagraph()
public Integer getCountSentence()
public Integer getCountWord()
public Integer getId()
public void setCitedDocument(Document citedDocument)
Document
.
citedDocument
- the cited Document
public void setCitingDocument(Document citingDocument)
Document
.
citingDocument
- the citing Document
public void setContext(String context)
context
- the contextpublic void setCountChapter(Integer countChapter)
countChapter
- the chapter countpublic void setCountCharacter(Integer countCharacter)
countCharacter
- the character countpublic void setCountParagraph(Integer countParagraph)
countParagraph
- the paragraph countpublic void setCountSentence(Integer countSentence)
countSentence
- the sentence countpublic void setCountWord(Integer countWord)
countWord
- the word countpublic void setId(Integer id)
id
- the identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |