public class Entities extends Object
Constructor and Description |
---|
Entities() |
Modifier and Type | Method and Description |
---|---|
void |
addEntity(Entity entity)
Adds an entity to the collection
|
Entity |
getEntity(String name,
int type) |
EntityIterator |
getGeneralEntities()
Returns all the non-parameter Entities declared in the DTD
|
EntityIterator |
getParameterEntities()
Returns all parameter Entities declared in the DTD
|
public void addEntity(Entity entity)
entity
- Entity to addpublic Entity getEntity(String name, int type) throws Exception
name
- type
- Exception
public EntityIterator getGeneralEntities()
public EntityIterator getParameterEntities()