|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--XLink
Models an XLink (vide http://www.w3c.org/XML/Linking) locator. N.B. that this class neither aims at nor achieves full compliance with the W3C recommendation.
| Constructor Summary | |
XLink()
|
|
XLink(org.w3c.dom.Element e)
|
|
XLink(org.w3c.dom.Node n)
|
|
XLink(java.lang.String href)
|
|
XLink(java.lang.String href,
int show)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDocumentPart()
Returns the document part of an XPTR URI. |
java.lang.String |
getFragmentPart()
Returns the fragment identifier part of an XPTR URI. |
java.lang.String |
getHREF()
Returns the HREF. |
org.w3c.dom.Node |
getNode()
Returns the node pointed to by this link, if it is an XPTR. |
TreeNodeView |
getTreeNodeView(ContentOwner owner)
Returns a TreeNodeView, i.e. |
int |
hashCode()
|
boolean |
isRelative()
Returns true if href is a relative URI. |
boolean |
isVoid()
Returns true if there is no href. |
boolean |
isXPTR()
Returns true if XLink points to a fragment specified with the XPointer syntax. |
java.net.URL |
locate(ContentOwner owner)
Returns a URL corresponding to the HREF of this XLink, using name resolution services, if needed. |
java.lang.Object |
open(ContentOwner owner)
Opens the link target. |
java.lang.String |
toString()
|
java.net.URL |
toURL()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XLink()
public XLink(java.lang.String href)
public XLink(java.lang.String href,
int show)
public XLink(org.w3c.dom.Element e)
public XLink(org.w3c.dom.Node n)
| Method Detail |
public boolean isXPTR()
public java.lang.String getDocumentPart()
href is not
XPTR conformant, return value is undefined.public java.lang.String getFragmentPart()
href
is not XPTR conformant, return value is undefined.public java.lang.String getHREF()
public boolean isVoid()
href.hrefpublic boolean isRelative()
href is a relative URI.public java.lang.Object open(ContentOwner owner)
owner - relevant (linking) ContentOwnerpublic TreeNodeView getTreeNodeView(ContentOwner owner)
TreeNodeView, i.e. a tuple consisting of
an ArborPanel and a TreePath, that
corresponds to the target of this XLink.owner - the linking ContentOwnerpublic org.w3c.dom.Node getNode()
public java.net.URL locate(ContentOwner owner)
throws java.net.MalformedURLException
toURL() method does
no name resolution.)owner - the linking ContentOwnertoURL()public java.lang.String toString()
toString in class java.lang.Object
public java.net.URL toURL()
throws java.net.MalformedURLException
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||