Package thredds.client.catalog
Class Documentation
- java.lang.Object
-
- thredds.client.catalog.Documentation
-
@Immutable public class Documentation extends Object
Client catalog documentation element- Since:
- 1/9/2015
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetInlineContent()StringgetType()URIgetURI()if its a XLink, get the absolute URIStringgetXlinkHref()if its a XLink, get the href, to display the link to the user.StringgetXlinkTitle()if its a XLink, get the title, to display the link to the user.inthashCode()booleanhasXlink()StringreadXlinkContent()Get inline content as a string, else null if there is noneStringtoString()
-
-
-
Constructor Detail
-
Documentation
public Documentation(String href, URI uri, String title, String type, String inlineContent)
Constructor.- Parameters:
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.
-
-
Method Detail
-
getType
public String getType()
-
hasXlink
public boolean hasXlink()
-
getURI
public URI getURI()
if its a XLink, get the absolute URI- Returns:
- the XLink URI, else null
-
getXlinkTitle
public String getXlinkTitle()
if its a XLink, get the title, to display the link to the user.- Returns:
- the XLink title, else null
-
getXlinkHref
public String getXlinkHref()
if its a XLink, get the href, to display the link to the user.- Returns:
- the XLink href, or null
-
getInlineContent
public String getInlineContent()
-
readXlinkContent
public String readXlinkContent() throws IOException
Get inline content as a string, else null if there is none- Returns:
- inline content as a string, else null
- Throws:
IOException
-
-