public class ImportFacet extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
customId |
protected ImportFacetGroup |
facetGroup |
protected String |
id
The database-internal ID which is automatically created.
|
protected Collection<String> |
labels |
protected String |
name |
protected boolean |
noFacet |
protected String |
shortName |
protected String |
sourceType |
| Constructor and Description |
|---|
ImportFacet(ImportFacetGroup facetGroup,
String customId,
String name,
String shortName,
String sourceType)
Constructor eligible for creating new facets in the database.
|
ImportFacet(ImportFacetGroup facetGroup,
String customId,
String name,
String shortName,
String sourceType,
Collection<String> labels,
boolean noFacet)
Constructor eligible for creating new facets in the database.
|
ImportFacet(String id)
Constructor used to refer to an existing facet with the given database ID
(NOT the custom ID).
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String label)
Add a label for the resulting Neo4j node.
|
String |
getCustomId() |
ImportFacetGroup |
getFacetGroup() |
String |
getId() |
Collection<String> |
getLabels() |
String |
getName() |
String |
getShortName() |
String |
getSourceType() |
boolean |
isNoFacet() |
void |
setCustomId(String customId) |
void |
setFacetGroup(ImportFacetGroup facetGroup) |
void |
setId(String id) |
void |
setLabels(Collection<String> labels) |
void |
setName(String name) |
void |
setNoFacet(boolean noFacet) |
void |
setShortName(String shortName) |
void |
setSourceType(String sourceType) |
protected String customId
FacetConstants.PROP_CUSTOM_IDprotected ImportFacetGroup facetGroup
protected String id
protected Collection<String> labels
protected String name
protected boolean noFacet
FacetConstants.NO_FACETprotected String shortName
protected String sourceType
public ImportFacet(ImportFacetGroup facetGroup, String customId, String name, String shortName, String sourceType)
facetGroup - The group of facets to join this facet to.customId - A custom ID that can be freely chosen. The only restriction is
that it has to be unique within the database.name - A human-readable name for the facet. Does not need to be unique.shortName - A short name, optional.sourceType - The type of the facet contents (hierarchical concepts, flat
concepts or arbitrary strings)public ImportFacet(ImportFacetGroup facetGroup, String customId, String name, String shortName, String sourceType, Collection<String> labels, boolean noFacet)
facetGroup - The group of facets to join this facet to.customId - A custom ID that can be freely chosen. The only restriction is
that it has to be unique within the database.name - A human-readable name for the facet. Does not need to be unique.shortName - A short name, optional.sourceType - The type of the facet contents (hierarchical concepts, flat
concepts or arbitrary strings)noFacet - Whether or not this facet should go to the default facet group or
into the separate "no-facet" section of the database. Used for
concepts that should stay hidden most of the time but are used
nontheless.public ImportFacet(String id)
id - The automatically created facet ID. Is returned from the database
upon facet creation.public void addLabel(String label)
label - An arbitrary label.public String getCustomId()
public ImportFacetGroup getFacetGroup()
public String getId()
public Collection<String> getLabels()
public String getName()
public String getShortName()
public String getSourceType()
public boolean isNoFacet()
public void setCustomId(String customId)
public void setFacetGroup(ImportFacetGroup facetGroup)
public void setId(String id)
public void setLabels(Collection<String> labels)
public void setName(String name)
public void setNoFacet(boolean noFacet)
public void setShortName(String shortName)
public void setSourceType(String sourceType)
Copyright © 2018 JULIE Lab Jena, Germany. All rights reserved.