public class AnchorAddress extends Object
Two addresses are equal if they have the same scheme and path, and (if not null) fragment.
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_THIS |
static Pattern |
PATTERN |
protected static String |
PATTERN_FRAGMENT |
protected static String |
PATTERN_PATH |
protected static String |
PATTERN_SCHEME |
| Constructor and Description |
|---|
AnchorAddress(Scheme scheme,
String path,
String fragment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getFragment() |
String |
getPath() |
Scheme |
getScheme() |
int |
hashCode() |
static String |
toFileAddress(String string)
Converts a simple file path into a
file:// URI string. |
String |
toIdentifierString()
Generates an XSD:id typed String that can be used in XML documents as identifier attribute value.
|
String |
toString() |
static AnchorAddress |
valueOf(Scheme scheme,
com.sun.javadoc.ClassDoc classDoc,
String fragment) |
static AnchorAddress |
valueOf(Scheme scheme,
com.sun.javadoc.MethodDoc methodDoc) |
static AnchorAddress |
valueOf(Scheme scheme,
com.sun.javadoc.PackageDoc packageDoc) |
static AnchorAddress |
valueOf(Scheme scheme,
com.sun.javadoc.SeeTag tag) |
static AnchorAddress |
valueOf(String string) |
protected static final String PATTERN_SCHEME
protected static final String PATTERN_PATH
protected static final String PATTERN_FRAGMENT
public static final Pattern PATTERN
public static final String PATH_THIS
public Scheme getScheme()
public String getPath()
public String getFragment()
public static AnchorAddress valueOf(String string)
public static AnchorAddress valueOf(Scheme scheme, com.sun.javadoc.SeeTag tag)
public static AnchorAddress valueOf(Scheme scheme, com.sun.javadoc.PackageDoc packageDoc)
public static AnchorAddress valueOf(Scheme scheme, com.sun.javadoc.ClassDoc classDoc, String fragment)
public static AnchorAddress valueOf(Scheme scheme, com.sun.javadoc.MethodDoc methodDoc)
public static String toFileAddress(String string)
file:// URI string.string - A file path, e.g. "/my/file.txt".public String toIdentifierString()
public String toString()
Copyright © 2015 4th Line GmbH, Switzerland. All Rights Reserved.