Class StringTypedName
java.lang.Object
org.bigraphs.framework.core.datatypes.StringTypedName
Default implementation for an element of a name set. An element of such a name set is represent as a string.
This class is used to represent the type of the control labels of a signature (see
Signature
).- Author:
- Dominik Grzelak
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
int
hashCode()
static StringTypedName
of()
Creates a string-typed element for a name set with a random label.static StringTypedName
Creates a name set element with label passed byvalue
argument.
-
Field Details
-
name
-
-
Constructor Details
-
StringTypedName
protected StringTypedName() -
StringTypedName
-
-
Method Details
-
getValue
-
of
Creates a name set element with label passed byvalue
argument.- Parameters:
value
- the name of the element for a name set- Returns:
- an element for a name set
-
of
Creates a string-typed element for a name set with a random label.- Returns:
- a randomly generated string-typed element
-
stringValue
- Specified by:
stringValue
in interfaceNamedType<String>
-
equals
-
hashCode
public int hashCode()
-