Class StringBasedEntityType

java.lang.Object
org.fuin.objects4j.vo.AbstractStringValueObject
org.fuin.ddd4j.ddd.StringBasedEntityType
All Implemented Interfaces:
Serializable, Comparable<org.fuin.objects4j.vo.AbstractStringValueObject>, EntityType, org.fuin.objects4j.vo.AsStringCapable, org.fuin.objects4j.vo.ValueObject, org.fuin.objects4j.vo.ValueObjectWithBaseType<String>

@Immutable public final class StringBasedEntityType extends org.fuin.objects4j.vo.AbstractStringValueObject implements EntityType
Entity type based on a string with a maximum length of 255 characters.
See Also:
  • Constructor Details

    • StringBasedEntityType

      public StringBasedEntityType(@NotEmpty @Size(max=255) @NotEmpty @Size(max=255) String str)
      Constructor with unique name to use.
      Parameters:
      str - Type name of an aggregate that is unique within all types of the context
  • Method Details

    • asBaseType

      public final String asBaseType()
      Specified by:
      asBaseType in interface org.fuin.objects4j.vo.ValueObjectWithBaseType<String>
    • toString

      public final String toString()
      Overrides:
      toString in class Object