|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uio.edd.model.geo.GeoModelPerson
public class GeoModelPerson
Store a set of information about one person. corefId will default to self, but can be changed, and will then be saved and loaded.
Field Summary | |
---|---|
(package private) ExtendableObjectList |
corefBackList
|
Constructor Summary | |
---|---|
GeoModelPerson(org.w3c.dom.Element rootNode,
GeoModelPersonReg inSchnitlerPersonReg)
Create a person object. |
Method Summary | |
---|---|
boolean |
addCorefBacklink(java.lang.String corefId)
Add a link to the list of objects corefering to this. |
(package private) int |
addNameNode(GeoModelLinkable nameNode)
Adds name element to this person object. |
(package private) int |
addSpeakerNode(GeoModelLinkable speakerNode)
Adds a speaker element to this person object, that is, a paragraph level element for which this person is seen as the speaker. |
(package private) java.lang.String |
formatPersonFull()
A report for a person. |
(package private) java.lang.String |
formatPersonFullHtmlCore()
A HTML report for a person. |
(package private) java.lang.String |
formatPersonFullWithText()
Give all output on a person, including all spoken text. |
(package private) java.lang.String |
formatPersonFullWithTextHtml()
Give all output on a person in HTML, including all spoken text and the links connecting this person. |
(package private) java.lang.String |
formatPersonSpeaker()
Format up to 20 paragraphs of speech for a person. |
java.lang.String[] |
getCorefBacklinkList()
Return the list of object IDs corefering to this. |
java.lang.String |
getCorefId()
Any linkable object has a global ID that can be used in co-reference work. |
java.lang.String |
getHtmlTableTr()
Returns a string with a line for a HTML table giving core information about the object: 1) ID. 2) textual representation. 3) main paragraph level connection (if applicable). 4) page (if applicable). |
java.lang.String |
getId()
Find the global ID value for this object. |
java.lang.String |
getIdOfPara()
Return the id of the paragraph element this object is connected to, if applicable. |
ExtendableStringList |
getIdToParasWhereIAmSpeaker()
|
java.lang.String |
getInfoHtml()
Returns a string with a fact sheet on the object in HTML. |
(package private) java.lang.String |
getMainName()
|
(package private) GeoModelPersonReg |
getMyOwner()
|
java.lang.String |
getName()
|
(package private) int |
getOrigIdNum()
|
ExtendableObjectList |
getParasWhereIAmSpeaker()
|
(package private) java.lang.String |
getRdf()
|
(package private) int |
getSpeakerNodeCount()
|
(package private) java.lang.String |
getSpeakerStatisticsLine()
|
boolean |
removeCorefBacklink(java.lang.String corefId)
Remove a link from the list of objects corefering to this. |
boolean |
removeObject()
Remove this object from the data set. |
boolean |
setCorefId(java.lang.String corefId)
Any linkable object has a global ID that can be used in co-reference work. |
boolean |
setCorefId(java.lang.String corefId,
long corefDate)
Any linkable object has a global ID that can be used in co-reference work. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
ExtendableObjectList corefBackList
Constructor Detail |
---|
GeoModelPerson(org.w3c.dom.Element rootNode, GeoModelPersonReg inSchnitlerPersonReg)
rootNode
- The TEI person element representing this person.inSchnitlerPersonReg
- The object controlling all the person objects.Method Detail |
---|
int addNameNode(GeoModelLinkable nameNode) throws javax.xml.datatype.DatatypeConfigurationException
nameNode
- The node representing the name.
javax.xml.datatype.DatatypeConfigurationException
- Thrown if the nameNode parameter is not of a type storable as
a person name.int addSpeakerNode(GeoModelLinkable speakerNode) throws javax.xml.datatype.DatatypeConfigurationException
speakerNode
- The node representing the paragraph.
javax.xml.datatype.DatatypeConfigurationException
- Thrown if the speakerNode parameter is not of a type storable
as a person name.public java.lang.String toString()
toString
in class java.lang.Object
java.lang.String formatPersonFull()
java.lang.String formatPersonFullHtmlCore()
java.lang.String formatPersonSpeaker()
java.lang.String formatPersonFullWithText()
java.lang.String formatPersonFullWithTextHtml()
int getOrigIdNum()
java.lang.String getMainName()
public java.lang.String getId()
GeoModelLinkable
getId
in interface GeoModelLinkable
public java.lang.String getCorefId()
GeoModelLinkable
getCorefId
in interface GeoModelLinkable
public boolean removeObject()
GeoModelLinkable
removeObject
in interface GeoModelLinkable
java.lang.String getRdf()
public boolean setCorefId(java.lang.String corefId)
GeoModelLinkable
setCorefId
in interface GeoModelLinkable
corefId
- The new co-reference ID value.
public boolean setCorefId(java.lang.String corefId, long corefDate)
corefId
- The new co-reference ID value.corefDate
- The date the coref was set
int getSpeakerNodeCount()
public java.lang.String getInfoHtml()
GeoModelLinkable
getInfoHtml
in interface GeoModelLinkable
GeoModelPersonReg getMyOwner()
public boolean addCorefBacklink(java.lang.String corefId)
GeoModelLinkable
addCorefBacklink
in interface GeoModelLinkable
corefId
- The ID of the coref.
public java.lang.String[] getCorefBacklinkList()
GeoModelLinkable
getCorefBacklinkList
in interface GeoModelLinkable
public boolean removeCorefBacklink(java.lang.String corefId)
GeoModelLinkable
removeCorefBacklink
in interface GeoModelLinkable
corefId
- The ID of the coref.
public java.lang.String getIdOfPara()
GeoModelLinkable
getIdOfPara
in interface GeoModelLinkable
java.lang.String getSpeakerStatisticsLine()
public java.lang.String getHtmlTableTr()
GeoModelLinkable
getHtmlTableTr
in interface GeoModelLinkable
public ExtendableObjectList getParasWhereIAmSpeaker()
public ExtendableStringList getIdToParasWhereIAmSpeaker()
public java.lang.String getName()
getName
in interface GeoModelLinkable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |