public interface EntityFactory
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getKnownEntityURNs()
Get all entity urns understood by this factory.
|
Entity |
makeEntity(java.lang.String urn,
EntityID id)
Create a new Entity.
|
Entity makeEntity(java.lang.String urn, EntityID id)
urn
- The urn of the entity to create.id
- The id of the new entity.java.lang.IllegalArgumentException
- If the urn is not recognised.java.lang.String[] getKnownEntityURNs()