|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uio.edd.model.geo.GeoModelLink
public class GeoModelLink
A class for storing links between nodes.
Field Summary | |
---|---|
(package private) ExtendableObjectList |
corefBackList
|
Constructor Summary | |
---|---|
GeoModelLink(GeoModelLinkSet inGeoModelLinkSet,
int linkId)
Create an empty link object with only the ID value set. |
|
GeoModelLink(GeoModelLinkSet inGeoModelLinkSet,
int linkId,
GeoModelLinkable from,
GeoModelLinkable to,
java.lang.String type,
long createdDate)
Create a non-empty link object. |
Method Summary | |
---|---|
boolean |
addCorefBacklink(java.lang.String corefId)
Add a link to the list of objects corefering to this. |
(package private) void |
dump()
For debugging |
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. |
GeoModelLinkable |
getFrom()
|
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. |
int |
getLinkIdNum()
|
java.lang.String |
getLinkIdString()
|
java.lang.String |
getLinkTypeHtmlTable()
|
java.lang.String |
getName()
|
org.w3c.dom.Document |
getParsedInfo()
Return a formalised version of this object. |
(package private) java.lang.String |
getParsedType()
|
java.lang.String |
getRdf()
|
GeoModelLinkable |
getTo()
|
java.lang.String |
getType()
|
(package private) boolean |
isEmpty()
|
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) boolean |
setParsedType(java.lang.String xmlFragment)
|
(package private) void |
setType(java.lang.String type)
Update the type of a link object. |
(package private) void |
setValues(GeoModelLinkable from,
GeoModelLinkable to,
java.lang.String type)
Set the values of a link object and sets it to non-empty. |
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 |
---|
GeoModelLink(GeoModelLinkSet inGeoModelLinkSet, int linkId)
linkId
- The integer version of the ID for this linkGeoModelLink(GeoModelLinkSet inGeoModelLinkSet, int linkId, GeoModelLinkable from, GeoModelLinkable to, java.lang.String type, long createdDate) throws java.lang.NullPointerException
linkId
- The integer version of the ID for this linkfrom
- The object linked from (source)to
- The object linked to (target)type
- The type of the link.createdDate
- The creation time of this object as the number of milliseconds
since the standard base time known as "the epoch", namely
January 1, 1970, 00:00:00 GMT.
java.lang.NullPointerException
Method Detail |
---|
void setValues(GeoModelLinkable from, GeoModelLinkable to, java.lang.String type)
from
- The object linked from (source).to
- The object linked to (target).type
- The type of the link.void setType(java.lang.String type)
type
- The type of the link.boolean setParsedType(java.lang.String xmlFragment) throws GeoModelLinkException
GeoModelLinkException
public org.w3c.dom.Document getParsedInfo()
java.lang.String getParsedType() throws GeoModelLinkException
GeoModelLinkException
public GeoModelLinkable getFrom()
public GeoModelLinkable getTo()
public java.lang.String getType()
public int getLinkIdNum()
public java.lang.String getLinkIdString()
public java.lang.String getRdf()
boolean isEmpty()
void dump()
public boolean removeObject()
GeoModelLinkable
removeObject
in interface GeoModelLinkable
public java.lang.String getCorefId()
GeoModelLinkable
getCorefId
in interface GeoModelLinkable
public java.lang.String getId()
GeoModelLinkable
getId
in interface GeoModelLinkable
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 toString()
toString
in class java.lang.Object
public java.lang.String getIdOfPara()
GeoModelLinkable
getIdOfPara
in interface GeoModelLinkable
public java.lang.String getHtmlTableTr()
GeoModelLinkable
getHtmlTableTr
in interface GeoModelLinkable
public java.lang.String getLinkTypeHtmlTable()
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 |