@Immutable
public class Documentation
extends java.lang.Object
Constructor and Description |
---|
Documentation(java.lang.String href,
java.net.URI uri,
java.lang.String title,
java.lang.String type,
java.lang.String inlineContent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getInlineContent() |
java.lang.String |
getType() |
java.net.URI |
getURI()
if its a XLink, get the absolute URI
|
java.lang.String |
getXlinkHref()
if its a XLink, get the href, to display the link to the user.
|
java.lang.String |
getXlinkTitle()
if its a XLink, get the title, to display the link to the user.
|
int |
hashCode() |
boolean |
hasXlink() |
java.lang.String |
readXlinkContent()
Get inline content as a string, else null if there is none
|
java.lang.String |
toString() |
public Documentation(java.lang.String href, java.net.URI uri, java.lang.String title, java.lang.String type, java.lang.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 java.lang.String getType()
public boolean hasXlink()
public java.net.URI getURI()
public java.lang.String getXlinkTitle()
public java.lang.String getXlinkHref()
public java.lang.String getInlineContent()
public java.lang.String readXlinkContent() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object