|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XNodeLink
XNodeLink extends XNodeID as a link or reference to an XNode. The only fundamental augmentation is the ability set and get the link strength, which is represented as a double value from 0 to 1.0. Just as with XNodeIDs, XNodeLink objects should generally be created by a factory so that they are themselves unique within a JVM.
The XNode API (the package org.purl.xnode.*, both its source code and documentation), are released under the Apache 2.0 License. For more details, check the LICENSE file contained with the distribution, or see The Ceryle Project for more information. It is distributed with no warranty.
| Field Summary | |
|---|---|
static double |
INVALID_WEIGHT
The fixed weight value indicating an invalid weight. |
static double |
MANUAL_LINK_WEIGHT
This is also the default weight for manually-created XNodeLinks, establishing a direct link of maximum strength. |
static double |
MAX_WEIGHT
The maximum weight for XNodeLinks. |
static double |
MIN_WEIGHT
The minimum weight for XNodeLinks. |
| Method Summary | |
|---|---|
String |
cid()
Returns the Collection ID String. |
String |
getTitle()
Returns the title of the link as a value between 0 and 1.0. |
double |
getWeight()
Returns the weight of the link as a value between 0 and 1.0. |
String |
nid()
Returns the Node ID String. |
void |
setTitle(String title)
Sets the title of the link to a String title. |
void |
setWeight(double weight)
Sets the weight of the link to the double value between 0 and 1.0. |
String |
toPathNameFragment()
Returns a path name representation of this XNodeLink (as a String), for use in path name composition, such as in zip files or XNode serializations existing on file systems. |
String |
toString()
Returns a String representation of this XNodeLink. |
String |
toURI()
Returns a URI representation of this XNodeLink based on the root database URI, eg., ""xnode://db/cid/nid". |
| Field Detail |
|---|
static final double MIN_WEIGHT
static final double MAX_WEIGHT
static final double MANUAL_LINK_WEIGHT
static final double INVALID_WEIGHT
| Method Detail |
|---|
String cid()
cid in interface XNodeIDString nid()
nid in interface XNodeID
void setWeight(double weight)
throws IllegalArgumentException
IllegalArgumentException - on values outside the range of 0.0 to 1.0.double getWeight()
void setTitle(String title)
String getTitle()
String toPathNameFragment()
toPathNameFragment in interface XNodeIDXNodeID.toPathNameFragment()String toURI()
toURI in interface XNodeIDString toString()
toString in interface XNodeIDtoString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||