public final class NodeName extends Object
Constructor and Description |
---|
NodeName(String name)
Creates a new NodeName instance.
|
NodeName(String name,
boolean primary)
Creates a new NodeName instance.
|
NodeName(String name,
ComparisonMode comparisonMode)
Creates a new NodeName instance.
|
NodeName(String name,
ComparisonMode comparisonMode,
boolean primary)
Creates a new NodeName instance.
|
NodeName(String name,
String type)
Creates a new NodeName instance.
|
NodeName(String name,
String type,
boolean primary)
Creates a new NodeName instance.
|
NodeName(String name,
String type,
ComparisonMode comparisonMode)
Creates a new NodeName instance.
|
NodeName(String name,
String type,
ComparisonMode comparisonMode,
boolean primary)
Creates a new NodeName instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks whether both name and type equal.
|
ComparisonMode |
getComparisonMode()
Returns the comparison mode of the name.
|
String |
getName()
Returns the actual name of the node.
|
String |
getType()
Returns the type of the name (e.g. whether this is a colloquial name, a
brand name, ...).
|
int |
hashCode()
Computes an hash code from both name and type.
|
boolean |
isPrimary()
Returns whether this node is primary or not.
|
String |
toString()
Returns the name in a string representation of the form "name [type]" if
the type is non-null or returns just the name.
|
public NodeName(String name, String type, ComparisonMode comparisonMode, boolean primary)
name
- is the actual name of the node.type
- specifies the type of the name (e.g. whether this is a
colloquial name, a brand name, ...). May be null.comparisonMode
- defines the comparison mode used when querying the
NodeName from the databaseprimary
- spcifies whether whis node is primary or not.public NodeName(String name, String type, ComparisonMode comparisonMode)
name
- is the actual name of the node.type
- specifies the type of the name (e.g. whether this is a
colloquial name, a brand name, ...). May be null.comparisonMode
- defines the comparison mode used when querying the
NodeName from the databasepublic NodeName(String name, String type, boolean primary)
name
- is the actual name of the node.type
- specifies the type of the name (e.g. whether this is a
colloquial name, a brand name, ...). May be null.primary
- spcifies whether whis node is primary or not.public NodeName(String name, ComparisonMode comparisonMode, boolean primary)
name
- is the actual name of the node.comparisonMode
- defines the comparison mode used when querying the
NodeName from the databaseprimary
- spcifies whether whis node is primary or not.public NodeName(String name, boolean primary)
name
- is the actual name of the node.primary
- spcifies whether whis node is primary or not.public NodeName(String name, String type)
name
- is the actual name of the node.type
- specifies the type of the name (e.g. whether this is a
colloquial name, a brand name, ...). May be null.public NodeName(String name, ComparisonMode comparisonMode)
name
- is the actual name of the node.comparisonMode
- defines the comparison mode used when querying the
NodeName from the databasepublic NodeName(String name)
name
- is the actual name of the node.public String getName()
public String getType()
public ComparisonMode getComparisonMode()
public boolean isPrimary()
public String toString()
public boolean equals(Object obj)
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie