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 boolean
equals(Object o)
String
getInlineContent()
String
getType()
URI
getURI()
if its a XLink, get the absolute URIString
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 noneString
toString()
-
-
-
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
-
-