public class CkanTagBase extends Object
CkanTag
holds fields that can be sent when
creating
a tag, while CkanTag
holds more fields that can be returned with
searches. Notice free tags can be created by just adding them to a dataset to
create.
This class initializes nothing to fully preserve all we get from ckan. In
practice, all fields of retrieved resources can be null except maybe
name
.Constructor and Description |
---|
CkanTagBase() |
CkanTagBase(String name)
You can use this constructor when adding a free tag to a dataset.
|
CkanTagBase(String name,
String vocabularyId)
You can use this constructor when creating a tag associated to a
controlled vocabulary
|
public CkanTagBase()
public CkanTagBase(String name)
name
- the name for the new tag, a string between 2 and 100
characters long containing only alphanumeric characters and -, _ and .,
e.g. 'Jazz'public CkanTagBase(String name, String vocabularyId)
name
- the name for the new tag, a string between 2 and 100
characters long containing only alphanumeric characters and -, _ and .,
e.g. 'Jazz'public String getId()
public void setId(String id)
id
- alphanumerical id, i.e. "7f0aa2fe-9733-4ce2-a351-d10278ba44ac"public String getName()
public void setName(String name)
name
- a human readable name, i.e. "Habitat Quality"public String getVocabularyId()
public void setVocabularyId(String vocabularyId)
Copyright © 2015 Trento Rise. All rights reserved.