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 voidaddLink(Link link)Adds a link to the documentStringgetDescription()StringgetId()Returns the document id, as isList<Link>getLinks()StringgetTitle()StringgetType()voidsetDescription(String description)voidsetId(String id)voidsetTitle(String title)voidsetType(String type)StringtoString()-
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:
toStringin classAnyJSONObject
-
-