@Immutable public class Documentation extends Object
Constructor and Description |
---|
Documentation(String href,
URI uri,
String title,
String type,
String inlineContent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getInlineContent() |
String |
getType() |
URI |
getURI()
if its a XLink, get the absolute URI
|
String |
getXlinkHref()
if its a XLink, get the href, to display the link to the user.
|
String |
getXlinkTitle()
if its a XLink, get the title, to display the link to the user.
|
int |
hashCode() |
boolean |
hasXlink() |
String |
readXlinkContent()
Get inline content as a string, else null if there is none
|
String |
toString() |
public Documentation(String href, URI uri, String title, String type, String inlineContent)
href
- : href of documentation, may be null.uri
- : absolute URL, or nulltitle
- : Xlink title, may be null.type
- : user-defined InvDocumentation typeinlineContent
- : optional inline contents.public String getType()
public boolean hasXlink()
public URI getURI()
public String getXlinkTitle()
public String getXlinkHref()
public String getInlineContent()
public String readXlinkContent() throws IOException
IOException