public class InvDocumentation
extends java.lang.Object
Constructor and Description |
---|
InvDocumentation() |
InvDocumentation(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 |
---|---|
static java.lang.String |
editableProperties() |
boolean |
equals(java.lang.Object o)
InvDocumentation elements with same values are equal.
|
java.lang.String |
getInlineContent()
Get inline content as a string, else null if there is none
|
java.lang.String |
getType() |
java.net.URI |
getURI()
if its a XLink, get the absolute URI
|
java.lang.String |
getXlinkContent()
if its a XLink, get its content.
|
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()
Override Object.hashCode() to implement equals.
|
boolean |
hasXlink() |
static java.lang.String |
hiddenProperties() |
void |
setInlineContent(java.lang.String s) |
void |
setType(java.lang.String type) |
void |
setXlinkHref(java.lang.String href) |
void |
setXlinkTitle(java.lang.String title) |
java.lang.String |
toString()
string representation
|
public InvDocumentation(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
- : resolved URL, or nulltitle
- : Xlink title, may be null.type
- : user-defined InvDocumentation typeinlineContent
- : optional inline contents.public InvDocumentation()
public java.lang.String getType()
public void setType(java.lang.String type)
public boolean hasXlink()
public java.net.URI getURI()
public java.lang.String getXlinkTitle()
public void setXlinkTitle(java.lang.String title)
public java.lang.String getXlinkHref()
public void setXlinkHref(java.lang.String href) throws java.net.URISyntaxException
java.net.URISyntaxException
public java.lang.String getXlinkContent() throws java.io.IOException
java.io.IOException
- on read errorpublic java.lang.String getInlineContent()
public void setInlineContent(java.lang.String s)
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
public static java.lang.String hiddenProperties()
public static java.lang.String editableProperties()