Package org.geotools.stac.client
Class AbstractDocument
- Object
-
- AnyJSONObject
-
- AbstractDocument
-
- Direct Known Subclasses:
Collection
,CollectionList
,STACLandingPage
public class AbstractDocument extends AnyJSONObject
Base OGC API document class, with identifier and links
-
-
Constructor Summary
Constructors Constructor Description AbstractDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLink(Link link)
Adds a link to the documentString
getDescription()
String
getId()
Returns the document id, as isList<Link>
getLinks()
String
getTitle()
String
getType()
void
setDescription(String description)
void
setId(String id)
void
setTitle(String title)
void
setType(String type)
String
toString()
-
Methods inherited from class AnyJSONObject
equals, hashCode, otherFields, setOtherField
-
-
-
-
Method Detail
-
addLink
public void addLink(Link link)
Adds a link to the document
-
getId
public String getId()
Returns the document id, as is
-
setId
public void setId(String id)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getType
public String getType()
-
setType
public void setType(String type)
-
toString
public String toString()
- Overrides:
toString
in classAnyJSONObject
-
-