Package org.fuin.ddd4j.ddd
Interface EntityIdFactory
-
public interface EntityIdFactoryFactory to create entity identifier.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsType(String type)Verifies if the given type string is a valid one.EntityIdcreateEntityId(String type, String id)Creates an entity id by type and string identifier.booleanisValid(String type, String id)Determines if an identifier of the given type is valid.
-
-
-
Method Detail
-
containsType
boolean containsType(String type)
Verifies if the given type string is a valid one.- Parameters:
type- Type to be verified.- Returns:
- TRUE if the factory can create identifiers for the given type.
-
isValid
boolean isValid(String type, String id)
Determines if an identifier of the given type is valid.- Parameters:
type- Type of the identifier.id- Identifier to be verified.- Returns:
- TRUE if the factory can create and identifier for the given type and value.
-
-