public class Category
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
embedCategory |
private double |
embedScore |
private java.lang.String |
id |
private java.lang.String |
name |
private java.lang.String |
parent |
private java.lang.String |
UUID |
Constructor and Description |
---|
Category(java.lang.String UUID,
java.lang.String id,
java.lang.String name,
java.lang.String parent,
java.lang.String embedCategory,
double embedScore)
Constructor of a Category object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEmbedCategory()
Provides the name of the embedded category according to the default classification scheme
|
double |
getEmbedScore()
Provides the similarity score assigned to the embedded category according to the default classification scheme
|
java.lang.String |
getId()
Provides the original identifier of this category
|
java.lang.String |
getName()
Provides the name of this category in the classification scheme
|
java.lang.String |
getParent()
Provides the original identifier of the parent of this category
|
java.lang.String |
getUUID()
Provides the UUID of this category
|
boolean |
hasId()
Indicates whether this category has got an original identifier in the classification scheme
|
boolean |
hasName()
Indicates whether this category has got an original name in the classification scheme
|
boolean |
hasParent()
Indicates whether this category has a parent in the classification hierarchy
|
boolean |
hasUUID()
Indicates whether a UUID has been assigned to this category
|
java.lang.String |
printContents()
Prints the attributes of this category as obtained from the classification scheme
|
void |
setEmbedCategory(java.lang.String cat)
Sets or updates the name of the embedded category according to the default classification scheme
|
void |
setEmbedScore(double embedScore)
Sets or updates the similarity score assigned to the embedded category according to the default classification scheme
|
void |
setUUID(java.lang.String uuid)
Sets or updates the UUID of this category
|
private java.lang.String UUID
private java.lang.String id
private java.lang.String name
private java.lang.String parent
private java.lang.String embedCategory
private double embedScore
public Category(java.lang.String UUID, java.lang.String id, java.lang.String name, java.lang.String parent, java.lang.String embedCategory, double embedScore)
UUID
- A universally unique identifier (UUID) assigned to this category during transformationid
- Original identifier of this category according to the classification schemename
- Name of the category as specified in the classification schemeparent
- Original identifier of the parent of this category in the classification schemeembedCategory
- Name of its corresponding embedded category in the default (internal) classification schemeembedScore
- Similarity score assigned to the embedded categorypublic java.lang.String getUUID()
public void setUUID(java.lang.String uuid)
uuid
- The UUID to be assigned to this categorypublic java.lang.String getId()
public java.lang.String getParent()
public java.lang.String getName()
public void setEmbedCategory(java.lang.String cat)
cat
- The name of the embedded category according to the default classification schemepublic java.lang.String getEmbedCategory()
public double getEmbedScore()
public void setEmbedScore(double embedScore)
embedScore
- The similarity score to be assigned to the embedded categorypublic boolean hasUUID()
public boolean hasId()
public boolean hasParent()
public boolean hasName()
public java.lang.String printContents()