Class StringTypedName

java.lang.Object
org.bigraphs.framework.core.datatypes.StringTypedName
All Implemented Interfaces:
NamedType<String>

public class StringTypedName extends Object implements NamedType<String>
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 Details

    • name

      protected String name
  • Constructor Details

    • StringTypedName

      protected StringTypedName()
    • StringTypedName

      public StringTypedName(String value)
  • Method Details

    • getValue

      public String getValue()
      Specified by:
      getValue in interface NamedType<String>
    • of

      public static StringTypedName of(String value)
      Creates a name set element with label passed by value argument.
      Parameters:
      value - the name of the element for a name set
      Returns:
      an element for a name set
    • of

      public static StringTypedName of()
      Creates a string-typed element for a name set with a random label.
      Returns:
      a randomly generated string-typed element
    • stringValue

      public String stringValue()
      Specified by:
      stringValue in interface NamedType<String>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object