|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scone.netobjects.TableRecord scone.netobjects.Link
public class Link
a Link
represents a links-set from the database
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
protected static DBTableAdapter |
dbTable
|
static int |
DOWN
|
static int |
EXTERNAL
|
static int |
FRAGMENT
|
static int |
FROMCLUSTERINDEX
|
static int |
FROMHOME
|
protected NetNode |
fromNode
|
static int |
INTERNAL
|
static int |
NOHTML
|
static int |
NOHTTP
|
static int |
QUERY
|
static int |
SAMECLUSTER
|
static int |
SAMEDOCUMENT
|
static int |
TOCLUSTERINDEX
|
static int |
TOHOME
|
protected NetNode |
toNode
|
static int |
UP
|
Fields inherited from class scone.netobjects.TableRecord |
---|
ctei, date, fieldValues, hasChanged, hasRecordInDB, persistent |
Constructor Summary | |
---|---|
Link()
|
|
Link(NetNode from,
NetNode to,
java.lang.String fragment)
|
|
Link(java.sql.ResultSet results)
|
|
Link(java.lang.String linkId)
|
Method Summary | |
---|---|
void |
computeType()
Compute link type. |
void |
fill(adc.parser.HtmlTag tag)
sets the attributes to the values from a tag |
java.lang.String |
getAlt()
returns the ALT parameter of a pictures inside that link |
java.lang.String |
getFragment()
returns the fragment: protocol://server/path#fragment |
NetNode |
getFromNode()
returns the node in which the link is defined |
java.lang.Object |
getKey(int KeyNo)
returns the hashkey for this object (to be deprecated!) |
java.lang.String |
getLinkId()
returns the id of this link |
java.lang.String |
getLinkText()
returns the text between the opening and the closing a-tag |
java.lang.String |
getRel()
returns the rel parameter |
java.lang.String |
getRev()
returns the rev parameter |
java.lang.String |
getTarget()
returns the target window/frame |
java.lang.String |
getTitle()
returns the title parameter |
NetNode |
getToNode()
returns the node to which the link is pointing |
int |
getType()
returns the link type bitfield parameter |
void |
setAlt(java.lang.String v)
sets the ALT parameter of a pictue inside this link |
void |
setLinkText(java.lang.String v)
sets the text between the opening and the closing a-tag |
void |
setRel(java.lang.String v)
sets the rel parameter |
void |
setRev(java.lang.String v)
sets the rev parameter |
void |
setTarget(java.lang.String v)
sets the target window/frame |
void |
setTitle(java.lang.String v)
sets the title parameter |
void |
setType(int t)
sets the type parameter |
void |
store()
Store Link to DB For performance reasons, links objects can be created without corresponding DB entry! |
Methods inherited from class scone.netobjects.TableRecord |
---|
isPersistent, now, setCacheTableEntryInterface, setChanged, setPersistent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final int SAMEDOCUMENT
public static final int FRAGMENT
public static final int QUERY
public static final int EXTERNAL
public static final int INTERNAL
public static final int FROMHOME
public static final int TOHOME
public static final int DOWN
public static final int UP
public static final int SAMECLUSTER
public static final int FROMCLUSTERINDEX
public static final int TOCLUSTERINDEX
public static final int NOHTTP
public static final int NOHTML
protected static DBTableAdapter dbTable
protected NetNode fromNode
protected NetNode toNode
Constructor Detail |
---|
public Link()
public Link(java.sql.ResultSet results)
public Link(java.lang.String linkId)
public Link(NetNode from, NetNode to, java.lang.String fragment)
Method Detail |
---|
public java.lang.String getLinkId()
public java.lang.String getLinkText()
public void setLinkText(java.lang.String v)
v
- the linktextpublic java.lang.String getTarget()
public void setTarget(java.lang.String v)
v
- the targetpublic java.lang.String getTitle()
public void setTitle(java.lang.String v)
v
- the titlepublic java.lang.String getAlt()
public void setAlt(java.lang.String v)
v
- the IMaGes ALT parameterpublic java.lang.String getRev()
public void setRev(java.lang.String v)
v
- the rev parameterpublic java.lang.String getRel()
public void setRel(java.lang.String v)
v
- the rel parameterpublic int getType()
public void setType(int t)
t
- the type parameterpublic NetNode getFromNode()
public NetNode getToNode()
public java.lang.String getFragment()
public void fill(adc.parser.HtmlTag tag)
tag
- the tagpublic void store()
public java.lang.Object getKey(int KeyNo)
Cacheable
getKey
in interface Cacheable
getKey
in class TableRecord
KeyNo
- the number of the key to be generated
public void computeType()
bit 0: Roundtrip: Pointing to the same document.
bit 1: Fragment: Fragment defined
bit 2: Query: Query GET-parameters defined
bit 6: External Link: Pointing from one to an other site
bit 7: Sub-External: Pointign to an other site, but same top level domains.
bit 10: From Home: Coming from Homepage of server
bit 11: Home: Pointing to homepage of server
bit 14: Down: Pointing down the hierarchy of the URL - longer path name, same branch
bit 15: Up: Pointing up - shorter path name, same branch.
bit 16: Associative up -
bit 17: Assiciative down -
bit 20: Cluster: Link points to document in same path.
bit 21: From Cluster root: from collection root, page name is index.html, default.htm etc.
bit 22: To Cluster root: to collection root
bit 24: Other protocol: Link destination is not http but mail, ftp etc.
bit 25: Other Mime-Type: Destination of link is not HTML-document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |