|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uio.edd.model.geo.GeoModelElement
public class GeoModelElement
A kind of a wrapper class around a DOM Element so that the local interface can be added easily. Coref id may be of two different types: 1) the ID of the myPersonElement. If this exist, the corefId will be immutable. 2) Othervise, corefId will default to self, but can be changed, and will then be saved and loaded.
Field Summary | |
---|---|
(package private) ExtendableObjectList |
corefBackList
|
(package private) java.lang.String |
corefId
|
(package private) org.w3c.dom.Element |
myDomElement
|
(package private) GeoModelPerson |
myPersonElement
|
(package private) GeoModelElement |
nextGeoModelElement
|
Constructor Summary | |
---|---|
GeoModelElement(GeoModelRunner inGeoModelRunner,
org.w3c.dom.Element inSchnitlerElement)
Create a wrapper object. |
Method Summary | |
---|---|
boolean |
addCorefBacklink(java.lang.String corefId)
Add a link to the list of objects corefering to this. |
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. |
java.lang.String |
getInfoHtml()
Returns a string with a fact sheet on the object in HTML. |
(package private) GeoModelPerson |
getMyPersonElement()
If I am a persName node, and I have a person element connected to me, that one is returned. |
java.lang.String |
getName()
|
(package private) java.lang.String |
getRdf()
|
java.lang.String |
getType()
|
EddChainable |
next()
Get the next object in the chain. |
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. |
(package private) void |
setMyPersonElement(GeoModelPerson newElem)
If I am a persName node, this sets the link to my related person element. |
void |
setNext(EddChainable newNext)
Set the pointer to the next object in the chain. |
(package private) void |
setNextElement(GeoModelElement inNextGeoModelElement)
Adds a pointer to another element |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
org.w3c.dom.Element myDomElement
GeoModelElement nextGeoModelElement
GeoModelPerson myPersonElement
java.lang.String corefId
ExtendableObjectList corefBackList
Constructor Detail |
---|
public GeoModelElement(GeoModelRunner inGeoModelRunner, org.w3c.dom.Element inSchnitlerElement)
inGeoModelRunner
- The runner owning this object.inSchnitlerElement
- The DOM Element to be wrapped.Method Detail |
---|
GeoModelPerson getMyPersonElement()
void setMyPersonElement(GeoModelPerson newElem)
newElem
- My person element.void setNextElement(GeoModelElement inNextGeoModelElement)
inNextGeoModeElement
- The element pointed to.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
GeoModelLinkable
getId
in interface GeoModelLinkable
public java.lang.String getCorefId()
GeoModelLinkable
getCorefId
in interface GeoModelLinkable
java.lang.String getRdf()
public boolean removeObject()
GeoModelLinkable
removeObject
in interface GeoModelLinkable
public EddChainable next()
EddChainable
next
in interface EddChainable
public void setNext(EddChainable newNext)
EddChainable
setNext
in interface EddChainable
newNext
- New value for the next object pointer.public boolean setCorefId(java.lang.String corefId)
GeoModelLinkable
setCorefId
in interface GeoModelLinkable
corefId
- The new co-reference ID value.
public java.lang.String getInfoHtml()
getInfoHtml
in interface GeoModelLinkable
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
public java.lang.String getHtmlTableTr()
GeoModelLinkable
getHtmlTableTr
in interface GeoModelLinkable
public java.lang.String getType()
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 |