|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.cms.linking.LinkTarget
public class LinkTarget
The target of a link.
| Constructor Summary | |
|---|---|
protected |
LinkTarget()
Ctor for non-existing targets. |
protected |
LinkTarget(org.apache.lenya.cms.publication.Document doc)
Ctor. |
protected |
LinkTarget(org.apache.lenya.cms.publication.Document doc,
int revisionNumber)
Ctor. |
| Method Summary | |
|---|---|
boolean |
exists()
|
org.apache.lenya.cms.publication.Document |
getDocument()
|
int |
getRevisionNumber()
|
boolean |
isRevisionSpecified()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected LinkTarget(org.apache.lenya.cms.publication.Document doc,
int revisionNumber)
doc - The document.revisionNumber - The revision number.protected LinkTarget(org.apache.lenya.cms.publication.Document doc)
doc - The document.protected LinkTarget()
| Method Detail |
|---|
public org.apache.lenya.cms.publication.Document getDocument()
throws LinkException
LinkException - if the target doesn't exist.
public int getRevisionNumber()
throws LinkException
LinkException - if the target doesn't exist or no revision number
is specified in the link.public boolean isRevisionSpecified()
public boolean exists()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||