Package edu.upf.taln.dri.lib.model.ext
Class CitationMarkerImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.model.BaseDocumentElem
-
- edu.upf.taln.dri.lib.model.ext.CitationMarkerImpl
-
- All Implemented Interfaces:
CitationMarker
public class CitationMarkerImpl extends BaseDocumentElem implements CitationMarker
IMPORTANT: Never instantiate directly this class!
CitationMarkerImpl represents an inline reference to a citation in a paper
-
-
Field Summary
-
Fields inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
cacheManager
-
-
Constructor Summary
Constructors Constructor Description CitationMarkerImpl(DocCacheManager cacheManager)
CitationMarkerImpl(DocCacheManager cacheManager, Integer id, Integer citationId, Integer sentenceId, String referenceText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString(boolean compactOutput)
String representation of the objectInteger
getCitationId()
The document-wide unambiguous id that references the correspondingCitation
elementInteger
getId()
Document-wide unambiguous citation marker IdString
getReferenceText()
The text of the citation markerInteger
getSentenceId()
The document-wide unambiguous id that references theSentence
of the document that includes the citation markervoid
setCitationId(Integer citationId)
void
setId(Integer id)
void
setReferenceText(String referenceText)
void
setSentenceId(Integer sentenceId)
-
Methods inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
getCacheManager, setCacheManager
-
-
-
-
Constructor Detail
-
CitationMarkerImpl
public CitationMarkerImpl(DocCacheManager cacheManager)
-
CitationMarkerImpl
public CitationMarkerImpl(DocCacheManager cacheManager, Integer id, Integer citationId, Integer sentenceId, String referenceText)
-
-
Method Detail
-
getId
public Integer getId()
Description copied from interface:CitationMarker
Document-wide unambiguous citation marker Id- Specified by:
getId
in interfaceCitationMarker
- Returns:
- document-wide unambiguous term Id
-
setId
public void setId(Integer id)
-
getCitationId
public Integer getCitationId()
Description copied from interface:CitationMarker
The document-wide unambiguous id that references the correspondingCitation
element- Specified by:
getCitationId
in interfaceCitationMarker
- Returns:
- null if this citation marker han not been associated to any bibliography citation entry
-
setCitationId
public void setCitationId(Integer citationId)
-
getSentenceId
public Integer getSentenceId()
Description copied from interface:CitationMarker
The document-wide unambiguous id that references theSentence
of the document that includes the citation marker- Specified by:
getSentenceId
in interfaceCitationMarker
- Returns:
-
setSentenceId
public void setSentenceId(Integer sentenceId)
-
getReferenceText
public String getReferenceText()
Description copied from interface:CitationMarker
The text of the citation marker- Specified by:
getReferenceText
in interfaceCitationMarker
- Returns:
-
setReferenceText
public void setReferenceText(String referenceText)
-
asString
public String asString(boolean compactOutput)
Description copied from interface:CitationMarker
String representation of the object- Specified by:
asString
in interfaceCitationMarker
- Returns:
-
-